Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (18m)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (177d) 

2024-05-09 22:57:05 UTC Now

2018-03-04 22:47:49 UTC MAIN commitmail json YAML

switch powerpc, mips and arm ports to GCC 6.

all kernels that build with gcc 5 still build.
several platforms tested in emulators and real hardware.

(mrg)

2018-03-04 22:28:18 UTC MAIN commitmail json YAML

avoid gcc 6 indentation issues.  rewrite:
  if (vgar()); if (vgar()); if (vgar()); if (vgar());
as
  vgar();
  vgar();
  vgar();
  vgar();

verified the ass output has the 4 reads (the macro uses a
volatile pointer, so it should remain so too.)

(mrg)

2018-03-04 21:51:44 UTC MAIN commitmail json YAML

avoid 32 bit only code in 64 bit mode.

(mrg)

2018-03-04 21:42:28 UTC MAIN commitmail json YAML

#if 0 grtwo_cursor_data[] to match the #if 0'd code that uses it.

(mrg)

2018-03-04 21:41:48 UTC MAIN commitmail json YAML

avoid indentation issues.  re-do previous in obio.c to avoid the
does-nothing change, by fixing the intended indentation.

(mrg)

2018-03-04 19:57:41 UTC MAIN commitmail json YAML

Don't use the local username as the default anonftp password.

once upon a time doing this was part of the social glue that held the
community together, but that was a long time ago, and now it's just an
information leak.

proposed on tech-userlevel in 2008, then apparently forgotten :-|

(dholland)

2018-03-04 19:23:33 UTC MAIN commitmail json YAML

device.h also now needs pmf_qual_t exposed for _KMEMUSERs

(kre)

2018-03-04 18:07:34 UTC MAIN commitmail json YAML

Since device.h now exposes uses of types defined here to _KMEMUSER
the types better be defined for _KMEMUSER as well.

(kre)

2018-03-04 16:45:12 UTC MAIN commitmail json YAML

2018-03-04 16:44:11 UTC MAIN commitmail json YAML

_LP64 64 bit types are "long" not "long long".

(christos)

2018-03-04 16:34:20 UTC MAIN commitmail json YAML

Use "#if NPCI > 0" instead of "#ifdef NPCI" for compiling kernels with acpi, without pci.

(scole)

2018-03-04 15:51:15 UTC MAIN commitmail json YAML

remove 'define foo {}' for non-bus-like devices

(christos)

2018-03-04 15:25:15 UTC MAIN commitmail json YAML

2018-03-04 13:24:46 UTC MAIN commitmail json YAML

2018-03-04 13:24:17 UTC MAIN commitmail json YAML

according to VT82C686A chip specs, the VIA Technologies device 0x3057
is more a Power Management controller, rename the pcidevs entry and device
macro

PR kern/31963 by Nicolas Joly

(jdolecek)

2018-03-04 13:13:18 UTC MAIN commitmail json YAML

2018-03-04 13:11:51 UTC MAIN commitmail json YAML

apply some updates and recommended corrections to pcidevs descriptions

PR kern/45733 by Greg A.Woods

(jdolecek)

2018-03-04 11:01:48 UTC MAIN commitmail json YAML

reduce intendation in pmap_activate(), NFCI

(jdolecek)

2018-03-04 10:59:11 UTC MAIN commitmail json YAML

move DIAGNOSTIC code for checking in-use pmap from pmap_destroy()
to a separate function for readability

(jdolecek)

2018-03-04 10:40:01 UTC MAIN commitmail json YAML

dedup pmap_pdirpa() KASSERT() in pmap_reactive(), pmap_load(), and
pmap_deactivate()

(jdolecek)

2018-03-04 10:26:10 UTC MAIN commitmail json YAML

dedup code around pmap_reactivate() - do the actual TLB flush also

(jdolecek)

2018-03-04 10:13:09 UTC MAIN commitmail json YAML

drop pmap_update_2pg(), just call pmap_update_pg() separately for each

(jdolecek)

2018-03-04 10:02:10 UTC MAIN commitmail json YAML

use tlbflush() instead of writing to %cr3, so it's more clear what code does

(jdolecek)

2018-03-04 08:04:59 UTC MAIN commitmail json YAML

Less ifdefs -> more readable.

NFC intended

(skrll)

2018-03-04 07:39:45 UTC MAIN commitmail json YAML

Return temporary errors when the session is trying to recover the last
connection. The scsipi layer will retry.

(mlelstv)

2018-03-04 07:37:43 UTC MAIN commitmail json YAML

2018-03-04 07:15:37 UTC MAIN commitmail json YAML

2018-03-04 07:14:51 UTC MAIN commitmail json YAML

2018-03-04 07:13:11 UTC MAIN commitmail json YAML

Expose device structures to _KMEMUSER

(mlelstv)

2018-03-04 07:12:18 UTC MAIN commitmail json YAML

expose struct devicelist alldevs again.

(mlelstv)

2018-03-04 04:09:03 UTC MAIN commitmail json YAML

2018-03-04 04:00:45 UTC MAIN commitmail json YAML

2018-03-04 03:25:18 UTC MAIN commitmail json YAML

2018-03-04 03:14:52 UTC MAIN commitmail json YAML

Provide wdboot as a copy of sdboot for Milan.

It looks Milan's bootloader ROM emulates IDE disks as SCSI disks
so sdboot works for them, but atari's installboot checks a specified
device name and requires wdboot for wd(4) devices.

(tsutsui)

2018-03-04 02:10:26 UTC MAIN commitmail json YAML

emove an unnecessary .Dq

(pgoyette)

2018-03-04 00:59:45 UTC MAIN commitmail json YAML

2018-03-04 00:24:21 UTC MAIN commitmail json YAML

2018-03-04 00:22:22 UTC MAIN commitmail json YAML

no more need to hardwire the boot device

(macallan)

2018-03-04 00:21:20 UTC MAIN commitmail json YAML

