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

2024-05-10 06:03:29 UTC Now

2020-02-18 21:14:16 UTC MAIN commitmail json YAML

2020-02-18 21:12:21 UTC MAIN commitmail json YAML

2020-02-18 20:23:18 UTC MAIN commitmail json YAML

2020-02-18 17:50:32 UTC MAIN commitmail json YAML

Fix non-DIAGNOSTIC build with UVM_PAGE_TRKOWN.

(riastradh)

2020-02-18 17:50:21 UTC MAIN commitmail json YAML

Fix wrong KASSERT in motg abort.

This has been wrong since last summer when we did the transition to
xfer->ux_status = USBD_CANCELLED earlier.

XXX pullup-9

(riastradh)

2020-02-18 15:00:42 UTC MAIN commitmail json YAML

- Use ether_mediachange().
- Don't call the media change function directly from the init
  function; bounce through mii_ifmedia_change().

(thorpej)

2020-02-18 14:49:32 UTC MAIN commitmail json YAML

2020-02-18 12:11:27 UTC MAIN commitmail json YAML

Add tests.
AUDIO_SETINFO_channels
AUDIO_SETINFO_sample_rate
AUDIO_SETINFO_sample_rate_0

(isaki)

2020-02-18 10:33:38 UTC MAIN commitmail json YAML

2020-02-18 04:12:40 UTC MAIN commitmail json YAML

No functional change:

- u_int*_t -> uint*_t
- whitespace fixes.
- KNF.

(msaitoh)

2020-02-18 04:09:32 UTC MAIN commitmail json YAML

Whitespace fix. No functional change.

(msaitoh)

2020-02-18 04:08:12 UTC MAIN commitmail json YAML

2020-02-18 04:07:14 UTC MAIN commitmail json YAML

It's useless to not to set PCI_PMCSR_PME_STS bit when writing because
the bit is W1C. Instead, always write PCI_PMCSR_PME_STS bit to clear in
case it's already set.

(msaitoh)

2020-02-18 03:48:23 UTC MAIN commitmail json YAML

Whitespace fix. No functional change.

(msaitoh)

2020-02-18 00:40:50 UTC MAIN commitmail json YAML

PR/54435: Valery Ushakov: Clear urgent status after reading urgent data, so
that poll(2) works.

(christos)

2020-02-17 22:52:18 UTC MAIN commitmail json YAML

2020-02-17 21:49:27 UTC MAIN commitmail json YAML

cpu_ast(): no need to call userret(), as the caller does it for us. From rin@.

(ad)

2020-02-17 21:47:33 UTC MAIN commitmail json YAML

2020-02-17 21:44:43 UTC MAIN commitmail json YAML

softint_dispatch(): Temporarily call kernel_lock_plug_leak() since there is
incontinent code somewhere.

(ad)

2020-02-17 17:16:51 UTC MAIN commitmail json YAML

Add RIF (reduction in force).

(fcambus)

2020-02-17 15:51:25 UTC MAIN commitmail json YAML

- Remove 50GBASE-LR10.
- Add the following medias:
- 25GBASE-ACC
- 100GBASE-ACC
- 100GBASE-AOC
- 100GBASE-FR
- 100GBASE-LR
- 200GBASE-ER4
- 400GBASE-ER8
- 400GBASE-FR4
- 400GBASE-LR4
- 400GBASE-SR4.2
- 400GBASE-SR8

(msaitoh)

2020-02-17 09:09:50 UTC MAIN commitmail json YAML

2020-02-17 08:46:10 UTC MAIN commitmail json YAML

2020-02-17 08:16:44 UTC MAIN commitmail json YAML

When aborting a pipe, set pipe->up_running = 0.

This prevents any concurrent usb_transfer_complete from restarting
the pipe with usbd_start_next.

(riastradh)

2020-02-17 06:32:46 UTC MAIN commitmail json YAML

2020-02-17 06:05:31 UTC MAIN commitmail json YAML

comment mods and code tiddy ups

(nisimura)

2020-02-16 23:14:19 UTC MAIN commitmail json YAML

something I apparently forgot to commit months or years ago

(dholland)

2020-02-16 23:05:42 UTC MAIN commitmail json YAML

Add fdt_intr_mask() / fdt_intr_unmask() functions, for masking and
unmasking invididual interrupt sources (similar to acpi_intr_mask()
and acpi_intr_unmask()).

(This file was missed in a previous commit.)

(thorpej)

2020-02-16 22:43:27 UTC MAIN commitmail json YAML

- Don't use I2C_F_POLL.
- G/C the non-FDT entry points; nothing uses them anymore.

(thorpej)

2020-02-16 22:38:28 UTC MAIN commitmail json YAML

Fix comments to not break formatting.

(uwe)

2020-02-16 22:20:31 UTC MAIN commitmail json YAML

tcpdump.1.in: fix stray line from merge botch

(gutteridge)

2020-02-16 22:00:53 UTC ad-namecache commitmail json YAML

2020-02-16 21:31:19 UTC MAIN commitmail json YAML

nextlwp(): fix a couple of locking bugs including one I introduced yesterday,
and add comments around same.

(ad)

2020-02-16 20:32:29 UTC MAIN commitmail json YAML

Don't access the i2c bus in interrupt context.  Instead, mask the
interrupt and process it on a work queue.

(thorpej)

2020-02-16 20:29:36 UTC MAIN commitmail json YAML

Provide a back-end for fdt_intr_mask() / fdt_intr_unmask().

(thorpej)

2020-02-16 20:28:18 UTC MAIN commitmail json YAML

Add fdt_intr_mask() / fdt_intr_unmask() functions, for masking and
unmasking invididual interrupt sources (similar to acpi_intr_mask()
and acpi_intr_unmask()).

(thorpej)

2020-02-16 17:45:12 UTC MAIN commitmail json YAML

Revert "Enhance the pthread(3) + malloc(3) init model"

It is reported to hand on aarch64 with gzip.

(kamil)

2020-02-16 17:14:31 UTC MAIN commitmail json YAML

Set __isthreaded before bootstrapping malloc(3)

jemalloc depends on the __isthreaded dynamic state logic.

Reported by <wiz> for mpv and by <tih> for gzip.

(kamil)

2020-02-16 15:03:22 UTC MAIN commitmail json YAML

2020-02-16 14:56:52 UTC MAIN commitmail json YAML

2020-02-16 14:06:10 UTC MAIN commitmail json YAML

zpool: The NetBSD specific ioctl needs to include sys/ioctl.h

(roy)

2020-02-16 12:21:24 UTC netbsd-9 commitmail json YAML

2020-02-16 12:20:02 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #710):

