Commit Graph

302306 Commits

Author SHA1 Message Date
nat 53cc748afe Mention changes to bta2dpd(8). 2023-07-21 02:16:20 +00:00
nat 1663fafd53 Reorder for readability.
No functional change intended.

XXX pullup-10.
2023-07-21 02:11:18 +00:00
riastradh 67dc2b7d6f i386/XEN3PAE_DOMU: Enable KDTRACE_HOOKS.
XXX pullup-10
2023-07-21 02:10:37 +00:00
riastradh 7bb7566d76 i386/XEN3PAE_DOM0: Enable KDTRACE_HOOKS.
XXX pullup-10
2023-07-21 02:08:45 +00:00
riastradh f5b4dac6fd amd64/XEN3_DOMU: Enable KDTRACE_HOOKS.
XXX pullup-10
2023-07-21 02:04:52 +00:00
knakahara 67794c2fe1 Use kmem_free instead of kmem_intr_free, as key_freesaval() is not called in softint after key.c:r1.223.
E.g. key_freesaval() was called the following call path before SAD MP-ify.
  esp_input_cb()
    KEY_FREESAV()
      key_freesav()
        key_delsav()
          key_freesaval()

ok'ed by ozaki-r@n.o.
2023-07-21 00:44:38 +00:00
gutteridge ef45500611 octeon_gmx.c: fix spelling in (default disabled) error messages 2023-07-20 23:31:27 +00:00
gutteridge a20ee0c592 socket.2: simplify and improve some phrasing 2023-07-20 23:28:44 +00:00
riastradh 97560bd7b0 amdgpu: Mark float-dependent variables volatile.
This way they are computed -- using FP instructions -- before
DC_FP_END, after which point FP instructions will trap or behave
unpredictably.

This is a workaround, not a proper solution -- really, the
DC_FP_START/END calls should happen in a separate compilation unit
built without -mhard-float or whatever, but that's a lot more work to
make happen for now.

PR kern/57059

XXX pullup-10
2023-07-20 21:48:49 +00:00
lukem 2756562594 pax: fix -Wformat for host tool 2023-07-20 20:10:59 +00:00
lukem 21fbd5bbde pax: need <strings.h> for ffs()
Fixes warning as host tool on NetBSD 9.99
2023-07-20 20:09:49 +00:00
mrg d6a34bb1ef various debug updates for some usb drivers
- several new *_DEBUG_DEFAULT options that allow usb debug values to
  be set to a default that is non-zero:
  EHCI_DEBUG_DEFAULT, UGEN_DEBUG_DEFAULT, URTWN_DEBUG_DEFAULT,
  UMS_DEBUG_DEFAULT, and USB_DEBUG_DEFAULT
- ugen debug uses fewer usbhist lines for the same info
- ums.c converted from printf() to usbhist
2023-07-20 20:00:34 +00:00
lukem 995dd11d74 ctags: fix pointer-sign issues
Refactor init() to avoid -Wpointer-sign for host builds.
Uses same cast pattern used in ctags.h.
2023-07-20 20:00:07 +00:00
mrg b478b13b30 avoid calling drm_sched_fini() for AMDGPU_RING_TYPE_KIQ rings.
drm_sched_init() is not called for these rings, and we'd panic trying
to mutex_destroy() a mutex that wasn't initialised.

this seems like a general bug, not a bug in netbsd port.
2023-07-20 18:02:45 +00:00
lukem 569efedda5 tools/compat: regen 2023-07-20 16:22:30 +00:00
lukem 4815827f69 tools: binstall can use posix_spawn() instead of vfork() 2023-07-20 16:21:23 +00:00
lukem 307596b164 tools/make: regen 2023-07-20 15:20:00 +00:00
lukem a08c7a13b0 tools/compat: regen 2023-07-20 15:18:34 +00:00
lukem 54f2e3827e tools/make: build with -Wno-deprecated-declarations
Use NB_CHECK_CC_FLAG() from ../tools/compat to determine
if the compiler supports -Wno-deprecated-declarations.
Avoids sooking about vfork() on macOS.
2023-07-20 15:16:44 +00:00
lukem 27a8da3b8e tools/compat: provide nb_check_cc_flag.m4
Implement m4 macro NB_CHECK_CC_FLAG(FLAG, [VAR=FLAG_DERIVED])
	Determine if the C compiler supports FLAG,
	and sets output variable VAR to FLAG if FLAG is supported.

	If VAR is not provided, default to FLAG_DERIVED, which is
	FLAG converted to upper-case and all special characters
	replaced with "_", and the result prepended with "CC_".
	FLAG_DERIVED is appended to the m4 macro NB_CHECK_CC_FLAG_VARS.
	E.g., if FLAG is "-Wexample=yes", FLAG_DERIVED is "CC_WEXAMPLE_YES".

