Displaying 1 50 of 635,791 commits (0.098s)

NetBSD — crypto/external/bsd/openssl/lib/libcrypto/arch/sparc ec.inc poly1305.inc

add the right assembler flags for the two new files.

NetBSD — sys/arch/x86/x86 svs.c

Fix one thing in the documentation, I meant to say only SVS_UTLS.
Delta File
+7 -7 sys/arch/x86/x86/svs.c
+7 -7 1 file

NetBSD — sys/arch/macppc/conf GENERIC GENERIC_601

Remove legacy comment regarding the instability of awacs(4)
Enable awacs(4), skipping MAMBO config as it is for an emulator.

From <macallan>
"that warning about the awacs driver making some
machines lock up can probably go. It's ancient and I've never seen it
actually happen, I have several oldish macs with different awacs
variants and it's enabled in all my configs. In fact it predates my
macppc interrupt cleanup ( I think I did that in 2005 or so ) and I
strongly suspect that fixed the problem.
( the ancient code didn't properly distinguish between edge and level
triggered interrupts on grand central / heathrow type hardware, IIRC it
always just checked the level register(s) which resulted in edge
triggered interrupts being missed or misdetected. Most of the mac-io
goop from that time uses edge triggered interrupts, which includes
awacs )

If this actually happens to anyone I'd like to know about it"

NetBSD — doc CHANGES-7.2

1571
Delta File
+7 -1 doc/CHANGES-7.2
+7 -1 1 file

NetBSD — doc CHANGES-7.1.2

1571
Delta File
+7 -1 doc/CHANGES-7.1.2
+7 -1 1 file

NetBSD — doc CHANGES-7.0.3

1571
Delta File
+7 -1 doc/CHANGES-7.0.3
+7 -1 1 file

NetBSD — sys/net if_mpls.c, sys/netmpls mpls_ttl.c

