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 (4h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 02:41:28 UTC Now

2019-12-27 09:45:27 UTC MAIN commitmail json YAML

2019-12-27 09:41:52 UTC MAIN commitmail json YAML

2019-12-27 09:32:10 UTC MAIN commitmail json YAML

2019-12-27 09:28:41 UTC MAIN commitmail json YAML

2019-12-27 09:25:58 UTC MAIN commitmail json YAML

2019-12-27 09:22:20 UTC MAIN commitmail json YAML

2019-12-27 09:18:00 UTC MAIN commitmail json YAML

2019-12-27 08:53:30 UTC MAIN commitmail json YAML

URL_TCR_IFG0 is not bit 4 but bit3. From OpenBSD.

(msaitoh)

2019-12-27 08:22:50 UTC MAIN commitmail json YAML

2019-12-27 08:01:58 UTC MAIN commitmail json YAML

s/enty/entry/ in comment.

(msaitoh)

2019-12-27 07:41:23 UTC MAIN commitmail json YAML

2019-12-27 07:02:26 UTC MAIN commitmail json YAML

2019-12-27 06:59:45 UTC netbsd-9 commitmail json YAML

2019-12-27 06:58:56 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by ad in ticket #584):

sys/uvm/uvm_pager.c: revision 1.118

PR kern/48044: panic: kernel diagnostic assertion "uvmexp.swpgonly + npages <= uvmexp.swpginuse" failed
swpgonly is updated asynchronously with regard to swap use.  We can't assert
this condition with confidence in the post-5.0 world, at least not without
broader changes.  swpgonly's ultimate use is of a heuristic nature so this
is no problem at all.

(martin)

2019-12-27 06:52:44 UTC MAIN commitmail json YAML

2019-12-27 05:59:53 UTC MAIN commitmail json YAML

hvn(4): Handle CFI field of VLAN.

(nonaka)

2019-12-27 05:56:42 UTC MAIN commitmail json YAML

hvn(4): Use vlan_{get,set,has}_tag().

(nonaka)

2019-12-27 04:50:41 UTC MAIN commitmail json YAML

s/like like/like/ in comment.

(msaitoh)

2019-12-27 00:46:38 UTC MAIN commitmail json YAML

PR kern/48044: panic: kernel diagnostic assertion "uvmexp.swpgonly + npages <= uvmexp.swpginuse" failed

swpgonly is updated asynchronously with regard to swap use.  We can't assert
this condition with confidence in the post-5.0 world, at least not without
broader changes.  swpgonly's ultimate use is of a heuristic nature so this
is no problem at all.

(ad)

2019-12-27 00:35:05 UTC MAIN commitmail json YAML

Cherry-pick LLVM upstream patch to fix build of compiler-rt

commit 52b5fe5f45b1908e140e05a4eceaaac7002be768
Author: Kamil Rytarowski <n54@gmx.com>
Date:  Wed Dec 25 04:05:10 2019 +0100

    [compiler-rt] [netbsd] Define _RTLD_SOURCE to fix build

    The TLS base (LWP private pointer) functions are namespaced and
    hidden i.e. inside the _RTLD_SOURCE namespace.

(kamil)

2019-12-27 00:32:17 UTC MAIN commitmail json YAML

Harmonize the namespace of fast TLS base pointer getter functions

Protect __lwp_getprivate_fast() with _RTLD_SOURCE, _LIBC_SOURCE and
__LIBPTHREAD_SOURCE__.

Include in this namespace <sys/tcl.h> and use __BEGIN_DECLS/__END_DECLS
for the sake of consistency.

(kamil)

2019-12-26 20:25:57 UTC netbsd-8 commitmail json YAML

2019-12-26 20:25:07 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1478):

sys/dev/pci/ixgbe/ixgbe.c: revision 1.218

Add missing core lock in ixgbe_handle_mod().

(martin)

2019-12-26 20:23:40 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by knakahara in ticket #1477):

sys/arch/x86/pci/if_vmx.c: revision 1.53

Fix missing splnet() for ether_ioctl() caused by if_vmx.c:r1.32.
pointed out by nonaka@n.o, thanks.

(martin)

2019-12-26 20:20:27 UTC netbsd-9 commitmail json YAML

2019-12-26 20:19:37 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by knakahara in ticket #583):

sys/arch/x86/pci/if_vmx.c: revision 1.53

Fix missing splnet() for ether_ioctl() caused by if_vmx.c:r1.32.
pointed out by nonaka@n.o, thanks.

(martin)

2019-12-26 20:16:47 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #582):

bin/sh/eval.c: revision 1.177

Use fork() rather than vfork() when forking to run a background
process with redirects.  If we use vfork() and a redirect hangs
(eg: opening a fifo) which the parent was intended to unhang,
then the parent never gets to continue to unhang the child.
eg:  mkfifo f; cat <f &; echo foo>f

The parent should not be waiting for a background process, even
just for its exec() to complete.  if there are no redirects there
is (should be) nothing left that might be done that will cause any
noticeable delay, so vfork() should be safe in all other cases.

(martin)

2019-12-26 17:52:49 UTC MAIN commitmail json YAML

2019-12-26 17:51:08 UTC MAIN commitmail json YAML

Fix a bug that the driver sometimes incorrectly attach gentbi(4) instead of
gphyter(4) on non-fiber device.