detect if we netboot and set booted_device accordingly

(macallan)

2018-03-04 00:17:05 UTC MAIN commitmail json YAML

switch sh3 to openssl-1.1

(christos)

2018-03-04 00:07:39 UTC MAIN commitmail json YAML

2018-03-03 23:27:51 UTC MAIN commitmail json YAML

this ain't python, thanks gcc6.

(christos)

2018-03-03 22:50:17 UTC MAIN commitmail json YAML

get bootpath from OF if we don't get it as an argument

(macallan)

2018-03-03 22:46:30 UTC MAIN commitmail json YAML

Disable NULL pointer check deletion like we do for the kernel in
src/sys/conf/Makefile.kern.inc. This is the same code we are compiling after
all and it has the same issues.

(christos)

2018-03-03 20:51:26 UTC netbsd-6-0 commitmail json YAML

2018-03-03 20:51:09 UTC netbsd-6-1 commitmail json YAML

2018-03-03 20:50:38 UTC netbsd-6 commitmail json YAML

2018-03-03 20:49:18 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by sevan in ticket #1515):
dist/pf/etc/pf.os: 1.4-1.5
Synchronise with r1.27 from OpenBSD
--
Add DragonFly BSD fingerprints.

(snj)

2018-03-03 20:47:24 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #1513):
sys/arch/sparc/sparc/locore.s: 1.269
Avoid an instruction requiring a higher alignment than we are guaranteed
Fixes PR port-sparc/52721: ddb errors on ps command
Thanks to mlelstv.

(snj)

2018-03-03 20:44:39 UTC netbsd-6 commitmail json YAML

Apply patch (requested by riastradh in ticket #1512):
Fix panic when waiting with kqueue/kevent for a read from
/dev/random.

(snj)

2018-03-03 20:44:36 UTC netbsd-6-1 commitmail json YAML

Apply patch (requested by riastradh in ticket #1512):
Fix panic when waiting with kqueue/kevent for a read from
/dev/random.

(snj)

2018-03-03 20:44:33 UTC netbsd-6-0 commitmail json YAML

Apply patch (requested by riastradh in ticket #1512):
Fix panic when waiting with kqueue/kevent for a read from
/dev/random.

(snj)

2018-03-03 20:34:28 UTC netbsd-6-0 commitmail json YAML

Apply patch (requested by spz in ticket #1510):
Add missing debug entry.

(snj)

2018-03-03 20:27:09 UTC netbsd-7-0 commitmail json YAML

2018-03-03 20:27:00 UTC netbsd-7-1 commitmail json YAML

2018-03-03 20:26:52 UTC netbsd-7 commitmail json YAML

2018-03-03 20:24:57 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1577):
sys/netipsec/ipsec_input.c: 1.57 1.58
sys/netipsec/ipsec_input.c: 1.57
Extend these #ifdef notyet. The m_copydata's in these branches are wrong,
we are not guaranteed to have enough room for another struct ip, and we
may crash here. Triggerable remotely, but after authentication, by sending
an AH packet that has a one-byte-sized IPIP payload.
Argh, in my previous commit in this file I forgot to fix the IPv6
entry point; apply the same fix there.

(snj)

2018-03-03 20:24:55 UTC netbsd-7-1 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1577):
sys/netipsec/ipsec_input.c: 1.57 1.58
sys/netipsec/ipsec_input.c: 1.57
Extend these #ifdef notyet. The m_copydata's in these branches are wrong,
we are not guaranteed to have enough room for another struct ip, and we
may crash here. Triggerable remotely, but after authentication, by sending
an AH packet that has a one-byte-sized IPIP payload.
Argh, in my previous commit in this file I forgot to fix the IPv6
entry point; apply the same fix there.

(snj)

2018-03-03 20:24:53 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1577):
sys/netipsec/ipsec_input.c: 1.57 1.58
sys/netipsec/ipsec_input.c: 1.57
Extend these #ifdef notyet. The m_copydata's in these branches are wrong,
we are not guaranteed to have enough room for another struct ip, and we
may crash here. Triggerable remotely, but after authentication, by sending
an AH packet that has a one-byte-sized IPIP payload.
Argh, in my previous commit in this file I forgot to fix the IPv6
entry point; apply the same fix there.

(snj)

2018-03-03 20:18:39 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by uwe in ticket #1576):
lib/libc/arch/powerpc/genassym.cf: 1.8 1.5
lib/libc/arch/powerpc/gen/swapcontext.S: 1.8
PIC code clobbers %r30 so we need to update the saved oucp with
caller's %r30 manually.  Makes old context happy when it needs to do
more function calls after restore.

(snj)

2018-03-03 20:14:20 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1575):
sys/dev/sbus/be.c: 1.86
spl leak, found by Mootja a long time ago

(snj)

2018-03-03 19:26:12 UTC MAIN commitmail json YAML

conditionally elide conditional for rump.

(christos)

2018-03-03 19:21:59 UTC MAIN commitmail json YAML

mark the ONCE_DECL() variables as __read_mostly to optimize cache placement

(jdolecek)

2018-03-03 18:14:27 UTC MAIN commitmail json YAML

2018-03-03 18:11:25 UTC MAIN commitmail json YAML

Rely on the cache operations to perform the necessary barriers.

(skrll)

2018-03-03 16:16:25 UTC MAIN commitmail json YAML

2018-03-03 16:14:06 UTC MAIN commitmail json YAML

Remove unnecessary includes

(skrll)

2018-03-03 16:11:22 UTC MAIN commitmail json YAML

Multiple inclusion protection

(skrll)

2018-03-03 16:09:56 UTC MAIN commitmail json YAML

2018-03-03 16:03:38 UTC MAIN commitmail json YAML

bcm2835_bsc: use fdt to enumerate i2c child devices

From jmcneill@

(skrll)

2018-03-03 15:59:46 UTC MAIN commitmail json YAML