This is implemented in separate buildaux/nb_check_cc_flag.m4,
based on configure's NB_CC_FLAG(), but supports VAR override.

Adapt configure from internal NB_CC_FLAG() to NB_CHECK_CC_FLAG().

(Note: AX_CHECK_COMPILE_FLAG() from autoconf-archive could be enhanced
to support the clang and gcc workarounds I've implemented here.)
2023-07-20 15:15:23 +00:00
lukem c75b14aa91 tools/make/buildmake.sh: fix quoting
autoconf 2.69 generates @DEFS@ with definitions with
quoted embedded spaces, so rework how docmd() is invoked
to avoid weird quoting issues.

As part of this, remove all the shell variables containing @var@
and just use @var@ directly.
2023-07-20 15:13:27 +00:00
lukem 8a8613b19b tools/make/configure.ac: style tweaks
Consistently use () in zero argument macro calls.
Display results at end.
2023-07-20 15:12:36 +00:00
nat 36c20958be Fix formatting.
XXX pullup-10.
2023-07-20 13:31:31 +00:00
nat b0ae8f5305 Add BUGS section to manual page.
This notes the problems with playback from file on certain devices.

XXX pullup-10
2023-07-20 13:28:47 +00:00
nat 5d3fbf052c Add thottling when playing from file.
This avoids rapid playback when playing from file with affected devices.

Playback using pad(4) is still preferred ad gives a better result.
Playback from pad(4) is unaffected by this change.

XXX pullup-10.
2023-07-20 12:33:27 +00:00
riastradh c10d630225 xhci(4): Don't panic on suspend if previous suspend/resume failed.
Trying to resume again probably won't make the situation much worse,
but panicking can definitely make it worse.

XXX pullup-10
2023-07-20 11:59:04 +00:00
mrg b82bc0398d regen for earmv4/earmv4eb. 2023-07-20 04:30:39 +00:00
gutteridge 7a42da0231 entropy.7: add a missing word to a sentence
While here, bump the date to reflect when substantive changes were last
made.
2023-07-20 04:16:14 +00:00
rillig 57e6976b41 lint: work around a possible compiler error on arm and powerpc 2023-07-19 22:24:28 +00:00
mrg ad3db949b1 mknative-gcc for earmv4*.
delete obsolete or1k and coldfire configurations.
2023-07-19 19:23:25 +00:00
martin ce01b03dd1 Warn to clean gcc objectdirs for updated compiler. 2023-07-19 17:49:40 +00:00
lukem 747c3dee36 BUILDING: consistency fix 2023-07-19 15:40:38 +00:00
wiz 3523ae4710 openssh-9.3p2 out 2023-07-19 14:44:14 +00:00
roy 4308e63ce2 Note import of dhcpcd-10.0.2 2023-07-19 13:59:01 +00:00
roy 4aeb2dd15c Sync with dhcpcd-10.0.2 2023-07-19 13:53:03 +00:00
roy f3ce8585ec Import dhcpcd-10.0.2 with the following changes:
* BSD: When we get RTM_NEWADDR the interface must have IFF_UP
 * BSD: Fix non INET6 builds
 * DHCP: Don't enforce the message came port 67
 * privsep: Allow zero length messages through
 * dhcpcd: deal with HANGUP and EPIPE better
 * dhcpcd: Fix waitip address family
 * privsep: Check if we have a root process before sending it stuff
 * privsep: Only unlink control sockets if we created them
 * common: Improve valid_domain and check correct return
 * common: Allow hwaddr_ntoa to print an empty string
 * privsep: Send only what we have put in the buffer to script env
2023-07-19 13:51:07 +00:00
macallan 9404ac3866 - make colour depth in fb mode configurable, default to 8bit
- support ioctl(FBIO*CMAP)
2023-07-19 10:22:15 +00:00
lukem 3cb563b335 build.sh: use mk.conf (if present) as MAKECONF
Set MAKECONF to mk.conf in the same directory as build.sh
(i.e., the top of the source tree) if mk.conf is present.
This means unprivileged users can benefit from mk.conf(5)
semantics without write privileges to /etc/mk.conf, and
also simplifies per-source-directory configuration.

Fail early if $MAKECONF is empty, since build.sh will fail
anyway after rebuilding nbmake.

Ensure that the computed MAKECONF isn't empty, and then
always set MAKECONF in the makewrapper (nbmake-$MACHINE).

Improve some formatting consistency in BUILDING.mdoc,
(even if BUILDING is generated without markup).
2023-07-18 16:59:57 +00:00
riastradh fdaf53a0d2 hdafg(4): Do hotplug detection in kthread, not callout.
This can sometimes take a while (~1ms), and the logic to suspend the
callout on device suspend/resume was racy (PR kern/57322).

XXX pullup-8
XXX pullup-9
XXX pullup-10
2023-07-18 13:35:57 +00:00
riastradh 4bbd915466 x86/fpu: In kernel mode fpu traps, print the instruction pointer. 2023-07-18 12:34:25 +00:00
riastradh 841a5477f2 autoconf(9): Print `waiting for devices' normally once a minute. 2023-07-18 11:57:37 +00:00
riastradh fc38accc7e rbtree(3): Fix RBDEBUG build with RB_TREE_INITIALIZER.
XXX pullup-10
2023-07-18 11:46:47 +00:00
riastradh 6df7a1dc79 libc: Use RB_TREE_INITIALIZER to nix initfini.c/_env.c coupling.
Doesn't actually help to remove _env.c from programs that don't use
it, though, because various internal things like __diagassert13 still
call getenv.
2023-07-18 11:44:32 +00:00
riastradh 0ee4fb8f67 rbtree(3): New RB_TREE_INITIALIZER macro.
Allows static initialization of an rbtree.

XXX pullup-10
2023-07-18 11:43:21 +00:00
riastradh 37896b8e18 acpiec(4): One more debug message about read/write polling timeout. 2023-07-18 10:17:12 +00:00
riastradh cf29e175ba acpiec(4): Take a lock around acpiec_cold updates.
Otherwise we race with readers -- probably harmlessly, but let's
avoid the appearance of problems.

XXX Maybe acpiec_suspend and acpiec_shutdown should interrupt
transactions and force them to fail promptly?

XXX This looks bad because acpiec_cold is global and sc->sc_mtx
doesn't look like it's global, but we expect to have only one
acpiec(4) device anyway from what I understand.  Maybe we should move
acpiec_cold into the softc?
2023-07-18 10:17:02 +00:00
riastradh aa3033d429 acpiec(4): Factor out if (state == FREE) cv_signal(sc_cv).
In principle this could have a functional change, but at worst, it is
to signal more wakeups than needed, which should always be safe.
2023-07-18 10:10:49 +00:00
riastradh 7951f6ea6b acpiec(4): Pass softc, not device_t, to acpiec_space_handler.
Better to keep the device_t isolated to public interfaces.  Simpler
internally this way.

No functional change intended.
2023-07-18 10:06:55 +00:00
riastradh 78820b1981 acpiec(4): Pass softc, not device_t, to acpiec_gpe_query thread.
Simpler.

No functional change intended.
2023-07-18 10:06:44 +00:00
riastradh ed4f1b04b3 acpiec(4): Pass softc, not device_t, to acpiec_read/write.
Simpler, type-safer.

No functional change intended.
2023-07-18 10:06:33 +00:00