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 (24m)  netbsd-8 (6d)  netbsd-10 (6d)  netbsd-9 (12d)  thorpej-ifq (176d)  thorpej-altq-separation (178d) 

2024-05-10 21:00:55 UTC Now

2020-01-02 16:28:02 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

2020-01-02 16:24:51 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

2020-01-02 16:18:37 UTC MAIN commitmail json YAML

Also force I2C_F_POLL if shutting_down.

(thorpej)

2020-01-02 15:43:11 UTC MAIN commitmail json YAML

Welcome to NetBSD 9.99.33 -- boottime global is gone.

(thorpej)

2020-01-02 15:42:27 UTC MAIN commitmail json YAML

- Eliminate the global "boottime" variable, which was being accessed
  without any synchronization against changes by e.g. clock_settime().
- Replace with new getbinboottime() / getnanoboottime() / getmicroboottime()
  functions (naming mirrors that of other time access functions in kern_tc.c).
  It returns the (maybe-converted) value of timebasebin, which also tracks
  our estimate of when the system was booted (i.e. the legacy "boottime" was
  redundant).

XXX There needs to be a lockless synchronization mechanism for reading
timebasebin, but this is a problem in kern_tc.c that pre-existed these
"boottime" changes.  At least now the problem is centralized in one location.

(thorpej)

2020-01-02 14:33:55 UTC MAIN commitmail json YAML

gcc 8 needs -mapcs-frame when DDB is specified for backtrace to work

(skrll)

2020-01-02 10:02:26 UTC netbsd-9 commitmail json YAML

2020-01-02 10:01:04 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #599):

sys/arch/arm/broadcom/bcm283x_platform.c: revision 1.34 (patch)

Provide a single generic bcm283x_platform_uart_freq which checks for
"brcm,bcm2835-aux-uart" and returns the appropriate core clock based
results; otherwise it returns the uart clock from firmware.

Should fix early console output on the rpi0w.

Based on a diff from mlelstv

(martin)

2020-01-02 09:58:20 UTC netbsd-7-0 commitmail json YAML

2020-01-02 09:57:59 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by mlelstv in ticket #1719):

sys/conf/copyright: revision 1.18

Welcome to 2020.

(martin)

2020-01-02 09:57:40 UTC netbsd-7-1 commitmail json YAML

2020-01-02 09:57:15 UTC netbsd-7-1 commitmail json YAML

Pull up following revision(s) (requested by mlelstv in ticket #1719):

sys/conf/copyright: revision 1.18

Welcome to 2020.

(martin)

2020-01-02 09:56:51 UTC netbsd-7 commitmail json YAML

2020-01-02 09:56:13 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by mlelstv in ticket #1719):

sys/conf/copyright: revision 1.18

Welcome to 2020.

(martin)

2020-01-02 09:55:10 UTC netbsd-8 commitmail json YAML

2020-01-02 09:53:33 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by mlelstv in ticket #1481):

sys/conf/copyright: revision 1.18

Welcome to 2020.

(martin)

2020-01-02 09:52:22 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by mlelstv in ticket #598):

sys/conf/copyright: revision 1.18

Welcome to 2020.

(martin)

2020-01-02 09:50:34 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #597):

sys/compat/common/kern_sig_43.c: revision 1.36
sys/compat/netbsd32/netbsd32_compat_20.c: revision 1.39
sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.59
sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.44

Fix sizeof mismatch in copyin. This leads to a user-triggerable stack
overflow. On my test build at least, by luck, the compiler orders the
variables in a way that the overflow hits only local structures which
haven't yet been initialized and used, so the overflow is harmless.

Very easily seeable with kASan - just invoke the syscall from a 32bit
binary.

Fix three stack info leaks, found by kMSan when just invoking all syscalls
with a zero page as argument.

MSan: Uninitialized Stack Memory In copyout() At Offset 0, Variable 'sb32' From compat_20_netbsd32_getfsstat()
MSan: Uninitialized Stack Memory In copyout() At Offset 12, Variable 'oss' From compat_43_sys_sigstack()
MSan: Uninitialized Stack Memory In copyout() At Offset 0, Variable 'sb' From compat_50_netbsd32___fhstat40()

(martin)

2020-01-02 09:47:06 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #596):

usr.bin/mkubootimage/mkubootimage.c: revision 1.28
usr.bin/mkubootimage/mkubootimage.c: revision 1.29

Adjust image size appropriately when using update_image
OK jmcneill

Avoid mixing signed/unsigned arguments to the ? operator.

(martin)

2020-01-02 09:43:56 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1480):

sys/dev/usb/uthum.c: revision 1.18
sys/dev/usb/ucycom.c: revision 1.49
sys/dev/usb/uhid.c: revision 1.111

Fix buffer overflows. sc_{o,f}len are controlled by the USB device. By
crafting the former the device can leak stack data. By crafting the latter
the device can overwrite the stack. The combination of the two means the
device can ROP the kernel and obtain code execution (demonstrated with an
actual exploit over vHCI).

Truncate the lengths to the size of the buffers, and also drop sc_ilen
since it is unused. Patch tested with vHCI+kASan.

-

Fix buffer overflows. Also add missing mutex_exit.

-

Fix buffer overflows: validate the lengths at attach time, given that they
are apparently not supposed to be variable. Drop sc_ilen since it is
unused.

(martin)

2020-01-02 09:42:06 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #595):

sys/dev/usb/uthum.c: revision 1.18
sys/dev/usb/ucycom.c: revision 1.49
sys/dev/usb/uhid.c: revision 1.111

Fix buffer overflows. sc_{o,f}len are controlled by the USB device. By
crafting the former the device can leak stack data. By crafting the latter
the device can overwrite the stack. The combination of the two means the
device can ROP the kernel and obtain code execution (demonstrated with an
actual exploit over vHCI).

