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 (1h)  netbsd-9 (7d)  netbsd-10 (7d)  netbsd-8 (9d)  thorpej-ifq (163d)  thorpej-altq-separation (165d) 

2024-04-27 19:25:57 UTC Now

2024-04-27 17:33:47 UTC MAIN commitmail json YAML

2024-04-27 14:54:58 UTC MAIN commitmail json YAML

mention that we handle battery controls too.

(christos)

2024-04-27 14:50:18 UTC MAIN commitmail json YAML

Expose a sysctl interface hw.acpi.thinkpad<M>.bat[<N>].<behavior> to control
some aspects of battery charging behavior on supported systems:

    charge_start
threshold below which to start charging (in %, 0-99)

    charge_stop
threshold above which to stop charging (in %, 1-100)

    force_discharge
discharge while on AC power, e.g., for calibration

    charge_inhibit
inhibit charging while on AC power

From Malte Dehling

(christos)

2024-04-27 14:45:11 UTC MAIN commitmail json YAML

thinkpad cosmetic patches (Malte Dehling)

(christos)

2024-04-27 14:42:21 UTC MAIN commitmail json YAML

Disable dmf* and dmz* entries and add warns "not integrated yet."

Also note tty[EFGH]? have been used by MI wscons and new tty node names
should be assigned once dmf(4) is committed.

Ok'ed by ragge@ on port-vax@.
https://mail-index.netbsd.org/port-vax/2024/02/13/msg004859.html

(tsutsui)

2024-04-27 12:46:37 UTC MAIN commitmail json YAML

lint: converting a null pointer to another pointer type is not narrowing

(rillig)

2024-04-27 10:08:55 UTC MAIN commitmail json YAML

2024-04-27 06:01:08 UTC MAIN commitmail json YAML

mips: fix syntax error in LDBL_MAX (since 2011)

(rillig)

2024-04-27 00:40:07 UTC MAIN commitmail json YAML