Pull up following revision(s) (requested by maxv in ticket #1571):
        sys/net/if_mpls.c: 1.31-1.33 via patch
        sys/netmpls/mpls_ttl.c: 1.9
Style, and fix several bugs:
 - ip4_check(), mpls_unlabel_inet() and mpls_unlabel_inet6() perform
   pullups, so we need to pass the updated pointers back
 - in mpls_lse() the route is not always freed
Looks a little better now.
--
Kick MPLS packets earlier.
--
Several changes:
 * Declare TRIM_LABEL as a function.
 * In mpls_unlabel_inet, copy the label locally. It's not incorrect to
   keep a pointer on the mbuf, but it's bug-friendly.
 * In mpls_label_inetX, fix the length check. Meanwhile add an XXX: we
   just want to make sure that m_copydata won't fail, but if we were
   guaranteed that m has M_PKTHDR set, we could simply check the length
   against m->m_pkthdr.len.
Delta File
+70 -46 sys/net/if_mpls.c
+27 -30 sys/netmpls/mpls_ttl.c
+97 -76 2 files

NetBSD — sys/net if_mpls.c, sys/netmpls mpls_ttl.c

Pull up following revision(s) (requested by maxv in ticket #1571):
        sys/net/if_mpls.c: 1.31-1.33 via patch
        sys/netmpls/mpls_ttl.c: 1.9
Style, and fix several bugs:
 - ip4_check(), mpls_unlabel_inet() and mpls_unlabel_inet6() perform
   pullups, so we need to pass the updated pointers back
 - in mpls_lse() the route is not always freed
Looks a little better now.
--
Kick MPLS packets earlier.
--
Several changes:
 * Declare TRIM_LABEL as a function.
 * In mpls_unlabel_inet, copy the label locally. It's not incorrect to
   keep a pointer on the mbuf, but it's bug-friendly.
 * In mpls_label_inetX, fix the length check. Meanwhile add an XXX: we
   just want to make sure that m_copydata won't fail, but if we were
   guaranteed that m has M_PKTHDR set, we could simply check the length
   against m->m_pkthdr.len.
Delta File
+70 -46 sys/net/if_mpls.c
+27 -30 sys/netmpls/mpls_ttl.c
+97 -76 2 files

NetBSD — sys/net if_mpls.c, sys/netmpls mpls_ttl.c

Pull up following revision(s) (requested by maxv in ticket #1571):
        sys/net/if_mpls.c: 1.31-1.33 via patch
        sys/netmpls/mpls_ttl.c: 1.9
Style, and fix several bugs:
 - ip4_check(), mpls_unlabel_inet() and mpls_unlabel_inet6() perform
   pullups, so we need to pass the updated pointers back
 - in mpls_lse() the route is not always freed
Looks a little better now.
--
Kick MPLS packets earlier.
--
Several changes:
 * Declare TRIM_LABEL as a function.
 * In mpls_unlabel_inet, copy the label locally. It's not incorrect to
   keep a pointer on the mbuf, but it's bug-friendly.
 * In mpls_label_inetX, fix the length check. Meanwhile add an XXX: we
   just want to make sure that m_copydata won't fail, but if we were
   guaranteed that m has M_PKTHDR set, we could simply check the length
   against m->m_pkthdr.len.
Delta File
+70 -46 sys/net/if_mpls.c
+27 -30 sys/netmpls/mpls_ttl.c
+97 -76 2 files

NetBSD — sys/arch/amd64/amd64 locore.S

Use %rax instead of %r15 in the non-SVS case, to reduce the diff against
SVS. In SVS we use %rax instead of %r15 because the following instructions
cannot be encoded:

        movq        %r15,SVS_UTLS+UTLS_SCRATCH
        movq        SVS_UTLS+UTLS_RSP0,%r15
Delta File
+19 -26 sys/arch/amd64/amd64/locore.S
+19 -26 1 file

NetBSD — sys/dev/pci pcidevs_data.h pcidevs.h

Regen.
Delta File
+9,156 -9,153 sys/dev/pci/pcidevs_data.h
+3 -2 sys/dev/pci/pcidevs.h
+9,159 -9,155 2 files

NetBSD — sys/dev/pci pcidevs

Add AMD KERNCZ chipset for Zen processors.
Delta File
+2 -1 sys/dev/pci/pcidevs
+2 -1 1 file

NetBSD — sys/arch/x86/x86 svs.c

Document SVS. Also, remove an entry from the todo list.
Delta File
+167 -35 sys/arch/x86/x86/svs.c
+167 -35 1 file

NetBSD — sys/netinet if_arp.c, sys/netinet6 nd6_nbr.c

Avoid a race condition of DAD timer destructions

When we see dp->dad_ifa == NULL, it means that the ifa is being deleted and also
the callout is scheduled again by someone.  We shouldn't rely on a result of
callout_pending to know if the callout is scheduled because it returns false if
the subsequent callout handler is already on the fly.

We have to always delegate the destruction of dp to the subsequent handler
unconditionally if dp->dad_ifa == NULL. Otherwise, the first handler destroys
the dp and the second handler tries to handle destroyed dp.
Delta File
+6 -11 sys/netinet/if_arp.c
+6 -11 sys/netinet6/nd6_nbr.c
+12 -22 2 files

NetBSD — sys/netinet6 nd6_nbr.c

Simplify; pass dp to nd6_dad_duplicated instead of looking it up again in it
Delta File
+20 -28 sys/netinet6/nd6_nbr.c
+20 -28 1 file

NetBSD — sys/netinet6 nd6_nbr.c

Use KASSERT for checking a programming error
Delta File
+3 -4 sys/netinet6/nd6_nbr.c
+3 -4 1 file

NetBSD — sys/netinet in.c ip_input.c, sys/netinet6 in6.c ip6_input.c

Avoid a deadlock between softnet_lock and IFNET_LOCK

A deadlock occurs because there is a violation of the rule of lock ordering;
softnet_lock is held with hodling IFNET_LOCK, which violates the rule.
To avoid the deadlock, replace softnet_lock in in_control and in6_control
with KERNEL_LOCK.

We also need to add some KERNEL_LOCKs to protect the network stack surely.
This is required, for example, for PR kern/51356.

Fix PR kern/53043

NetBSD — share/mk bsd.own.mk

Switch hppa to gcc 6.4
Delta File
+2 -1 share/mk/bsd.own.mk
+2 -1 1 file

NetBSD — sys/kern kern_exec.c

Fix off-by-one, we don't want the entry point to equal the maximum
address.
Delta File
+4 -4 sys/kern/kern_exec.c
+4 -4 1 file

NetBSD — sys/arch/x86/x86 svs.c

Add a new entry in the TODO list.
Delta File
+4 -2 sys/arch/x86/x86/svs.c
+4 -2 1 file

NetBSD — share/man/man4 sdtemp.4

Remove unnecessary macros.
Delta File
+15 -51 share/man/man4/sdtemp.4
+15 -51 1 file

NetBSD — sys/arch/amd64/conf Makefile.amd64, sys/arch/i386/conf Makefile.i386

Revert previous, we'll need something better (and compatible with Clang).

NetBSD — sys/arch/x86/x86 x86_machdep.c

Change the SVS node, from machdep.svs_enabled to machdep.svs.enabled.
Delta File
+11 -5 sys/arch/x86/x86/x86_machdep.c
+11 -5 1 file

NetBSD — sys/arch/amd64/conf Makefile.amd64, sys/arch/i386/conf Makefile.i386

Add -fno-shrink-wrap, to force GCC to push the frames at the very beginning
of the functions. Otherwise DDB is unable to display a correct stack trace
if a fault occurred in a function before the frame was pushed.

Discussed on tech-kern@, flag suggested by Krister Walfridsson. Should fix
PR/52560.

NetBSD — doc CHANGES

BUFQ_PRIOCSCAN enabled on macppc port.
Delta File
+3 -1 doc/CHANGES
+3 -1 1 file

NetBSD — sys/arch/macppc/conf GENERIC GENERIC_601

Enable BUFQ_PRIOCSCAN by default for NetBSD/macppc.
Drop references to NEW_BUFQ_STRATEGY and replace with currently available
options BUFQ_READPRIO and BUFQ_PRIOCSCAN.

ok <macallan>

NetBSD — sys/arch/macppc/conf GENERIC MAMBO, sys/arch/powerpc/oea ofw_rascons.c

Remove OFB_ENABLE_CACHE
from <macallan>
"it is outdated, genfb and friends don't need or use it, and it makes no sense
on accelerated drivers either. It tries to BAT-map the framebuffer cacheable,
which works on most macs but makes a few models lock up. Genfb doesn't have that
problem and is faster too."

NetBSD — external/gpl3/gcc.old README.gcc53

remove this obsolete file that has a lot of dated info from
about the time we started switching some ports to GCC 5.3.
Delta File
+0 -108 external/gpl3/gcc.old/README.gcc53
+0 -108 1 file

NetBSD — external/gpl3/gcc/usr.bin/gcc/arch/powerpc64 defs.mk configargs.h

regen ppc64 mknative gcc 6 files with biarch support.

NetBSD — external/gpl3/gcc/dist/gcc config.gcc, external/gpl3/gcc/dist/gcc/config/rs6000 netbsd64.h

fix powerpc64 bi-arch support:  provide a LINK_SECURE_PLT_SPEC.
with this, and mknative-gcc for it, powerpc64 builds with GCC 6.

NetBSD — sys/arch/amd64/amd64 locore.S

Adapt previous; put #ifdef SVS around the declaration directly.
Delta File
+3 -5 sys/arch/amd64/amd64/locore.S
+3 -5 1 file

NetBSD — share/man/man7 sysctl.7

Improve description of ddb.commandonenter.
Delta File
+3 -2 share/man/man7/sysctl.7
+3 -2 1 file

NetBSD — share/man/man7 sysctl.7

Document ddb.dumpstack sysctl
Remove the mention of ddb.onpanic=2 as that functionality was removed with the
introduction of ddb.dumpstack.

Heads up by <pgoyette>
Delta File
+6 -3 share/man/man7/sysctl.7
+6 -3 1 file

NetBSD — share/man/man7 sysctl.7

Sort ddb section in alphabetical order.
Bump date.
Delta File
+21 -22 share/man/man7/sysctl.7
+21 -22 1 file

NetBSD — distrib/sets/lists/tests mi, tests/crypto/libcrypto Makefile t_hashes.sh

PR lib/53044: remove tests not provided by OpenSSL 1.1.x

NetBSD — sys/arch/amd64/amd64 locore.S

Protect the SVS part of SYSCALL_ENTRY by #ifdef SVS to make non-SVS
kernels compile again.
Delta File
+5 -1 sys/arch/amd64/amd64/locore.S
+5 -1 1 file

NetBSD — sys/arch/amd64/amd64 machdep.c, sys/arch/amd64/include pmap.h

Remove svs_pgg_update(). Instead of manually changing PG_G on each page,
we can disable the global-paging mechanism in %cr4 with CR4_PGE. Do that.

In addition, install CR4_PGE when SVS is disabled manually (via the
sysctl).

Now, doing "sysctl -w machdep.svs_enabled=0" restores the performance
completely, exactly as if SVS hadn't been enabled in the first place.

NetBSD — sys/arch/x86/x86 svs.c

Ensure the CPUs are all online. We take cpu_lock, so nobody can go offline
in the meantime.
Delta File
+26 -8 sys/arch/x86/x86/svs.c
+26 -8 1 file

NetBSD — sys/arch/amd64/amd64 locore.S, sys/arch/amd64/include frameasm.h

Make the machdep.svs_enabled sysctl writable, and add the kernel code
needed to disable SVS at runtime.

We set 'svs_enabled' to false, and hotpatch the kernel entry/exit points
to eliminate the context switch code.

We need to make sure there is no remote CPU that is executing the code we
are hotpatching. So we use two barriers:

 * After the first one each CPU is guaranteed to be executing in
   svs_disable_cpu with interrupts disabled (this way it can't leave this
   place).

 * After the second one it is guaranteed that SVS is disabled, so we flush
   the cache, enable interrupts and continue execution normally.

Between the two barriers, cpu0 will disable SVS (svs_enabled=false and
hotpatch), and each CPU will restore the generic syscall entry point.

Three notes:

 * We should call svs_pgg_update(true) afterwards, to put back PG_G on
   the kernel pages (for better performance). This will be done in another
   commit.


    [12 lines not shown]

NetBSD — sys/arch/amd64/amd64 machdep.c

Mmh, add #ifdef SVS around svs_init().
Delta File
+4 -2 sys/arch/amd64/amd64/machdep.c
+4 -2 1 file

NetBSD — share/man/man4 sdtemp.4

Add Microchip EMC1501.
Delta File
+3 -2 share/man/man4/sdtemp.4
+3 -2 1 file

NetBSD — sys/dev/i2c sdtemp_reg.h sdtemp.c

- Add Maxim MAX6604.
- Microchip EMC1501.
- ADT7408's device ID is not 0x80 but 0x08.
Delta File
+7 -3 sys/dev/i2c/sdtemp_reg.h
+6 -2 sys/dev/i2c/sdtemp.c
+13 -5 2 files

NetBSD — sys/dev/pci/ixgbe ix_txrx.c ixgbe.c

 Fix a potential bug that TX/RX might stall when TX rate limit reached.
This change is almost the same as the RX rate limit bug fix in ixgbe.c
rev. 1.121. I've never got any stall, but this must be a bug.

NetBSD — sys/arch/amd64/amd64 machdep.c, sys/arch/amd64/include pmap.h

Improve the SVS initialization.

Declare x86_patch_window_open() and x86_patch_window_close(), and globalify
x86_hotpatch().

Introduce svs_enable() in x86/svs.c, that does the SVS hotpatching.

Change svs_init() to take a bool. This function gets called twice; early
when the system just booted (and nothing is initialized), lately when at
least pmap_kernel has been initialized.

NetBSD — sys/arch/amd64/amd64 locore.S, sys/arch/amd64/include frameasm.h

Add a dynamic detection for SVS.

The SVS_* macros are now compiled as skip-noopt. When the system boots, if
the cpu is from Intel, they are hotpatched to their real content.
Typically:

                jmp        1f
                int3
                int3
                int3
                ... int3 ...
        1:

gets hotpatched to:

                movq        SVS_UTLS+UTLS_KPDIRPA,%rax
                movq        %rax,%cr3
                movq        CPUVAR(KRSP0),%rsp

These two chunks of code being of the exact same size. We put int3 (0xCC)
to make sure we never execute there.

In the non-SVS (ie non-Intel) case, all it costs is one jump. Given that
the SVS_* macros are small, this jump will likely leave us in the same
icache line, so it's pretty fast.

    [17 lines not shown]

NetBSD — sys/dev/pci/ixgbe ixv.c

- Apply ixgbe.c rev. 1.124 to ixv.c. Fix a bug that RX may stall on heavy load
 on ixv(4) derived from FreeBSD's AIM (Auto Interrupt Moderation) bug.
 ITR_INTERVAL value must be larger than 4us.

- The bitfield of EITR register is different between 82598 and others.
 ixv.c had a bug that it accessed 82598's way even though only 82599 and
 newer support virtual function. Fix it using with new ixv_eitr_write()
 function.
Delta File
+32 -6 sys/dev/pci/ixgbe/ixv.c
+32 -6 1 file

NetBSD — sys/arch/amd64/amd64 amd64_trap.S

Revert all my latest changes, and restore this file back to how it was
in rev1.24. I wanted to replace the functions dynamically for SVS, but
that was a dumb idea, we'll just hotpatch instead.
Delta File
+147 -130 sys/arch/amd64/amd64/amd64_trap.S
+147 -130 1 file

NetBSD — lib/libc/stdio stdio.3

Remove extra "an"

Thanks to J. Lewis Muir
Delta File
+3 -3 lib/libc/stdio/stdio.3
+3 -3 1 file

NetBSD — sys/dev/pci pcidevs_data.h pcidevs.h

Regen.
Delta File
+6,050 -5,755 sys/dev/pci/pcidevs_data.h
+148 -12 sys/dev/pci/pcidevs.h
+6,198 -5,767 2 files

NetBSD — sys/dev/pci pcidevs

 Add some Xeon E5 (v1) and E5 v2 devices.
Delta File
+147 -11 sys/dev/pci/pcidevs
+147 -11 1 file