Truncate the lengths to the size of the buffers, and also drop sc_ilen
since it is unused. Patch tested with vHCI+kASan.

-

Fix buffer overflows. Also add missing mutex_exit.

-

Fix buffer overflows: validate the lengths at attach time, given that they
are apparently not supposed to be variable. Drop sc_ilen since it is
unused.

(martin)

2020-01-02 09:23:47 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by isaki in ticket #594):

sys/arch/x68k/include/param.h: revision 1.29

Bump MSGBUFSIZE (2 * NBPG).

Since timestamp was introduced, it was too small to store full dmesg
of one boot.

And putting this behind of #include <m68k/param.h> had no effect.

This was fixed on many arch in 1997 but x68k was not...
http://mail-index.netbsd.org/source-changes/1997/09/20/0021.html

(martin)

2020-01-02 09:18:15 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by isaki in ticket #593):

sys/dev/audio/audio.c: revision 1.34
sys/dev/audio/audio.c: revision 1.35

Use M_WAITOK instead of M_NOWAIT.
These allocations don't require NOWAIT constraints.

Will fix PR kern/54796.

-

Improve and simplify around audio_realloc().

(martin)

2020-01-02 09:09:01 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #592):

usr.sbin/postinstall/postinstall.in: revision 1.9
usr.sbin/postinstall/postinstall.in: revision 1.10
usr.sbin/postinstall/postinstall.in: revision 1.11
usr.sbin/postinstall/postinstall.in: revision 1.12

remove debugging.

PR/54730: Izumi Tsutsui: Use /var/db/obsolete/<set> to remove obsolete rc.d
files when not in $SOURCEMODE.

PR/54730: Izumi Tsutsui: obsolete etc files are not being cleaned up on
an upgrade build.

Make sure rc, rc.subr, and rc.shutdown are properly updated.

Currently there is no info which rc* files should be updated
or not on upgrade (at least rc.conf and rc.local shouldn't),
so put back an explicit list in the postinstall script.
"Go for it" by christos@ in PR/54741.

Should be pulled up to netbsd-9.

(martin)

2020-01-02 08:52:42 UTC MAIN commitmail json YAML

fstyp: Fix "exfat: iconv_open UCS-2LE: Invalid argument" failure

Fix below error for the time being.
The removed code is only relevant to Capsicum.

$ fstyp -l /dev/wd1
fstyp: exfat: iconv_open UCS-2LE: Invalid argument

(tkusumi)

2020-01-02 08:49:10 UTC MAIN commitmail json YAML

Add shutting_down variable for rump.

(martin)

2020-01-02 08:08:30 UTC MAIN commitmail json YAML

Remove the call to KERNEL_UNLOCK_ONE(), it was forgotten when the biglock
was dropped in rev1.63. Found via vHCI.

(maxv)

2020-01-02 06:22:23 UTC MAIN commitmail json YAML

dm: Add dm-flakey target

Ported from DragonFlyBSD, but this target had originally existed in
Linux kernel. See below for details.
https://www.kernel.org/doc/Documentation/device-mapper/dm-flakey.txt

Due to two technical issues, this hasn't been hooked to dm.kmod yet.
1) "tick" in hz(9) not working.
2) Unable to use ->b_private in nestiobuf callback when it's already
used for mbp (see HAS_BUF_PRIV2).

taken-from: DragonFlyBSD

(tkusumi)

2020-01-02 05:18:07 UTC MAIN commitmail json YAML

Sync the e_ident[EI_OSABI] magic values with the ELF specification

source: http://www.sco.com/developers/gabi/latest/ch4.eheader.html

(kamil)

2020-01-02 04:58:07 UTC MAIN commitmail json YAML

Update e_machine magic values with the ELF specification

source: http://www.sco.com/developers/gabi/latest/ch4.eheader.html

(kamil)

2020-01-02 04:28:51 UTC MAIN commitmail json YAML

Fix the EM_TILEGX number in the ELF header

source: http://www.sco.com/developers/gabi/latest/ch4.eheader.html

191 is confirmed in LLVM, GNU toolchain, FreeBSD.

(kamil)

2020-01-02 02:00:35 UTC MAIN commitmail json YAML

Back out the amap allocation  changes from earlier today - have seen a panic
with them.  Retain the lock changes.

(ad)

2020-01-02 01:31:17 UTC MAIN commitmail json YAML

mi_cpu_init: set ci_smt_primary early.

(ad)

2020-01-02 00:57:10 UTC MAIN commitmail json YAML

Add driver for simple-audio-amplifier binding

(jmcneill)

2020-01-01 23:28:31 UTC MAIN commitmail json YAML

Add support for single power writes, and enable for Ricoh 5u823.

(mlelstv)

2020-01-01 23:15:24 UTC MAIN commitmail json YAML

Now that we know if we're shutting down, enable locking in resettodr().
In the shutting_down case, we acquire the todr_mutex as a trylock.  Under
most circumstances, this lock will be uncontended.  But if we happen to
panic while accessing the TOD clock (via clock_settime() or whatever),
then trylock will prevent us from getting stuck (and a warning will be
displayed on the console).

(thorpej)

2020-01-01 23:07:38 UTC MAIN commitmail json YAML

Pull in <sys/stdbool.h>.

(thorpej)

2020-01-01 22:57:17 UTC MAIN commitmail json YAML

- Introduce a new global kernel variable "shutting_down" to indicate that
  the system is shutting down or rebooting.
- Set this global in a new function called kern_reboot(), which is currently
  just a basic wrapper around cpu_reboot().
- Call kern_reboot() instead of cpu_reboot() almost everywhere; a few
  places remain where it's still called directly, but those are in early
  pre-main() machdep locations.