Tested with Sun Quad GigaSwift Ethernet UTP (QGE) (part no. 501-6522) on
amd64. On this environment, the problem frequently had occurred. I also
tested with other 4 cas(4) variants.

(msaitoh)

2019-12-26 15:32:37 UTC MAIN commitmail json YAML

Improve flow control.

(msaitoh)

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

Apply OpenBSD rev. 1.34:

> Set Rx early threshold and Tx DMA thesholds.
>
> From Linux via FreeBSD

(msaitoh)

2019-12-26 15:23:11 UTC MAIN commitmail json YAML

Fix address of STGE_MaxFrameSize. Same as other OSes.

(msaitoh)

2019-12-26 11:27:03 UTC MAIN commitmail json YAML

Improve and simplify around audio_realloc().

(isaki)

2019-12-26 11:24:55 UTC MAIN commitmail json YAML

Use M_WAITOK instead of M_NOWAIT.
These allocations don't require NOWAIT constraints.
Will fix PR kern/54796.

(isaki)

2019-12-26 11:09:11 UTC MAIN commitmail json YAML

Use PIC_IRQBASE_ALLOC for all pic_add calls and track/use each cpu irqbase

(skrll)

2019-12-26 08:52:39 UTC MAIN commitmail json YAML

Put ptrace_read_lwpstatus() and process_read_lwpstatus() to a new file

Fixes "no PTRACE" kernel build, in particular zaurus kernel=INSTALL_C700.

(kamil)

2019-12-26 08:48:53 UTC MAIN commitmail json YAML

2019-12-26 08:27:43 UTC MAIN commitmail json YAML

Use PIC_IRQBASE_ALLOC and allow conditional attachment of interrupt
handlers (for RPI4)

(missing from previous commit)

(skrll)

2019-12-26 04:53:12 UTC MAIN commitmail json YAML

2019-12-26 04:44:10 UTC MAIN commitmail json YAML

2019-12-26 03:55:00 UTC MAIN commitmail json YAML

Fix lack of of sysctl_teardown() in ixl(4)

(yamaguchi)

2019-12-26 03:17:01 UTC MAIN commitmail json YAML

ixl(4) supports IFCAP_CSUM_*_Rx

OKed by msaitoh@n.o.

(yamaguchi)

2019-12-26 03:08:19 UTC MAIN commitmail json YAML

Improve DDPRINTF for ixl(4)

(yamaguchi)

2019-12-25 15:56:35 UTC MAIN commitmail json YAML

Update supported device list with part number. From FreeBSD.

(msaitoh)

2019-12-25 15:54:02 UTC MAIN commitmail json YAML

Cast PTRACE_LWP_GETPRIVATE to (void *) through (intptr_t)

Fixes sparc build.

(kamil)

2019-12-25 14:36:34 UTC MAIN commitmail json YAML

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.

(tsutsui)

2019-12-25 14:08:47 UTC MAIN commitmail json YAML

Remove assertions that no longer make sense now that the bus acquire / release
logic is handled by the upper layer.

(thorpej)

2019-12-25 10:51:20 UTC MAIN commitmail json YAML

Add EARLYCONS=bcm2711 example (commented out)

(skrll)

2019-12-25 10:49:29 UTC MAIN commitmail json YAML

Use PIC_IRQBASE_ALLOC and allow conditional attachment of interrupt
handlers (for RPI4)

(skrll)

2019-12-25 02:23:38 UTC MAIN commitmail json YAML

Read TLS base pointer with _lwp_getprivate()

This avoid usage of fast versions that are mostly internal to RTLD.

(kamil)

2019-12-25 01:19:56 UTC MAIN commitmail json YAML

Revert previous until issues can be sorted out.

(thorpej)

2019-12-25 00:44:45 UTC MAIN commitmail json YAML

Since pthread_setspecific requires locks, ensure that they are acquired
before fork and dropped in both parent and child. At least Python
depends on TSD after fork, even though it is undefined behavior in
POSIX.

(joerg)

2019-12-24 23:41:05 UTC MAIN commitmail json YAML

G/c the list of old files that are gone for decades.

(uwe)

2019-12-24 21:09:38 UTC MAIN commitmail json YAML

Define _RTLD_SOURCE in t_ptrace_wait.c

The __lwp_gettcb_fast() and __lwp_getprivate_fast() functions are
namespaced on a selection of ports.

(kamil)

2019-12-24 20:40:09 UTC MAIN commitmail json YAML

Update pic_add to allocate and return an irqbase if passed
PIC_IRQBASE_ALLOC.

(skrll)

2019-12-24 20:37:44 UTC MAIN commitmail json YAML

Make pic_sourcebase static

(skrll)

2019-12-24 19:51:00 UTC MAIN commitmail json YAML

2019-12-24 17:47:14 UTC netbsd-9 commitmail json YAML

2019-12-24 17:45:53 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #581):

sys/miscfs/nullfs/null_vfsops.c: revision 1.96

Set IMNT_MPSAFE before creating the vnode for the root of the
filesystem. Otherwise, it won't be created with VV_MPSAFE and require
the kernel_lock.

(martin)

2019-12-24 17:44:22 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #580):