2018-03-03 15:47:50 UTC MAIN commitmail json YAML

Add missing call to mips_dcache_compute_align() affecting "modern" MIPS
(MIPS32{,R2}/MIPS64{,R2}). Thanks jmcneill@; OK skrll@.

(flxd)

2018-03-03 13:46:33 UTC MAIN commitmail json YAML

2018-03-03 11:23:24 UTC MAIN commitmail json YAML

include correct header for NPCI to be defined when necessary.
Now acpi.o has a call for acpimcfg_probe.

heads by paulg, sorry for breakage.

(maya)

2018-03-03 09:54:55 UTC MAIN commitmail json YAML

Reduce the diff between ipsec4_output and ipsec6_check_policy. While here
style.

(maxv)

2018-03-03 09:47:01 UTC MAIN commitmail json YAML

2018-03-03 09:39:29 UTC MAIN commitmail json YAML

Add KASSERTs, we don't want m_nextpkt in ipsec{4/6}_process_packet.

(maxv)

2018-03-03 07:26:37 UTC MAIN commitmail json YAML

Update the ioconf files to reflect the move of the device source code
into arch/x86/pci/

Without this the devices don't attach.

(pgoyette)

2018-03-03 05:27:02 UTC MAIN commitmail json YAML

Fix the attach message - needs a ": "

(pgoyette)

2018-03-03 04:32:46 UTC MAIN commitmail json YAML

2018-03-03 03:34:17 UTC MAIN commitmail json YAML

2018-03-03 03:19:36 UTC MAIN commitmail json YAML

sun2/sun3:
- build libkern as an archive for non modular builds.  from maya@
sun3:
- cut down GENERIC a bunch to bring below 2MB.
- reduce UBC_NWINS, MAXEXEC, and PAGER_MAP_DEFAULT_SIZE to recover
  enough lost VA to actually run basic tests.

(mrg)

2018-03-03 03:19:19 UTC MAIN commitmail json YAML

sun2/sun3:
- build libkern as an archive for non modular builds.  from maya@
sun3:
- cut down GENERIC a bunch to bring below 2MB.
- reduce UBC_NWINS, MAXEXEC, and PAGER_MAP_DEFAULT_SIZE to recover
  enough lost VA to actually run basic tests.

(mrg)

2018-03-03 01:19:46 UTC MAIN commitmail json YAML

2018-03-03 01:19:08 UTC MAIN commitmail json YAML

2018-03-03 00:27:51 UTC MAIN commitmail json YAML

Return recent changes to configuration file.
Remove legacy options previously removed e.g MACHO & softdep support
Remove bogus numbers
Add or update descriptions
Keep items removed in previous commit commented out

(sevan)

2018-03-03 00:22:04 UTC MAIN commitmail json YAML

switch arm to openssl-1.1

(christos)

2018-03-03 00:20:57 UTC MAIN commitmail json YAML

src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/Makefile@1.1 / diff / nxr@1.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aes-armv4.S@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aesv8-armx.S@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/arm64cpuid.S@1.1 / diff / nxr@1.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv4-gf2m.S@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv4-mont.S@1.2 / diff / nxr@1.2
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv4cpuid.S@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv8-mont.S@1.1 / diff / nxr@1.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/bsaes-armv7.S@1.2 / diff / nxr@1.2
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/chacha-armv4.S@1.1 / diff / nxr@1.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/chacha-armv8.S@1.1 / diff / nxr@1.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/crypto.inc@1.7 / diff / nxr@1.7
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ecp_nistz256-armv4.S@1.1 / diff / nxr@1.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ecp_nistz256-armv8.S@1.1 / diff / nxr@1.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ghash-armv4.S@1.4 / diff / nxr@1.4
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/modes.inc@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/poly1305-armv4.S@1.1 / diff / nxr@1.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/poly1305-armv8.S@1.1 / diff / nxr@1.1
src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/rc4.inc@1.2 / diff / nxr@1.2
      :
(more 6 files)
Regen for OpenSSL-1.1
XXX: we could add the new assembly files to speed-up things but now we
are only using the assembly stubs that 1.0 used.

(christos)

2018-03-02 23:15:25 UTC MAIN commitmail json YAML

Do not pass libgcc.a to linker as it breaks build with MKGCC=no e.g HEAD-LLVM.
It doesn't appear to be required for the stock GCC build either, having been
able to build a release without it.

(sevan)

2018-03-02 23:11:42 UTC MAIN commitmail json YAML

2018-03-02 23:07:55 UTC MAIN commitmail json YAML

Add more vfp directives for gcc-6

(christos)

2018-03-02 22:23:17 UTC MAIN commitmail json YAML

insert a couple of .fpu directives when we access the vfp registers while
is softvpf fpu mode for gcc 6. XXX: there is no .fpu push/pop...

(christos)

2018-03-02 20:27:51 UTC MAIN commitmail json YAML

add everything currently known to work

(macallan)

2018-03-02 19:36:19 UTC MAIN commitmail json YAML

IRQ0 is perfectly legal to use on at least some macppc, so don't treat it
as an error or something special
with this svwsata works on my PCI-X G5

(macallan)

2018-03-02 14:45:23 UTC MAIN commitmail json YAML

add a comment to explain why we defer wsdisplay_preattach() in bridge mode

(macallan)

2018-03-02 14:37:18 UTC MAIN commitmail json YAML

defer scribbling into video memory until after re-enabling the MMU if
we're in bridge mode.
With this NetBSD boots on PCI-X G5s

(macallan)

2018-03-02 13:26:40 UTC MAIN commitmail json YAML

Remove unused part of the Makefile (Muhammed.Shameem)

(christos)

2018-03-02 10:21:01 UTC MAIN commitmail json YAML

ixv(4) also supports workqueue poll mode, but not enabled by default yet, either.

ok by msaitoh@n.o.

(knakahara)