Eventually, all of the various cpu_reboot() functions should be re-factored
and common functionality moved to kern_reboot(), but that's for another day.

(thorpej)

2020-01-01 22:01:14 UTC MAIN commitmail json YAML

- Start trying to reduce the high cache miss rate observed around vm_amap.
  On _LP64, pad struct vm_amap to 128 bytes and use the additional space to
  hold the arrays for tiny amaps which are common.  Carefully size the array
  allocations to avoid false sharing, and for smaller amaps try to share
  allocated cache lines.

- Eliminate most contention due to amap_list: maintain the list in the pool
  cache constructor / destructor like we do for struct file.  Cache the
  mutexes we allocate here.

- Don't do PR_WAITOK mutex allocations when NOWAIT has been specified.

(ad)

2020-01-01 21:34:39 UTC MAIN commitmail json YAML

Add some new functions for lock objects:

mutex_obj_refcnt(), mutex_obj_tryalloc()
rw_obj_refcnt(), rw_obj_tryalloc()

(ad)

2020-01-01 21:09:12 UTC MAIN commitmail json YAML

First steps towards properly serializing access to the TOD clock.
- Add a mutex around the TODR, and provide lock/unlock/lock-owned
  functions to manipulate it.
- Rename inittodr() to todr_set_systime() and resettodr() to
  todr_save_systime() to better reflect what they do.  These functions
  are intended to be called with the TODR lock held, which will allow
  for a pattern like:
-> todr_lock()
-> todr_save_systime()
-> [do machine-dependent stuff to sleep/suspend]
-> [magically awaken]
-> todr_set_systime(...)
-> todr_unlock()
- Provide historically-named wrappers inittodr() and resettodr() that
  do the dance of acquiring / releasing the lock around the actual
  substance.

NOTE: resettodr()'s use of the TODR lock is currently disabled (and
todr_save_systime() does not assert it's held) until such time as
issues around shutdown / reboot under duress can be addressed.

(thorpej)

2020-01-01 20:13:20 UTC MAIN commitmail json YAML

Break line after macro ends; add article

(wiz)

2020-01-01 20:11:44 UTC MAIN commitmail json YAML

Try fixing a sentence.

(wiz)

2020-01-01 19:36:27 UTC MAIN commitmail json YAML

One more vestige.

(pgoyette)

2020-01-01 19:35:21 UTC MAIN commitmail json YAML

Emove vestigial remains of the monolithic compat module.

(pgoyette)

2020-01-01 19:24:03 UTC MAIN commitmail json YAML

Fix some issues around todr_wenable():
- As previously defined, it was not possible to return an error from the
  back-end RTC driver.  Make it a real function so that it can do so.
- Only the mc146818 and mk48txx drivers used it (for historical reasons).
  Centralize the logic for how it's used in kern_todr.c (and make it private
  to that file) for consistency.

(thorpej)

2020-01-01 18:40:12 UTC MAIN commitmail json YAML

tmux-3.0a out.

(wiz)

2020-01-01 18:09:44 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

2020-01-01 18:08:11 UTC MAIN commitmail json YAML

todr_gettime() and todr_settime() are not referenced outside of kern_todr.c,
so make them private to that file.

(thorpej)

2020-01-01 17:28:17 UTC MAIN commitmail json YAML

Remove superfluous splclock()/splx() pair around tc_setclock().

(thorpej)

2020-01-01 16:50:42 UTC MAIN commitmail json YAML

Revert previous (include of sys/param.h) - the headers requiring this
have been fixed.

(martin)

2020-01-01 14:52:38 UTC MAIN commitmail json YAML

Fix three stack info leaks, found by kMSan when just invoking all syscalls
with a zero page as argument.

MSan: Uninitialized Stack Memory In copyout() At Offset 0, Variable 'sb32' From compat_20_netbsd32_getfsstat()
MSan: Uninitialized Stack Memory In copyout() At Offset 12, Variable 'oss' From compat_43_sys_sigstack()
MSan: Uninitialized Stack Memory In copyout() At Offset 0, Variable 'sb' From compat_50_netbsd32___fhstat40()

(maxv)

2020-01-01 14:33:48 UTC MAIN commitmail json YAML

2020-01-01 14:16:51 UTC MAIN commitmail json YAML

upstream_kernel=1 is required with new firmware/kernel.

(skrll)

2020-01-01 14:15:46 UTC MAIN commitmail json YAML

Disable SPI for now (rkspi driver hangs at boot)

(jmcneill)

2020-01-01 13:54:32 UTC MAIN commitmail json YAML

Provide a single generic bcm283x_platform_uart_freq which checks for
"brcm,bcm2835-aux-uart" and returns the appropriate core clock based
results; otherwise it returns the uart clock from firmware.

Should fix early console output on the rpi0w.

Based on a diff from mlelstv

(skrll)

2020-01-01 13:11:51 UTC MAIN commitmail json YAML

PR kern/54821: 9.99.32 assertion in uvm_pageactivate

Looks like I forgot to commit this file yesterday.

(ad)

2020-01-01 12:55:03 UTC MAIN commitmail json YAML

No need to print all supported levels at attach, print the range and total number of steps

(jmcneill)

2020-01-01 12:47:19 UTC MAIN commitmail json YAML

fstyp: Consider '@' syntax in device file path for HAMMER2

though devpath is unsupported in NetBSD atm.
taken-from: DragonFlyBSD

(tkusumi)

2020-01-01 12:46:44 UTC MAIN commitmail json YAML

Quiet chatty printfs

(jmcneill)

2020-01-01 12:18:18 UTC MAIN commitmail json YAML

2020-01-01 12:17:13 UTC MAIN commitmail json YAML

Use correct firmware for BCM43456

(jmcneill)

2020-01-01 12:16:14 UTC MAIN commitmail json YAML