sys/dev/pci/ixgbe/ixgbe.c: revision 1.217
sys/dev/pci/ixgbe/ixgbe.c: revision 1.218
sys/dev/pci/ixgbe/ixgbe_osdep.c: revision 1.6
sys/dev/pci/ixgbe/ixv.c: revision 1.143
sys/dev/pci/ixgbe/ixgbe_osdep.h: revision 1.25

Use bus_space_barrier() instead of x86 specific *fence instruction.
Written by riastradh@.

Add missing core lock in ixgbe_handle_mod().

(martin)

2019-12-24 17:42:18 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by sevan in ticket #579):

share/misc/acronyms: revision 1.290
share/misc/acronyms: revision 1.291
share/misc/acronyms.comp: revision 1.284
share/misc/acronyms.comp: revision 1.285
share/misc/acronyms.comp: revision 1.286
share/misc/acronyms.comp: revision 1.287
share/misc/acronyms.comp: revision 1.288
share/misc/acronyms.comp: revision 1.289
share/misc/acronyms: revision 1.288
share/misc/acronyms: revision 1.289
share/misc/acronyms.comp: revision 1.290
share/misc/acronyms.comp: revision 1.291
share/misc/acronyms.comp: revision 1.292
share/misc/acronyms.comp: revision 1.293
share/misc/acronyms.comp: revision 1.294

RDP RFB VNC
ATF NURBS
SICP
GECOS
http://bitsavers.trailing-edge.com/pdf/ge/GE-6xx/CPB-1002A_GE-625_635_GECOS_Jan65.pdf
PPT
INODE STM
GFCI, RCD
CSU UTS
SDR
DAAP DLNA
AWDL, BLE, another NAN
CIA ISMS
Add UPC - universal product code
AVB

(martin)

2019-12-24 17:39:23 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by sevan in ticket #578):

share/misc/bsd-family-tree: revision 1.76
share/misc/bsd-family-tree: revision 1.77

sync with FreeBSD r354417

Update to r355063

(martin)

2019-12-24 17:37:24 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by sevan in ticket #577):

usr.bin/calendar/calendars/calendar.holiday: revision 1.30
usr.bin/calendar/calendars/calendar.christian: revision 1.8
usr.bin/calendar/calendars/calendar.usholiday: revision 1.10
usr.bin/calendar/calendars/calendar.judaic: revision 1.8
usr.bin/calendar/calendars/calendar.judaic: revision 1.9

Update to 2020 dates. While here:
- Add regional holidays: Sigd (Beta Israel), Mimouna (Morrocan).
- Transliterate some things in an Israeli Hebrew accent (Succos -> Sukkot,
  Atzeres -> Atzeret)

Avoid the risk of being wrong and don't expand meaning of holiday.

update calendar files with all dates in 2020 as next release is expect
late 2019

(martin)

2019-12-24 17:34:33 UTC netbsd-9 commitmail json YAML

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

sys/dev/ic/ahcisata_core.c: revision 1.79

When resetting a drive, if the command list is running and CLO is not
supported, attempt to stop the drive first and fail gracefully if that
fails instead of triggering a KASSERT on DIAGNOSTIC kernels.

(martin)

2019-12-24 17:32:21 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by christos in ticket #575):

share/mk/bsd.sys.mk: revision 1.298
share/mk/sys.mk: revision 1.140

move MV to sys.mk because it is used there. Pointed out by joerg@

(martin)

2019-12-24 17:30:28 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by ryo in ticket #574):

sys/arch/aarch64/include/asm.h: revision 1.5
sys/arch/aarch64/aarch64/cpuswitch.S: revision 1.13

Add a speculation barrier after the 'eret'.

Some aarch64 cpus speculatively execute instructions after 'eret',
and this potentiates side-channel attack.

from
https://github.com/torvalds/linux/commit/679db70801da9fda91d26caf13bf5b5ccc74e8e8

(martin)

2019-12-24 17:16:23 UTC netbsd-8 commitmail json YAML

2019-12-24 17:15:48 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1476):

sys/miscfs/nullfs/null_vfsops.c: revision 1.96

Set IMNT_MPSAFE before creating the vnode for the root of the
filesystem. Otherwise, it won't be created with VV_MPSAFE and require
the kernel_lock.

(martin)

2019-12-24 15:20:34 UTC MAIN commitmail json YAML

Welcome to NetBSD 9.99.30!

Addition of PT_LWPSTATUS, PT_LWPNEXT with compat32 and core(5) support.

(kamil)

2019-12-24 14:51:00 UTC MAIN commitmail json YAML

Introduce PT_LWPSTATUS + PT_LWPNEXT, obsolete PT_LWPINFO

PT_LWPINFO is a legacy ptrace(2) operation that was originally intended
to retrieve the thread (LWP) information inside a traced process.

It has a number of flaws and is confused with PT_LWPINFO from FreeBSD.

PT_LWPSTATUS and PT_LWPNEXT address the problems (shortly by: rename,
removal of pl_event) and introduces new features: signal context
(pl_sigpend, pl_sigmask), LWP name (pl_name), LWP TLS base address
(pl_private). The private pointer was so far missing information for
a debugger.

PT_LWPSTATUS@nnn is now shipped with core(5) files and contain LWP specific
information, so far missed in the core(5) files.

PT_LWPSTATUS retrieves LWP information for the prompted thread.
PT_LWPNEXT retrieves LWP information for the next thread, borrowing the
semantics from NetBSD specific PT_LWPINFO.