2018-03-02 10:19:20 UTC MAIN commitmail json YAML

ixg(4) supports workqueue poll mode, but not enabled by default yet. (that is, the default behavior is *not* changed)

At the time of high load near the wire rate, the turnaround time
of update/delete processing such as "ifconfig ixg0 inet XXX" or
"ifconfig ixg0 delete" is very long. The main reason is CPU
starvation caused by ixg(4)'s softint poll mode. ixg(4) uses
workqueue poll mode instead of softint poll mode, so that this
problem will be fix.

This change may cause performance issues, so it is not enabled
by default yet. Although there are that issues, if you want to use
workqueue poll mode, do "sysctl -w hw.ixgXX.txrx_workqueue=1" while
there is no traffic on the ixgXX.

ok by msaitoh@n.o.

(knakahara)

2018-03-02 08:25:53 UTC MAIN commitmail json YAML

Add Appolo Lake and Gemini Lake devices.

(msaitoh)

2018-03-02 07:37:14 UTC MAIN commitmail json YAML

Avoid data races on lifetime counters by using percpu(9)

We don't make them percpu(9) directly because the structure is exposed to
userland and we don't want to break ABI.  So we add another member variable
for percpu(9) and use it internally.  When we export them to userland, they
are converted to the original format.

(ozaki-r)

2018-03-02 06:41:18 UTC MAIN commitmail json YAML

2018-03-02 06:40:31 UTC MAIN commitmail json YAML

Add Intel Gemini Lake devices.

(msaitoh)

2018-03-02 06:31:53 UTC MAIN commitmail json YAML

PR/48585: Set errno when returning NULL for AF_INET

In inet_ntop4(), errno wasn't set before returning NULL.
Seems like an oversight in the existing fix for PR/48585.
Noticed by code inspection.

(lukem)

2018-03-02 06:04:16 UTC MAIN commitmail json YAML

Rename the i2c attribute i2cbus, and add the MI iic device.

Note that the iic device source files are named i2c*  Also note that
iic attaches at i2cbus

(pgoyette)

2018-03-02 06:01:20 UTC MAIN commitmail json YAML

Since acorn26 has been retired, release all acorn26-speceific device
name entries.

(pgoyette)

2018-03-02 00:25:26 UTC MAIN commitmail json YAML

Instead of explicitly specifying a kernel name, ommit to allow the bootloader to iterate
through the list of kernel names it is configured to try. This way there is
fallback if /netbsd is not present. netbsd is the first name to be tried anyway.
Issue brought up on tech-kern@ by Patrick Welche <prlw1 AT cam ac uk> where a system
without /netbsd hung on boot.
Suggestion by rudolf <netbsd AT eq cz>
https://mail-index.netbsd.org/tech-kern/2018/02/16/msg023122.html

(sevan)

2018-03-01 23:01:19 UTC MAIN commitmail json YAML

Remove empty pci_enumerate_bus() stub specific for ia64.  I think it was originally added to allow acpi compilation with pci, which appears to no longer be an issue.

PCI will need to be revisited for ia64 at some point.

(scole)

2018-03-01 19:09:33 UTC MAIN commitmail json YAML

Add SMEP and additional CSDL and LTO acronyms

(ginsbach)

2018-03-01 19:09:02 UTC netbsd-8 commitmail json YAML

2018-03-01 19:07:31 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kamil in ticket #599):
sys/arch/x86/include/Makefile: revision 1.22
Stop installing dbregs.h
This is now kernel-only header. The behavior is well specified by the CPU=
documents and we don't introduce changes to it.
Noted by <wiz>

(martin)

2018-03-01 19:04:57 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #598):
tests/lib/Makefile: revision 1.30
share/mk/bsd.test.mk: revision 1.25
PR lib/52007
Provide a mechanism whereby a test sub-directory can be installed,
without the test being scheduled to run by default (ie: keeping
it out of the Atffile, and Kyuafile if Kyua is enabled.).
The mechanism is perhaps a bit kludgey - anyone with a better idea
how to make it happen, feel free to improve this (the one user as
of about the time of this commit is (or will be) src/tests/lib/Makefile)
PR lib/52007
Move libevent from being a test playing sub-directory, to a groupy,
just hanging around, hoping someone will notice it, and throw it
a bone...  (mixed metaphors?)

(martin)

2018-03-01 19:02:15 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by knakahara in ticket #597):
sys/dev/pci/ixgbe/ixgbe.h: revision 1.31
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.33
sys/dev/pci/ixgbe/ixgbe.c: revision 1.127
sys/dev/pci/ixgbe/ixv.c: revision 1.82
Fix poll mode assumption breaking.
ixgbe_{enable,disable}_intr() forcibly enable/disable all interrupts
regardless of current state. That can break poll mode assumption,
that is, queue interrupts must not occur while polling Tx/Rx rings.
E.g. "ifconfig ixg0 delete && ifconfig ixg0 192.168.0.1" on heavy
load traffic can causes this issue.
This fix may have 1% or 2% performance impact at short packets.
XXX
ixgbe_rearm_queues() which is called only via watchdog can also break
this poll mode assumption because writing EICS casues interrupts
immediately when interrupt auto mask enabled.
We will fix it with other issues about watchdog later.
ok by msaitoh@n.o.
Apply ixgbe.c:r1.127 to ixv.c. Pointed out by msaitoh@n.o.

(martin)

2018-03-01 17:15:14 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by uwe in ticket #596):
lib/libc/arch/powerpc/genassym.cf: revision 1.5
lib/libc/arch/powerpc/gen/swapcontext.S: revision 1.8
PIC code clobbers %r30 so we need to update the saved oucp with
caller's %r30 manually.  Makes old context happy when it needs to do
more function calls after restore.
PIC code clobbers %r30 so we need to update the saved oucp with
caller's %r30 manually.  Makes old context happy when it needs to do
more function calls after restore.
(oops, forgot to commit this along with swapcontext.S)