Remove 0 initializations (since the softc is zalloc'ed) and the initial
refresh which will have no data.

(christos)

2024-04-26 22:07:32 UTC MAIN commitmail json YAML

Add ${TOOL_DATE} (Jan-Benedict Glaw)

(christos)

2024-04-26 20:27:12 UTC MAIN commitmail json YAML

Create mobile-friendly directory listings

A typical mobile browser on a smartphone assumes a page without a "viewport"
<meta> tag is designed for desktop browsers. It displays the page in a
virtual window that simulates a wider screen and does not adjust it for
the phone's pixel density. The usual result is that the content on the page
looks small, and interacting with the page comfortably and precisely requires
zoom. This is currently the case with bozohttpd directory listing pages.

from D. Bohdan in PR bin/57962

(maya)

2024-04-26 18:21:25 UTC MAIN commitmail json YAML

PR/58202: Malte Dehling: Don't link libzfs

(christos)

2024-04-26 18:19:18 UTC MAIN commitmail json YAML

PR/58201: Malte Dehling: re-order sysmon initialization before acpi
registration, to avoid needing to call to acpi_deregister_notify on sysmon
failure.

(christos)

2024-04-26 18:06:02 UTC MAIN commitmail json YAML

PR/58200: Kouichi Hashikawa: ./makeobsolete uses platform's sed

(christos)

2024-04-26 17:38:44 UTC MAIN commitmail json YAML

2024-04-26 17:36:32 UTC MAIN commitmail json YAML

Remove modules set from the i386 install cd

It is not particularly useful to be able to load modules while
installing on i386, probably the most useful one is dtrace,
and this takes up about 20mb on a port that is already exceeding
CD limits. Most stuff you'd want to use while installing is already
in GENERIC.

The modules set is still available compressed for installing into
a target system, meaning modules are available after installation.

While here, add man set to the installation DVD, it's helpful to be able
to read e.g. the man page for fdisk when rescuing a system.

(nia)

2024-04-26 17:22:26 UTC MAIN commitmail json YAML

2024-04-26 17:11:22 UTC MAIN commitmail json YAML

make: in parallel mode, print the directory in which a job failed

When multiple targets run in parallel, the "stopped in" line may be
several lines away from the "Failed target" line, making them hard to
correlate.

(rillig)

2024-04-26 16:34:18 UTC MAIN commitmail json YAML

2024-04-26 01:33:23 UTC MAIN commitmail json YAML

tests/cp: clean up

Replace the deprecated "eq:0" with "exit:0", remove redundant "-o empty"
and "-e empty".

(rillig)

2024-04-26 00:59:08 UTC MAIN commitmail json YAML

Return early if PM data is not available.

This avoids random crashes on my Powerbook when using the mouse or keyboard.

The same was needed for the Powerbook 5xx/Duos (compile tested only).

XXX pullup-10, pullup-9, pullup-8.

(nat)

2024-04-26 00:57:15 UTC MAIN commitmail json YAML

tests/cat: clean up

Multiple arguments to atf_set are joined by spaces, there's no need for
an extra space.

The exit status on success must be 0, so don't ignore it.

Remove the unnecessary shell wrapper, as no redirection is going on.

(rillig)

2024-04-25 17:22:49 UTC MAIN commitmail json YAML

CHANGES: fix typo

(rillig)

2024-04-25 11:56:51 UTC MAIN commitmail json YAML

2024-04-25 11:25:09 UTC MAIN commitmail json YAML

Increase length of set description to 40 characters so recent additions fit.

Ok: martin@

Fixes PR install/58188 "sysinst fails to display status of base32 set"

(hannken)

2024-04-25 01:33:04 UTC MAIN commitmail json YAML

Add a match quirk to prevent matching any interface on SiPEED FPGA
development boards (e.g. Tang Nano 9K).  The FT2232s on these boards
are wired up only for JTAG.

(thorpej)

2024-04-24 21:59:39 UTC MAIN commitmail json YAML

makefs: fix out-of-bounds fsnode count in fsnode_sort

Found by running './makefs img.dat cd9660'.

While here, apply more KNF.

(rillig)

2024-04-24 20:38:24 UTC MAIN commitmail json YAML

Explicitly exclude VAX from new Mesa due to a gcc internal compiler error

(martin)

2024-04-24 19:14:39 UTC MAIN commitmail json YAML

Force old Mesa for all old X server builds

(martin)

2024-04-24 19:05:53 UTC MAIN commitmail json YAML

2024-04-24 16:48:30 UTC MAIN commitmail json YAML

Fix gcc build on FreeBSD 14 (and possibly other systems using clang >= 16).

Pointed out by Eirik ��verby.

OK mrg@

(hgutch)

2024-04-24 15:49:03 UTC MAIN commitmail json YAML

2024-04-24 15:47:12 UTC MAIN commitmail json YAML

csh: add a helper definition for the reallocarray function

(nia)

2024-04-24 15:46:20 UTC MAIN commitmail json YAML

csh: add a reallocarray function for using inside csh

(nia)

2024-04-24 15:41:42 UTC MAIN commitmail json YAML

recent changes

(nia)

2024-04-24 15:39:58 UTC MAIN commitmail json YAML

sparc64 follows x86 and gets an installdvd image with all sets

(nia)

2024-04-24 14:41:13 UTC MAIN commitmail json YAML

Remove a superflouous printf().

(thorpej)

2024-04-24 14:23:37 UTC MAIN commitmail json YAML

2024-04-24 14:02:39 UTC MAIN commitmail json YAML

make a separate sorting function and KNF (thanks rillig)

(christos)

2024-04-24 11:49:58 UTC MAIN commitmail json YAML

allow userland to switch to 16bit colour

(macallan)

2024-04-24 11:42:06 UTC MAIN commitmail json YAML

don't enable xrender support unless we have 24bit colour

(macallan)

2024-04-24 11:29:35 UTC MAIN commitmail json YAML

2024-04-24 10:35:13 UTC MAIN commitmail json YAML

it's netbsd-11, time for a slightly less eye-bleeding shade of orange

(nia)

2024-04-24 07:54:53 UTC MAIN commitmail json YAML

Switch alpha and VAX back to old Mesa for now untill someone fixes
those builds with newer Mesa.

(martin)

2024-04-24 07:51:17 UTC MAIN commitmail json YAML

Add dummy cpu feature detection for mipsn64 on NetBSD.
XXX seems there is no way to detect mips MSA (SIMD) support currently.

(martin)

2024-04-24 06:44:18 UTC MAIN commitmail json YAML

ena(4) became MPSAFe last year

(nia)

2024-04-24 05:20:35 UTC MAIN commitmail json YAML

USE_XZ_SETS is no longer needed for sparc64 to fit on a standard CD-ROM

(nia)

2024-04-24 05:16:16 UTC MAIN commitmail json YAML

Give lots of room for further expansion of the sparc64 CD image

(nia)

2024-04-24 02:31:26 UTC MAIN commitmail json YAML

b3_2706_map_vme(): Use VM_BESTFIT.

(thorpej)

2024-04-24 02:27:33 UTC MAIN commitmail json YAML

_vme_space_get(): Use VM_BESTFIT.

(thorpej)

2024-04-24 02:08:03 UTC MAIN commitmail json YAML

vmem_init(): Ensure that the quantum is a power of 2, and that if private
tags are being used, they are added to the arena before the first span is
added.

(thorpej)

2024-04-24 01:44:51 UTC MAIN commitmail json YAML

For the NetBSD tools build we provide our own fts.h not FreeBSD's so the
comparator should have the NetBSD signature.

(christos)

2024-04-23 22:51:28 UTC MAIN commitmail json YAML

2024-04-23 22:18:56 UTC MAIN commitmail json YAML

pass lint, simplify

(christos)

2024-04-23 22:12:48 UTC MAIN commitmail json YAML

makefs: Fix symlink permission bits

Permission bits for symlinks are taken straight from `lstat()`. However, the
actual bits presented to the user are filesystem/kernel specific. For example,
Linux with ext2/3/4 will use 0777 for symlinks, whereas NetBSD/FFS will
show 0755. As far as `makefs` is in the loop, the target filesystem will likely
be FFS, so use 0755.

(christos)

2024-04-23 22:12:16 UTC MAIN commitmail json YAML

makefs: Sort directory contents by name (Jan-Benedict Glaw)

`makefs` inserts nodes into its internal data structures in the order as
returned by `readdir()` calls. As this is unpredictable, sort entries by
name before creating the target filesystem.

  This is done by first converting the (per-directory) linked list into
a plain array, sort it, finally re-link the list. Special case for the
sorting function: The "." directory entry seems to be ment to be always
at the front, so always check that first.

(christos)

2024-04-23 22:00:37 UTC MAIN commitmail json YAML

VAX boot.fs: Fix owner/group/permissions for VAX's boot.fs (Jan-Benedict Glaw)

(Initial patch from Christos Zoulas.)  Don't create an archive based on local
permission bits and owner/group. Instead, feed a small manifest into `pax`
and let it to its work.

  NB: Don't also feed in an entry for the current directory ".", as `pax` will
then archive all files in the current directory, in `readdir()` order.

(christos)

2024-04-23 21:58:57 UTC MAIN commitmail json YAML

`nm`: Generate a stable symbol table (Jan-Benedict Glaw)

Release artifacts may contain symbol lists. Binutils's `nm` sorts them by
symbol name, locale based. Inserting a plain `sort` (with `LC_ALL=C`) here
sorts them by address, and (with several symbols pointing to the same address)
sorting by name is also stable (think of embedded '_'.)

(christos)

2024-04-23 20:37:08 UTC MAIN commitmail json YAML

Reduce the size of the i386 ISO to help it fit on a CD-ROM

Exclude tests and html man pages.

(nia)

2024-04-23 16:16:44 UTC MAIN commitmail json YAML

Do not re-define CACHE_LINE_SIZE

(martin)

2024-04-23 15:34:07 UTC MAIN commitmail json YAML

Sync the statistics DMA memory correctly before it is accessed.

(hans)

2024-04-23 12:25:57 UTC MAIN commitmail json YAML

Exclude compat sets from ISO images that struggle to fit on a CD-ROM

When debug is excluded, also exclude the compat debug sets.

(nia)

2024-04-23 07:47:36 UTC MAIN commitmail json YAML

For consistency, check MKREPRO_TIMESTAMP always numerically (not as string)

(martin)

2024-04-23 07:33:24 UTC MAIN commitmail json YAML

2024-04-23 03:25:39 UTC MAIN commitmail json YAML

Switch to mesa 21

Works well enough for me on various GPUs, let's try it out. Can be easily
reverted if anyone encounters major issues.

(maya)

2024-04-22 23:07:47 UTC MAIN commitmail json YAML

Surround full mp_cpu_start() method with NLAPIC > 0 guard.

Initialization is based on x86_ipi* functions, which are implemented only
when lapic flag is enabled.

(andvar)

2024-04-22 22:47:00 UTC MAIN commitmail json YAML

Add (defined(MPBIOS) || NACPICA > 0) check around mp_pci_childdetached().
Fixes the build without MPBIOS or ACPI. Modified patch from Paolo Pisati in
current-users@.

While here:
Remove obsolete <arch/x86/pci/msipic.h> include with its guard.
Add comments for multiple endifs for better readability.

(andvar)

2024-04-22 22:29:29 UTC MAIN commitmail json YAML

Add opt_pci.h include to fix NO_PCI_MSI_MSIX build.
(Path from Paolo Pisati in current_users@)

While here:
Simplify mp_cpu_start() ifdefs. MULTIPROCESSOR and HYPERV code falls under
NLAPIC > 0, thus just combine all blocks under this guard.
Rearrange opt_acpi.h include alphabetically.

(andvar)

2024-04-22 21:25:29 UTC MAIN commitmail json YAML

it's nanosleep(2), not nanosleep(3)

(jdolecek)

2024-04-22 21:02:18 UTC MAIN commitmail json YAML

allow usleep(3) with useconds >= 1000000

update manpage to mention this interface is obsolete, remove
EINVAL from the ERRORS and mention EINTR instead.

PR lib/58184 by Taylor R Campbell

(jdolecek)

2024-04-22 14:41:26 UTC MAIN commitmail json YAML

2024-04-22 07:24:22 UTC MAIN commitmail json YAML

Add a test for kern/58149

aarch64: Cannot return from a signal handler if SP was misaligned when the signal arrived

(pho)

2024-04-22 03:38:49 UTC MAIN commitmail json YAML

mesa21: link against libxcb-sync for missing symbols

Not super obvious in practice, but it does show if you run GL programs
with LD_BIND_NOW.

(maya)

2024-04-21 21:59:48 UTC MAIN commitmail json YAML

make: trim down code for parsing the :gmtime and :localtime modifiers

The :gmtime and :localtime modifiers are not used often and thus are not
time-critical. Exchange the custom code that parses an integer from a
substring for an additional memory allocation.

Thanks sjg@ for suggesting to avoid the custom parsing code.

(rillig)

2024-04-21 17:19:52 UTC MAIN commitmail json YAML

libntf: make MKREPRO timestamp compatible with NetBSD 10

In NetBSD 10, make(1) cannot handle :gmtime arguments that are
expressions, resulting in the error message "Unknown modifier '1'".

(rillig)

2024-04-21 14:11:12 UTC MAIN commitmail json YAML

apei(4), acpihed(4): Enable in x86 GENERIC.

Let's just see how this works out in practice.  Might need to reduce
the overhead of each GHES on machines with thousands of them, but
we'll see.

PR kern/58046

(riastradh)

2024-04-21 08:56:49 UTC MAIN commitmail json YAML

make: fix out-of-bounds read when evaluating :gmtime and :localtime

The function TryParseTime takes a pointer to a string, but the LazyBuf
returns a Substring, which is not guaranteed to be null-terminated or
delimited.  In TryParseTime, calling strtoul on the Substring read past
the end of the substring.

Noticed in the NetBSD build in libntp, where the :gmtime modifier is
used in two places with the same timestamp value, of which the first was
evaluated correctly and the second wasn't.

The bug was introduced in var.c 1.1050 from 2023-05-09, when the
argument of the :gmtime and :localtime modifiers was allowed to be an
expression instead of an integer constant.

(rillig)

2024-04-21 03:02:51 UTC MAIN commitmail json YAML

drm: Allow DRM_IOCTL_GET_UNIQUE on render nodes.

On NetBSD, libdrm uses this to discover what kind of bus the device
is on, without which it refuses to expose the render node at all,
rendering it useless.  With this change, libdrm is able to use render
nodes on NetBSD.

Since this is just reading out information about the bus type and
bus/dev/func numbers, I don't think it's problematic to expose to
render nodes.

This requires tweaking the access path to the master.

PR kern/58180

(riastradh)

2024-04-21 03:02:39 UTC MAIN commitmail json YAML

drm(4): Fix st_rdev in stat.

dminor->index already has the 64*type adjustment, as allocated in
drm_minor_alloc.

PR kern/58180

(riastradh)

2024-04-21 00:23:23 UTC MAIN commitmail json YAML

Mesa 21: Add some intel files so we don't have missing symbols

seen as error messages when running "glxgears" on intel.

This also avoids graphical corruption (changed areas of terminal
emulator take a few seconds to gradually update) when the modesetting
driver is explicitly chosen.

(maya)

2024-04-20 15:57:17 UTC MAIN commitmail json YAML

Fix build of mesa 21

This definition is missing from elftoolchain's elfdefinitions.h (via libelf.h),
which conflicts with sys/exec_elf.h so we can't get it from sys/exec_elf.h.

(maya)

2024-04-20 14:09:40 UTC MAIN commitmail json YAML

2024-04-20 14:06:47 UTC MAIN commitmail json YAML

UPDATING: remove not-so-recent entries

(rillig)

2024-04-20 13:32:22 UTC netbsd-9 commitmail json YAML

2024-04-20 13:27:04 UTC netbsd-10 commitmail json YAML

Ammend #663 for additional pullups

(martin)

2024-04-20 13:26:35 UTC netbsd-10 commitmail json YAML

Additionally pull up following revision(s) (requested by jakllsch in ticket #663):

external/bsd/ntp/lib/libntp/Makefile: revision 1.32
external/bsd/ntp/lib/libntp/Makefile: revision 1.33
external/bsd/ntp/lib/libntp/Makefile: revision 1.34

The substitute __DATE__ should be %b %e %Y per a C18 draft
Subtle change that won't make a functional difference in this case;
changed only for semantic correctness.

Increase MKREPRO robustness
- Use C locale to ensure month abbreviations are as expected
- bail out if MKREPRO_TIMESTAMP is not defined
- bail out if resulting __DATE__/__TIME__ replacement strings are empty

fix copy/paste-o

(martin)

2024-04-20 13:24:49 UTC MAIN commitmail json YAML

{usr.,}{s,}bin: replace LINT_SUPPORTED with the standard NOLINT

While here, re-enable lint in those cases where lint was skipped due to
a bug in interpreting abstract types, which was fixed in cgram.y 1.469
from 2023-08-02.

(rillig)

2024-04-20 12:25:46 UTC MAIN commitmail json YAML

build.sh: fix typos in usage message

(rillig)

2024-04-20 10:18:56 UTC MAIN commitmail json YAML

2024-04-20 08:03:08 UTC MAIN commitmail json YAML

libntp: clean up MKREPRO_TIMESTAMP handling

NetBSD's make has built-in support for formatting timestamps, so use
that instead of relying on an external tool.  The month name is still
always in the C locale, and possible errors are reported in the affected
line, due to the ':=' assignment operator.

Without the ':=' assignment operator, the intermediate variable would
not be necessary, but in that case, make's error handling is broken and
unspecific.

(rillig)

2024-04-20 05:38:40 UTC MAIN commitmail json YAML

Fix typo in comment.

(isaki)

2024-04-19 21:24:00 UTC MAIN commitmail json YAML

s/Resorce/Resource/ in comment and log message.

(andvar)

2024-04-19 20:59:18 UTC MAIN commitmail json YAML

tests/lint: show how to trigger message 207

(rillig)

2024-04-19 16:04:28 UTC MAIN commitmail json YAML

2024-04-19 14:58:18 UTC MAIN commitmail json YAML

Increase MKREPRO robustness
- Use C locale to ensure month abbreviations are as expected
- bail out if MKREPRO_TIMESTAMP is not defined
- bail out if resulting __DATE__/__TIME__ replacement strings are empty

(jakllsch)

2024-04-19 13:34:15 UTC MAIN commitmail json YAML

The substitute __DATE__ should be %b %e %Y per a C18 draft

Subtle change that won't make a functional difference in this case;
changed only for semantic correctness.

(jakllsch)

2024-04-19 12:35:28 UTC MAIN commitmail json YAML

PR/58170: Yoshitaka Tokugawa: Remove blocking statement when the requestor
asks for for an address that is in the cache and that access is prevented
by a cache acl because the querier has no way to know that this access is
denied, so it is not an abuse.

(christos)

2024-04-19 09:19:32 UTC netbsd-10 commitmail json YAML

2024-04-19 09:18:28 UTC netbsd-10 commitmail json YAML

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

sys/uvm/pmap/pmap.c: revision 1.78
sys/uvm/pmap/pmap.h: revision 1.27

Fix types in pmap_page_clear_attributes so that the top bits of
the u_long mdpg_attrs aren't dropped giving atomic_cas_ulong no
chance of completing if any of the top bits is set.

Update pmap_page_set_attributes for consistency.

An ATF test run completed for me with this fix.

port-riscv/58006: ATF tests no longer complete on riscv-riscv64

(martin)

2024-04-19 09:15:55 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by kalvisd in ticket #670):

sys/arch/vax/vax/unimpl_emul.S: revision 1.5

vax/unimpl_emul.S: Initialise locations storing floating-point values with
a constant of the appropriate format

(martin)

2024-04-19 09:01:35 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by jakllsch in ticket #663):

external/bsd/ntp/lib/libntp/Makefile: revision 1.30
external/bsd/ntp/lib/libntp/Makefile: revision 1.31
external/bsd/ntp/lib/libntp/Makefile: revision 1.28
external/bsd/ntp/lib/libntp/Makefile: revision 1.29

use ${MKREPRO_TIMESTAMP} for baking in the date and time.
fix format.
remove now-unused assignment
Format MKREPRO_TIMESTAMP with "%b %d %Y" to correctly substitute __DATE__

(martin)

2024-04-19 05:04:06 UTC MAIN commitmail json YAML

frag6: fix calculation of fragment length

Because of the miscalculation, 32 bytes fragmented IPv6 packets
have been wrongly dropped.

See https://mail-index.netbsd.org/tech-net/2024/04/14/msg008741.html
for more details.

Patch from Yasuyuki KOZAKAI (with minor tweaks)

(ozaki-r)

2024-04-19 00:55:35 UTC MAIN commitmail json YAML

ip6_output: Initialize plen for ip6_hopopts_input.

This funny little block in ip6_process_hopopts assumes it is
initialized as and behaves differently depending on whether it's zero
or not:

https://nxr.netbsd.org/xref/src/sys/netinet6/ip6_input.c?r=1.227#976

In the other call site, it is initialized to ip6->ip6_plen:

https://nxr.netbsd.org/xref/src/sys/netinet6/ip6_input.c?r=1.227#561

Reported-by: syzbot+587e3b707bdfe533283f@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?extid=587e3b707bdfe533283f

(riastradh)

2024-04-19 00:45:41 UTC MAIN commitmail json YAML

dounmount: Avoid &((struct vnode_impl *)NULL)->vi_vnode.

Member access of a null pointer is undefined, even if the result
should also be null because vi_vnode is at the start of vnode_impl.

Reported-by: syzbot+a4b2d13c0d6d4dac2d07@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?extid=a4b2d13c0d6d4dac2d07

(riastradh)

2024-04-18 23:33:15 UTC MAIN commitmail json YAML

radeon_acpi.c: ifdef out unused function on NetBSD.

Should fix syzkaller build.

(riastradh)

2024-04-18 19:23:54 UTC MAIN commitmail json YAML

Format MKREPRO_TIMESTAMP with "%b %d %Y" to correctly substitute __DATE__

(jakllsch)

2024-04-18 19:17:14 UTC MAIN commitmail json YAML

2024-04-18 18:52:56 UTC netbsd-9 commitmail json YAML

Note dedication of 9.4

(martin)

2024-04-18 18:50:59 UTC netbsd-9 commitmail json YAML

Add dedication for the upcoming 9.4 release.

(martin)

2024-04-18 18:26:43 UTC netbsd-10 commitmail json YAML

2024-04-18 18:24:31 UTC netbsd-10 commitmail json YAML

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

sys/dev/ccd.c: revision 1.190

Using a ccd(4) with GPT (dk* at ccd*) the disk framework will call
ccdstrategy() -> ccdstart() -> ccdbuffer()  from softint context.

Allocating the buffer with PR_WAITOK here is forbidden.

Change ccdstart() / ccdbuffer() to report failure back to caller and
pass PR_WAITOK / PR_NOWAIT as an additional argument.

Call ccdstart() with PR_NOPWAIT from ccdstrategy() and on error defer
to the kthread.  Call ccdstart() with PR_WAITOK from kthread so requests
from kthread always succeed to allocate the buffers.

Remove the (non working) throttling on low memory as it is no longer needed.

Fixes PR kern/58043 "kernel crash in assert_sleepable() in -current,
dk(4) driver?"

(martin)

2024-04-18 18:22:10 UTC netbsd-10 commitmail json YAML

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

sys/miscfs/procfs/procfs.h: revision 1.83
sys/miscfs/procfs/procfs.h: revision 1.84
sys/kern/vfs_mount.c: revision 1.104
sys/miscfs/procfs/procfs_vnops.c: revision 1.230
sys/kern/init_main.c: revision 1.547
sys/kern/kern_hook.c: revision 1.15
sys/miscfs/procfs/procfs_vfsops.c: revision 1.112
sys/miscfs/procfs/procfs_vfsops.c: revision 1.113
sys/miscfs/procfs/procfs_vfsops.c: revision 1.114
sys/miscfs/procfs/procfs_subr.c: revision 1.117

Print dangling vnode before panic() to help debug.

PR kern/57775 ""panic: unmount: dangling vnode" while umounting procfs"
Protect kernel hooks exechook, exithook and forkhook with rwlock.

Lock as writer on establish/disestablish and as reader on list traverse.

For exechook ride "exec_lock" as it is already take as reader when
traversing the list.  Add local locks for exithook and forkhook.

Move exec_init before signal_init as signal_init calls exechook_establish()
that needs "exec_lock".

PR kern/39913 "exec, fork, exit hooks need locking"

Add a hashmap to access all procfs nodes by pid.

Using the exechook to revoke procfs nodes is racy and may deadlock:
one thread runs doexechooks() -> procfs_revoke_vnodes() and wants to suspend
the file system for vgone(), while another thread runs a forced unmount,
has the file system suspended, tries to disestablish the exechook and
waits for doexechooks() to complete.

Establish/disestablish the exechook on module load/unload instead
mount/unmount and use the hashmap to access all procfs nodes for this pid.

May fix PR kern/57775 ""panic: unmount: dangling vnode" while umounting procfs"

Remove all procfs nodes for this process on process exit.

(martin)

2024-04-18 18:17:06 UTC netbsd-10 commitmail json YAML

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

sys/arch/aarch64/aarch64/sig_machdep.c: revision 1.9
sys/arch/aarch64/aarch64/cpu_machdep.c: revision 1.15

kern/58149: aarch64: Cannot return from a signal handler if SP was
misaligned when the signal arrived

Apply the kernel diff from the PR
1. sendsig_siginfo() previously assumed that user SP was always aligned to
    16 bytes and could call signal handlers with SP misaligned. This is a
    wrong assumption because aarch64 demands that SP is aligned *only while*
    it's being used to access memory. Now it properly aligns it before
    pusing anything on the stack.
2. cpu_mcontext_validate() used to check if _REG_SP was aligned and
    considered the ucontext invalid otherwise. This meant if a signal was
    sent to a process whose SP was misaligned, the signal handler would fail
    to return because the ucontext passed from the kernel was an invalid
    one. Now setcontext(2) doesn't complain about misaligned SP.

(martin)

2024-04-18 18:14:22 UTC netbsd-10 commitmail json YAML

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

sys/arch/arm/arm32/pmap.c: revision 1.443

port-arm/58135: reproducible pmap KASSERT failure for armv7 with NFS root

Don't unconditionally set XN in pmap_clearbit - only set it if a mapping
exists VM_PROT_EXEC is being cleared.

I've simplified the #ifdefs in the patch from the PR.

(martin)

2024-04-18 18:06:09 UTC netbsd-10 commitmail json YAML

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

sys/ddb/db_proc.c: revision 1.16

Fix alignment of ddb 'ps/[lw]' output. LID matches PID and has more digits.

(martin)

2024-04-18 17:57:31 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by jakllsch in ticket #664):

share/mk/bsd.hostlib.mk: revision 1.21

Filter out -Wp,-iremap,* from CPPFLAGS as is done in hostprog.mk

Seems to fix build of libnbcompat in reproducible mode on host toolchains w/o -iremap

(martin)

2024-04-18 17:35:53 UTC MAIN commitmail json YAML

Renamed border/boundary variables to better describe their use.
Fix edge default values, factor out percentage calculation for more consistent
values. Use device_printf/DPRINTF to show errors instead of aprint variants.
Print raw input for debugging.

Correct capability parsing. Old devices were probed with nonexistent
commands and then used undefined boundary values that made them unusuable.

Fixes PR 57874.

(mlelstv)

2024-04-18 16:45:55 UTC netbsd-8 commitmail json YAML

2024-04-18 16:44:21 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by andvar in ticket #1959):

sys/arch/x86/x86/viac7temp.c: revision 1.10

viac7temp(4): define module metadata using MODULE() macro and implement
viac7temp_modcmd() to handle module load/unload events.

Fixes PR kern/58148. Look OK by mrg@.

(martin)

2024-04-18 16:41:58 UTC netbsd-9 commitmail json YAML

2024-04-18 16:40:17 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by andvar in ticket #1835):

sys/arch/x86/x86/viac7temp.c: revision 1.10

viac7temp(4): define module metadata using MODULE() macro and implement
viac7temp_modcmd() to handle module load/unload events.

Fixes PR kern/58148. Look OK by mrg@.

(martin)

2024-04-18 16:39:08 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by andvar in ticket #662):

sys/arch/x86/x86/viac7temp.c: revision 1.10

viac7temp(4): define module metadata using MODULE() macro and implement
viac7temp_modcmd() to handle module load/unload events.

Fixes PR kern/58148. Look OK by mrg@.

(martin)

2024-04-18 16:29:48 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by andvar in ticket #661):

sys/dev/pci/if_mcx.c: revision 1.27

mcx(4): enforce full-duplex mark in mcx_media_status(), when link is up.

LACP protocol requires full-duplex to be enabled for lagg(4) to work,
however mcx(4) was not setting this capability making it to fail.

Fixes PR kern/58124.  OK'd by msaitoh@

(martin)

2024-04-18 16:26:48 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by andvar in ticket #660):

sbin/ifconfig/ifconfig.8: revision 1.126
sbin/ifconfig/ifconfig.8: revision 1.127
sbin/ifconfig/ifconfig.8: revision 1.128
sbin/ifconfig/ifconfig.8: revision 1.129

Added documents about parameters related to lagg(4)
PR misc/58125

Correct a very minor typo (s/id/is/)

ifconfig(8): move laggportpri next to laggport

Update the date of the documentation to reflect recent changes.

(martin)

2024-04-18 16:22:28 UTC netbsd-10 commitmail json YAML

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

sys/netinet6/in6_ifattach.c: revision 1.122
sys/netinet/sctp_asconf.c: revision 1.14
sys/netinet6/nd6.c: revision 1.282

Fix invalid IPv6 route when ipsecif(4) is deleted tunnel.  Pointed out by ohishi@IIJ.
The pointed bug is fixed by modification in nd6_need_cache().
Others are similar bugs.

(martin)

2024-04-18 16:12:31 UTC netbsd-9 commitmail json YAML

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

share/mk/bsd.own.mk: revision 1.1177

ZFS works fine on my v210, so let's enable it for sparc64

(martin)

2024-04-18 16:10:17 UTC netbsd-8 commitmail json YAML

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

usr.bin/who/utmpentry.c: revision 1.22

PR/56013: Kouichi Hashikawa: Move setutent/setutxent right before the loops.

(martin)

2024-04-18 16:09:09 UTC netbsd-9 commitmail json YAML

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

usr.bin/who/utmpentry.c: revision 1.22

PR/56013: Kouichi Hashikawa: Move setutent/setutxent right before the loops.

(martin)

2024-04-18 16:06:25 UTC netbsd-8 commitmail json YAML

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

external/gpl2/grep/dist/src/grep.c: revision 1.3

PR/56584: Andreas Gustafsson: Skip FIFO's when -D

(martin)

2024-04-18 16:05:24 UTC netbsd-9 commitmail json YAML

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

external/gpl2/grep/dist/src/grep.c: revision 1.3

PR/56584: Andreas Gustafsson: Skip FIFO's when -D

(martin)

2024-04-18 16:02:26 UTC netbsd-8 commitmail json YAML

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

external/bsd/am-utils/dist/include/amq_defs.h: revision 1.2
external/bsd/am-utils/dist/amq/amq_xdr.c: revision 1.2
external/bsd/am-utils/dist/amq/amq.c: revision 1.4
external/bsd/am-utils/dist/amd/amq_subr.c: revision 1.4
external/bsd/am-utils/dist/amd/amq_subr.c: revision 1.5

fix pointer bug (thanks RVP) and change to use 64 bit times. Don't bother
with backwards compatibility; too much work for little benefit.

remove long cast (thanks RVP)

(martin)

2024-04-18 15:59:59 UTC netbsd-9 commitmail json YAML

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

external/bsd/am-utils/dist/include/amq_defs.h: revision 1.2
external/bsd/am-utils/dist/amq/amq_xdr.c: revision 1.2
external/bsd/am-utils/dist/amq/amq.c: revision 1.4
external/bsd/am-utils/dist/amd/amq_subr.c: revision 1.4
external/bsd/am-utils/dist/amd/amq_subr.c: revision 1.5

fix pointer bug (thanks RVP) and change to use 64 bit times. Don't bother
with backwards compatibility; too much work for little benefit.

remove long cast (thanks RVP)

(martin)

2024-04-18 15:51:36 UTC netbsd-9 commitmail json YAML

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

sys/kern/subr_workqueue.c: revision 1.40
sys/kern/subr_workqueue.c: revision 1.41
sys/kern/subr_workqueue.c: revision 1.42
sys/kern/subr_workqueue.c: revision 1.43
sys/kern/subr_workqueue.c: revision 1.44
sys/kern/subr_workqueue.c: revision 1.45
sys/kern/subr_workqueue.c: revision 1.46
tests/rump/kernspace/workqueue.c: revision 1.7
sys/kern/subr_workqueue.c: revision 1.47
tests/rump/kernspace/workqueue.c: revision 1.8
tests/rump/kernspace/workqueue.c: revision 1.9
tests/rump/rumpkern/t_workqueue.c: revision 1.3
tests/rump/rumpkern/t_workqueue.c: revision 1.4
tests/rump/kernspace/kernspace.h: revision 1.9
tests/rump/rumpkern/Makefile: revision 1.20
sys/kern/subr_workqueue.c: revision 1.39
share/man/man9/workqueue.9: revision 1.15
(all via patch)

workqueue: Lift unnecessary restriction on workqueue_wait.

Allow multiple concurrent waits at a time, and allow enqueueing work
at the same time (as long as it's not the work we're waiting for).

This way multiple users can use a shared global workqueue and safely
wait for individual work items concurrently, while the workqueue is
still in use for other items (e.g., wg(4) peers).

This has the side effect of taking away a diagnostic measure, but I
think allowing the diagnostic's false positives instead of rejecting
them is worth it.  We could cheaply add it back with some false
negatives if it's important.
workqueue(9): workqueue_wait and workqueue_destroy may sleep.

But might not, so assert sleepable up front.
workqueue(9): Sprinkle dtrace probes.
tests/rump/rumpkern: Use PROGDPLIBS, not explicit -L/-l.

This way we relink the t_* test programs whenever changes under
tests/rump/kernspace change libkernspace.a.

workqueue(9) tests: Nix trailing whitespace.

workqueue(9) tests: Destroy struct work immediately on entry.

workqueue(9) tests: Add test for PR kern/57574.

workqueue(9): Avoid touching running work items in workqueue_wait.

As soon as the workqueue function has called, it is forbidden to
touch the struct work passed to it -- the function might free or
reuse the data structure it is embedded in.

So workqueue_wait is forbidden to search the queue for the batch of
running work items.  Instead, use a generation number which is odd
while the thread is processing a batch of work and even when not.
There's still a small optimization available with the struct work
pointer to wait for: if we find the work item in one of the per-CPU
_pending_ queues, then after we wait for a batch of work to complete
on that CPU, we don't need to wait for work on any other CPUs.
PR kern/57574

workqueue(9): Sprinkle dtrace probes for workqueue_wait edge cases.

Let's make it easy to find out whether these are hit.

workqueue(9): Stop violating queue(3) internals.

workqueue(9): Avoid unnecessary mutex_exit/enter cycle each loop.

workqueue(9): Sort includes.
No functional change intended.

workqueue(9): Factor out wq->wq_flags & WQ_FPU in workqueue_worker.
No functional change intended.  Makes it clearer that s is
initialized when used.

(martin)

2024-04-18 15:44:37 UTC netbsd-10 commitmail json YAML

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

share/man/man4/wg.4: revision 1.8
share/man/man4/wg.4: revision 1.9

wg(4): Rework example numbering for clarity and add IPv6.

Let's avoid triggering unease with host number 0.
PR misc/58015

wg(4): Fix IPv6 numbering in example diagram.

This way it matches the configuration suggested below (which avoids
host number zero on the subnet).

PR misc/58015

(martin)

2024-04-18 15:42:45 UTC netbsd-8 commitmail json YAML

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

distrib/evbarm/instkernel/sshramdisk/Makefile: revision 1.26

evbarm/instkernel/sshramdisk: Put firmware in the right paths.

Maybe this should also be wired up to `release' to put the ramdisk in
the releasedir so we detect destdir path leakage like this had.

PR port-evbarm/58035

(martin)

2024-04-18 15:41:13 UTC netbsd-9 commitmail json YAML

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

distrib/evbarm/instkernel/sshramdisk/Makefile: revision 1.26

evbarm/instkernel/sshramdisk: Put firmware in the right paths.

Maybe this should also be wired up to `release' to put the ramdisk in
the releasedir so we detect destdir path leakage like this had.

PR port-evbarm/58035

(martin)

2024-04-18 15:40:17 UTC netbsd-10 commitmail json YAML

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

distrib/evbarm/instkernel/sshramdisk/Makefile: revision 1.26

evbarm/instkernel/sshramdisk: Put firmware in the right paths.

Maybe this should also be wired up to `release' to put the ramdisk in
the releasedir so we detect destdir path leakage like this had.

PR port-evbarm/58035

(martin)

2024-04-18 15:33:44 UTC netbsd-9 commitmail json YAML

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

sys/stand/efiboot/efiboot.c: revision 1.23

efiboot: Duplicate efi_bootdp before we clobber it in efi_net_probe.

Patch from jakllsch@.  Makes Socionext Synquacer boot considerably
more reliably.

PR kern/58075

(martin)

2024-04-18 15:32:36 UTC netbsd-10 commitmail json YAML

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

sys/stand/efiboot/efiboot.c: revision 1.23

efiboot: Duplicate efi_bootdp before we clobber it in efi_net_probe.

Patch from jakllsch@.  Makes Socionext Synquacer boot considerably
more reliably.

PR kern/58075

(martin)

2024-04-18 15:24:21 UTC netbsd-9 commitmail json YAML

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

sys/modules/Makefile: revision 1.285
share/mk/bsd.own.mk: revision 1.1365
share/mk/bsd.own.mk: revision 1.1366
sys/arch/aarch64/include/sljit_machdep.h: revision 1.4
sys/external/bsd/sljit/dist/sljit_src/sljitNativeARM_64.c: revision 1.5
(all via patch)

sljit: Pacify -Wsign-compare.

If these sizes are negative, we're probably in trouble anyway, so
assert nonnegative here.
Needed to resolve PR 58103.

bsd.own.mk: Enable MKLSJIT on aarch64.

Make sure there's only one copy of the conditional, in bsd.own.mk;
just make sys/modules/Makefile conditional on MKSLJIT so we don't
have to keep these in sync.

As a workaround for PR 58106, tweak the conditional definition of
SLJIT_CACHE_FLUSH to use cpu_icache_sync_range only in _HARDKERNEL,
and use __builtin___clear_cache in userland and in rump kernels.

PR 58103: bpfjit.kmod is not built on aarch64
bsd.own.mk: No need for MKSLJIT to be set differently from others.
- Use ?=, not =, so mk.conf setting wins.
- Write out per-architecture tabular settings, not a conditional.
- Add comments for the architectures that look like they should have
  sljit but don't.  (XXX Missing comments about powerpc and mips --
  not sure why, is this because modules don't yet work on those
  architectures, or what?)

Tidying for PR 58103: bpfjit.kmod is not built on aarch64.

(martin)

2024-04-18 15:21:55 UTC netbsd-10 commitmail json YAML

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

sys/modules/Makefile: revision 1.285
share/mk/bsd.own.mk: revision 1.1365
share/mk/bsd.own.mk: revision 1.1366
sys/arch/aarch64/include/sljit_machdep.h: revision 1.4
sys/external/bsd/sljit/dist/sljit_src/sljitNativeARM_64.c: revision 1.5

sljit: Pacify -Wsign-compare.

If these sizes are negative, we're probably in trouble anyway, so
assert nonnegative here.
Needed to resolve PR 58103.

bsd.own.mk: Enable MKLSJIT on aarch64.

Make sure there's only one copy of the conditional, in bsd.own.mk;
just make sys/modules/Makefile conditional on MKSLJIT so we don't
have to keep these in sync.

As a workaround for PR 58106, tweak the conditional definition of
SLJIT_CACHE_FLUSH to use cpu_icache_sync_range only in _HARDKERNEL,
and use __builtin___clear_cache in userland and in rump kernels.

PR 58103: bpfjit.kmod is not built on aarch64
bsd.own.mk: No need for MKSLJIT to be set differently from others.
- Use ?=, not =, so mk.conf setting wins.
- Write out per-architecture tabular settings, not a conditional.
- Add comments for the architectures that look like they should have
  sljit but don't.  (XXX Missing comments about powerpc and mips --
  not sure why, is this because modules don't yet work on those
  architectures, or what?)

Tidying for PR 58103: bpfjit.kmod is not built on aarch64.

(martin)

2024-04-18 12:16:23 UTC MAIN commitmail json YAML

Fix types in pmap_page_clear_attributes so that the top bits of
the u_long mdpg_attrs aren't dropped giving atomic_cas_ulong no
chance of completing if any of the top bits is set.

Update pmap_page_set_attributes for consistency.

An ATF test run completed for me with this fix.

port-riscv/58006: ATF tests no longer complete on riscv-riscv64

(skrll)

2024-04-18 10:32:03 UTC MAIN commitmail json YAML

2024-04-18 04:52:43 UTC MAIN commitmail json YAML

allow mapping of blitter registers

(macallan)

2024-04-17 18:52:54 UTC MAIN commitmail json YAML

tap(4): Just use mutex_enter.

PR kern/58167

(riastradh)

2024-04-17 18:52:39 UTC MAIN commitmail json YAML

tap(4): Use DETACH_FORCE with config_detach.

It doesn't make a difference here, because tap_detach never fails,
but let's make it more obvious at the call site that failure is
forbidden here.

No functional change intended.

PR kern/58166

(riastradh)

2024-04-17 18:52:25 UTC MAIN commitmail json YAML

tap(4): Prune dead branches around tap_dev_destroyer.

No functional change intended.

PR kern/58166

(riastradh)

2024-04-17 18:32:13 UTC MAIN commitmail json YAML

tap(4): Prune dead branches around tap_dev_close.

No functional change intended.

PR kern/58166

(riastradh)

2024-04-17 18:10:27 UTC MAIN commitmail json YAML

modules/examples/fopsmapper: KNF, sprinkle comments

Missing: MP-safety; this is a kind of broken example.

(riastradh)

2024-04-17 18:09:14 UTC netbsd-8 commitmail json YAML

2024-04-17 18:07:53 UTC netbsd-8 commitmail json YAML

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

share/mk/bsd.lib.mk: revision 1.398
share/mk/bsd.lib.mk: revision 1.399
share/mk/bsd.x11.mk: revision 1.152
(via patch)

PR/58104: Kouichi Hashikawa: Use ${TOOL_AWK}

Back-out unintented commit.

(martin)

2024-04-17 18:06:32 UTC netbsd-9 commitmail json YAML

2024-04-17 18:04:57 UTC netbsd-9 commitmail json YAML

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

share/mk/bsd.lib.mk: revision 1.398
share/mk/bsd.lib.mk: revision 1.399
share/mk/bsd.x11.mk: revision 1.152
(via patch)

PR/58104: Kouichi Hashikawa: Use ${TOOL_AWK}

Back-out unintented commit.

(martin)

2024-04-17 18:03:46 UTC netbsd-10 commitmail json YAML

2024-04-17 18:02:23 UTC netbsd-10 commitmail json YAML

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

share/mk/bsd.lib.mk: revision 1.398
share/mk/bsd.lib.mk: revision 1.399
share/mk/bsd.x11.mk: revision 1.152
(via patch)

PR/58104: Kouichi Hashikawa: Use ${TOOL_AWK}

Back-out unintented commit.

(martin)

2024-04-17 18:01:29 UTC MAIN commitmail json YAML

sys/conf.h: Need sys/types.h for dev_t, devmajor_t.

(riastradh)

2024-04-17 16:26:10 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_iwn.c: revision 1.100

if_iwn.c: pick up proper firmware for Centrino Wireless-N 130

Both variants should use iwlwifi-6000g2b-6 not iwlwifi-6000g2a-6. (It
seems only two specific product variants use iwlwifi-6000g2a-6. We
could simplify by reversing the sense of the test, as OpenBSD does, but
it doesn't seem to matter much, as what we now match seems to be the
full gamut possible, so the simpler diff was chosen here.)

Addresses PR kern/58105 from wandrien.dev%gmail.com@localhost, with the
PCI_PRODUCT_INTEL_WIFI_LINK_130_1 match tested by the reporter. Code
inspection of the FreeBSD driver indicates we should safely be able to
match PCI_PRODUCT_INTEL_WIFI_LINK_130_2 also.

(martin)

2024-04-17 16:24:26 UTC netbsd-9 commitmail json YAML

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

sys/dev/pci/if_iwn.c: revision 1.100

if_iwn.c: pick up proper firmware for Centrino Wireless-N 130

Both variants should use iwlwifi-6000g2b-6 not iwlwifi-6000g2a-6. (It
seems only two specific product variants use iwlwifi-6000g2a-6. We
could simplify by reversing the sense of the test, as OpenBSD does, but
it doesn't seem to matter much, as what we now match seems to be the
full gamut possible, so the simpler diff was chosen here.)

Addresses PR kern/58105 from wandrien.dev%gmail.com@localhost, with the
PCI_PRODUCT_INTEL_WIFI_LINK_130_1 match tested by the reporter. Code
inspection of the FreeBSD driver indicates we should safely be able to
match PCI_PRODUCT_INTEL_WIFI_LINK_130_2 also.

(martin)

2024-04-17 16:23:08 UTC netbsd-10 commitmail json YAML

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

sys/dev/pci/if_iwn.c: revision 1.100

if_iwn.c: pick up proper firmware for Centrino Wireless-N 130

Both variants should use iwlwifi-6000g2b-6 not iwlwifi-6000g2a-6. (It
seems only two specific product variants use iwlwifi-6000g2a-6. We
could simplify by reversing the sense of the test, as OpenBSD does, but
it doesn't seem to matter much, as what we now match seems to be the
full gamut possible, so the simpler diff was chosen here.)

Addresses PR kern/58105 from wandrien.dev%gmail.com@localhost, with the
PCI_PRODUCT_INTEL_WIFI_LINK_130_1 match tested by the reporter. Code
inspection of the FreeBSD driver indicates we should safely be able to
match PCI_PRODUCT_INTEL_WIFI_LINK_130_2 also.

(martin)

2024-04-17 13:23:33 UTC MAIN commitmail json YAML

2024-04-17 11:44:00 UTC MAIN commitmail json YAML

2024-04-17 11:42:47 UTC MAIN commitmail json YAML

2024-04-17 07:47:48 UTC MAIN commitmail json YAML

turn LEDs off when shutting down

(macallan)

2024-04-17 06:11:56 UTC MAIN commitmail json YAML

2024-04-17 02:46:03 UTC MAIN commitmail json YAML

ftp.1: drop a sentence that's no longer accurate

(gutteridge)

2024-04-17 02:34:45 UTC MAIN commitmail json YAML

Add support for a range of USB serial adapters

From Cameron Williams in PR kern/58127

(maya)

2024-04-17 02:33:04 UTC MAIN commitmail json YAML

2024-04-17 02:32:09 UTC MAIN commitmail json YAML

Add some USB serial adapters

From Cameron Williams in PR kern/58127

(maya)

2024-04-16 23:43:08 UTC MAIN commitmail json YAML

Add comparison function so that it can be used to provide a stable sort
(Jan-Benedict Glaw)

(christos)

2024-04-16 23:40:36 UTC MAIN commitmail json YAML

Set LC_ALL=C before calling sort so that it works consistently. Unfortunately
ENVIRON["LC_ALL"] = "C"; does not work like in gawk (Jan-Benedict Glaw)

(christos)

2024-04-16 23:30:19 UTC MAIN commitmail json YAML

Be more explicit with sort fields to produce consistent results with gnu
sort (Jan-Benedict Glaw)

(christos)

2024-04-16 19:15:37 UTC MAIN commitmail json YAML

2024-04-16 19:11:45 UTC netbsd-10 commitmail json YAML

2024-04-16 19:10:07 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by thorpej in ticket #652):

sys/arch/alpha/pci/irongate_pci.c: revision 1.13

Add a missing barrier in irongate_conf_read0().

(martin)

2024-04-16 19:07:22 UTC netbsd-9 commitmail json YAML

2024-04-16 19:06:07 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kim in ticket #1824):
etc/mtree/special: revision 1.172
Add /etc/sshd/ssh_host_ed25519_key* .

(martin)

2024-04-16 18:59:49 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by thorpej in ticket #651):

sys/dev/usb/ugen.c: revision 1.177

ugen and ugenif share the same /dev/ugenN.xx namespace in such a way
that the device unit number does not necessarily match the /dev/ugenN.xx
unit number (N).  If you ONLY have ugen devices, it happens to work out
and devpubd scripts can be extremely naive.  If you ONLY have ugenif
devices, it also happens to work out, but your devpubd scripts have to
slightly more informed.  If you have a mix of ugen AND ugenif devices,
though, you're pretty much out of luck.

So, this change adds a "ugen-unit" device property which devpubd scripts
can query to determine which /dev/ugenN.xx nodes a given ugen or ugenif
device is using.

(martin)

2024-04-16 18:45:39 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by thorpej in ticket #649):

sys/dev/usb/uftdi.c: revision 1.77
share/man/man4/ugen.4: revision 1.39
sys/dev/usb/ugen.c: revision 1.176
sys/dev/usb/usbdevices.config: revision 1.43

Define a "flags 1" config directive for ugenif, which is similar to ugen's,
but rather forces the ugenif to match at the *lowest* match priority rather
than the highest.  This allows ugenif to claim only otherwise unclaimed
interfaces.

Add a "match quirk" mechanism to the uftdi driver that allows it to
selectively reject individual interfaces based on the combination of
- Vendor ID
- Product ID
- Interface number
- Vendor string
- Product string

This is necessary[*] to allow some devices that would otherwise match
uftdi (and thus instantiate a ucom) to be matched by ugenif instead,
which is required to make the device available to libusb1.

[*] ...due to a deficiency in the USB stack that does not provide a
mechanism for a user-space driver to claim a device from a kernel driver
and then return it back at a later time.

Use this new match quirk mechanism to reject "interface 1" of the
FTDI 2232C-based Tigard debug board; On this board, "interface 0"
is brought out to regular TTL-level UART pins, but "interface 1" is
brought out to SWD and JTAG headers, and is really only useful when
used with something like openocd.  Because the FTDI 2232C on this board
just uses the standard FTDI vendor and product IDs, it can only be
distinguished by the strings, which cannot be specified usbdevices.config,
thus necessitating the match quirk entry (that works in combination
with the ugenif entry added in usbdevices.config).

(martin)

2024-04-16 18:33:47 UTC netbsd-10 commitmail json YAML

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

lib/libc/time/strptime.c: revision 1.66

strptime(3): Declare digit d as time_t.

This doesn't make a semantic difference -- d can only take on the ten
values {0,1,2,3,4,5,6,7,8,9}, and the arithmetic with it later all
comes out the same whether the type is unsigned or time_t, even if
time_t were int32_t instead of int64_t.

But it pacifies overzealous compilers used by downstream users of
this code.  And while it's silly to use a much wider type (64-bit
signed) than is needed here to store a single digit, it doesn't
really hurt either (32-bit unsigned is much larger than needed too).

PR lib/58041

(martin)

2024-04-16 18:17:45 UTC netbsd-10 commitmail json YAML

2024-04-16 16:13:45 UTC MAIN commitmail json YAML

restore amd64 live image support for resize root after combined mbr/gpt commit

we need to resize_gpt now, as it takes precedence over mbr/disklabel
this change brings us to behave like the evbarm images.

XXX: we don't seem to touch disklabel and MBR, but they exist. Not sure whether
that has any negative repercussions, maybe another system might regard MBR as the
sole source of truth when GPT also exists.

(maya)

2024-04-16 14:34:03 UTC MAIN commitmail json YAML

src/sys/external/bsd/drm2/amdgpu/files.amdgpu@1.31 / diff / nxr@1.31
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu.h@1.9 / diff / nxr@1.9
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_acpi.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr/amdgpu_hwmgr.c@1.3 / diff / nxr@1.3
src/sys/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr/amdgpu_smu7_hwmgr.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/i915/display/intel_acpi.h@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/i915/display/intel_opregion.h@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/i915/i915_drv.h@1.49 / diff / nxr@1.49
src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/core/device.h@1.10 / diff / nxr@1.10
src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_acpi.c@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_acpi.h@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_display.c@1.6 / diff / nxr@1.6
src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_drv.h@1.5 / diff / nxr@1.5
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_acpi.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_base.c@1.13 / diff / nxr@1.13
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_pci.c@1.12 / diff / nxr@1.12
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_tegra.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/priv.h@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/nouveau_nvkm_subdev_bios_shadowacpi.c@1.4 / diff / nxr@1.4
src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/mxm/nouveau_nvkm_subdev_mxm_base.c@1.5 / diff / nxr@1.5
      :
(more 12 files)
drm: Set CONFIG_ACPI in linux/acpi.h and make it build.

Leave a little ACPI-related functionality disabled for now, like
getting EDID out of ACPI -- needs a bit more work to make this work,
and I don't have hardware to work on that.

Should help with failures of the forms:

- unable to locate a BIOS ROM
- bios: unable to locate usable image

on various machines.

(riastradh)

2024-04-16 14:29:33 UTC MAIN commitmail json YAML

opensolaris/sys/sys/elf.h: Omit needless __ELF_WORD_SIZE.

(riastradh)

2024-04-16 14:26:53 UTC MAIN commitmail json YAML

nouveau: Rework nouveau2netbsd hack to get ACPI stuff.

(riastradh)

2024-04-16 14:15:53 UTC MAIN commitmail json YAML

2024-04-16 00:03:30 UTC MAIN commitmail json YAML

vax/unimpl_emul.S: Initialise locations storing floating-point values with
a constant of the appropriate format

(kalvisd)

2024-04-15 12:24:53 UTC MAIN commitmail json YAML

Mipsn64* has no 64bit compat, its userland is native n64 - instead it
has n32 compat.

(martin)

2024-04-15 08:06:36 UTC MAIN commitmail json YAML

Add a newline to a printf message.

(simonb)

2024-04-15 06:48:07 UTC MAIN commitmail json YAML

Fix alignment of ddb 'ps/[lw]' output. LID matches PID and has more digits.

(skrll)

2024-04-14 20:10:29 UTC MAIN commitmail json YAML

Only limit the scroll warning, but continue to send the scroll events.

(mlelstv)

2024-04-14 18:02:55 UTC MAIN commitmail json YAML

s/force_comile_error/force_compile_error/

(andvar)

2024-04-14 15:21:20 UTC MAIN commitmail json YAML

make: make string matching platform-independent

Previously, whether the character range '[a-è¾°]' matched, depended on the
signedness of the plain 'char' type.  Since make operates on byte
strings and does not support UTF-8 or other multi-byte character
encodings, this edge case is not expected to occur in practice.

No change in the unit tests as this edge case is not covered by tests.

(rillig)

2024-04-14 12:51:17 UTC MAIN commitmail json YAML

kern/58149: aarch64: Cannot return from a signal handler if SP was misaligned when the signal arrived

Apply the kernel diff from the PR

1. sendsig_siginfo() previously assumed that user SP was always aligned to
  16 bytes and could call signal handlers with SP misaligned. This is a
  wrong assumption because aarch64 demands that SP is aligned *only while*
  it's being used to access memory. Now it properly aligns it before
  pusing anything on the stack.

2. cpu_mcontext_validate() used to check if _REG_SP was aligned and
  considered the ucontext invalid otherwise. This meant if a signal was
  sent to a process whose SP was misaligned, the signal handler would fail
  to return because the ucontext passed from the kernel was an invalid
  one. Now setcontext(2) doesn't complain about misaligned SP.

(skrll)

2024-04-14 12:30:48 UTC MAIN commitmail json YAML

2024-04-14 08:29:54 UTC MAIN commitmail json YAML

Revert previous until Christos has a chance to work out why it breaks
the builds.

(kre)

2024-04-14 07:56:45 UTC MAIN commitmail json YAML

2024-04-14 07:56:13 UTC MAIN commitmail json YAML

2024-04-13 18:38:17 UTC MAIN commitmail json YAML

amd64 live image: support EFI as well as BIOS boot

The biggest caveat is that there's a small number of machines that try to
EFI boot but fail, so would prefer a BIOS only image. I'm not adding a
separate BIOS only image because the live image is pretty niche.
(For regular installation images, we do create a separate BIOS-only version)

(maya)

2024-04-13 17:22:33 UTC MAIN commitmail json YAML

Don't build/install the compat plugin.

(christos)

2024-04-13 14:02:51 UTC MAIN commitmail json YAML

tests/fmtcheck: show that fmtcheck does not support "%2$s"

(rillig)