PT_LWPINFO is namespaced with __LEGACY_PT_LWPINFO and still available for
the foreseeable future, without plans of removing it.

Add ATF tests for PT_LWPSTATUS + PT_LWPNEXT.

Keep ATF tests for PT_LWPINFO.

Switch GDB to new API.

Proposed on tech-kern@.

(kamil)

2019-12-24 14:10:51 UTC MAIN commitmail json YAML

2019-12-24 13:40:56 UTC MAIN commitmail json YAML

2019-12-24 10:21:08 UTC MAIN commitmail json YAML

Fix missing splnet() for ether_ioctl() caused by if_vmx.c:r1.32.

pointed out by nonaka@n.o, thanks.

(knakahara)

2019-12-24 09:13:23 UTC MAIN commitmail json YAML

2019-12-24 09:12:56 UTC MAIN commitmail json YAML

2019-12-24 06:27:17 UTC MAIN commitmail json YAML

Make ichsmb and piixpm MP-safe:
- Synchronize with the interrupt handler using a mutex.
- Use a condvar to wait for completion, rather than tsleep().
- Mark our interrupt handler as such.

Also, other general correctness fixes:
- Loop around testing the completion condition to protect aginst
  spurious wakes.
- The "i2c exec" function returns an error code, so actually do so.

(thorpej)

2019-12-24 05:00:19 UTC MAIN commitmail json YAML

Fix error path in gem(4)'s TX checksum offload.

- Avoid accessing free'd m0 on error. Use m_freem() instead of m_free().
  Reported by maxv@.
- Tested by martin@, macallan@ and jdc@.

(msaitoh)

2019-12-24 03:43:34 UTC MAIN commitmail json YAML

Don't force using SMBUS0SEL register.

- Use it depending on USE_SMBUS0SEL bit.
- If we use SMBUS0EN_LO register to select the port, update the port
  select bits only.

(msaitoh)

2019-12-23 23:41:43 UTC MAIN commitmail json YAML

- Read SB800_SMB_HOSTC correctly. This register is not in the PCI config space
  but in the I/O space.
- The bit 0 of SB800_SMB_HOSTC is 0 on SMI or 1 on IRQ, so invert the check.
- Modify comment.
- Whitespace fix.

(msaitoh)

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

Fix number of port for Hudson rev. 0x1f and newer. Same as OpenBSD and Linux.

(msaitoh)

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

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

bsd-family-tree

(sevan)

2019-12-23 23:11:01 UTC MAIN commitmail json YAML

2019-12-23 21:24:59 UTC MAIN commitmail json YAML

- No need to use I2C_F_POLL here.
- Refactor register read / write functions, splitting out i2c bus
  acquire / release everywhere.  This fixes what was almost certainly
  a deadlock in the FDT regulator section of the code (acquire bus ->
  read register, which again acquires bus -> locking against myself).

(thorpej)

2019-12-23 20:49:09 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.  Also fix an uninitialized error variable
in tea5767_read().

(thorpej)

2019-12-23 20:38:08 UTC MAIN commitmail json YAML

- Don't use I2C_F_POLL.
- Don't access the i2c from hard interrupt context.  Instead, schedule a
  soft interrupt to do the real work.  (No need to mask the interrupt
  source, since this device has an edge-sensitive interrupt per the DT
  info; will need to be revisited if there's ever a flavor that uses a
  level-sensitive interrupt).
- Split out the i2c bus acquire / release from the register read / write
  functions, allowing us to batch several i2c transactions under a single
  acquire / release cycle.

(thorpej)

2019-12-23 20:17:33 UTC MAIN commitmail json YAML

Fix if/else syntax in previous.

(uwe)

2019-12-23 19:38:58 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

2019-12-23 19:35:07 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

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

Add a comment where the other memory disk is defined to avoid future confusion.

(christos)

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

uvmpdpol_selectvictim: don't assert wire_count == 0, as we can (safely)
race with object owner and wired pages can very briefly appear on the queue.

(ad)

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

2019-12-23 19:22:46 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

2019-12-23 19:20:18 UTC MAIN commitmail json YAML

Actually, the local mutex is unnecesary; the i2c bus lock is held
across all register r/m/w cycles, so we can just piggy back on that.
(I misread the code previously.)

(thorpej)

2019-12-23 19:12:22 UTC MAIN commitmail json YAML

- Don't read/write the device if iic_acquire_bus() fails.
- axp20x_poweroff(): report the error code if power off fails.
- Don't use polled access in axp20xreg_{get,set}_voltage().

(thorpej)

2019-12-23 19:00:59 UTC MAIN commitmail json YAML

- No need to use I2C_F_POLL here.
- If iic_acquire_bus() fails, return the error, not false (because false
  looks like "everything A-OK!" to the caller).

(thorpej)

2019-12-23 18:57:30 UTC MAIN commitmail json YAML

- No need to use I2C_F_POLL here.
- Don't write to the device if iic_acquire_bus() fails.

(thorpej)

2019-12-23 18:49:14 UTC MAIN commitmail json YAML

- No need to use I2C_F_POLL here.
- Use a local mutex to protect register read-modify-write cycles.

(thorpej)

2019-12-23 18:27:11 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

2019-12-23 18:20:02 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

2019-12-23 18:12:50 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