external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c: revision 1.58

Teach zfs to revoke vnodes the usual way.
XXX pullup

(martin)

2020-02-16 12:18:27 UTC netbsd-9 commitmail json YAML

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

external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c: revision 1.57

zfs_netbsd_setattr: ignore size changes on device nodes.

(martin)

2020-02-16 12:16:28 UTC netbsd-9 commitmail json YAML

2020-02-16 10:45:42 UTC MAIN commitmail json YAML

Remove azalia(4) references, spotted by maxv

(jmcneill)

2020-02-16 09:53:55 UTC MAIN commitmail json YAML

Improve the check, to prevent more surprises.

(maxv)

2020-02-16 09:40:35 UTC MAIN commitmail json YAML

2020-02-16 07:29:48 UTC MAIN commitmail json YAML

Move another file from drm2 to common for <linux/kernel.h>.

(riastradh)

2020-02-16 06:50:14 UTC MAIN commitmail json YAML

2020-02-15 23:59:30 UTC MAIN commitmail json YAML

Enhance the pthread(3) + malloc(3) init model

Separate the pthread_atfork(3) call from pthread_tsd_init()
and move it into a distinct function.

Call inside pthread__init() late TSD initialization route, just after
"pthread_atfork(NULL, NULL, pthread__fork_callback);".

Document that malloc(3) initialization is now controlled again and called
during the first pthread_atfork(3) call.

Remove #if 0 code from pthread_mutex.c as we no longer initialize malloc
prematurely.

(kamil)

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

Interrupt-driven I/O seems to completely go off the rails, at least
on AllWinner implementations of this controller, so force polled mode
for now.

(thorpej)

2020-02-15 23:19:37 UTC MAIN commitmail json YAML

Open /dev/urandom with O_CLOEXEC.

Let's avoid bleeding file descriptors into our clients' children,
shall we?

XXX pullup

(riastradh)

2020-02-15 22:55:22 UTC MAIN commitmail json YAML

Let's not write temporary files to fixed paths in /tmp, shall we?

XXX pullup

(riastradh)

2020-02-15 19:03:15 UTC MAIN commitmail json YAML

Teach zfs to revoke vnodes the usual way.

XXX pullup

(riastradh)

2020-02-15 18:12:15 UTC MAIN commitmail json YAML

2020-02-15 17:14:31 UTC MAIN commitmail json YAML

NetBSD 9.99.47 - added lwp_renumber()

(ad)

2020-02-15 17:13:55 UTC MAIN commitmail json YAML

PR kern/54922: 9.99.45@20200202 panic: diagnostic assertion linux ldconfig triggers vpp != NULL in exit1()->radixtree.c line 674

Create an lwp_renumber() from the code in emulexec() and use in
linux_e_proc_exec() and linux_e_proc_fork() too.

(ad)

2020-02-15 17:09:24 UTC MAIN commitmail json YAML

- List all of the syncobjs in syncobj.h.
- Update a comment.

(ad)

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

2020-02-15 16:56:15 UTC MAIN commitmail json YAML

2020-02-15 14:05:06 UTC MAIN commitmail json YAML

#ifdef DIAGNOSTIC --> __diagused

(riastradh)

2020-02-15 13:56:56 UTC MAIN commitmail json YAML

2020-02-15 13:51:33 UTC MAIN commitmail json YAML