2020-01-01 12:15:53 UTC MAIN commitmail json YAML

Add product ID for Broadcom BCM43455

(jmcneill)

2020-01-01 11:48:36 UTC MAIN commitmail json YAML

Avoid mixing signed/unsigned arguments to the ? operator.

(martin)

2020-01-01 11:46:43 UTC MAIN commitmail json YAML

2020-01-01 11:21:16 UTC MAIN commitmail json YAML

dwcmmc improvements:
- Use mmcpwrseq resources if available
- Only set 4- or 8-bit mode if specified in the dt properties
- Add quirk for implementations with inverted power enable logic
- Support switching signal voltage between 1.8V and 3.3V
- Fix a clock divider issue on Rockchip SoCs

(jmcneill)

2020-01-01 11:18:13 UTC MAIN commitmail json YAML

Attach mmcpwrseq resource earlier

(jmcneill)

2020-01-01 11:17:45 UTC MAIN commitmail json YAML

2020-01-01 11:16:15 UTC MAIN commitmail json YAML

2020-01-01 10:36:43 UTC MAIN commitmail json YAML

2020-01-01 10:35:10 UTC MAIN commitmail json YAML

Adjust image size appropriately when using update_image

OK jmcneill

(skrll)

2020-01-01 10:18:39 UTC MAIN commitmail json YAML

2020-01-01 10:13:16 UTC MAIN commitmail json YAML

2020-01-01 10:11:21 UTC MAIN commitmail json YAML

add support Aquantia AQC seriese 10G network adapters.

this driver is based on the FreeBSD version https://github.com/Aquantia/aqtion-freebsd ,
but drastically rewritten for NetBSD.

(ryo)

2020-01-01 10:06:41 UTC MAIN commitmail json YAML

2020-01-01 10:05:55 UTC MAIN commitmail json YAML

add Aquantia AQC 10G network adapters

(ryo)

2020-01-01 10:04:37 UTC MAIN commitmail json YAML

Add the ETHERTYPE_QINQ for 802.1ad VLAN stacking

(ryo)

2020-01-01 09:40:17 UTC MAIN commitmail json YAML

Fix small read overflows when parsing HID tables. Noticed by kASan the
other day while I was playing with vHCI.

(maxv)

2020-01-01 09:35:50 UTC MAIN commitmail json YAML

The DMA range doesn't cover all of memory on the bcm2711 (rpi4) - it
covers (most of) the first 1GB.

(skrll)

2020-01-01 09:33:19 UTC MAIN commitmail json YAML

Fix build for non-__HAVE_UCAS_FULL platforms where the symbol dance for
assembler functions isn't needed.

Suggestion from maxv.  Thanks.

(skrll)

2020-01-01 09:17:45 UTC MAIN commitmail json YAML

Fix sizeof mismatch in copyin. This leads to a user-triggerable stack
overflow. On my test build at least, by luck, the compiler orders the
variables in a way that the overflow hits only local structures which
haven't yet been initialized and used, so the overflow is harmless.

Very easily seeable with kASan - just invoke the syscall from a 32bit
binary.

(maxv)

2020-01-01 09:17:27 UTC MAIN commitmail json YAML

fstyp: Add HAMMER1 multi-volume support (missed in "fstyp: Add HAMMER1/2 support")

taken-from: DragonFlyBSD

(tkusumi)

2020-01-01 09:08:52 UTC MAIN commitmail json YAML

fstyp: Cleanup and minor sync up with FreeBSD/DragonFlyBSD

(tkusumi)

2020-01-01 09:08:28 UTC MAIN commitmail json YAML

Fix buffer overflows: validate the lengths at attach time, given that they
are apparently not supposed to be variable. Drop sc_ilen since it is
unused.

(maxv)

2020-01-01 09:05:03 UTC MAIN commitmail json YAML

Fix buffer overflows. Also add missing mutex_exit.

(maxv)

2020-01-01 09:03:00 UTC MAIN commitmail json YAML

Fix buffer overflows. sc_{o,f}len are controlled by the USB device. By
crafting the former the device can leak stack data. By crafting the latter
the device can overwrite the stack. The combination of the two means the
device can ROP the kernel and obtain code execution (demonstrated with an
actual exploit over vHCI).

Truncate the lengths to the size of the buffers, and also drop sc_ilen
since it is unused. Patch tested with vHCI+kASan.

(maxv)

2020-01-01 08:56:41 UTC MAIN commitmail json YAML

fstyp: Add HAMMER1/2 support

FreeBSD has recently imported HAMMER1/2 support from DragonFlyBSD,
so why not in NetBSD as well.

taken-from: DragonFlyBSD

(tkusumi)

2020-01-01 06:14:29 UTC MAIN commitmail json YAML

Welcome to 2020.

(mlelstv)

2020-01-01 01:18:34 UTC MAIN commitmail json YAML

explicitely include sys/atomic.h for atomic operations.

(mlelstv)

2020-01-01 00:38:31 UTC MAIN commitmail json YAML

Add clk provider

(jmcneill)

2020-01-01 00:24:52 UTC MAIN commitmail json YAML

Make recent change build for SMALL builds as well as normal ones.

(kre)

2019-12-31 23:32:05 UTC MAIN commitmail json YAML

2019-12-31 22:42:51 UTC MAIN commitmail json YAML

- Add and use wrapper functions that take and acquire page interlocks, and pairs
  of page interlocks.  Require that the page interlock be held over calls to
  uvm_pageactivate(), uvm_pagewire() and similar.

- Solve the concurrency problem with page replacement state.  Rather than
  updating the global state synchronously, set an intended state on
  individual pages (active, inactive, enqueued, dequeued) while holding the
  page interlock.  After the interlock is released put the pages on a 128
  entry per-CPU queue for their state changes to be made real in batch.
  This results in in a ~400 fold decrease in contention on my test system.
  Proposed on tech-kern but modified to use the page interlock rather than
  atomics to synchronise as it's much easier to maintain that way, and
  cheaper.