2019-12-23 18:09:06 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

2019-12-23 18:03:14 UTC MAIN commitmail json YAML

In cx24227_writereg() / cx24227_readreg(), return the error
from iic_acquire_bus(), not some bogus return value that can
potentially be confused for a real error code.

(thorpej)

2019-12-23 17:51:58 UTC MAIN commitmail json YAML

Simply Subsection headers

There was a formatting issue with mandoc showing the
literal "Ss" macros. I reported this bug to mandoc since groff
didn't have same formatting. It was recommended to simplify
the formatting due to the weird feature.
Note because of this for groff I didn't use the Ux macro but spelled
out UNIX literally for these subsection headers
(since the macro reset the subsection formatting which was why
the Ss macro was repeated before to reactivate it).

(reed)

2019-12-23 17:31:54 UTC MAIN commitmail json YAML

Simplify Subsection formatting

Had a formatting issue with mandoc but not groff.
Reported to mandoc developer. Bug in mandoc
but was recommended to not use the "weird" feature.

(reed)

2019-12-23 16:17:36 UTC MAIN commitmail json YAML

dm: Make target's ->table() optional

Since ->info() (counter part of ->table() in the original dm design
in Linux kernel in .status where both INFO and TABLE are optional)
is an optional handler, make ->table() optional as well. Some
targets don't have anything to do in ->table() just as in ->info().

taken-from: DragonFlyBSD

(tkusumi)

2019-12-23 15:51:50 UTC MAIN commitmail json YAML

Oops, missed one more instance of unneeded-I2C_F_POLL.

(thorpej)

2019-12-23 15:51:47 UTC MAIN commitmail json YAML

Add reference counts to intr_mask/intr_unmask as calls can be nested, spotted by thorpej

(jmcneill)

2019-12-23 15:48:51 UTC MAIN commitmail json YAML

In as3722_poweroff and as3722_reboot(), check for errors from iic_acquire_bus()
before proceeding with writing to the device.

(thorpej)

2019-12-23 15:41:34 UTC MAIN commitmail json YAML

piixpm_i2c_exec(): No need to check 'cold' to force I2C_F_POLL; the i2c
upper layer does it for us.

(thorpej)

2019-12-23 15:34:40 UTC MAIN commitmail json YAML

ichsmb_i2c_exec(): No need to check 'cold' to force I2C_F_POLL; the i2c
upper layer does it for us.

(thorpej)

2019-12-23 15:34:23 UTC MAIN commitmail json YAML

2019-12-23 15:32:29 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

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

No need to use I2C_F_POLL here.

(thorpej)

2019-12-23 15:29:36 UTC MAIN commitmail json YAML

pcfiic_i2c_exec(): No need to check 'cold' to force I2C_F_POLL; the i2c
upper layer does it for us.

(thorpej)

2019-12-23 15:28:08 UTC MAIN commitmail json YAML

dwiic_i2c_exec(): No need to check 'cold' to force I2C_F_POLL; the i2c
upper layer does it for us.

(thorpej)

2019-12-23 15:25:08 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

2019-12-23 15:07:42 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

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

No need to check 'cold' for I2C_F_POLL; the i2c code does it for us.

(thorpej)

2019-12-23 14:55:22 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

2019-12-23 14:50:44 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

2019-12-23 14:48:58 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

2019-12-23 14:43:03 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

2019-12-23 14:41:41 UTC MAIN commitmail json YAML

No need to use I2C_F_POLL here.

(thorpej)

2019-12-23 14:34:23 UTC MAIN commitmail json YAML

In axppmic_power_poweroff(), check for errors from iic_acquire_bus()
before proceeding with writing to the device.

(thorpej)

2019-12-23 14:26:19 UTC MAIN commitmail json YAML

Disable the not-in-interrupt assertions for now; more work needs to be
done in several i2c client drivers.

(thorpej)

2019-12-23 13:35:37 UTC MAIN commitmail json YAML

Provide XEN stubs for intr_mask() / intr_unmask().

(thorpej)

2019-12-23 09:36:18 UTC MAIN commitmail json YAML

Add recovery code for unsupported SFP+.

Before this commit:
  If an unsuppored SFP module is inserted before booting, the driver attach
  failed and there was no way to recover form it without rebooting or
  detaching/reattaching drvier (drvctl -d && drvctl -r pciN).
After this commit:
  We can automatically recover any time by replacing it with a supported
  module.

(msaitoh)

2019-12-23 09:19:40 UTC MAIN commitmail json YAML

Add missing core lock in ixgbe_handle_mod().

(msaitoh)

2019-12-23 06:45:38 UTC MAIN commitmail json YAML

2019-12-23 02:57:32 UTC MAIN commitmail json YAML

No need to do the poll-during-autoconfiguration dance; the i2c code
does the right thing for us.

(thorpej)

2019-12-23 02:50:50 UTC MAIN commitmail json YAML

No need to do the poll-during-autoconfiguration dance; the i2c code
does the right thing for us.

(thorpej)

2019-12-23 02:39:47 UTC MAIN commitmail json YAML

seeprom_bootstrap_read(): no need to hard-code I2C_F_POLL here because
the i2c code will ensure it's there if the system is cold.

(thorpej)

2019-12-23 02:35:18 UTC MAIN commitmail json YAML

No need to do the poll-during-autoconfiguration dance; the i2c code
does the right thing for us.