avoid nesting /*'s (-Wcomment)

(tnn)

2020-02-15 12:45:05 UTC MAIN commitmail json YAML

Need to limit the DMA range for tx1.  Assume 32bit DMA everywhere for now.

(skrll)

2020-02-15 12:20:35 UTC MAIN commitmail json YAML

return the ifmedia active status correctly even while the link is not up after attach.

pointed out by msaitoh@. thanks.

(ryo)

2020-02-15 10:41:25 UTC MAIN commitmail json YAML

2020-02-15 09:57:30 UTC MAIN commitmail json YAML

jemalloc: Avoid variable length array with length 0

Cherry-pick upstrem patch.

https://github.com/jemalloc/jemalloc/pull/1768

(kamil)

2020-02-15 09:26:07 UTC MAIN commitmail json YAML

Change bNbrPorts for loop to start from 1 to match others.  NFCI.

(skrll)

2020-02-15 08:16:12 UTC MAIN commitmail json YAML

Various updates and improvements to cpu start up on arm/aarch64

- start sharing more code around the AP startup messaging.
- call arm_cpu_topology_set early so that ci_core_id is available for
  drivers, e.g. bcm2835_intr.c
- both arm and aarch64 now have
  - a static cpu_info_store array
  - the same arm_cpu_{hatched,mbox}

(skrll)

2020-02-15 07:46:48 UTC MAIN commitmail json YAML

2020-02-15 07:20:41 UTC MAIN commitmail json YAML

Remove the 'slow' argument from cpu_topology_set and create a new
function cpu_topology_setspeed which sets the relative speed of the
cpu.

This allows cpu_topology_set is be used at cpu hatch time.  The relative
speed is only known once all cpus have hatched/attached

OK ad@

(skrll)

2020-02-15 03:27:58 UTC MAIN commitmail json YAML

etc and modules packages should be preserve

(uki)

2020-02-15 03:04:45 UTC MAIN commitmail json YAML

Enumerating probably always starts from sc->sc_startnode.

(isaki)

2020-02-15 02:47:00 UTC MAIN commitmail json YAML

Remove incorrect KASSERT(!mutex_owned()).
Pointed out by riastradh@.

(isaki)

2020-02-15 02:14:02 UTC MAIN commitmail json YAML

Add support for D-Link DWM-157 3G USB modem

(manu)

2020-02-15 02:10:45 UTC MAIN commitmail json YAML

2020-02-15 02:08:54 UTC MAIN commitmail json YAML

Add UE version of D-Link DWM-157

(manu)

2020-02-15 01:21:56 UTC MAIN commitmail json YAML

Fix mistakes in previous sloppy change with root intr xfers.

- Make sure ux_status is set to USBD_IN_PROGRESS when started.
  Otherwise, if it is still in flight when we abort the pipe,
  usbd_ar_pipe will skip calling upm_abort.

- Initialize ux_status under the lock; in principle a completion
  interrupt (or a delay) could race with the initialization.

- KASSERT that the xfer is in progress when we're about to complete
  it.

Candidate fix for PR kern/54963 for other HCI drivers than uhci.

ok nick
ok phone

(This is the change that nick evidently MEANT to ok when he ok'd the
previous one!)

(riastradh)

2020-02-14 22:04:12 UTC MAIN commitmail json YAML

2020-02-14 18:17:23 UTC MAIN commitmail json YAML

2020-02-14 16:47:28 UTC MAIN commitmail json YAML

Set ux_isdone in uhci_poll_hub for DIAGNOSTIC.

(riastradh)

2020-02-14 16:47:11 UTC MAIN commitmail json YAML

Initialize xfer->ux_status in uhci_root_intr_start.

Otherwise, it will be USBD_NOT_STARTED, so usbd_ar_pipe will skip
calling upm_abort.

Candidate fix for PR kern/54963, same problem as reported at:
https://mail-index.NetBSD.org/current-users/2020/02/13/msg037740.html

(riastradh)

2020-02-14 16:02:41 UTC MAIN commitmail json YAML

fix a typo, caught by -Werror,-Wheader-guard

(tnn)

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

src/sys/external/bsd/common/include/linux/kernel.h@1.25 / diff / nxr@1.25
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atom.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios_crtc.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios_dp.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios_encoders.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios_i2c.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cgs.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ci_dpm.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ci_smc.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cik_ih.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cik_sdma.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cz_dpm.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cz_ih.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cz_smc.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_dpm.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fence.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fiji_dpm.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fiji_smc.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gfx_v7_0.c@1.3 / diff / nxr@1.3
      :
(more 113 files)
Reduce diffs by side-loading some header files like Linux.

From riastradh

(maya)

2020-02-14 14:17:42 UTC MAIN commitmail json YAML

unbreak the previous commit error

(nisimura)

2020-02-14 14:14:45 UTC MAIN commitmail json YAML

determine FDX flow control abilities

(nisimura)

2020-02-14 13:20:48 UTC MAIN commitmail json YAML

Improve around {audioctl_,}open_multiuser.
- Make multiuser bool and remove newval.
- try_audioctl_open_multiuser() doesn't need multiuser argument.

(isaki)

2020-02-14 12:14:34 UTC MAIN commitmail json YAML

add missing two aprint_normal* lines

(nisimura)

2020-02-14 12:12:07 UTC MAIN commitmail json YAML

Use the configured IP6ADDRCTL_CMD for stopping also.

(kim)

2020-02-14 09:39:57 UTC MAIN commitmail json YAML

2020-02-14 09:39:38 UTC MAIN commitmail json YAML

2020-02-14 09:38:51 UTC MAIN commitmail json YAML

2020-02-14 09:35:52 UTC MAIN commitmail json YAML

Carry new CWARNFLAGS over to module reachover makefiles.

Forgot these modules existed!

(riastradh)

2020-02-14 09:35:40 UTC MAIN commitmail json YAML

2020-02-14 07:23:24 UTC MAIN commitmail json YAML

Sort define CI_*. NFCI.

(skrll)

2020-02-14 07:21:02 UTC MAIN commitmail json YAML

sort __HAVE_* defines.  NFCI

(skrll)

2020-02-14 04:38:48 UTC MAIN commitmail json YAML

2020-02-14 04:38:36 UTC MAIN commitmail json YAML

2020-02-14 04:38:24 UTC MAIN commitmail json YAML

2020-02-14 04:38:13 UTC MAIN commitmail json YAML

Revert unnecessary change.

The only way this logic can reach the reference to stat is if repcnt
goes to zero, which -- since it starts at 4 -- can only happen if we
go through several iterations of the loop, which in turn implies that
stat is initialized.

If GCC still complains about this, it's wrong and should be dealt
with some other way.

(riastradh)

2020-02-14 04:37:43 UTC MAIN commitmail json YAML

2020-02-14 04:37:29 UTC MAIN commitmail json YAML

2020-02-14 04:37:10 UTC MAIN commitmail json YAML

2020-02-14 04:36:57 UTC MAIN commitmail json YAML

2020-02-14 04:36:33 UTC MAIN commitmail json YAML

Provide necessary forward declarations or includes.

(riastradh)

2020-02-14 04:36:12 UTC MAIN commitmail json YAML

src/sys/external/bsd/drm2/dist/drm/i915/i915_debugfs.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c@1.30 / diff / nxr@1.30
src/sys/external/bsd/drm2/dist/drm/i915/i915_drv.h@1.31 / diff / nxr@1.31
src/sys/external/bsd/drm2/dist/drm/i915/i915_irq.c@1.18 / diff / nxr@1.18
src/sys/external/bsd/drm2/dist/drm/i915/intel_audio.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/i915/intel_crt.c@1.7 / diff / nxr@1.7
src/sys/external/bsd/drm2/dist/drm/i915/intel_ddi.c@1.11 / diff / nxr@1.11
src/sys/external/bsd/drm2/dist/drm/i915/intel_display.c@1.30 / diff / nxr@1.30
src/sys/external/bsd/drm2/dist/drm/i915/intel_dp.c@1.21 / diff / nxr@1.21
src/sys/external/bsd/drm2/dist/drm/i915/intel_dp_mst.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/i915/intel_drv.h@1.12 / diff / nxr@1.12
src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/i915/intel_dvo.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/i915/intel_fbc.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/i915/intel_fifo_underrun.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/i915/intel_hdmi.c@1.8 / diff / nxr@1.8
src/sys/external/bsd/drm2/dist/drm/i915/intel_lvds.c@1.8 / diff / nxr@1.8
src/sys/external/bsd/drm2/dist/drm/i915/intel_overlay.c@1.9 / diff / nxr@1.9
src/sys/external/bsd/drm2/dist/drm/i915/intel_panel.c@1.13 / diff / nxr@1.13
src/sys/external/bsd/drm2/dist/drm/i915/intel_pm.c@1.22 / diff / nxr@1.22
      :
(more 6 files)
Undo the `enum pipe' -> `enum i915_pipe' rename.

(riastradh)

2020-02-14 04:35:20 UTC MAIN commitmail json YAML

src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_bo_list.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ctx.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cz_smc.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fb.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fence.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gem.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gfx_v8_0.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_i2c.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_kms.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_object.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_sdma_v2_4.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_sdma_v3_0.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ucode.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_uvd.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_vm.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/drm_crtc.c@1.13 / diff / nxr@1.13
src/sys/external/bsd/drm2/dist/drm/drm_dp_helper.c@1.10 / diff / nxr@1.10
src/sys/external/bsd/drm2/dist/drm/drm_dp_mst_topology.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/drm_drv.c@1.11 / diff / nxr@1.11
      :
(more 38 files)
Use a header file hack to cope with Linux/NetBSD namespace clashes.

Currently serves for:

ALIGN
mutex_init
mutex_destroy

(riastradh)

2020-02-14 04:30:06 UTC MAIN commitmail json YAML

src/sys/external/bsd/drm2/amdgpu/files.amdgpu@1.8 / diff / nxr@1.8
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atom.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios_encoders.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_bo_list.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ci_dpm.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cz_dpm.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_cz_smc.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_dce_v10_0.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_dce_v11_0.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_dce_v8_0.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_dpm.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fence.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gmc_v7_0.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gmc_v8_0.c@1.2 / diff / nxr@1.2
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_kv_dpm.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_test.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ucode.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_uvd.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/drm_bufs.c@1.10 / diff / nxr@1.10
      :
(more 18 files)
Eliminate -Wpointer-arith patches; use -Wno-pointer-arith instead.

(riastradh)

2020-02-14 04:29:42 UTC MAIN commitmail json YAML

2020-02-14 04:29:20 UTC MAIN commitmail json YAML

2020-02-14 04:20:59 UTC MAIN commitmail json YAML

Instead of turning optimization off, use unique labels with %= (thanks joerg@)

(christos)

2020-02-14 01:52:35 UTC MAIN commitmail json YAML

Fix undefined behavior in hash.h (jemalloc)

Cherry-pick upstream patch:

    Fix Undefined Behavior in hash.h

    hash.h:200:27, left shift of 250 by 24 places cannot be represented in type 'int'

https://github.com/jemalloc/jemalloc/commit/7fd22f7b2ea5ce2540563ece8e2d30a5316ac857

(kamil)

2020-02-14 00:06:29 UTC netbsd-9 commitmail json YAML

2020-02-13 23:05:53 UTC MAIN commitmail json YAML

redundant include

(sevan)

2020-02-13 22:48:12 UTC MAIN commitmail json YAML

2020-02-13 19:40:59 UTC netbsd-9 commitmail json YAML

2020-02-13 19:40:05 UTC netbsd-9 commitmail json YAML

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

sys/net/if_pppoe.c: revision 1.149

safely extract character sequences from packet for printing.

(martin)

2020-02-13 19:38:52 UTC netbsd-8 commitmail json YAML

2020-02-13 19:37:39 UTC netbsd-8 commitmail json YAML

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

sys/net/if_pppoe.c: revision 1.149

safely extract character sequences from packet for printing.

(martin)

2020-02-13 19:34:30 UTC netbsd-8 commitmail json YAML

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

sys/compat/netbsd32/netbsd32_ioctl.c: revision 1.108
sys/compat/netbsd32/netbsd32_ioctl.c: revision 1.109

Don't use strlcpy to copy untrusted input, it may not be NUL-terminated.

Where did the +1 came from ?

(martin)

2020-02-13 19:28:15 UTC netbsd-9 commitmail json YAML

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

sys/compat/netbsd32/netbsd32_ioctl.c: revision 1.108
sys/compat/netbsd32/netbsd32_ioctl.c: revision 1.109

Don't use strlcpy to copy untrusted input, it may not be NUL-terminated.

Where did the +1 came from ?

(martin)

2020-02-13 18:31:55 UTC MAIN commitmail json YAML

adjust r1.19; add clang equivalent of gcc specific attribute

(tnn)

2020-02-13 18:06:26 UTC MAIN commitmail json YAML

don't use variable 'newval' uninitialized when multiuser mode unchanged

(tnn)

2020-02-13 16:53:32 UTC MAIN commitmail json YAML

zfs_netbsd_setattr: ignore size changes on device nodes.

(hannken)

2020-02-13 15:27:41 UTC MAIN commitmail json YAML

Enable combined breakpoint, watchpoint and signal tests

(mgorny)

2020-02-13 15:27:25 UTC MAIN commitmail json YAML

2020-02-13 15:27:05 UTC MAIN commitmail json YAML

Extend concurrent events test to breakpoints

Add testing for concurrent breakpoint hits.  The code is currently
x86-specific but since it reuses most of the generic concurrent event
test code, it's put in t_ptrace_wait.c with arch-specific hooks.

(mgorny)

2020-02-13 15:26:45 UTC MAIN commitmail json YAML

Include LWP events in concurrent event test

LWP events will be necessary when breakpoint/watchpoint support is added
to the test.  However, they also benefit us by testing whether TRAP_LWP
events do not break signal reporting.

(mgorny)

2020-02-13 15:26:18 UTC MAIN commitmail json YAML

Test whether signal handler is called in concurrent bombarding

(mgorny)

2020-02-13 15:25:58 UTC MAIN commitmail json YAML

Extend concurrent signal tests to pass signal back to the thread

(mgorny)

2020-02-13 15:25:29 UTC MAIN commitmail json YAML

Generalize thread_concurrent_signals to a generic factory

Build thread_concurrent_signals on a generic parametrized
thread_concurrent_test() function.  At first, this permits adjusting
the number of running signal threads but in the followup commits
support for different concurrent events (breakpoints, watchpoints)
and different signal handling will be added.

(mgorny)

2020-02-13 13:38:44 UTC MAIN commitmail json YAML

Disable UBSan warnings for trigger_segv()

Dereferencing the NULL pointer is on purpose.

(kamil)

2020-02-13 13:34:48 UTC MAIN commitmail json YAML

Disable UBSan reports in trigger_fpe()

Division by 0 is on purpose.

(kamil)

2020-02-13 12:23:40 UTC MAIN commitmail json YAML

binutils-2.34 and gdb-9.1 out.

(wiz)

2020-02-13 07:40:24 UTC MAIN commitmail json YAML

Bump the amount of KMEM allowed to 1/3rd of KVM.  _ARCH_ARM_6 has a split
of 2:2 and others have a split of 3:1.

Tested by martin@  Thanks

(skrll)

2020-02-13 06:28:25 UTC MAIN commitmail json YAML

2020-02-13 05:19:05 UTC MAIN commitmail json YAML

When expanding a here-doc (NXHERE - the type with an unquoted end delim)
the output will not be further processed (at all) so there is no need
to escape magic chars in the output, and doing so leaves stray CTLESC
chars in the here doc text.  Not good.  So don't do that...

To save a strlen() of the result, to determine the size of the here doc,
make rmescapes() return the length of the resulting string (this isn't
needed for other uses, so didn't happen previously).

Reported on current-users@ (2020-02-06) by Jun Ebihara

XXX pullup -9

(kre)

2020-02-13 02:53:46 UTC MAIN commitmail json YAML

Turn off optimization on a function which contains constant labels.
The optimizer splits it and we end up with 2 copies and duplicate symbols.

(christos)

2020-02-13 02:12:07 UTC MAIN commitmail json YAML

2020-02-13 00:42:59 UTC MAIN commitmail json YAML

Since all ITS instances share a common LPI configuration table, used a
shared vmem arena to allocate pic irqs. Idea from FreeBSD.

(jmcneill)

2020-02-13 00:02:40 UTC MAIN commitmail json YAML

Enable MSI and MSI-X support on N1SDP

(jmcneill)

2020-02-13 00:02:21 UTC MAIN commitmail json YAML

2020-02-12 22:34:51 UTC MAIN commitmail json YAML

adjust the PCI interrupt allocation code to work the same as
drm_pci_request_irq(), now the driver successfully allocates MSI interrupt

[  3.6619808] nouveau0: info: NVIDIA GK208B (b06070b1)
[  3.7685336] nouveau0: info: bios: version 80.28.78.00.4b
[  3.7785491] nouveau0: interrupting at msi8 vec 0 (nouveau0)

related to PR kern/52440 by John D. Baker

(jdolecek)

2020-02-12 20:31:46 UTC MAIN commitmail json YAML

remove superfluous static variable used only to zero attach args

(jdolecek)

2020-02-12 20:25:48 UTC MAIN commitmail json YAML

don't consider it error when nouveaufbbus fails to attach, it currently
can happen only not configured into the kernel

(jdolecek)

2020-02-12 20:24:07 UTC netbsd-7-0 commitmail json YAML

2020-02-12 20:23:39 UTC netbsd-7-0 commitmail json YAML

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

external/bsd/ppp/dist/pppd/eap.c: revision 1.5

pppd: Fix bounds check in EAP code

Given that we have just checked vallen < len, it can never be the case
that vallen >= len + sizeof(rhostname).  This fixes the check so we
actually avoid overflowing the rhostname array.

Reported-by: Ilja Van Sprundel <ivansprundel%ioactive.com@localhost>

Signed-off-by: Paul Mackerras <paulus%ozlabs.org@localhost>

From:
https://github.com/paulusmack/ppp/commit/8d7970b8f3db727fe798b65f3377fe6787575426

(martin)

2020-02-12 20:22:37 UTC MAIN commitmail json YAML

mark case fallthrough to avoid warning

(jdolecek)

2020-02-12 20:22:35 UTC netbsd-7-1 commitmail json YAML

2020-02-12 20:22:07 UTC netbsd-7-1 commitmail json YAML

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

external/bsd/ppp/dist/pppd/eap.c: revision 1.5

pppd: Fix bounds check in EAP code

Given that we have just checked vallen < len, it can never be the case
that vallen >= len + sizeof(rhostname).  This fixes the check so we
actually avoid overflowing the rhostname array.

Reported-by: Ilja Van Sprundel <ivansprundel%ioactive.com@localhost>

Signed-off-by: Paul Mackerras <paulus%ozlabs.org@localhost>

From:
https://github.com/paulusmack/ppp/commit/8d7970b8f3db727fe798b65f3377fe6787575426

(martin)

2020-02-12 20:21:12 UTC netbsd-7 commitmail json YAML

2020-02-12 20:19:10 UTC netbsd-7 commitmail json YAML

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

external/bsd/ppp/dist/pppd/eap.c: revision 1.5

pppd: Fix bounds check in EAP code

Given that we have just checked vallen < len, it can never be the case
that vallen >= len + sizeof(rhostname).  This fixes the check so we
actually avoid overflowing the rhostname array.

Reported-by: Ilja Van Sprundel <ivansprundel%ioactive.com@localhost>

Signed-off-by: Paul Mackerras <paulus%ozlabs.org@localhost>

From:
https://github.com/paulusmack/ppp/commit/8d7970b8f3db727fe798b65f3377fe6787575426

(martin)

2020-02-12 20:17:14 UTC netbsd-7 commitmail json YAML

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

sys/arch/mac68k/nubus/grf_nubus.c: revision 1.78

Set sc_dev field of softc.
Should pullup to 7.

(martin)

2020-02-12 20:15:04 UTC netbsd-8 commitmail json YAML

2020-02-12 20:13:57 UTC netbsd-8 commitmail json YAML

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

external/bsd/ppp/dist/pppd/eap.c: revision 1.5

pppd: Fix bounds check in EAP code

Given that we have just checked vallen < len, it can never be the case
that vallen >= len + sizeof(rhostname).  This fixes the check so we
actually avoid overflowing the rhostname array.

Reported-by: Ilja Van Sprundel <ivansprundel%ioactive.com@localhost>

Signed-off-by: Paul Mackerras <paulus%ozlabs.org@localhost>

From:
https://github.com/paulusmack/ppp/commit/8d7970b8f3db727fe798b65f3377fe6787575426

(martin)

2020-02-12 20:11:33 UTC netbsd-9 commitmail json YAML

2020-02-12 20:10:10 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #705):

sys/arch/aarch64/aarch64/aarch64_machdep.c: revision 1.35
sys/stand/efiboot/efifdt.c: revision 1.20
sys/stand/efiboot/efifdt.h: revision 1.7
sys/arch/aarch64/include/machdep.h: revision 1.9
sys/stand/efiboot/efiboot.h: revision 1.11
sys/arch/arm/arm32/arm32_machdep.c: revision 1.129
sys/arch/arm/include/arm32/machdep.h: revision 1.30
sys/stand/efiboot/exec.c: revision 1.12
sys/arch/evbarm/fdt/fdt_machdep.c: revision 1.65
sys/stand/efiboot/version: revision 1.14
sys/stand/efiboot/boot.c: revision 1.19

New function cpu_startup_hook on arm.

Called at end of cpu_startup.  Can be defined in, e.g., evbarm to do
additional stuff after cpu_startup.  Defined as a weak alias to a
function that does nothing, so optional.
ok jmcneill

Implement rndseed support in efiboot and fdt arm.

The EFI environment variable `rndseed' specifies the path to the
random seed.  It is loaded only for fdt platforms at the moment.
Since the rndseed (an rndsave_t object as defined in <sys/rndio.h>)
is 536 bytes long (for hysterical raisins), and to avoid having to
erase parts of the fdt tree, we load it into a physical page whose
address is passed in the fdt tree, rather than passing the content of
the file as an fdt node directly; the kernel then reserves the page
from uvm, and maps it into kva to call rnd_seed.

For now, the only kernel that does use efiboot with fdt is evbarm,
which knows to handle the rndseed.  Any new kernels that use efiboot
with fdt must do the same; otherwise uvm may hand out the page with
the secret key on it for a normal page allocation in the kernel --
which should be OK if there are no kernel memory disclosure bugs, but
would lead to worse consequences than simply loading the seed late in
userland with /etc/rc.d/random_seed otherwise.

ok jmcneill

(martin)

2020-02-12 20:08:32 UTC MAIN commitmail json YAML

fix error path when nouveaufb fails to attach (such as when it's not
actually configured into the kernel), the gem was not released
properly leading to:
panic: LOCKDEBUG: Reader / writer lock error: kmem_intr_free,289: allocation contains active lock

(jdolecek)

2020-02-12 20:05:58 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #704):

sys/dev/usb/uatp.c: revision 1.20
sys/dev/usb/uatp.c: revision 1.21
sys/dev/usb/uatp.c: revision 1.22
sys/dev/usb/uatp.c: revision 1.23

Work around quirk of Fountain and Geyser 1 trackpads.

Sometimes they get desynchronized, but we know the last packet is a
17-byte packet, so if we get one early then stop here.

Tested by macallan on an iBook and a PowerBook.  This code path
shouldn't break anything on MacBooks because they have different
total numbers of sensors so this branch won't be reached.

Downgrade noisy message from aprint_verbose to DPRINTF.

Unconditionally enable UATP_DEBUG.

Use __BIT.

(martin)

2020-02-12 20:02:20 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #703):

sys/external/bsd/common/linux/linux_work.c: revision 1.45

Fix abuse of TAILQ_CONCAT.

Other parts of this expect that the entries will be on wq->wq_queue
or wq->wq_dqueue, so we can't just move a batch of entries onto a
temporary queue.  Instead, use a marker node to delimit when the
batch ends.

XXX pullup

(martin)

2020-02-12 19:59:22 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #702):

sys/miscfs/kernfs/kernfs_vfsops.c: revision 1.98
sys/miscfs/kernfs/kernfs_vnops.c: revision 1.163
sys/miscfs/kernfs/kernfs.h: revision 1.43

Use specfs vnops for specnodes in kernfs.

While here, don't filter out rootdev and rrootdev merely because
they're not cached.

Fixes the elusive /kern/rootdev and /kern/rrootdev nodes, which only
appeared sometimes when they felt like it, and fixes operations on
/kern/rootdev and /kern/rrootdev always returning EOPNOTSUPP.

We didn't seem to have a single PR for these issues but the following
PRs are all relevant:

PR bin/13564
PR kern/38265
PR kern/38778
PR kern/45974

XXX pullup-9, pullup-8, pullup-7, pullup-6, pullup-5, pullup-4, pullup-3, p=
ullup-2, pullup-1.4T...

(martin)

2020-02-12 19:55:57 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #701):

external/cddl/osnet/dev/dtrace/aarch64/dtrace_isa.c: revision 1.2
external/cddl/osnet/dist/lib/libdtrace/common/dt_open.c: revision 1.17
external/cddl/osnet/dist/lib/libdtrace/common/dt_module.c: revision 1.18
sys/modules/cyclic/Makefile: revision 1.5
external/cddl/osnet/dev/dtrace/aarch64/dtrace_subr.c: revision 1.2
external/cddl/osnet/dev/dtrace/aarch64/dtrace_subr.c: revision 1.3
sys/arch/aarch64/aarch64/vectors.S: revision 1.10
external/cddl/osnet/dev/fbt/aarch64/fbt_isa.c: revision 1.2
external/cddl/osnet/dev/fbt/aarch64/fbt_isa.c: revision 1.3
external/cddl/osnet/dev/fbt/aarch64/fbt_isa.c: revision 1.4
external/cddl/osnet/dev/fbt/aarch64/fbt_isa.c: revision 1.5
external/cddl/osnet/dev/fbt/aarch64/fbt_isa.c: revision 1.6
sys/arch/aarch64/include/cpu.h: revision 1.20
external/cddl/osnet/dist/lib/libdtrace/common/dt_impl.h: revision 1.9

Create a buffer space of 512 bytes before the trapframe.

dtrace fbt needs enough space to emulate an

        stp    x29, x30, [sp,#-FRAMESIZE]!

instruction in a function prologue.  In the aarch64 instruction
encoding, FRAMESIZE can be as large as 512 bytes, so reserve this
much space when KDTRACE_HOOKS is enabled.

Use db_write_bytes to overwrite kernel text.

Tidy up a bit.  No functional change intended.

aarch64 fbt_invop doesn't actually use the argument, but it would
make more sense for it to be the return value and/or first argument
register.  Certainly it's not `eax'!

Tidy up a bit: don't set things we won't use; assert nonzeroness.

Use /dev/ksyms, not /netbsd, for the running kernel's symbols.

Teach dtrace about el1_trap_exit frames on aarch64.

Implement dtrace_getarg and dtrace_getreg while here.

Count the number of artificial frames in aarch64 fbt probe correctly.

Change the address ranges that aarch64 considers toxic for dtrace.
`Toxic' means dtrace forbids D scripts from even attempting to read
or write at them.

Previously we considered [0, VM_MIN_KERNEL_ADDRESS) toxic, but
VM_MIN_KERNEL_ADDRESS is only the minimum address of the kernel map;
the direct-mapped region lies below it, and with PMAP_MAP_POOLPAGE we
allocate virtual pages for pool backing directly from physical pages
through the direct-mapped region.  Also, this did not consider I/O
mappings to be toxic, which they probably should be.

Instead, treat:

[0, AARCH64_KSEG_START)
and
[VM_KERNEL_IO_ADDRESS, 0xfff...ff)

as toxic.  (The upper bound for 0xfff...ff ought to be inclusive, not
exclusive, but I think we'll need another mechanism for expressing
that to dtrace!)

Switch from db_write_bytes to using direct-mapping.

This way there's no dependency on ddb.

Define the MULTIPROCESSOR cpu_number() for modules too.
Modules should work whether the main kernel is multiprocessor or not.
In particular, dtrace should not think cpu_number() is 0 while
cpu_index(curcpu()) and curcpu()->ci_index are nonzero, leading to
rather spectacularly bogus results...

cyclic.kmod needs -Wno-sign-compare for aarch64 CPU_INFO_FOREACH.
Provisional workaround; feel free to fix.

(martin)

2020-02-12 19:55:32 UTC MAIN commitmail json YAML

Allow a configuration to specify an arbitrary address where the
compressed kernel image is located, in the event it can't be appended
to or embedded within the gzboot binary itself.

(thorpej)

2020-02-12 19:44:27 UTC netbsd-9 commitmail json YAML

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

share/man/man5/fstab.5: revision 1.45

fstab.5: add mention of zfs

(martin)

2020-02-12 19:41:13 UTC netbsd-9 commitmail json YAML

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

sys/net/npf/npf_ruleset.c: revision 1.50

PR/54950: Lloyd Parkes: Avoid NULL deref.

(martin)

2020-02-12 19:37:33 UTC netbsd-9 commitmail json YAML

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

external/bsd/ppp/dist/pppd/eap.c: revision 1.5

pppd: Fix bounds check in EAP code

Given that we have just checked vallen < len, it can never be the case
that vallen >= len + sizeof(rhostname).  This fixes the check so we
actually avoid overflowing the rhostname array.

Reported-by: Ilja Van Sprundel <ivansprundel%ioactive.com@localhost>

Signed-off-by: Paul Mackerras <paulus%ozlabs.org@localhost>

From:
https://github.com/paulusmack/ppp/commit/8d7970b8f3db727fe798b65f3377fe6787575426

(martin)

2020-02-12 19:35:31 UTC netbsd-9 commitmail json YAML

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

sys/kern/kern_lwp.c: revision 1.224
sys/kern/kern_lwp.c: revision 1.225

Preserve pcu(9) state in fork.

There should perhaps be a pcu_fork operation to keep this factored
neatly but this will be simpler to pull up.

In practical terms, this may not affect most architecture that use
pcu(9) -- alpha, arm32, mips, powerpc, riscv -- but it does affect
aarch64, in which v8-v15 are callee-saves, and GCC actually takes
advantage of them, and for more than just floating-point data too.

XXX pullup

fix compilation failure for arches without l_pcu_valid
ok riastradh

(martin)

2020-02-12 18:35:02 UTC MAIN commitmail json YAML

re-enable MSI - this actually enables MSI only for intel/radeon/generic
which are reported to work fine, while nouveau (which breaks with
MSI) still uses INTx

see the thread
http://mail-index.netbsd.org/current-users/2020/02/06/msg037661.html

(jdolecek)

2020-02-12 18:11:30 UTC MAIN commitmail json YAML

Because everything goes into the same memory region at run-time in this
configuration *and* image data concatenated onto the end, the BSS segment
needs to be allocated in the file.

(thorpej)

2020-02-12 17:36:41 UTC MAIN commitmail json YAML

Convert the DEBUG code in pmap_grow_map to DIAGNOSTIC

(skrll)

2020-02-12 17:34:18 UTC MAIN commitmail json YAML

Add a CTASSERT to pmap_grow_l2_bucket that PAGE_SIZE is a multiple of
L2_TABLE_SIZE_REAL.

(skrll)

2020-02-12 17:31:51 UTC MAIN commitmail json YAML

Add a KASERT that we're not overwriting anything in pmap_growkernel

(skrll)

2020-02-12 16:50:37 UTC MAIN commitmail json YAML

meta_compat_parent check for USE_FILEMON

patch from Soeren Tempel

(sjg)

2020-02-12 16:08:19 UTC MAIN commitmail json YAML

Minor changes to make pmap_grow_l2_bucket look more like
pmap_alloc_l2_bucket.  NFCI.

(skrll)

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

Fix steady state of root intr xfers.

Why?

- Avoid completing a root intr xfer multiple times in races.
- Avoid potential use-after-free in poll_hub callouts (uhci, ahci).

How?

- Use sc->sc_intr_xfer or equivalent to store only a pending xfer
  that has not yet completed -- whether successfully, by timeout, or
  by synchronous abort.  When any of those happens, set it to null
  under the lock, so the xfer is completed only once.

- For hci drivers that use a callout to poll the root hub (uhci, ahci):

  . Pass the softc pointer, not the xfer, to the callout, so the
    callout is not even tempted to use xfer after free -- if the
    callout fires, but the xfer is synchronously aborted before the
    callout can do anything, the xfer might be freed by the time the
    callout starts to examine it.

  . Teach the callout to do nothing if it is callout_pending after it
    has fired.  This way:

    1. completion or synchronous abort can just callout_stop
    2. start can just callout_schedule

    If the callout had already fired before (1), and doesn't acquire
    the bus lock until after (2), it may be tempted to abort the new
    root intr xfer just after submission, which would be wrong -- so
    instead we just have the callout do nothing if it notices it has
    been rescheduled, since it will fire again after the appropriate
    time has elapsed.

(riastradh)

2020-02-12 16:01:00 UTC MAIN commitmail json YAML

Factor out HCI-independent xfer completion logic.

New API for HCI drivers to synchronize hardware completion
interrupts, synchronous aborts, and asynchronous timeouts:

- When submitting an xfer to hardware, call
  usbd_xfer_schedule_timeout(xfer).

- On HCI completion interrupt for xfer completion:

if (!usbd_xfer_trycomplete(xfer))
return; /* timed out or aborted, ignore it */