(ad)

2019-12-31 21:35:25 UTC MAIN commitmail json YAML

NetBSD 9.99.32 - struct vm_page changed

(ad)

2019-12-31 20:47:05 UTC MAIN commitmail json YAML

Remove a stupid printf

(jmcneill)

2019-12-31 19:58:56 UTC MAIN commitmail json YAML

Fix dmesg(8) to preserve leading whitespaces of kernel messages.

Closes PR/54729.

(tsutsui)

2019-12-31 18:11:18 UTC MAIN commitmail json YAML

Remove a stray '

(skrll)

2019-12-31 18:09:21 UTC MAIN commitmail json YAML

2019-12-31 17:56:16 UTC MAIN commitmail json YAML

struct vm_page: cluster fields most heavily used by the page allocator and
uvmpdpol at the start of the structure, so that while under global lock we
need only touch one cache line for each vm_page.  There is still the problem
of vm_page not being aligned, but this seems to drop lock wait time for
(a modified) uvmpdpol and the allocator by 20-30% in a quick test.

(ad)

2019-12-31 17:26:04 UTC MAIN commitmail json YAML

Rely on 32/64-bit overflow to calculate translation offsets. Store this
as a separate ar_xbase field in acpi_mem instead of having separate
ar_offset and ar_decode fields.

(jmcneill)

2019-12-31 15:07:22 UTC MAIN commitmail json YAML

Update to not include COMPAT_90

(pgoyette)

2019-12-31 14:51:29 UTC MAIN commitmail json YAML

Another rename from uvm_free() --> uvm_availmem()

(pgoyette)

2019-12-31 14:27:50 UTC MAIN commitmail json YAML

Fix mis-placed parentheses.  PR kern/54813.

(thorpej)

2019-12-31 14:25:33 UTC MAIN commitmail json YAML

Fix mis-placed parentheses.  PR kern/54812.

(thorpej)

2019-12-31 13:54:22 UTC MAIN commitmail json YAML

Create bus_dma tags for each device node based on _CCA and _DMA properties
found by walking up the device node tree. These tags encode range
restrictions, address translations, and whether or not the device is
cache coherent.

(jmcneill)

2019-12-31 13:39:15 UTC MAIN commitmail json YAML

Include device decoding type in acpi_mem resources

(jmcneill)

2019-12-31 13:07:14 UTC MAIN commitmail json YAML

2019-12-31 12:40:27 UTC MAIN commitmail json YAML

2019-12-31 12:27:50 UTC MAIN commitmail json YAML

Fetch bus_dma tags when acpi devnodes are created. They do not change
and this allows MD code to create more complex tags without being
concerned with the tag being destroyed later. While here, capture
translations offsets for address32/address64 resources.

(jmcneill)

2019-12-31 11:49:08 UTC MAIN commitmail json YAML

sys_fchdir: use LK_SHARED.

(ad)

2019-12-31 11:42:46 UTC MAIN commitmail json YAML

The DMA restrictions may not be defined in the direct parent of a device,
so search up the tree for a module device.

(jmcneill)

2019-12-31 10:30:30 UTC MAIN commitmail json YAML

dm: Remove unnecessary inlining

These two don't really need to be inlined.

(tkusumi)

2019-12-31 09:10:15 UTC MAIN commitmail json YAML

Free buffers only when allocated.

(mlelstv)

2019-12-31 08:01:19 UTC MAIN commitmail json YAML

Add another cache invalidation before reading memory for firmware query
results.

(skrll)

2019-12-31 05:01:49 UTC MAIN commitmail json YAML

2019-12-31 01:54:19 UTC MAIN commitmail json YAML

Give syspkg name to macppc machine dependency files

(uki)

2019-12-31 01:20:06 UTC MAIN commitmail json YAML

Give syspkg name to x68k machine dependency files

(uki)

2019-12-31 01:00:23 UTC MAIN commitmail json YAML

2019-12-31 00:59:27 UTC MAIN commitmail json YAML

acpi glue is conditional on acpinodebus

(jmcneill)

2019-12-30 23:32:30 UTC MAIN commitmail json YAML

Fix a problem with intr_unmask() that can cause a forever-loop:
- When handling the source-is-masked case in the interrupt vector, set the
  interrupt bit in a new ci_imasked field and ensure the bit is cleared
  from ci_ipending.
- In intr_unmask(), transfer the bit from ci_imasked to ci_ipending for
  non-level-sensitive interrupts (the PIC does the work for us in the
  level-sensitive case), and only force pending interrupts to be processed
  in this case.  (In all cases, make sure the now-unmasked bit is cleared
  from ci_imasked.)

Before, the bit was left in ci_ipending so as not to use edge-triggered
interrupts while the source is masked, but Xspllower() relies on the
pending bits getting cleared.

Tested by forcing all wm(4) interrupts on my test system though an
intr_mask() / softint / intr_unmask() cycle and exercising the network
heavily.

(thorpej)

2019-12-30 22:13:47 UTC MAIN commitmail json YAML

2019-12-30 19:52:11 UTC MAIN commitmail json YAML

Hide ACPI0004 devices on aarch64

(jmcneill)

2019-12-30 19:50:29 UTC MAIN commitmail json YAML

If a device node is a child of a module device, and the module device declares DMA range restrictions, use them.

(jmcneill)

2019-12-30 19:49:38 UTC MAIN commitmail json YAML

MD code may allocate a new dma tag for attach args, so destroy it if the device node is not claimed

(jmcneill)

2019-12-30 18:53:54 UTC MAIN commitmail json YAML