(thorpej)

2019-12-23 02:25:28 UTC MAIN commitmail json YAML

No need to do the poll-during-autoconfiguration dance; the i2c code
does the right thing for us.

(thorpej)

2019-12-23 02:16:43 UTC MAIN commitmail json YAML

No need to check cold ourselves; iic_exec() does it for us.

(thorpej)

2019-12-23 01:46:09 UTC MAIN commitmail json YAML

Explain in kevent(2) the semantics of EINTR

All changes contained in the changelist are applied before returning this
error.

(kamil)

2019-12-23 00:24:02 UTC MAIN commitmail json YAML

When deciding to delay (rather than kpause), pay attention to
I2C_F_POLL, not 'cold'.

(thorpej)

2019-12-22 23:50:43 UTC MAIN commitmail json YAML

Use a separate lock (not the i2c bus lock) to synchronize with the
interrupt handler.  Refactor the code slightly to make the lock use
consistent.

Also includes the changes for:

Cleanup i2c bus acquire / release, centralizing all of the logic into
iic_acquire_bus() / iic_release_bus().  "acquire" and "release" hooks
no longer need to be provided by back-end controller drivers (only if
they need special handling, e.g. powering on the i2c controller).
This results in the removal of a bunch of rendundant code from each
back-end controller driver.

Assert that we are not in hard interrupt context in iic_acquire_bus(),
iic_exec(), and iic_release_bus().

(thorpej)

2019-12-22 23:40:49 UTC MAIN commitmail json YAML

Use a separate lock (not the i2c bus lock) to synchronize with the
interrupt handler.  This in all liklihood fixes a deadlock bug that
necessitated forcing I2C_F_POLL in tegra_i2c_exec() (someone who has
the hardware should test removing that line).

Also includes the changes for:

Cleanup i2c bus acquire / release, centralizing all of the logic into
iic_acquire_bus() / iic_release_bus().  "acquire" and "release" hooks
no longer need to be provided by back-end controller drivers (only if
they need special handling, e.g. powering on the i2c controller).
This results in the removal of a bunch of rendundant code from each
back-end controller driver.

Assert that we are not in hard interrupt context in iic_acquire_bus(),
iic_exec(), and iic_release_bus().

(thorpej)

2019-12-22 23:24:56 UTC MAIN commitmail json YAML

Rewrite the bcm2835 i2c driver as an interrupt-driven state machine.  This
improves general system responsiveness when tranferring large amounts of
data on a single-core Pi board.  This also includes:

Cleanup i2c bus acquire / release, centralizing all of the logic into
iic_acquire_bus() / iic_release_bus().  "acquire" and "release" hooks
no longer need to be provided by back-end controller drivers (only if
they need special handling, e.g. powering on the i2c controller).
This results in the removal of a bunch of rendundant code from each
back-end controller driver.

Assert that we are not in hard interrupt context in iic_acquire_bus(),
iic_exec(), and iic_release_bus().

(thorpej)

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

Cleanup i2c bus acquire / release, centralizing all of the logic into
iic_acquire_bus() / iic_release_bus().  "acquire" and "release" hooks
no longer need to be provided by back-end controller drivers (only if
they need special handling, e.g. powering on the i2c controller).
This results in the removal of a bunch of rendundant code from each
back-end controller driver.

Assert that we are not in hard interrupt context in iic_acquire_bus(),
iic_exec(), and iic_release_bus().

(thorpej)

2019-12-22 22:24:37 UTC MAIN commitmail json YAML

NetBSD 9.99.29 - struct mount changed.

(ad)

2019-12-22 22:18:04 UTC MAIN commitmail json YAML

Avoid doing zero sized allocations if we get bad data.

(ad)

2019-12-22 20:59:42 UTC MAIN commitmail json YAML

don't treat the EDMA self disable as autoconfig error, it's perfectly
normal at least during boot when device connection is reported by controller

(jdolecek)

2019-12-22 20:54:00 UTC MAIN commitmail json YAML

remove check for idle status when disabling EDMA, and always toggle
the disable regardless of current state - this particularly seems
to fail during error recovery, and on my system this also fails
during regular boot

this matches both FreeBSD and Linux drivers - neither of those checks
the idle status

should help with PR kern/52419 and maybe also the lock spinout part
of PR kern/52126

(jdolecek)

2019-12-22 19:47:35 UTC MAIN commitmail json YAML

2019-12-22 19:19:43 UTC MAIN commitmail json YAML

When resetting a drive, if the command list is running and CLO is not
supported, attempt to stop the drive first and fail gracefully if that
fails instead of triggering a KASSERT on DIAGNOSTIC kernels.

(jmcneill)

2019-12-22 18:41:37 UTC MAIN commitmail json YAML

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

(christos)

2019-12-22 17:27:54 UTC MAIN commitmail json YAML

Have vmstat -H report on vcache_hashtab.

(ad)

2019-12-22 17:01:15 UTC MAIN commitmail json YAML

Document udata type switch in struct kevent in the kqueue(2)

(kamil)

2019-12-22 16:50:03 UTC MAIN commitmail json YAML

Fix compile on !DIAGNOSTIC.

(ad)

2019-12-22 16:44:35 UTC MAIN commitmail json YAML