(martin)

2018-03-01 16:55:01 UTC MAIN commitmail json YAML

Replace PG_G by pmap_pg_g, for the sake of removing references to the
former. No functional change since pmap_pg_g = PG_G.

(maxv)

2018-03-01 16:49:07 UTC MAIN commitmail json YAML

Remove these two KASSERTs. Thinking about it, they may fire when the user
enters "sysctl -w machdep.svs.enabled=0", if the xcall is received between
the 'svs_enabled' check in the caller and the same check in these KASSERTs.

In such a case we perform an SVS operation with svs_enabled set to false,
but that's intentional: after it is done svs_pmap_sync and svs_lwp_switch
won't be called anymore, the pdir synchronization is dropped.

Having said that, I didn't see these KASSERTs getting triggered.

(maxv)

2018-03-01 16:03:02 UTC MAIN commitmail json YAML

use mapiodev() so this can work on G5s

(macallan)

2018-03-01 14:40:57 UTC MAIN commitmail json YAML

Sprinkle some const.

(roy)

2018-03-01 13:55:25 UTC MAIN commitmail json YAML

match /u3, found in some G5

(macallan)

2018-03-01 13:54:37 UTC MAIN commitmail json YAML

match K2 UATA, found in some G5

(macallan)

2018-03-01 08:44:12 UTC MAIN commitmail json YAML

Follow previous entries, and list the imc and imcsmb devices twice,
once each for amd64 and i386

(pgoyette)

2018-03-01 07:18:40 UTC MAIN commitmail json YAML

no more /usr/X11R6

(snj)

2018-03-01 06:37:40 UTC MAIN commitmail json YAML

remove reference to /usr/X11R6

(snj)

2018-03-01 06:36:13 UTC MAIN commitmail json YAML

move the imc code into x86/pci/files.pci so that pci is defined in time.

(mrg)

2018-03-01 06:34:23 UTC MAIN commitmail json YAML

remove mention of /usr/X11R6

(snj)

2018-03-01 06:24:12 UTC MAIN commitmail json YAML

delete now-irrelevant comment

(snj)

2018-03-01 06:12:09 UTC MAIN commitmail json YAML

/usr/X11R6 has been empty on most NetBSD installations since 2008,
and the last few straggling ports dumped it in 2015.  It's time to
prune references to /usr/X11R6 from our config files.

(snj)

2018-03-01 06:08:44 UTC MAIN commitmail json YAML

Revert rev1.183 (2003).

It was intended as an optimization, but it increases the attack surface:
the IPsec policy is not enforced on RST packets when the socket is in the
LISTEN state, and an (unauthenticated) attacker could jam the connection
between two IPsec hosts by sending RST packets between the client's SYN
and ACK packets.

Discussed with ozaki-r@.

(maxv)

2018-03-01 06:00:49 UTC MAIN commitmail json YAML

Limit building & calling ACPI MCFG to kernels with PCI and ACPI.

pci_quirks.c requires pci
acpi_mcfg.c was recently changed to use pci_quirks.c functions.

as a result, ia64 kernels with acpi but no pci failed to link.

tested an ia64 and amd64 kernels build.

(maya)

2018-03-01 05:47:22 UTC MAIN commitmail json YAML

Use 1-byte data-buffers when writing to the "control" device for the
SPD ROMs (we do this for page-selection).  The imcsmb doesn't support
zero-byte transfers.

With this, I'm able to get the data for all 8 of my DIMMs (on two
different imcsmb busses) using the spdmem(4) driver.  And the data
decodes correctly using the decode-dimms utility (from the linux
i2ctools).

(pgoyette)

2018-03-01 04:53:05 UTC MAIN commitmail json YAML

2018-03-01 04:48:32 UTC MAIN commitmail json YAML

The imc and imcsmb drivers have moved to x86-specific directory

(pgoyette)

2018-03-01 04:45:06 UTC MAIN commitmail json YAML

Move the imc(4) and imcsmb(4) sources into architecture-specific
directory (for previous CVS history see the sys/dev/pci/imcsmb/
Attic)

(pgoyette)

2018-03-01 04:35:04 UTC MAIN commitmail json YAML

Replace spaces with tabs (xterm copy-&-pasto)

(pgoyette)

2018-03-01 04:31:22 UTC MAIN commitmail json YAML

Use imc and imcsmb for the new x86 device names.  Now that they're
defined in the architecture-specific files.x86 they won't conflict
with the sgimips imc device.

(pgoyette)

2018-03-01 04:29:38 UTC MAIN commitmail json YAML

Move the imc and imcsmb stuff out of general files.pci and into the
architecture-specific files.x86

Should unbreak the sgimips build.

(pgoyette)

2018-03-01 04:20:12 UTC MAIN commitmail json YAML

Note that we're now using iimc and iimcsmb

XXX Existing recently-added imc and imcsmb drivers for x86_64 and i386
XXX will be renamed appropriately.

(pgoyette)

2018-03-01 03:32:33 UTC MAIN commitmail json YAML

Do wm_reset_mdicnfg_82580() on 82580 only.

(msaitoh)

2018-03-01 03:30:13 UTC MAIN commitmail json YAML

- Fix a bug that wm_pll_workaround_i210() is not called on some cases.
  As I wrote in if_wm.c rev 1.329's commit message, There are three cases:

    a) Chip is I211
    b) Chip is I210 and it uses INVM (not FLASH)
    c) Chip is I210 (it uses FLASH) and NVM image version < 3.25

  Before this commit, the workaround function was not called on a) and b).

- Rename function.

(msaitoh)

2018-02-28 23:45:56 UTC MAIN commitmail json YAML

prune disabled XIDLE support. the required X server extension hasn't been
around for a couple decades now. even if someone wanted to modernize this,
it wouldn't be appropriate for NetBSD, since we don't want programs in base
to be linked against X libs.

(snj)