2019-12-30 18:53:34 UTC MAIN commitmail json YAML

2019-12-30 18:43:38 UTC MAIN commitmail json YAML

2019-12-30 18:28:06 UTC MAIN commitmail json YAML

pg->phys_addr -> VM_PAGE_TO_PHYS().

(ad)

2019-12-30 18:27:50 UTC MAIN commitmail json YAML

2019-12-30 18:18:03 UTC MAIN commitmail json YAML

2019-12-30 18:08:38 UTC MAIN commitmail json YAML

pagedaemon:

- Use marker pages to keep place in the queue when scanning, rather than
  relying on assumptions.

- In uvmpdpol_balancequeue(), lock the object once instead of twice.

- When draining pools, the situation is getting desperate, but try to avoid
  saturating the system with xcall, lock and interrupt activity by sleeping
  for 1 clock tick if being continually awoken and all pools have been
  cycled through at least once.

- Pause & resume the freelist cache during pool draining.

PR kern/54209: NetBSD 8 large memory performance extremely low
PR kern/54210: NetBSD-8 processes presumably not exiting
PR kern/54727: writing a large file causes unreasonable system behaviour

(ad)

2019-12-30 17:47:06 UTC MAIN commitmail json YAML

Freelist cache: drain using a high-priority xcall and re-enable now that
the pagedaemon starvation problem should be fixed.

(ad)

2019-12-30 17:45:53 UTC MAIN commitmail json YAML

uvm_pagealloc_pgb(): don't fill cache if we're into the reserves.

uvm_pagereplace(): use radix_tree_replace_node() to avoid alloc/free.

(ad)

2019-12-30 16:41:38 UTC MAIN commitmail json YAML

Oops, don't match brcm,bcm2711-emmc2 here.

Thanks to jmcneill for pointing out my mistake

(skrll)

2019-12-30 16:28:15 UTC MAIN commitmail json YAML

Follow the Linux driver an use the FDT "compatible" property to build a
filename for the nvram config file, fall back to the standard filename.

E.g.

# ofctl -p /
[Caching 123 nodes and 1093 properties]
#address-cells          00000001 ........ ........ ........    1
#size-cells            00000001 ........ ........ ........    1
compatible              73696e6f 766f6970 2c627069 2d6d322d  "sinovoip,bpi-m2-
            0010:      7a65726f 00...... ........ ........  zero"
            0015:      616c6c77 696e6e65 722c7375 6e38692d  "allwinner,sun8i-
            0025:      68322d70 6c757300 ........ ........  h2-plus"
interrupt-parent        00000001 ........ ........ ........  ....
model                  42616e61 6e612050 69204250 492d4d32  "Banana Pi BPI-M2
            0010:      2d5a6572 6f00.... ........ ........  -Zero"
name                    00...... ........ ........ ........  ""
serial-number          30326330 30303432 65636431 36376566  02c00042ecd167ef
            0010:      00...... ........ ........ ........  .

-rw-r--r--  1 root  wheel    875 Nov  2 12:06 brcmfmac43430-sdio.AP6212.txt
lrwxr-xr-x  1 root  wheel      29 Dec 30 16:19 brcmfmac43430-sdio.sinovoip,bpi-m2-zero.txt -> brcmfmac43430-sdio.AP6212.txt
-rw-r--r--  1 root  wheel    874 Jun 30  2019 brcmfmac43430-sdio.raspberrypi,3-model-b.txt
-rw-r--r--  1 root  wheel    1864 Jun 30  2019 brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
lrwxr-xr-x  1 root  wheel      29 Dec 30 11:24 brcmfmac43455-sdio.raspberrypi,4-model-b-plus.txt -> brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt

(mlelstv)

2019-12-30 16:19:27 UTC MAIN commitmail json YAML

2019-12-30 16:06:29 UTC MAIN commitmail json YAML

Invalidate the cache just before trying to read the results from the
firmware as RPI4 A72s can fill the cache with speculation

(skrll)

2019-12-30 16:05:16 UTC MAIN commitmail json YAML

Drop DEVMAP_{TRUNK_ADDR,ROUND_SIZE} to 4KB pages now that pmap_map_chunk
allows this.

(skrll)

2019-12-30 16:03:48 UTC MAIN commitmail json YAML

Update pmap_map_chunk to allow L[12] block mappings and L3 page mappings

(skrll)

2019-12-30 15:58:12 UTC MAIN commitmail json YAML

Add emmc2 clock goop from mlelstv@

(missing commit)

(skrll)

2019-12-30 15:54:55 UTC MAIN commitmail json YAML

Flush the cache and disable TTBR0 translations once we're done with
them in cpu_kernel_vm_init

The Cortex A72s in RPI4 need the cache flush for some reason.

(skrll)

2019-12-30 15:42:40 UTC MAIN commitmail json YAML

Remove unnecessary brackets and unwrap a conditional.  Same code before
and after.

(skrll)

2019-12-30 15:36:37 UTC MAIN commitmail json YAML

2019-12-30 15:31:15 UTC MAIN commitmail json YAML

2019-12-30 09:44:46 UTC netbsd-9 commitmail json YAML

2019-12-30 09:43:59 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #591):

external/mpl/bind/dist/lib/isc/unix/app.c: revision 1.5

Only ignore signals if we are bind (not dhcpd).

(martin)

2019-12-30 06:54:31 UTC MAIN commitmail json YAML

add highly experimental NUMA support for US-IIIi machines

(macallan)

2019-12-30 05:37:19 UTC MAIN commitmail json YAML

2019-12-30 05:36:52 UTC MAIN commitmail json YAML

Give syspkg names to sparc machine dependency files

(uki)

2019-12-30 04:35:45 UTC MAIN commitmail json YAML

2019-12-30 00:49:56 UTC MAIN commitmail json YAML