- In upm_abort methods, call usbd_xfer_abort(xfer).

For HCI drivers that use this API (not needed in drivers that don't,
or for xfers like root intr xfers that don't use it):

- New ubm_abortx method serves role of former *hci_abort_xfer, but
  without any logic for wrangling timeouts/callouts/tasks -- caller
  in usbd_xfer_abort has already handled them.

- New ubm_dying method, returns true if the device is in the process
  of detaching, used by the timeout logic.

Converted and tested:
- ehci
- ohci

Converted and compile-tested:
- ahci (XXX did this ever work?)
- dwc2
- motg (XXX missing usbd_xfer_schedule_timeout in motg_*_start?)
- uhci
- xhci

Not changed:

- slhci (sys/dev/ic/sl811hs.c) -- doesn't use a separate per-xfer
  callout for timeouts (XXX but maybe should?)

- ugenhc (sys/rump/dev/lib/libugenhc/ugenhc.c) -- doesn't manage its
  own transfer timeouts

- vhci -- times transfers out only on detach; could be adapted easily
  if we wanted to use the xfer->ux_callout

(riastradh)

2020-02-12 16:00:34 UTC MAIN commitmail json YAML

Fix steady state of timeouts in ehci.

This is complicated because:

1. There are three ways that an xfer can be completed:
  (a) hardware interrupt completes xfer
  (b) software decision aborts xfer with USBD_CANCELLED
  (c) timeout aborts xfer with USBD_TIMEOUT

2. The timeout abort can't be done in callout because ehci_sync_hc,
  called unconditionally by ehci_abort_xfer to wait until the device
  has finished using any references to the xfer, may sleep.  So we
  have to schedule a callout that, when run, will schedule a usb_task.

3. The hardware completion interrupt can't sleep waiting for a callout
  or task to finish -- can't use callout_halt or usb_rem_task_wait.
  So the callout and usb_task must be able to run _after_ the hardware
  completion interrupt, and recognize that they're late to the party.

  (Note, though, that usbd_free_xfer does wait for the callout and
  task to complete, so there's no danger they may use themselves after
  free.)

4. The xfer may resubmitted -- and the timeout may be rescheduled --
  immediately after the hardware completion interrupt, _while_ the
  callout and/or usb_task may still be scheduled.  Specifically, we
  may have the following sequence of events:
  (a) hardware completion interrupt
  (b) callout or usb_task fires
  (c) driver resubmits xfer
  (d) callout or usb_task acquires lock and looks around dazed and
      bewildered at the firehose of events like reading the news in 2019

The mechanism for sorting this out is that we have two bits of state:

- xfer->ux_timeout_set informs the driver, when submitting an xfer and
  setting up its timeout, whether either the callout or usb_task is
  already scheduled or not.

- xfer->ux_timeout_reset informs the callout or usb_task whether it
  should reschedule the callout, because the xfer got resubmitted, or
  not.

(riastradh)

2020-02-12 16:00:17 UTC MAIN commitmail json YAML

New xfer state variables ux_timeout_set and ux_timeout_reset.

These are needed because:

- The host controller interrupt cannot wait for the callout or task
  to finish running.

- Nothing in the USBD API as is waits for the callout or task to
  finish running.

- Callers expect to be able to resubmit USB xfers from xfer callbacks
  without waiting for anything to finish running.

The variable ux_timeout_set can be used by a host controller to
decide on submission whether to schedule the callout or to ask an
already-scheduled callout or already-queued task to reschedule the
callout, by setting the variable ux_timeout_reset to true.

When the callout or task runs and sees that ux_timeout_reset is true,
rather than queue the task or abort the xfer, it can instead just
schedule the callout anew.

(riastradh)

2020-02-12 15:59:59 UTC MAIN commitmail json YAML

Nothing guarantees xfer's timeout has completed.

Wait for it when we free the xfer.

(riastradh)

2020-02-12 15:59:44 UTC MAIN commitmail json YAML

New function usb_task_pending for diagnostic assertions.

Usable only for negative diagnostic assertions:

KASSERT(!usb_task_pending(dev, task))

If you can think of a better name for this than !usb_task_pending,
I'm all ears.

(riastradh)

2020-02-12 15:59:30 UTC MAIN commitmail json YAML

Teach usb_rem_task to return whether removed from queue or not.

(riastradh)

2020-02-12 09:43:19 UTC MAIN commitmail json YAML

Fix a thinko

Reported by qjsgkem via #netbsd-code, thanks!

(leot)

2020-02-12 07:02:21 UTC MAIN commitmail json YAML

Add sentinel to the testtable[] array.

(martin)

2020-02-12 07:02:08 UTC MAIN commitmail json YAML

2020-02-12 06:57:35 UTC MAIN commitmail json YAML

Add gzboot support for NSLU2.  This is a work-in-progress.  This configuration
follows the existing NSLU2 RedBoot default bootstrap procedure.  (Other
configurations are possible, but not yet implemented.)

(thorpej)

2020-02-12 06:41:44 UTC MAIN commitmail json YAML

Remove wrong KASSERTs because mutex_owned for a spin lock doesn't check
that a lock is held in the current context.

(yamaguchi)

2020-02-12 06:37:21 UTC MAIN commitmail json YAML

Use Set RSS key command and Set LUT command to enable RSS on X722

(yamaguchi)

2020-02-12 06:36:19 UTC MAIN commitmail json YAML

cyclic.kmod needs -Wno-sign-compare for aarch64 CPU_INFO_FOREACH.

Provisional workaround; feel free to fix.

(riastradh)

2020-02-12 06:26:02 UTC MAIN commitmail json YAML

xl(4) should use the aq command to access RX control registers
if the device is X722 or others whose API version is upper than 1.5

(yamaguchi)

2020-02-12 06:21:44 UTC MAIN commitmail json YAML

Fix a wrong comment in ixl(4)

(yamaguchi)

2020-02-12 06:20:13 UTC MAIN commitmail json YAML

Change the command sequence and timing to prevent EIO
in "Get PHY Abilities" command

The error has been appeared on X722 attaching an SFP module
without link up.

(yamaguchi)

2020-02-12 06:05:46 UTC MAIN commitmail json YAML

Define the MULTIPROCESSOR cpu_number() for modules too.

Modules should work whether the main kernel is multiprocessor or not.
In particular, dtrace should not think cpu_number() is 0 while
cpu_index(curcpu()) and curcpu()->ci_index are nonzero, leading to
rather spectacularly bogus results...

(riastradh)

2020-02-12 06:05:31 UTC MAIN commitmail json YAML

Switch from db_write_bytes to using direct-mapping.

This way there's no dependency on ddb.

(riastradh)

2020-02-12 06:05:23 UTC MAIN commitmail json YAML

Change the address ranges that aarch64 considers toxic for dtrace.

`Toxic' means dtrace forbids D scripts from even attempting to read
or write at them.

Previously we considered [0, VM_MIN_KERNEL_ADDRESS) toxic, but
VM_MIN_KERNEL_ADDRESS is only the minimum address of the kernel map;
the direct-mapped region lies below it, and with PMAP_MAP_POOLPAGE we
allocate virtual pages for pool backing directly from physical pages
through the direct-mapped region.  Also, this did not consider I/O
mappings to be toxic, which they probably should be.

Instead, treat:

[0, AARCH64_KSEG_START)
and
[VM_KERNEL_IO_ADDRESS, 0xfff...ff)

as toxic.  (The upper bound for 0xfff...ff ought to be inclusive, not
exclusive, but I think we'll need another mechanism for expressing
that to dtrace!)

(riastradh)

2020-02-12 05:44:26 UTC MAIN commitmail json YAML

Correct the location of SDRAM in the comment describing the IXP425
memory map.  SDRAM is located at 0x00000000 and has aliases at 0x10000000,
0x20000000, and 0x30000000.

(thorpej)

2020-02-12 01:51:52 UTC MAIN commitmail json YAML

pppd: Fix bounds check in EAP code

Given that we have just checked vallen < len, it can never be the case
that vallen >= len + sizeof(rhostname).  This fixes the check so we
actually avoid overflowing the rhostname array.

Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>

From:
https://github.com/paulusmack/ppp/commit/8d7970b8f3db727fe798b65f3377fe6787575426

(christos)

2020-02-12 01:34:55 UTC MAIN commitmail json YAML

PR/54950: Lloyd Parkes: Avoid NULL deref.

(christos)

2020-02-12 01:10:25 UTC MAIN commitmail json YAML

Count the number of artificial frames in aarch64 fbt probe correctly.

(riastradh)

2020-02-12 01:10:16 UTC MAIN commitmail json YAML

Teach dtrace about el1_trap_exit frames on aarch64.

Implement dtrace_getarg and dtrace_getreg while here.

(riastradh)