2018-02-28 23:08:30 UTC MAIN commitmail json YAML

add workaround for PHY detection on Apple K2 GMAC
adapted from openbsd

(macallan)

2018-02-28 22:36:02 UTC MAIN commitmail json YAML

Teach the ichsmb(4) driver how to detach.

(pgoyette)

2018-02-28 21:36:50 UTC MAIN commitmail json YAML

Simplify - it's enough to set nctx.uc_link to &octx to restore old
context automatically when swapfunc() returns.

(uwe)

2018-02-28 21:29:11 UTC MAIN commitmail json YAML

Add missing $ in the RCSID.

(uwe)

2018-02-28 21:00:02 UTC MAIN commitmail json YAML

PIC code clobbers %r30 so we need to update the saved oucp with
caller's %r30 manually.  Makes old context happy when it needs to do
more function calls after restore.

(oops, forgot to commit this along with swapcontext.S)

(uwe)

2018-02-28 20:51:58 UTC MAIN commitmail json YAML

PIC code clobbers %r30 so we need to update the saved oucp with
caller's %r30 manually.  Makes old context happy when it needs to do
more function calls after restore.

(uwe)

2018-02-28 20:13:09 UTC MAIN commitmail json YAML

prune 5.x upgrade section

(snj)

2018-02-28 20:11:09 UTC MAIN commitmail json YAML

switch an assert in backtrace to an error return.

(mrg)

2018-02-28 20:09:29 UTC MAIN commitmail json YAML

vax folks probably aren't the _most_ interested in current developments,
but i think most of them probably know, 16 years later, that we switched
from a.out to ELF.

(snj)

2018-02-28 18:55:54 UTC netbsd-8 commitmail json YAML

2018-02-28 18:54:43 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #595):
sys/net/if.c: revision 1.398
sys/net/rtsock.c: revision 1.231
remove useless cast, initialize family.
Avoid using a zero family mask.

(martin)

2018-02-28 18:53:06 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #594):
lib/librumphijack/hijack.c: revision 1.123
since ln(1) now uses linkat(2) provide a dumb wrapper.

(martin)

2018-02-28 18:03:48 UTC MAIN commitmail json YAML

Cosmetic printf/aprint changes.
Add missing return statement after failed pci_intr_establish().

(flxd)

2018-02-28 17:13:44 UTC MAIN commitmail json YAML

Cosmetic fix for the Physical Address Registers PAR0 to PAR5.

(flxd)

2018-02-28 13:12:53 UTC MAIN commitmail json YAML

Remove an obsolete assertion too (fix build)

bif_refs was removed when migrated to use psref.

(ozaki-r)

2018-02-28 11:29:14 UTC MAIN commitmail json YAML

add missing static

(maxv)

2018-02-28 11:23:24 UTC MAIN commitmail json YAML

2018-02-28 11:19:49 UTC MAIN commitmail json YAML

Remove unused macros, and while here style.

(maxv)

2018-02-28 11:10:22 UTC MAIN commitmail json YAML

(just forgot to commit this file, the message was)

Remove duplicate IPSEC_STATINC(IPSEC_STAT_IN_POLVIO), ipsec_in_reject
already increases it. IPSEC6_STATINC is now unused, so remove it too.

(maxv)

2018-02-28 11:09:03 UTC MAIN commitmail json YAML

Remove duplicate IPSEC_STATINC(IPSEC_STAT_IN_POLVIO), ipsec_in_reject
already increases it. IPSEC6_STATINC is now unused, so remove it too.

(maxv)

2018-02-28 10:34:04 UTC MAIN commitmail json YAML