Use -dash list instead of -tag list without content.

(uwe)

2019-12-29 23:47:56 UTC MAIN commitmail json YAML

Allow MD code to provide custom bus_dma tags on a per-node basis. On Arm
this is required to return non-coherent bus_dma tags for device nodes with
_CCA=0

(jmcneill)

2019-12-29 23:03:20 UTC MAIN commitmail json YAML

Add missing '-width' argument to macro.

(wiz)

2019-12-29 22:19:13 UTC MAIN commitmail json YAML

Make sure rc, rc.subr, and rc.shutdown are properly updated.

Currently there is no info which rc* files should be updated
or not on upgrade (at least rc.conf and rc.local shouldn't),
so put back an explicit list in the postinstall script.
"Go for it" by christos@ in PR/54741.

Should be pulled up to netbsd-9.

(tsutsui)

2019-12-29 21:09:27 UTC MAIN commitmail json YAML

Simplify some macros: if we only ever use them on the local cpu,
there is no need to do another pointer derefernence to go via the global
address of our cpu info.
Pointed out by ad.

(martin)

2019-12-29 20:58:34 UTC MAIN commitmail json YAML

urndis.4: add LGE Nexus 5 as a knonw working device.

(triaxx)

2019-12-29 18:26:19 UTC MAIN commitmail json YAML

1. Remove all the special handling of variables (-d -p -P -s -S) that
  were dealing with DBG (-d) LDSTATIC/NOPIE (-p), and the rest with
  disabling/enabling sanitizers.
2. Use emalloc/estrdup for all the allocators instead of only some cases.
3. Add -V varspec which passes variables on the command line (as DBG
  and LDSTATIC used to be passed before) instead of appending them
  to the on-the-fly Makefile using -v varspec.
4. Change the distrib and rescue Makefiles to use -V instead of the removed
  flags.

The motivation of this is to make variable handling consistent, less magical,
and remove the need for changing crunchgen each time we want to add disabling
an option by default.

(as proposed in tech-toolchain)

(christos)

2019-12-29 15:45:28 UTC MAIN commitmail json YAML

It looks like the freelist cache can starve the pagedaemon under certain
conditions, so temporarily disable it.  Will revisit soon.

(ad)

2019-12-29 13:45:11 UTC MAIN commitmail json YAML

Add support for reading _DSD string property values.

(jmcneill)

2019-12-29 12:49:03 UTC MAIN commitmail json YAML

2019-12-29 12:46:43 UTC MAIN commitmail json YAML

Read clock frequency from device properties

(jmcneill)

2019-12-29 11:14:46 UTC netbsd-9 commitmail json YAML

2019-12-29 11:13:48 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by mlelstv in ticket #590):

sys/dev/usb/uvideo.c: revision 1.50
sys/dev/usb/uvideo.c: revision 1.51
sys/dev/usb/uvideo.c: revision 1.52

Avoid kmem_alloc(0,..), which hits an assertion.

PR kern/53734: Prevent kernel panic during Wide Vision FHD Camera detection
Check if size is zero, too.

PR kern/53734
we want to check that the allocation is going to be zero, not whether
some pointer is NULL (oops).

Should be the right version this time!

(martin)

2019-12-29 09:42:40 UTC netbsd-9 commitmail json YAML

2019-12-29 09:40:59 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #589):

sys/arch/arm/include/cputypes.h: revision 1.11
sys/arch/aarch64/aarch64/cpu.c: revision 1.31

Identify Arm Neoverse E1 and N1 CPUs.

(martin)

2019-12-29 09:36:27 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by pgoyette in ticket #588):
sys/compat/common/compat_30_mod.c: revision 1.3
For the built-in COMPAT_30 module code, make sure to initialize the
uipc_syscalls_30 stuff, notably to include compat_30_socket().
PR kern/54804
XXX Pullup-9 XXX

(martin)

2019-12-29 09:33:43 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by pgoyette in ticket #587):

sys/arch/x86/x86/x86_machdep.c: revision 1.134

to know this in order to set module_machine correctly, which in turn is
needed to set the module_base path from which modules are loaded and
which provides the value of sysctl(8) variable kern.module.path

Thanks to jnemeth@ for pointing out the problem.

(martin)

2019-12-29 09:27:10 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #586):

sys/arch/arm/nvidia/tegra_pcie.c: revision 1.27
sys/arch/aarch64/aarch64/pmap.c: revision 1.57
sys/arch/aarch64/aarch64/locore.S: revision 1.48
sys/arch/aarch64/include/armreg.h: revision 1.29
sys/arch/aarch64/aarch64/pmap.c: revision 1.58
sys/arch/aarch64/aarch64/locore.S: revision 1.49
sys/arch/arm/acpi/acpipchb.c: revision 1.14
sys/arch/aarch64/aarch64/genassym.cf: revision 1.16
sys/arch/arm/acpi/acpi_machdep.c: revision 1.13
sys/arch/aarch64/include/pmap.h: revision 1.27
sys/arch/aarch64/aarch64/genassym.cf: revision 1.17
sys/arch/aarch64/include/pmap.h: revision 1.28
sys/arch/arm/fdt/pcihost_fdtvar.h: revision 1.3
sys/arch/arm/include/bus_defs.h: revision 1.14
sys/arch/aarch64/aarch64/bus_space.c: revision 1.9
sys/arch/arm/fdt/pcihost_fdt.c: revision 1.12
sys/arch/aarch64/conf/files.aarch64: revision 1.15
sys/arch/aarch64/conf/files.aarch64: revision 1.16
sys/arch/arm/rockchip/rk3399_pcie.c: revision 1.9

Enable early write acknowledge for device memory mappings.

Do not use Early Write Acknowledge for PCIe I/O and config space.

(martin)

2019-12-29 09:23:04 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #585):

external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c: revision 1.36

Fix Xorg wsfb server "Rotate" corruption problem.  PR xsrc/54167
Confirmed on zaurus SL-C1000, SL-C3000 (CW) and hpcarm WS003SH (CCW).
Should be pulled up to netbsd-8 and netbsd-9.

(martin)

2019-12-29 09:21:21 UTC netbsd-8 commitmail json YAML

2019-12-29 09:20:15 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1479):