The hid-over-i2c spec specifies that compliant devices use level-sensitive
interrupts.  However, it's not safe to do i2c bus access in hard interrupt
context, and we must read the event data off the device in order to clear
the interrupt condition.

Address this by using acpi_intr_mask() to mask off the interrupt source
while a softint is pending to service the events, re-enabling it once
servicing is completed.

While here, re-factor the interrupt setup / tear-down code a bit to
eventually once day simplify supporting the FDT bindings for hid-over-i2c.

(thorpej)

2019-12-22 16:37:36 UTC MAIN commitmail json YAML

uvm_pagealloc_strat(): Tweak the locking to allow for lazy dequeue of pages
in the pdpolicy code.  This means taking pg->interlock if assigning to
an object.  The remaining barrier to lazy dequeue is having a dedicated
TAILQ_ENTRY in the page (it's currently shared with the page allocator).

(ad)

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

Add acpi_intr_mask() and acpi_intr_unmask() which, following the pre-existing
ACPI software layering model, are wrappers around acpi_md_intr_mask() and
acpi_md_intr_unmask(), which in turn are wrappers around intr_mask() and
intr_unmask().

XXX ARM and IA64 implementations of acpi_md_intr_mask() and
acpi_md_intr_unmask() are just stubs for now.

(thorpej)

2019-12-22 15:15:20 UTC MAIN commitmail json YAML

pmap_get_ptp(): the uvm_pagefree() call in the failure case can block too.
Pacify the assertion in pmap_unmap_ptes().

XXX Revisit and solve this chicken-and-egg problem in a more elegant way.

Reported-by: syzbot+24967905b8d17344581c@syzkaller.appspotmail.com

(ad)

2019-12-22 15:09:39 UTC MAIN commitmail json YAML

Add intr_mask() and corresponding intr_unmask() calls that allow specific
interrupt lines / sources to be masked as needed (rather than making a
set of sources by IPL as with spl*()).

(thorpej)

2019-12-22 15:00:42 UTC MAIN commitmail json YAML

Fix integer overflow when printing available memory size (resulting from
a cast lost during merges).

Reported-by: syzbot+f02ca5f83ac7196b8afd@syzkaller.appspotmail.com

(ad)

2019-12-22 13:16:10 UTC MAIN commitmail json YAML

dm: Make numsec/secsize arguments in dm_table_disksize() optional

(tkusumi)

2019-12-22 12:59:13 UTC MAIN commitmail json YAML

update entry for dtc & libfdt after update.

(wiz)

2019-12-22 12:42:23 UTC MAIN commitmail json YAML

2019-12-22 12:41:52 UTC MAIN commitmail json YAML

2019-12-22 12:41:33 UTC MAIN commitmail json YAML

Avoid shadowing global variable

(skrll)

2019-12-22 12:38:24 UTC MAIN commitmail json YAML

2019-12-22 12:33:17 UTC MAIN commitmail json YAML

2019-12-22 12:28:54 UTC MAIN commitmail json YAML

dm: Add missing "ioctl called" debug prints

(tkusumi)

2019-12-22 12:21:45 UTC MAIN commitmail json YAML

Add brcm,bcm2711 as an alias for brcm,bcm2838

(skrll)

2019-12-21 18:54:15 UTC MAIN commitmail json YAML

Use fork() rather than vfork() when forking to run a background
process with redirects.  If we use vfork() and a redirect hangs
(eg: opening a fifo) which the parent was intended to unhang,
then the parent never gets to continue to unhang the child.

eg:  mkfifo f; cat <f &; echo foo>f

The parent should not be waiting for a background process, even
just for its exec() to complete.  if there are no redirects there
is (should be) nothing left that might be done that will cause any
noticeable delay, so vfork() should be safe in all other cases.

(kre)

2019-12-21 16:10:20 UTC MAIN commitmail json YAML

Fix merge error - don't init uvmpd_lock twice.

(ad)

2019-12-21 16:00:30 UTC MAIN commitmail json YAML

dm: Fix dm-stripe's "status" output format

As mentioned in "dm: Don't try to implement "status" as subset of "table"",
dm-stripe in NetBSD doesn't have correct "status" output format.
Implement ->info() to sync with Linux kernel.

Note that num_error for stripe device isn't implemented yet.

taken-from: DragonFlyBSD

(tkusumi)

2019-12-21 15:16:14 UTC MAIN commitmail json YAML

uvm_page_to_phys: mask off the lower bits.

(ad)

2019-12-21 15:12:34 UTC MAIN commitmail json YAML

NetBSD 9.99.28 - cpu_data & UVM changes.

(ad)

2019-12-21 14:50:35 UTC MAIN commitmail json YAML

Detangle the pagedaemon from uvm_fpageqlock:

- Have a single lock (uvmpd_lock) to protect pagedaemon state that was
  previously covered by uvmpd_pool_drain_lock plus uvm_fpageqlock.
- Don't require any locks be held when calling uvm_kick_pdaemon().
- Use uvm_free().

(ad)

2019-12-21 14:41:44 UTC MAIN commitmail json YAML

- Rename VM_PGCOLOR_BUCKET() to VM_PGCOLOR().  I want to reuse "bucket" for
  something else soon and TBH it matches what this macro does better.

- Add inlines to set/get locator values in the unused lower bits of
  pg->phys_addr.  Begin by using it to cache the freelist index, because
  computing it is expensive and that shows up during profiling.  Discussed
  on tech-kern.

(ad)

2019-12-21 14:33:19 UTC MAIN commitmail json YAML

Counter tweaks:

"zeroaborts" + "free" don't need to be per-CPU counters, and "bucketmiss"
wasn't used.  Remove those and cluster by usage.

(ad)

2019-12-21 13:00:25 UTC MAIN commitmail json YAML

2019-12-21 12:59:13 UTC MAIN commitmail json YAML

Add uvm_free(): returns number of free pages in system.

(ad)

2019-12-21 12:58:26 UTC MAIN commitmail json YAML

Add uvm_free(): returns number of free pages in system.

(ad)

2019-12-21 12:53:54 UTC MAIN commitmail json YAML

2019-12-21 11:59:03 UTC MAIN commitmail json YAML

dm: Remove target's ->deps() by implementing deps in dm core

Retrieving device dependencies doesn't need to be target specific.
The reason it currently needs ->deps() is because dm core doesn't
have data structure that allows table to walk through target's
underlying devices. Add struct dm_mapping to be able to do this,
and remove ->deps()'s from targets which basically do the same thing.

    =====(A) before this commit
    table
        |                                    [dm core]
    -------------------------------------------------------
        |          pdev      pdev      pdev  [dm targets]
        v          ^        ^        ^
        target----/---------/---------/
        (void*)

    =====(B) this commit
    table---->mapping-->mapping-->mapping-->...
        |          |        |        |
        |          v        v        v    [dm core]
    -------------------------------------------------------
        |          pdev      pdev      pdev  [dm targets]
        v          ^        ^        ^
        target----/---------/---------/
        (void*)

taken-from: DragonFlyBSD

(tkusumi)

2019-12-21 11:54:04 UTC MAIN commitmail json YAML

schedstate_percpu: add new flag SPCF_IDLE as a cheap and easy way to
determine that a CPU is currently idle.

(ad)

2019-12-21 11:41:19 UTC MAIN commitmail json YAML

uvm_reclaimable(): need to sum the per-CPU values for filepages/execpages.

(ad)

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

2019-12-21 09:11:59 UTC MAIN commitmail json YAML

2019-12-20 22:58:53 UTC MAIN commitmail json YAML

Avoid the risk of being wrong and don't expand meaning of holiday.

(maya)

2019-12-20 22:26:16 UTC MAIN commitmail json YAML

Note import of dhcpcd-8.1.4

(roy)

2019-12-20 22:24:59 UTC MAIN commitmail json YAML

2019-12-20 21:52:52 UTC MAIN commitmail json YAML

Use CPU_COUNT() to update nswtch.  No functional change.

(ad)

2019-12-20 21:20:09 UTC MAIN commitmail json YAML

2019-12-20 21:13:48 UTC MAIN commitmail json YAML

NetBSD 9.99.27 - cpu_data changes for topology

(ad)

2019-12-20 21:05:34 UTC MAIN commitmail json YAML

Some more CPU topology stuff:

- Use cegger@'s ACPI SRAT parsing code to figure out NUMA node ID for each
  CPU as it is attached.

- For scheduler experiments with SMT, flag CPUs with the lowest numbered SMT
  IDs as "primaries", link back to the primaries from secondaries, and build
  a circular list of CPUs in each package with identical SMT IDs.

- No need for package/core/smt/numa IDs to be anything other than a u_int.

(ad)

2019-12-20 20:54:48 UTC MAIN commitmail json YAML

Fix lfs_putpages() for bsize < nbpg.

(ad)

2019-12-20 19:46:51 UTC MAIN commitmail json YAML

Do not populate /dev on CD images by default, instead rely on init
doing the tmpfs / MAKEDEV magic.
On images for machines with serious ram shortage (where the additional
tmpfs hurts, like VAX) override this with CDDEV_POPULATE=true.
Should fix PR port-amd64/54776.

(martin)

2019-12-20 19:03:18 UTC MAIN commitmail json YAML

2019-12-20 18:37:20 UTC MAIN commitmail json YAML

Update to 2020 dates. While here:

- Add regional holidays: Sigd (Beta Israel), Mimouna (Morrocan).
- Transliterate some things in an Israeli Hebrew accent (Succos -> Sukkot,
  Atzeres -> Atzeret)

(maya)

2019-12-20 16:16:36 UTC MAIN commitmail json YAML

dm: Fix "table" output format of dm-linear and dm-stripe

The existing "table" output showing device file path of pdev is
not compatible with dm in Linux kernel (and also DragonFlyBSD).
It should be showing "major:minor" instead.

taken-from: DragonFlyBSD

(tkusumi)

2019-12-20 14:09:23 UTC MAIN commitmail json YAML

Improve wording.

(wiz)

2019-12-20 12:02:46 UTC MAIN commitmail json YAML

Note import of dhcpcd-8.1.3

(roy)

2019-12-20 12:01:36 UTC MAIN commitmail json YAML

2019-12-20 07:16:43 UTC MAIN commitmail json YAML

Add a speculation barrier after the 'eret'.

Some aarch64 cpus speculatively execute instructions after 'eret',
and this potentiates side-channel attack.

from
https://github.com/torvalds/linux/commit/679db70801da9fda91d26caf13bf5b5ccc74e8e8

(ryo)