Sweep obsolete BRIDGE_MPSAFE (it's always on now)

(ozaki-r)

2018-02-28 10:30:20 UTC MAIN commitmail json YAML

2018-02-28 10:16:19 UTC MAIN commitmail json YAML

Dedup: merge ipsec4_setspidx_inpcb and ipsec6_setspidx_in6pcb.

(maxv)

2018-02-28 10:09:17 UTC MAIN commitmail json YAML

ipsec6_setspidx_in6pcb: call ipsec_setspidx() only once, just like the
IPv4 code. While here put the correct variable in sizeof.

ok ozaki-r@

(maxv)

2018-02-28 09:44:26 UTC MAIN commitmail json YAML

in sockaddr_getsize_by_family() print the p_comm, pid and lid
for unknown address family.  helps location where missing
af settings are.

(mrg)

2018-02-28 09:25:02 UTC MAIN commitmail json YAML

Remove exgtra / in the $NetBSD$ line.  Thanks to leot@ for spotting it!

(pgoyette)

2018-02-28 09:07:18 UTC MAIN commitmail json YAML

Remove extra */ from comment - fix build

(pgoyette)

2018-02-28 08:15:27 UTC MAIN commitmail json YAML

Mention imcsmb(4)

(pgoyette)

2018-02-28 06:08:14 UTC MAIN commitmail json YAML

Remove extra blank line

(pgoyette)

2018-02-28 05:53:13 UTC MAIN commitmail json YAML

2018-02-28 05:50:06 UTC MAIN commitmail json YAML

- Add new PCI quirk PCI_QUIRK_HASEXTCNF and PCI_QUIRK_NOEXTCNF. Some devices'
  extended configuration area may be broken or violate spec. If an extended
  configuration space is strange but it really exist, use PCI_QUIRK_HASEXTCNF.
  If an extended configuration space is plausible to exist but it really
  doesn't exist, use PCI_QUIRK_NOEXTCNF.
- Add PCI_PRODUCT_INTEL_XEOND_MEM_0_TTR_1(0x6fa8) and
  PCI_PRODUCT_INTEL_COREI76K_IMC_0(0x6f68) with PCI_QUIRK_HASEXTCNF. The
  document clearly states they violate spec and it support the extended
  configuration space.

(msaitoh)

2018-02-28 05:47:00 UTC MAIN commitmail json YAML

Note that the imc driver works on at least one ASUS motherboard, the
X99-E.

(pgoyette)

2018-02-27 23:33:44 UTC MAIN commitmail json YAML

Remove extraneous space from $NetBSD$ tag

(pgoyette)

2018-02-27 23:09:02 UTC MAIN commitmail json YAML

Fix pasto in a comment.

(uwe)

2018-02-27 20:34:04 UTC MAIN commitmail json YAML

threadfunc - we do return from swapcontext() (since revision 1.2),
so drop the NOTREACHED comment.

(uwe)

2018-02-27 20:31:35 UTC MAIN commitmail json YAML

swapfunc() is not passed to pthread_create, there's no need for it to
have any arguments.

(uwe)

2018-02-27 20:24:50 UTC MAIN commitmail json YAML

Drop unnecessary cast to makecontext() argument.

(uwe)

2018-02-27 20:22:31 UTC MAIN commitmail json YAML

Cleanup trailing whitespace.

(uwe)

2018-02-27 15:01:30 UTC MAIN commitmail json YAML

Dedup: merge ipsec4_set_policy and ipsec6_set_policy. The content of the
original ipsec_set_policy function is inlined into the new one.

(maxv)

2018-02-27 14:52:51 UTC MAIN commitmail json YAML

Remove duplicate checks, and no need to initialize 'newsp' in
ipsec_set_policy.

(maxv)

2018-02-27 14:45:43 UTC MAIN commitmail json YAML

Oops, forgot this file; I just merged two IPsec functions, so adapt
the rump stubs accordingly.

(maxv)

2018-02-27 14:44:10 UTC MAIN commitmail json YAML

Dedup: merge

ipsec4_get_policy and ipsec6_get_policy
ipsec4_delete_pcbpolicy and ipsec6_delete_pcbpolicy

The already-existing ipsec_get_policy() function is inlined in the new
one.

(maxv)

2018-02-27 14:28:01 UTC MAIN commitmail json YAML

2018-02-27 14:14:20 UTC MAIN commitmail json YAML

style and fix typo

(maxv)

2018-02-27 13:36:21 UTC MAIN commitmail json YAML

Use inpcb_hdr to reduce the diff between

ipsec4_set_policy and ipsec6_set_policy
ipsec4_get_policy and ipsec6_get_policy
ipsec4_delete_pcbpolicy and ipsec6_delete_pcbpolicy

No real functional change.

(maxv)

2018-02-27 12:59:54 UTC MAIN commitmail json YAML

- don't leak ccb on alloc failure.
- KASSERT to prevent memory leak.

(christos)

2018-02-27 12:20:35 UTC MAIN commitmail json YAML

Include <inttypes.h> in t_ucontext.c

The <inttypes.h> user-land header is required for PRI types.
We were including indirectly <sys/inttypes.h> through <sys/*.h> sources,
and this worked for most of the ports.

This fixes indirectly a build for MIPS (tested ports: arc and hpcmips),
where PRI types (PRIxREGISTER) were undefined.

Noted by <uwe>.

(kamil)

2018-02-27 11:50:57 UTC MAIN commitmail json YAML

Detach our children before allowing ourselves to detach.

(pgoyette)

2018-02-27 11:26:39 UTC MAIN commitmail json YAML

Implement _UC_MACHINE_INTRV() for hppa

INTRV = integer return value
For hppa this is R28 alias _REG_RET0.

(kamil)

2018-02-27 11:15:53 UTC MAIN commitmail json YAML

Make the t_ucontext.c test more portable

Cast _UC_MACHINE_*(&u) to (register_t).
This allows to print the returned values with PRIxREGISTER.

This corrects build failures on MIPS and HPPA.
sizeof(int) == sizeof(long) on these 32-bit systems.

(kamil)

2018-02-27 10:09:42 UTC MAIN commitmail json YAML

INTRV is INT-RV - integer return value (not INTR-V, interrupt vector) :)

(uwe)

2018-02-27 09:51:28 UTC MAIN commitmail json YAML

Add a dummy implementation of _UC_MACHINE_INTRV() for ia64

This fixes a build problem in src/tests/lib/libc/sys/t_ucontext.c.

This needs to be revisited once the port will get more mature.

(kamil)

2018-02-27 09:08:22 UTC netbsd-8 commitmail json YAML

2018-02-27 09:07:33 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #593):
sys/dev/marvell/mvxpsec.c: revision 1.2
sys/arch/m68k/m68k/pmap_motorola.c: revision 1.70
sys/opencrypto/crypto.c: revision 1.102
sys/arch/sparc64/sparc64/pmap.c: revision 1.308
sys/ufs/chfs/chfs_malloc.c: revision 1.5
sys/arch/powerpc/oea/pmap.c: revision 1.95
sys/sys/pool.h: revision 1.80,1.82
sys/kern/subr_pool.c: revision 1.209-1.216,1.219-1.220
sys/arch/alpha/alpha/pmap.c: revision 1.262
sys/kern/uipc_mbuf.c: revision 1.173
sys/uvm/uvm_fault.c: revision 1.202
sys/sys/mbuf.h: revision 1.172
sys/kern/subr_extent.c: revision 1.86
sys/arch/x86/x86/pmap.c: revision 1.266 (via patch)
sys/dev/dtv/dtv_scatter.c: revision 1.4

Allow only one pending call to a pool's backing allocator at a time.
Candidate fix for problems with hanging after kva fragmentation related
to PR kern/45718.

Proposed on tech-kern:
https://mail-index.NetBSD.org/tech-kern/2017/10/23/msg022472.html
Tested by bouyer@ on i386.

This makes one small change to the semantics of pool_prime and
pool_setlowat: they may fail with EWOULDBLOCK instead of ENOMEM, if
there is a pending call to the backing allocator in another thread but
we are not actually out of memory.  That is unlikely because nearly
always these are used during initialization, when the pool is not in
use.

Define the new flag too for previous commit.

pool_grow can now fail even when sleeping is ok. Catch this case in pool_get
and retry.

Assert that pool_get failure happens only with PR_NOWAIT.
This would have caught the mistake I made last week leading to null
pointer dereferences all over the place, a mistake which I evidently
poorly scheduled alongside maxv's change to the panic message on x86
for null pointer dereferences.

Since pr_lock is now used to wait for two things now (PR_GROWING and
PR_WANTED) we need to loop for the condition we wanted.
make the KASSERTMSG/panic strings consistent as '%s: [%s], __func__, wchan'
Handle the ERESTART case from pool_grow()

don't pass 0 to the pool flags
Guess pool_cache_get(pc, 0) means PR_WAITOK here.
Earlier on in the same context we use kmem_alloc(sz, KM_SLEEP).

use PR_WAITOK everywhere.
use PR_NOWAIT.

Don't use 0 for PR_NOWAIT

use PR_NOWAIT instead of 0

panic ex nihilo -- PR_NOWAITing for zerot

Add assertions that either PR_WAITOK or PR_NOWAIT are set.
- fix an assert; we can reach there if we are nowait or limitfail.
- when priming the pool and failing with ERESTART, don't decrement the number
  of pages; this avoids the issue of returning an ERESTART when we get to 0,
  and is more correct.
- simplify the pool_grow code, and don't wakeup things if we ENOMEM.

In pmap_enter_ma(), only try to allocate pves if we might need them,
and even if that fails, only fail the operation if we later discover
that we really do need them.  This implements the requirement that
pmap_enter(PMAP_CANFAIL) must not fail when replacing an existing
mapping with the first mapping of a new page, which is an unintended
consequence of the changes from the rmind-uvmplock branch in 2011.

The problem arises when pmap_enter(PMAP_CANFAIL) is used to replace an existing
pmap mapping with a mapping of a different page (eg. to resolve a copy-on-write).
If that fails and leaves the old pmap entry in place, then UVM won't hold
the right locks when it eventually retries.  This entanglement of the UVM and
pmap locking was done in rmind-uvmplock in order to improve performance,
but it also means that the UVM state and pmap state need to be kept in sync
more than they did before.  It would be possible to handle this in the UVM code
instead of in the pmap code, but these pmap changes improve the handling of
low memory situations in general, and handling this in UVM would be clunky,
so this seemed like the better way to go.

This somewhat indirectly fixes PR 52706, as well as the failing assertion
about "uvm_page_locked_p(old_pg)".  (but only on x86, various other platforms
will need their own changes to handle this issue.)
In uvm_fault_upper_enter(), if pmap_enter(PMAP_CANFAIL) fails, assert that
the pmap did not leave around a now-stale pmap mapping for an old page.
If such a pmap mapping still existed after we unlocked the vm_map,
the UVM code would not know later that it would need to lock the
lower layer object while calling the pmap to remove or replace that
stale pmap mapping.  See PR 52706 for further details.
hopefully workaround the irregularly "fork fails in init" problem.
if a pool is growing, and the grower is PR_NOWAIT, mark this.
if another caller wants to grow the pool and is also PR_NOWAIT,
busy-wait for the original caller, which should either succeed
or hard-fail fairly quickly.

implement the busy-wait by unlocking and relocking this pools
mutex and returning ERESTART.  other methods (such as having
the caller do this) were significantly more code and this hack
is fairly localised.
ok chs@ riastradh@

Don't release the lock in the PR_NOWAIT allocation. Move flags setting
after the acquiring the mutex. (from Tobias Nygren)
apply the change from arch/x86/x86/pmap.c rev. 1.266 commitid vZRjvmxG7YTHLOfA:

In pmap_enter_ma(), only try to allocate pves if we might need them,
and even if that fails, only fail the operation if we later discover
that we really do need them.  If we are replacing an existing mapping,
reuse the pv structure where possible.

This implements the requirement that pmap_enter(PMAP_CANFAIL) must not fail
when replacing an existing mapping with the first mapping of a new page,
which is an unintended consequence of the changes from the rmind-uvmplock
branch in 2011.

The problem arises when pmap_enter(PMAP_CANFAIL) is used to replace an existing
pmap mapping with a mapping of a different page (eg. to resolve a copy-on-write).
If that fails and leaves the old pmap entry in place, then UVM won't hold
the right locks when it eventually retries.  This entanglement of the UVM and
pmap locking was done in rmind-uvmplock in order to improve performance,
but it also means that the UVM state and pmap state need to be kept in sync
more than they did before.  It would be possible to handle this in the UVM code
instead of in the pmap code, but these pmap changes improve the handling of
low memory situations in general, and handling this in UVM would be clunky,
so this seemed like the better way to go.

This somewhat indirectly fixes PR 52706 on the remaining platforms where
this problem existed.

(martin)

2018-02-27 08:05:19 UTC MAIN commitmail json YAML

Optimize: use ipsec_sp_hdrsiz instead of ipsec_hdrsiz, not to re-query
the SP.

ok ozaki-r@

(maxv)

2018-02-27 07:24:14 UTC MAIN commitmail json YAML

Remove c&p comment that doesn't apply

(skrll)

2018-02-27 06:07:28 UTC netbsd-8 commitmail json YAML

Ammend ticket #587: additionally xform_esp.c r1.77 has been pulled up.

(martin)

2018-02-27 05:56:12 UTC MAIN commitmail json YAML

Fix total timeout amount - since we decrement by 10 every 10 usec, we
need 35000 usec to equal 35ms.

(pgoyette)

2018-02-27 05:55:08 UTC MAIN commitmail json YAML

Fix another case of 7-bit right-justified addressing, without write-bit

(pgoyette)

2018-02-27 05:52:10 UTC MAIN commitmail json YAML

Use I2C_READ_OP_P() rather than negating I2C_WRITE_OP_P()

(pgoyette)