external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c: revision 1.36

Fix Xorg wsfb server "Rotate" corruption problem.  PR xsrc/54167
Confirmed on zaurus SL-C1000, SL-C3000 (CW) and hpcarm WS003SH (CCW).
Should be pulled up to netbsd-8 and netbsd-9.

(martin)

2019-12-29 09:17:51 UTC MAIN commitmail json YAML

Acquire bus lock (if not polling) when changing xfer status, resetting
the timeout and ringing the doorbell in the start methods.

(skrll)

2019-12-29 07:31:37 UTC MAIN commitmail json YAML

Give syspkg names to machine dependency files in alpha

(uki)

2019-12-29 03:00:35 UTC MAIN commitmail json YAML

give syspkg names to i386 machine dependencies files in x11

(uki)

2019-12-29 01:44:53 UTC MAIN commitmail json YAML

2019-12-29 01:42:46 UTC MAIN commitmail json YAML

Killer E3000
from OpenBSD

(sevan)

2019-12-29 01:38:27 UTC MAIN commitmail json YAML

Only ignore signals if we are bind (not dhcpd).

(christos)

2019-12-28 19:18:31 UTC MAIN commitmail json YAML

2019-12-28 17:19:44 UTC MAIN commitmail json YAML

2019-12-28 16:07:41 UTC MAIN commitmail json YAML

Add missing call to uvm_pgflcache_resume().

(ad)

2019-12-28 15:39:52 UTC MAIN commitmail json YAML

For the built-in COMPAT_30 module code, make sure to initialize the
uipc_syscalls_30 stuff, notably to include compat_30_socket().

PR kern/54804

XXX Pullup-9 XXX

(pgoyette)

2019-12-28 15:38:16 UTC MAIN commitmail json YAML

dm: Fix typo in comment dklinear -> linear

(tkusumi)

2019-12-28 12:34:35 UTC MAIN commitmail json YAML

Remove a pointless MSGBUFSIZE definition.
The same operation is already done in <m68k/param.h>.
luna68k is not imported yet in 1997 but see also:
http://mail-index.netbsd.org/source-changes/1997/09/20/0021.html

(isaki)

2019-12-28 11:42:18 UTC MAIN commitmail json YAML

Bump MSGBUFSIZE (2 * NBPG).
Since timestamp was introduced, it was too small to store full dmesg
of one boot.
And putting this behind of #include <m68k/param.h> had no effect.
This was fixed on many arch in 1997 but x68k was not...
http://mail-index.netbsd.org/source-changes/1997/09/20/0021.html

(isaki)

2019-12-28 08:49:41 UTC MAIN commitmail json YAML

Use PRIxPADDR to print a physical address (instead of casting to void*
and printing a pointer - which does not work well if sizeof(paddr_t) !=
sizeof(void*)).

(martin)

2019-12-28 08:33:35 UTC MAIN commitmail json YAML

Include <sys/param.h> here directly to have a sane default for
COHERENCY_UNIT.

(martin)

2019-12-28 08:25:33 UTC MAIN commitmail json YAML

Add mising sys/param.h include (for COHERENCY_UNIT, now needed in uvm headers)

(martin)

2019-12-28 08:22:30 UTC MAIN commitmail json YAML

fstyp: Use iconv(3) to convert NTFS vol labels correctly

taken-from: FreeBSD (freebsd/freebsd@23a4b310ffa90719eb9d11506bde1befab3c695f)

(tkusumi)

2019-12-28 08:00:08 UTC MAIN commitmail json YAML

fstyp: Show exFAT volume labels with -l flag

taken-from: FreeBSD (freebsd/freebsd@73773fcda9f69ce7ee0c73292f273bab940223bf)

(tkusumi)

2019-12-28 04:23:26 UTC MAIN commitmail json YAML

Sync TODO.sanitizers with reality

Done:
- compiler-rt sanitizers integration with base
- merge TSan, MSan and libFuzzer ATF tests
- LSan
- finish the research of a new syscall for StopTheWorld() operation
  ptrace(2) style for self-introspection and debugging (LSan)
- attach a NetBSD buildbot testing build of compiler-rt and executing tests
- kernel-msan https://github.com/google/kmsan

(kamil)

2019-12-28 03:09:18 UTC MAIN commitmail json YAML

Fix typo in comment.

(gutteridge)

2019-12-28 03:07:18 UTC MAIN commitmail json YAML

2019-12-28 02:58:59 UTC MAIN commitmail json YAML

2019-12-28 00:38:08 UTC MAIN commitmail json YAML

#include "opt_xen.h" so we can tell if we're in a XEN kernel.  We need
to know this in order to set module_machine correctly, which in turn is
needed to set the module_base path from which modules are loaded and
which provides the value of sysctl(8) variable kern.module.path

Thanks to jnemeth@ for pointing out the problem.

(pgoyette)

2019-12-28 00:22:08 UTC MAIN commitmail json YAML

s/Memroy/Memory/ in comment.

(rjs)

2019-12-27 21:55:51 UTC MAIN commitmail json YAML

2019-12-27 18:56:47 UTC MAIN commitmail json YAML

2019-12-27 15:49:20 UTC MAIN commitmail json YAML

Switch to panic, and make the message more useful.

(maxv)

2019-12-27 15:36:02 UTC MAIN commitmail json YAML