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

2024-05-10 02:34:51 UTC Now

2023-11-27 19:58:18 UTC netbsd-8 commitmail json YAML

2023-11-27 19:57:29 UTC netbsd-8 commitmail json YAML

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

external/gpl3/binutils/dist/gas/config/tc-mips.c: revision 1.25

binutils: fix gas that doesn't handle MIPS1 FPR load hazard correctly.
Fixes PR/57680.

(martin)

2023-11-27 19:55:23 UTC netbsd-9 commitmail json YAML

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

external/gpl3/binutils/dist/gas/config/tc-mips.c: revision 1.25

binutils: fix gas that doesn't handle MIPS1 FPR load hazard correctly.
Fixes PR/57680.

(martin)

2023-11-27 19:50:37 UTC netbsd-9 commitmail json YAML

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

external/mit/xorg/server/drivers/xf86-input-keyboard/Makefile: revision 1.23 (via patch)

xf86-input-keyboard: add build glue to enable USE_WSKBD_GETMAP.

(martin)

2023-11-27 19:48:00 UTC netbsd-9 commitmail json YAML

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

external/mit/xf86-input-keyboard/dist/src/ws_KbdMap.c: revision 1.1
external/mit/xf86-input-keyboard/dist/src/bsd_kbd.h: revision 1.5
external/mit/xf86-input-keyboard/dist/src/bsd_kbd.c: revision 1.22
external/mit/xf86-input-keyboard/dist/src/kbd.c: revision 1.9

xf86-input-keyboard: add suppport to get keymap via WSKBDIO_GETMAP ioctl(2).

No particular comment on tech-x11@:
https://mail-index.netbsd.org/tech-x11/2023/10/31/msg002415.html
https://mail-index.netbsd.org/tech-x11/2023/11/04/msg002416.html

Tested on NWS-3260 and NWS-3470 with Xorg 1.10 server in netbsd-9.

(martin)

2023-11-27 19:46:14 UTC MAIN commitmail json YAML

Restore original code now that the broken test has been fixed.

(christos)

2023-11-27 19:45:36 UTC MAIN commitmail json YAML

Don't use fmtcheck for strfmon format strings. It does not work. Fix a broken
test.

(christos)

2023-11-27 19:39:54 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by abs in ticket #1765):

sys/dev/acpi/acpi.c: revision 1.284

Stop walking MADT / GTDT subtables if we hit a header with length 0

(martin)

2023-11-27 19:32:23 UTC netbsd-9 commitmail json YAML

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

sys/arch/newsmips/dev/dmac_0448.h: revision 1.7
sys/arch/newsmips/dev/scsi_1185.c: revision 1.25

Use DELAY(9), not empty for() loop that could be optimized out.
No visible regression on NWS-3260 and NWS-3470.

(martin)

2023-11-27 16:13:59 UTC MAIN commitmail json YAML

Restore kpause() accidentially removed with last commit.

(hannken)

2023-11-27 10:03:40 UTC MAIN commitmail json YAML

Implement and use an iterator over LRU lists.

Replace the vdrain kernel thread with two threadpool jobs,
one to process deferred vrele and
one to keep the number of allocated vnodes below limit.

(hannken)

2023-11-27 02:50:27 UTC MAIN commitmail json YAML

mbuf: avoid assertion failure when splitting mbuf cluster

>From OpenBSD:

commit 7b4d35e0a60ba1dd4daf4b1c2932020a22463a89
Author: bluhm <bluhm@openbsd.org>
Date:  Fri Oct 20 16:25:15 2023 +0000

    Avoid assertion failure when splitting mbuf cluster.

    m_split() calls m_align() to initialize the data pointer of newly
    allocated mbuf.  If the new mbuf will be converted to a cluster,
    this is not necessary.  If additionally the new mbuf is larger than
    MLEN, this can lead to a panic.
    Only call m_align() when a valid m_data is needed.  This is the
    case if we do not refecence the existing cluster, but memcpy() the
    data into the new mbuf.

    Reported-by: syzbot+0e6817f5877926f0e96a@syzkaller.appspotmail.com
    OK claudio@ deraadt@

The issue is harmless if DIAGNOSTIC is not enabled.

XXX pullup-10
XXX pullup-9

(ozaki-r)

2023-11-26 12:55:27 UTC netbsd-10 commitmail json YAML

2023-11-26 12:53:08 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #474):
usr.sbin/sysinst/partman.c: revision 1.57
PR 57698: avoid a few potential sysinst crashes in environments where
not all binaries are available - e.g. w/o cgdconfig(8) the "cgds" pointer
would be NULL (as there can't be any) and we crashed when naively
dereferencing it.

(bouyer)

2023-11-26 12:51:24 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #473):
crypto/external/bsd/libsaslc/lib/Makefile: revision 1.11
move line to avoid deprecated declaration errors outside of the kerberos b=
lock.

(bouyer)

2023-11-26 12:40:50 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #471):
usr.sbin/sysinst/label.c: revision 1.50
usr.sbin/sysinst/util.c: revision 1.74
Force alignment of disk buffers to at least 8 byte.
Fixes PR 56434.

(bouyer)

2023-11-26 12:38:56 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by thorpej in ticket #470):
sys/dev/pci/pciide_common.c: revision 1.70
pciide_dma_dmamap_setup(): If we end up with a DMA segment with an odd
length or odd starting address, unload the map and return EINVAL.  Some
controllers get really upset if a DMA segment has an odd address or length.
This can happen if a physio user performs a virtually-contiguous I/O that
starts at an odd address and spans a page boundary where the resulting
physical pages are discontiguous.  The EINVAL return will cause the upper
layers in the ATA code to re-try the I/O using PIO, which should (will
in all of my tests) succeed.
PR port-alpha/56434

(bouyer)

2023-11-26 12:35:26 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #469):
external/gpl3/binutils/dist/gas/config/tc-mips.c: revision 1.25
external/gpl3/binutils.old/dist/gas/config/tc-mips.c: revision 1.8
binutils: fix gas that doesn't handle MIPS1 FPR load hazard correctly.
Fixes PR/57680.
Should be pulled up to netbsd-10, netbsd-9, and netbsd-8.
binutils.old: apply the same fix for mips gas from binutils.
binutils: fix gas that doesn't handle MIPS1 FPR load hazard correctly.
Fixes PR/57680.

(bouyer)

2023-11-26 12:33:19 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #468):
sys/kern/sys_eventfd.c: revision 1.10
eventfd(2): Omit needless micro-optimization causing PR kern/57703.
Unfortunately, owing to PR kern/57705 and PR misc/57706, it isn't
convenient to flip the xfail switch on a test for this bug.  So we'll
do that separately.  (But I did verify that a rumpified version of
the test postd to PR kern/57703 failed without this change, and
passed with this change.)
PR kern/57703
XXX pullup-10

(bouyer)

2023-11-26 12:29:49 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by thorpej in ticket #467):
common/lib/libprop/prop_string.c: revision 1.18
In _prop_string_instantiate(), when we de-dup a non-MUTABLE string, make
sure we free the provided string buffer if NOCOPY is not set.  Fixes
a memory leak reported by M. Boerschig.
While we're at it, also change _prop_string_instantiate() to free the
provided string buffer in the not-NOCOPY case when string object allocation
fails (this was previously handled by _prop_string_instantiate()'s
callers).
PR lib/57699

(bouyer)

2023-11-26 12:26:23 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #466):
xsrc/external/mit/xf86-input-keyboard/dist/src/ws_KbdMap.c: revision 1.1
xsrc/external/mit/xf86-input-keyboard/dist/src/bsd_kbd.h: revision 1.5
xsrc/external/mit/xf86-input-keyboard/dist/src/bsd_kbd.c: revision 1.22
xsrc/external/mit/xf86-input-keyboard/dist/src/kbd.c: revision 1.9
src/external/mit/xorg/server/drivers/xf86-input-keyboard/Makefile: revision 1.23
xf86-input-keyboard: add suppport to get keymap via WSKBDIO_GETMAP ioctl(2).
No particular comment on tech-x11@:
https://mail-index.netbsd.org/tech-x11/2023/10/31/msg002415.html
https://mail-index.netbsd.org/tech-x11/2023/11/04/msg002416.html
Tested on NWS-3260 and NWS-3470 with Xorg 1.10 server in netbsd-9.
Worth to pullup to netbsd-10 and netbsd-9.
xf86-input-keyboard: add build glue to enable USE_WSKBD_GETMAP.

(bouyer)

2023-11-26 12:19:22 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by jdc in ticket #465):
external/mit/xf86-video-pnozz/dist/src/pnozz_exa.c: revision 1.5
external/mit/xf86-video-pnozz/dist/src/pnozz_exa.c: revision 1.6
Revert r1.4.
The changes are minimal and they cause redraw problems (as reported by
Maxim Devaev on port-sparc).
Add NetBSD keyword.

(bouyer)

2023-11-26 12:16:31 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by brad in ticket #464):
sys/dev/gpio/gpioirq.c: revision 1.3
For /dev/ reads against gpioirq(4) implement the following:
o O_NONBLOCK on reads
o Add a d_poll function and associated sel[init|notify|record|destroy]
  calls to the driver so that select(2) and poll(2) work as expected.
With these in place async use cases work against /dev/gpioirqN

(bouyer)

2023-11-26 12:13:19 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by brad in ticket #463):
share/man/man4/gpiosim.4: revision 1.7
sys/dev/gpio/gpiosim.c: revision 1.25
Simple simulated interrupts for the simulated GPIO device gpiosim(4)

(bouyer)

2023-11-26 11:54:31 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #462):
sys/arch/newsmips/dev/dmac_0448.h: revision 1.7
sys/arch/newsmips/dev/scsi_1185.c: revision 1.25
Use DELAY(9), not empty for() loop that could be optimized out.
No visible regression on NWS-3260 and NWS-3470.

(bouyer)

2023-11-26 11:45:16 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by brad in ticket #461):
sys/dev/gpio/gpiovar.h: revision 1.19
share/man/man4/gpioirq.4: revision 1.4 via patch
sys/dev/gpio/gpio.c: revision 1.73
etc/MAKEDEV.tmpl: revision 1.234
sys/conf/majors: revision 1.103
sys/dev/gpio/gpioirq.c: revision 1.2
gpioirq(4) version 2
This update makes this driver more than just an example and allows for:
o More than one pin to be attached to a gpioirq instance.  That is,
  the mask parameter can be greater than 0x01 now.
o A /dev/gpioirqN device that allows GPIO pin interrupts to be
  transported into userland.  This is a device that can be opened for
  reading with a simple fixed output indicating the device unit, pin
  number and current pin state.
This update was used as part of a physical intrusion detection system
where multiple switches (i.e. window magnetic reed switches and etc.)
are tied to a bunch of GPIO inputs with userland software that reacts
to the pins changing state.

(bouyer)

2023-11-26 11:37:03 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by jdolecek in ticket #460):
sys/dev/pci/if_ena.c: revision 1.35
sys/dev/pci/if_ena.c: revision 1.36
sys/dev/pci/if_ena.c: revision 1.37
sys/dev/pci/if_ena.c: revision 1.38
sys/dev/pci/if_ena.c: revision 1.39
sys/external/bsd/ena-com/ena_plat.h: revision 1.10
sys/dev/pci/if_enavar.h: revision 1.9
sys/external/bsd/ena-com/ena_com.c: revision 1.2
sys/external/bsd/ena-com/ena_com.c: revision 1.3
sys/external/bsd/ena-com/ena_com.c: revision 1.4
sys/dev/pci/if_ena.c: revision 1.40
sys/external/bsd/ena-com/ena_com.h: revision 1.2
ena(4): replace malloc(9) to kmem(9)
Code contributed by KUSABA Takeshi <t-kusaba@iij.ad.jp>
ena(4): prevent AENQ handler from use-after-free
Code contributed by KUSABA Takeshi <t-kusaba@iij.ad.jp>
ena(4): destroy all wait_event
Code contributed by KUSABA Takeshi <t-kusaba@iij.ad.jp>
ena(4): support RSS and delete FreeBSD-specified code
Code contributed by KUSABA Takeshi <t-kusaba@iij.ad.jp>
ena(4) is MP-ready, always use MPSAFE
Code contributed by KUSABA Takeshi <t-kusaba@iij.ad.jp>
ena(4): establish interrupt after setting up resources
Code contributed by KUSABA Takeshi <t-kusaba@iij.ad.jp>
ena(4): stop management first when detaching
Code contributed by KUSABA Takeshi <t-kusaba@iij.ad.jp>

(bouyer)

2023-11-26 06:38:28 UTC MAIN commitmail json YAML

ppb(4): Print out PCIe Gen5 link speed correctly

(rin)

2023-11-25 20:17:52 UTC MAIN commitmail json YAML

gicv2: Fix truncation of GICC / GICD base addresses above 4GB.

(jmcneill)

2023-11-25 20:00:25 UTC MAIN commitmail json YAML

Make building of more files conditional on MKLLVMRT.

Make r300_state_derived.c compile with gcc 12.

(rjs)

2023-11-25 19:43:26 UTC MAIN commitmail json YAML

PR 57698: avoid a few potential sysinst crashes in environments where
not all binaries are available - e.g. w/o cgdconfig(8) the "cgds" pointer
would be NULL (as there can't be any) and we crashed when naively
dereferencing it.

(martin)

2023-11-25 15:39:51 UTC MAIN commitmail json YAML

ftpd: deduplicate gcc warning avoidance
OK lukem@

(prlw1)

2023-11-25 12:15:00 UTC MAIN commitmail json YAML

2023-11-25 12:11:27 UTC MAIN commitmail json YAML

tools/binutils: Add support to mknative for binutils.old

(rin)

2023-11-25 12:09:59 UTC MAIN commitmail json YAML

binutils.old/bfd: Require 64-bit integer support for vax

Taken from binutils/bfd:
https://mail-index.netbsd.org/source-changes/2023/11/25/msg148607.html

(rin)

2023-11-25 12:07:58 UTC MAIN commitmail json YAML

binutils.old/gas: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [11/21]

PR toolchain/43314: pc relative relocations are "off by 1*size" on vax

Address http://gnats.netbsd.org/43314

Taken from binutils/gas:
https://mail-index.netbsd.org/source-changes/2023/10/07/msg147942.html

(rin)

2023-11-25 12:06:43 UTC MAIN commitmail json YAML

binutils.old/gas: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [10/21]

Try not to emit relocations in the .eh_frame section

Taken from binutils/gas:
https://mail-index.netbsd.org/source-changes/2023/10/07/msg147941.html

(rin)

2023-11-25 12:05:22 UTC MAIN commitmail json YAML

binutils.old/gas: vax: Cherry-pick upstream commits for binutils-gdb:30715

PR port-vax/57646: Import major vax toolchain fix by Kalvis Duckmanton

Taken from binutils/gas:
https://mail-index.netbsd.org/source-changes/2023/10/07/msg147931.html

(rin)

2023-11-25 11:58:34 UTC MAIN commitmail json YAML

2023-11-25 11:57:55 UTC MAIN commitmail json YAML

binutils/bfd: Require 64-bit integer support for vax

Otherwise, e.g., gas cannot assemble 64-bit immediates correctly on
ILP32 hosts.

Thanks hans@ for analysis:
https://mail-index.netbsd.org/port-vax/2023/11/23/msg004546.html

(rin)

2023-11-25 10:08:27 UTC MAIN commitmail json YAML

Adapt to bignum representation of target.
Fix negotiation for mutual authentication.
Prepare for more CHAP types.
Fix crashes for invalid socket descriptors passed to kernel.
Protect usecount with connection mutex, avoids race on connection close.
Minor cosmetics.

(mlelstv)

2023-11-25 08:06:02 UTC MAIN commitmail json YAML

Parse IPv6 targets and handle IPv6 addresses.

(mlelstv)

2023-11-25 01:22:53 UTC MAIN commitmail json YAML

Add history of various security advisories to ChangeLog and NEWS.

(lukem)

2023-11-24 21:17:49 UTC MAIN commitmail json YAML

Add two BTB entries.

(alnsn)

2023-11-24 18:45:46 UTC MAIN commitmail json YAML

move line to avoid deprecated declaration errors outside of the kerberos block.

(christos)

2023-11-24 17:40:20 UTC MAIN commitmail json YAML

t_dlinfo, t_rtld_r_debug: Audit ATF_REQUIRE/CHECK, sprinkle messages.

Make sure to use ATF_REQUIRE when the subsequent code doesn't work if
the check fails.

(riastradh)

2023-11-24 17:40:09 UTC MAIN commitmail json YAML

rtld tests: Don't use RZ for dlinfo.

Use

ATF_REQUIRE_EQ_MSG(dlinfo(...), 0, "dlinfo: %s", dlerror())

instead, in order to accurately report the error on failure.  RZ is
only for functions like pthread_create(3) that return zero on success
and errno(3) code on failure, but dlinfo returns -1 on failure and
sets dlerror() to report the nature of the error.

(riastradh)

2023-11-24 17:31:03 UTC MAIN commitmail json YAML

tests: Audit RZ abuse.

RZ succeeds if x is zero, and fails if x is nonzero, treating a
nonzero value as a error number as in errno(3) to print the message.

The following library routines instead return -1 on failure and set
errno to the error code:

fuse_opt_add_arg
fuse_opt_add_opt
fuse_opt_add_opt_escaped
fuse_opt_insert_arg
lseek
system

So use RL instead for those -- succeeds if x is zero, and fails if x
is -1.

This shouldn't make any tests newly fail or newly succeed -- the
functions in question only ever return 0 or -1 -- but if the tests
were already failing anywhere, they will now fail with meaningful
messages.

TBD: dlinfo, which isn't fit for RL or RZ since it reports errors via
dlerror() rather than errno.

(riastradh)

2023-11-24 17:19:55 UTC MAIN commitmail json YAML

t_setrlimit uses alloca now

(christos)

2023-11-24 16:49:59 UTC MAIN commitmail json YAML

Make this compile again with options RESIDUAL_DATA_DUMP (Andrius V)

(christos)

2023-11-24 16:36:23 UTC MAIN commitmail json YAML

t_rnd: Nix trailing whitespace.

No functional change intended.

(riastradh)

2023-11-24 16:35:51 UTC MAIN commitmail json YAML

t_rnd: Fix misuse of RZ.

Not likely to matter, but in the unlikely event that rump_sys_close
fails, it will return -1 and set errno as RL expects, not return the
error code as RZ expects.

(riastradh)

2023-11-24 16:21:17 UTC MAIN commitmail json YAML

2023-11-24 15:13:36 UTC MAIN commitmail json YAML

Style changes.  No functional change.

(brad)

2023-11-23 23:29:42 UTC MAIN commitmail json YAML

share/man/man7/Makefile: Hook stack.7

(rin)

2023-11-23 21:44:55 UTC MAIN commitmail json YAML

stack(7): Consistently say `(in)accessible pages', not `... stack'.

PR pkg/57708

XXX pullup-10

(riastradh)

2023-11-23 21:30:03 UTC MAIN commitmail json YAML

stack(7): Clarify some wording and diagrams.

PR pkg/57708

XXX pullup-10

(riastradh)

2023-11-23 21:27:08 UTC MAIN commitmail json YAML

stack(7): Clarify thread stack guard vs program stack guard.

Just in case this confuses anyone dealing with PR pkg/57708.

XXX pullup-10

(riastradh)

2023-11-23 21:20:50 UTC MAIN commitmail json YAML

stack(7): New man page.

Should help with PR pkg/57708.

XXX pullup-10

(riastradh)

2023-11-23 21:16:13 UTC MAIN commitmail json YAML

share/man/man7/Makefile: Split MAN on separate lines, and sort.

Makes sorting and merging changes easier.

No functional change intended.

Preparing for a new stack(7) in the service of PR pkg/57708.

XXX pullup-10

(riastradh)

2023-11-23 20:40:08 UTC MAIN commitmail json YAML

Few more changes for playstation2 specific code to adapt to interface or method
declaration changes. Still long way before port code can be built though...

reviewed by martin.

(andvar)

2023-11-22 17:48:35 UTC MAIN commitmail json YAML

2023-11-22 13:19:50 UTC MAIN commitmail json YAML

vfs(9): Make sure to kpause at least one tick, not zero.

kpause(9) forbids zero.

Local workaround for wider problem in PR kern/57718, to address
immediate symptom of crash on any system with hz=50, e.g. alpha in
qemu:

panic: kernel diagnostic assertion "timo != 0 || intr" failed: file "/usr/src/sys/kern/kern_synch.c", line 249

XXX pullup-10
XXX pullup-9
XXX pullup-8

(riastradh)

2023-11-22 13:18:49 UTC MAIN commitmail json YAML

kpause(9): KASSERT -> KASSERTMSG

PR kern/57718 (might help to diagnose manifestations of the problem)

(riastradh)

2023-11-22 12:15:09 UTC MAIN commitmail json YAML

PAGE_SIZE will not evaluate to a vaddr_t expression on all architectures
(e.g. sparc), so cast it to that.

(martin)

2023-11-22 03:52:58 UTC MAIN commitmail json YAML

lagg(4): Added logs about LACP processing

(yamaguchi)

2023-11-22 03:49:13 UTC MAIN commitmail json YAML

2023-11-22 03:30:57 UTC MAIN commitmail json YAML

Set ETHERCAP_VLAN_HWTAGGING on lagg(4)
that doesn't has physical interfaces

(yamaguchi)

2023-11-22 03:28:57 UTC MAIN commitmail json YAML

lagg(4): Fix missing pfil_run_hooks() and bpf_mtap()

(yamaguchi)

2023-11-22 03:27:00 UTC MAIN commitmail json YAML

Update sending interval when the partner's state is changed

(yamaguchi)

2023-11-22 03:23:54 UTC MAIN commitmail json YAML

Change LACPDU sending interval by TIMEOUT bit in partner's state

(yamaguchi)

2023-11-22 02:20:34 UTC MAIN commitmail json YAML

t_setrlimit: Fix typos in comments and messages.

No substantive change intended.  Suggested by rillig@.

PR kern/57711

XXX pullup-10
XXX pullup-9
XXX pullup-8

(riastradh)

2023-11-22 02:01:07 UTC MAIN commitmail json YAML

2023-11-22 01:58:02 UTC MAIN commitmail json YAML

Changes to let the Alpha DDB code build in user-space for crash(8).

(thorpej)

2023-11-22 01:56:14 UTC MAIN commitmail json YAML

If not _KERNEL, include <stddef.h> to make sure we have offsetof().

(thorpej)

2023-11-21 23:22:23 UTC MAIN commitmail json YAML

pci_machdep.c & pci_msi_machdep.c: comment fixes

Correct spelling and grammar in some comments.

(gutteridge)

2023-11-21 23:09:40 UTC MAIN commitmail json YAML

if_wm.c: fix spelling and grammar in a comment

(gutteridge)

2023-11-21 22:27:41 UTC MAIN commitmail json YAML

Expose alpha_print_instruction_context to not-_KERNEL.

(thorpej)

2023-11-21 22:25:16 UTC MAIN commitmail json YAML

pal_opname(): Make the static buffer for unknown PALcode ops large enough
to hold all possible values.
alpha_print_instruction(): Make this private if not-_KERNEL.

(thorpej)

2023-11-21 22:19:13 UTC MAIN commitmail json YAML

2023-11-21 21:53:06 UTC MAIN commitmail json YAML

Ensure that all fields of db_regs[] are initialized.

(thorpej)

2023-11-21 21:23:56 UTC MAIN commitmail json YAML

2023-11-21 20:40:24 UTC MAIN commitmail json YAML

Reduce db_trace.c's exposure to proc/lwp.

(thorpej)

2023-11-21 20:29:47 UTC MAIN commitmail json YAML

decode_prologue(): Make pc a db_addr_t, not a db_expr_t.
db_stack_trace_print_ra(): Missed one direct reference to XentSys; fix.

(thorpej)

2023-11-21 19:59:07 UTC MAIN commitmail json YAML

Refactor the special symbol handling out of db_trace.c into
db_interface.c, and abstract it away from having to read kernel
symbols directly.

(thorpej)

2023-11-21 18:57:29 UTC MAIN commitmail json YAML

Don't access insns or frame values directly; use db_read_bytes().

(thorpej)

2023-11-21 17:52:51 UTC MAIN commitmail json YAML

Don't open-code tailq access.

(thorpej)

2023-11-21 14:35:36 UTC MAIN commitmail json YAML

pax(9): Rework header file more coherently to nix some needless #ifs.

Cleans up some of the fallout from PR kern/57711 fixes.

Could do a little more to nix PAX_SEGVGUARD conditionals but maybe
not worth it.

(riastradh)

2023-11-21 14:35:01 UTC MAIN commitmail json YAML

ddb: New db_stack_trace_print_ra.

Takes an optional extra argument for the return address so that the
stack parser has a chance to use instruction-dependent interpretation
of the frame to find parent frames.

Implemented only on Alpha for now, which needs it.  Other
architectures just ignore the extra argument.

PR port-alpha/57716

XXX pullup-10
XXX pullup-9
XXX pullup-8

(riastradh)

2023-11-21 12:12:26 UTC MAIN commitmail json YAML

Stopgap build fix for kernels w/o PAX_MPROTECT after the fixes
for PR 57711: mark variable as unused (sometimes, e.g. in macppc kernels).

(martin)

2023-11-21 00:09:19 UTC MAIN commitmail json YAML

exec: Map noaccess part of stack with prot=NONE, maxprot=READ|WRITE.

This way, setrlimit(RLIMT_STACK) can grant READ|WRITE access when
increasing the stack size.

PR kern/57711

XXX pullup-10
XXX pullup-9
XXX pullup-8

(riastradh)

2023-11-20 21:59:38 UTC MAIN commitmail json YAML

pciide_dma_dmamap_setup(): If we end up with a DMA segment with an odd
length or odd starting address, unload the map and return EINVAL.  Some
controllers get really upset if a DMA segment has an odd address or length.
This can happen if a physio user performs a virtually-contiguous I/O that
starts at an odd address and spans a page boundary where the resulting
physical pages are discontiguous.  The EINVAL return will cause the upper
layers in the ATA code to re-try the I/O using PIO, which should (will
in all of my tests) succeed.

PR port-alpha/56434

(thorpej)

2023-11-20 21:45:34 UTC MAIN commitmail json YAML

Revert previous.  I'm going to make a slight change to the patch, and
want it collapsed into a single commit to make it easier to pull into
netbsd-10.

(thorpej)

2023-11-20 21:16:42 UTC MAIN commitmail json YAML

2023-11-20 21:11:20 UTC MAIN commitmail json YAML

+ML-KEM  module-lattice based key-encapsulation mechanism

(I previously added "KEM", but now that Kyber is ML-KEM it comes up frequently
enough that 'wtf ml; 'wtf kem' doesn't help folks find the answer.)

(jschauma)

2023-11-20 18:03:55 UTC MAIN commitmail json YAML

Force alignment of disk buffers to at least 8 byte.
Fixes PR 56434.

(martin)

2023-11-20 15:16:46 UTC MAIN commitmail json YAML

pciide_dma_dmamap_setup(): If we end up with a DMA segment with an odd
length, unload the map and return EIO.  Some controllers get really upset
if a DMA segment has an odd length.  This can happen if a physio user
performs a virtually-contiguous I/O that starts at an odd address and spans
a page boundary where the resulting physical pages are discontiguous.

Ultimately, it's up to the physio user to paint inside the lines, but this
will prevent the disk controller from wandering off into the weeds, at least.

PR port-alpha/56434

(thorpej)

2023-11-20 13:05:17 UTC MAIN commitmail json YAML

t_setrlimit: Verify changing RLIMIT_STACK affects access to stack.

PR kern/57711

XXX pullup-10
XXX pullup-9
XXX pullup-8

(riastradh)

2023-11-20 04:26:34 UTC MAIN commitmail json YAML

cy_isa_probe(): No need to put a ~3KB cy_softc on the stack.

(thorpej)

2023-11-20 03:05:48 UTC MAIN commitmail json YAML

2023-11-19 22:50:11 UTC MAIN commitmail json YAML

2023-11-19 22:32:44 UTC MAIN commitmail json YAML

2023-11-19 22:06:15 UTC MAIN commitmail json YAML

2023-11-19 21:47:52 UTC MAIN commitmail json YAML

tests/make: replace 'variable expression' with 'expression'

Each expression is based on a variable, there's no need for the
verbosity.  The wording in make's diagnostics will be changed in a
follow-up commit.

(rillig)

2023-11-19 20:01:48 UTC MAIN commitmail json YAML

Add some VirtIO devies.  virtio-scsi and virtio-rng are tested a bit,
virtio-blk does not work, virtio-net not yet tested.

(thorpej)

2023-11-19 19:49:44 UTC MAIN commitmail json YAML

On alpha and sparc64, use VirtIO 1.0 and VIRTIO_F_ACCESS_PLATFORM so
that DMA to PCI-attached VirtIO devices works properly.  This is needed
for Qemu to select the appropriate address space for PCI DMA.

(thorpej)

2023-11-19 19:47:03 UTC MAIN commitmail json YAML

Define the VIRTIO_F_ACCESS_PLATFORM, VIRTIO_F_RING_PACKED,
VIRTIO_F_ORDER_PLATFORM, and VIRTIO_F_SR_IOV feature bits.

(thorpej)

2023-11-19 18:57:11 UTC MAIN commitmail json YAML

minimize diffs with FreeBSD.

(christos)

2023-11-19 17:16:00 UTC MAIN commitmail json YAML

eventfd(2): Prune dead branch.

Fallout from PR kern/57703 fix.

XXX pullup-10

(riastradh)

2023-11-19 12:11:34 UTC MAIN commitmail json YAML

2023-11-19 11:47:49 UTC MAIN commitmail json YAML

2023-11-19 11:37:44 UTC MAIN commitmail json YAML

tests/make: test non-integer fallback in ':mtime' modifier

(rillig)

2023-11-19 11:30:28 UTC MAIN commitmail json YAML

make: extract detection of ':from=to' to a separate function

No functional change.

(rillig)

2023-11-19 09:45:19 UTC MAIN commitmail json YAML

2023-11-19 04:13:38 UTC MAIN commitmail json YAML

eventfd(2): Omit needless micro-optimization causing PR kern/57703.

Unfortunately, owing to PR kern/57705 and PR misc/57706, it isn't
convenient to flip the xfail switch on a test for this bug.  So we'll
do that separately.  (But I did verify that a rumpified version of
the test postd to PR kern/57703 failed without this change, and
passed with this change.)

PR kern/57703

XXX pullup-10

(riastradh)

2023-11-19 03:58:15 UTC MAIN commitmail json YAML

m68k: Remove an unused variable since rev 1.1.
Detected by clang15 (nono emulator has imported and used this FPE).

(isaki)

2023-11-18 20:19:08 UTC MAIN commitmail json YAML

make: clean up the modifier ':[...]'

No functional change.

(rillig)

2023-11-18 19:46:55 UTC MAIN commitmail json YAML

t_fdrestart: Mark some tests no longer xfail.

Backing out ad's changes last month seemed to fix the symptoms
(although I'm pretty sure this logic is still broken, more to come).

PR kern/57659

(riastradh)

2023-11-18 19:25:43 UTC MAIN commitmail json YAML

tests/make: test parsing of the ':?' modifier

(rillig)

2023-11-17 23:08:27 UTC MAIN commitmail json YAML

binutils.old: apply the same fix for mips gas from binutils.

> binutils: fix gas that doesn't handle MIPS1 FPR load hazard correctly.
> Fixes PR/57680.

(tsutsui)

2023-11-17 23:06:05 UTC MAIN commitmail json YAML

binutils: fix gas that doesn't handle MIPS1 FPR load hazard correctly.

Fixes PR/57680.
Should be pulled up to netbsd-10, netbsd-9, and netbsd-8.

(tsutsui)

2023-11-17 22:46:19 UTC MAIN commitmail json YAML

Move more changes pulled up to netbsd-10 from CHANGES to CHANGES.prev.

(tsutsui)

2023-11-17 22:14:16 UTC MAIN commitmail json YAML

Remove a duplicated entry of OpenSSL 3.0.9 import.

(tsutsui)

2023-11-17 21:52:14 UTC MAIN commitmail json YAML

Fix formats for "Recent changes" pages on www.NetBSD.org.

(tsutsui)

2023-11-17 21:48:12 UTC MAIN commitmail json YAML

Move a pulled up newsmips LCD-MONO framebuffer entry to CHANGES.prev.

(tsutsui)

2023-11-17 21:29:33 UTC MAIN commitmail json YAML

In _prop_string_instantiate(), when we de-dup a non-MUTABLE string, make
sure we free the provided string buffer if NOCOPY is not set.  Fixes
a memory leak reported by M. Boerschig.

While we're at it, also change _prop_string_instantiate() to free the
provided string buffer in the not-NOCOPY case when string object allocation
fails (this was previously handled by _prop_string_instantiate()'s
callers).

PR lib/57699

(thorpej)

2023-11-16 18:06:05 UTC MAIN commitmail json YAML

Set the timezone too when invoking date with a timestamp because it can
be affected too:
$ env TZ=UTC date -r 1700157305
Thu Nov 16 17:55:05 UTC 2023
$ env TZ=UTC24:24:24 date -r 1700157305
Wed Nov 15 17:30:41 UTC 2023

(christos)

2023-11-16 14:45:40 UTC thorpej-ifq commitmail json YAML

- Rename if_transmit() -> if_transmit_default()
- In if_enqueue(), handle the ALTQ-is-enabled case by creating a sort of
  chimera from ifq_put_slow() and if_transmit_default(), mainly to avoid
  having to repeatedly take and release the ifq lock.

(thorpej)

2023-11-16 05:39:08 UTC MAIN commitmail json YAML

ixgbe: Modify for the readability. No functional change.

(msaitoh)

2023-11-16 05:13:14 UTC thorpej-ifq commitmail json YAML

2023-11-16 05:02:23 UTC thorpej-ifq commitmail json YAML

Clean up the locking protocol around altq_etherclassify().  It's no longer
required to acquire KERNEL_LOCK *just* because ALTQ is compiled into the
kernel; you only have to acquire it if ALTQ is enabled on the interface
in question.

(thorpej)

2023-11-16 04:30:22 UTC thorpej-ifq commitmail json YAML

2023-11-15 22:11:38 UTC MAIN commitmail json YAML

2023-11-15 22:11:17 UTC MAIN commitmail json YAML

2023-11-15 14:03:19 UTC MAIN commitmail json YAML

+NTA  negative trust anchor
(DNSSEC, RFC7646)

(jschauma)

2023-11-15 12:39:46 UTC thorpej-ifq commitmail json YAML

wg_output(): Use ifq_classify_packet(), and let that function check
for ALTQ-enabled.  Acquire KERNEL_LOCK before calling ALTQ_ENQUEUE().
XXX The ALTQ integration here is a mess.

(thorpej)

2023-11-15 03:50:22 UTC MAIN commitmail json YAML

2023-11-15 03:35:04 UTC MAIN commitmail json YAML

don't expose extra symbols.

(christos)

2023-11-15 03:15:28 UTC MAIN commitmail json YAML

provide materialized functions for the ssp overriden inlines

(christos)

2023-11-15 03:14:16 UTC MAIN commitmail json YAML

Allow __ssp_inline to be overriden

(christos)

2023-11-15 02:43:38 UTC MAIN commitmail json YAML

ixv(4): Remove unused IFF_OACTIVE. No functional change.

(msaitoh)

2023-11-15 02:23:52 UTC MAIN commitmail json YAML

altqd.8: grammar tweak (verb phrase)

(gutteridge)

2023-11-15 02:19:00 UTC thorpej-ifq commitmail json YAML

Protect the ALTQ state that's exposed to the ifqueue if the ifq->ifq_lock.
This requires exposing some implementation details to ALTQ, which is guarded
by an __IFQ_PRIVATE define.

(thorpej)

2023-11-15 02:08:34 UTC thorpej-ifq commitmail json YAML

2023-11-14 14:47:04 UTC thorpej-ifq commitmail json YAML

2023-11-14 03:03:18 UTC MAIN commitmail json YAML

ixgbe(4): Modify comment. No functional change.

ixgbe_tx_ctx_setup() may or may not consume one TX descriptor.

(msaitoh)

2023-11-14 02:31:46 UTC MAIN commitmail json YAML

ixgbe(4): Move assignment of TXD. NFCI.

(msaitoh)

2023-11-14 02:29:11 UTC thorpej-altq-separation commitmail json YAML

Update for the new location of altq_flags (not in if_snd directly).

(thorpej)

2023-11-13 21:01:51 UTC MAIN commitmail json YAML

Use TOOL_DATE (Jan-Benedict Glaw)

(christos)

2023-11-13 19:07:00 UTC MAIN commitmail json YAML

avoid dependency on NETBSDSRCDIR being set.

due to various things, non-build.sh builds don't have it set already
and it ends up defaulting to /usr/src, so if that doesn't exist or
is the wrong version, building libkern fails.

XXX: pullup-10, ..?

(mrg)

2023-11-13 15:08:06 UTC MAIN commitmail json YAML

eqos(4): Extend bitwidth of SYSBUS_MODE_{RD,WR}_OSR_LMT to 4bits.

(msaitoh)

2023-11-13 15:07:19 UTC MAIN commitmail json YAML

eqos(4): Set bit 31 when writing MAC_ADDRESS0_HIGH register.

(msaitoh)

2023-11-13 08:10:53 UTC MAIN commitmail json YAML

2023-11-13 08:07:24 UTC MAIN commitmail json YAML

add some newer Areca boards in prep for updating driver

(jnemeth)

2023-11-12 13:56:20 UTC MAIN commitmail json YAML

pci: Improve resource allocation for non-prefetchable BARs.

When allocating resources for PCI devices, use the following criteria:
- Prefetchable memory must be allocated from the prefetchable range
  of the parent bridge.
- For 64-bit MMIO, try the prefetchable range first, and fallback to
  the non-prefetchable range. The idea here is to preserve 32-bit resources
  for 32-bit BARs.
- For 32-bit MMIO, try the non-prefetchable range first. If that fails,
  make one last attempt at allocating from the prefetchable range, in the
  event that it has resources below 4GB.

(jmcneill)

2023-11-11 17:35:45 UTC MAIN commitmail json YAML

gicv3_its: assorted minor improvements

- KASSERT that the command queue is not stalled due to async error
  before issuing more commands.
- implement gits_command_int under #if 0 (useful for troubleshooting)
- protect command queue with its_lock consistently
- KASSERT for 32-bit MSI that upper bits are 0
- KASSERT return value of gicv3_its_msi_alloc_lpi
- KASSERT that safe conditions for writing to CBASER are met
- move CWRITER initialization to before CBASER
- fix alignment of tables for the 16KB page size case

(tnn)

2023-11-11 13:16:31 UTC thorpej-altq-separation commitmail json YAML

2023-11-10 23:04:50 UTC MAIN commitmail json YAML

Add test for:
PR/57689: RVP: getcwd() not overridable with -D_FORTIFY_SOURCE

(christos)

2023-11-10 23:03:37 UTC MAIN commitmail json YAML

PR/57689: RVP: getcwd() not overridable with -D_FORTIFY_SOURCE

(christos)

2023-11-10 23:03:25 UTC MAIN commitmail json YAML

2023-11-10 21:05:23 UTC MAIN commitmail json YAML

Set the file creation mask

(christos)

2023-11-10 20:44:58 UTC MAIN commitmail json YAML

Add missing backslash (Jan-Benedict Glaw)

(christos)

2023-11-10 13:17:17 UTC MAIN commitmail json YAML

For /dev/ reads against gpioirq(4) implement the following:

o O_NONBLOCK on reads

o Add a d_poll function and associated sel[init|notify|record|destroy]
  calls to the driver so that select(2) and poll(2) work as expected.

With these in place async use cases work against /dev/gpioirqN

(brad)

2023-11-09 07:29:26 UTC MAIN commitmail json YAML

libc/compiler_rt: Consistently use LIBC_MACHINE_{ARCH,CPU}

Instead of MACHINE_{ARCH,CPU}, respectively.

With this change, unnecessary comparetf2.c is no longer
compiled in for 32-bit compat libc on aarch64.

(rin)

2023-11-08 23:46:55 UTC MAIN commitmail json YAML

Simple simulated interrupts for the simulated GPIO device gpiosim(4)

(brad)

2023-11-08 19:27:13 UTC MAIN commitmail json YAML

Use a #define for sockaddr_un.sun_path and add the historical context around
why it is set to 104. (struct sockaddr needed to fit into an mbuf)

>From FreeBSD; no objections on current-users@.

(jschauma)

2023-11-08 14:25:13 UTC MAIN commitmail json YAML

2023-11-08 13:02:47 UTC MAIN commitmail json YAML

2023-11-08 13:02:03 UTC MAIN commitmail json YAML

add umask for kernel creation consistency

(christos)

2023-11-08 12:58:04 UTC MAIN commitmail json YAML

2023-11-08 10:37:54 UTC netbsd-10 commitmail json YAML

Note doc/3RDPARTY adjustment for libfido2 pullup in ticket #345

(martin)

2023-11-08 10:35:53 UTC netbsd-10 commitmail json YAML

Adjust libfido2 entry (should have been part of ticket #345)

(martin)

2023-11-07 21:39:30 UTC MAIN commitmail json YAML

Remove ksyms from AGATE/DEBUG configs, it is defined in included default config.
Remove unneeded "channel ?" for atapibus* in DEBUG config.
Add "midi* at midibus?" needed for umidi to compile in DEBUG config.
Change SOFTFLOAT to FPEMUL in std.playstation2 (property was renamed).

playstation2 code was likely never fully restored/fixed and doesn't build, but
these changes would be needed in case someone will.

(andvar)

2023-11-07 21:19:04 UTC MAIN commitmail json YAML

add explicit void in function declaration to fix old-style function declaration.

(andvar)

2023-11-07 14:34:36 UTC MAIN commitmail json YAML

xf86-input-keyboard: add build glue to enable USE_WSKBD_GETMAP.

(tsutsui)

2023-11-07 14:29:01 UTC MAIN commitmail json YAML

2023-11-07 14:07:23 UTC MAIN commitmail json YAML

doc/3RDPARTY: Update current version of Postfix

Postfix 3.8.3/3.7.8 relased 2023-11-01.

(taca)

2023-11-07 13:38:01 UTC MAIN commitmail json YAML

virtio_read_device_config_le_[24]: Fix for {aarch64,arm}eb

Stop byte-swapping for big-endian aarch64 and arm to fix
corrupted read for, e.g., sc_taglen for vio9p(4).

As described as comments in virtio_pci.c, big-endian aarch64 and
armv7 (armeb) are somewhat special. At the moment, all supported
virtual/real machines are configured as little-endian, and only
CPU cores are switched to big-endian mode during early boot stage.

Most peripheral buses for armeb are LSB as a result, and their
default bus_space(9) functions swap byte-order. Therefore, PIOed
data from memory-mapped devices, as well as pci(4) ones, are
actually LSB, but observed as MSB for armeb.

Therefore, we should not swap byte-order further in
virtio_read_device_config_le_[24] on armeb.

Thanks ozaki-r@ for comments.

XXX Centralize?
See virtio_pci.c and sys/dev/fdt/virtio_mmio_fdt.c also.

(rin)

2023-11-07 13:31:26 UTC MAIN commitmail json YAML

smccc: Adjust SMCCC_ARCH_ATTRIBUTE for clang/arm

Conditionally use

(1) __attribute__ ((target("arch=armv7ve")))
(2) __attribute__ ((target("armv7ve")))

for gcc and clang, respectively.

While gcc does not accept (2), clang accepts (1) but silently ignores it :(

(rin)

2023-11-07 00:53:39 UTC MAIN commitmail json YAML

gpt.8: fix grammar in a sentence

(gutteridge)

2023-11-06 22:35:48 UTC MAIN commitmail json YAML

Add -fmacro-prefix-map set like -fdebug-prefix-map (Jan-Benedict Glaw)

See:
https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html\
    #index-fmacro-prefix-map
https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html\
    #index-fdebug-prefix-map

(christos)

2023-11-06 17:02:17 UTC MAIN commitmail json YAML

nvmm_x86_vmx: vmx_vmptrst: Sprinkle __diagused to fix clang !DIAGNOSTIC build

(rin)

2023-11-06 17:01:07 UTC MAIN commitmail json YAML

xen_ipi: valid_ipimask: Sprinkle __diagused to fix clang !DIAGNOSTIC build

(rin)

2023-11-06 14:33:51 UTC MAIN commitmail json YAML

radeon: fix and enable ACPI methods for getting ROM BIOS

The hacky way of getting the BIOS mapped only works on x86. ACPI
should be preferred if available. Makes BIOS reading though VFCT
work on aarch64 with EDK2. (But only if EDK2 has POSTed the GPU.)

XXX amdgpu should get the same treatment.

(tnn)

2023-11-06 13:48:13 UTC MAIN commitmail json YAML

t_fenv: Factor checks out of switch in checkrounding.

No functional change intended, just tidies up a bit.

PR port-mips/57680

XXX pullup-10

(riastradh)

2023-11-06 13:48:00 UTC MAIN commitmail json YAML

t_fenv: Use volatile intermediate to force rounding to double.

See comment for details about why this is necessary.

Should fix these tests on i386 (and perhaps m68k too).

PR port-mips/57680

XXX pullup-10

(riastradh)

2023-11-06 12:18:59 UTC MAIN commitmail json YAML

Print the inode numbers of persistent snapshots.

PR kern/57675 "persistent file system snapshots aren't obvious"

(hannken)

2023-11-06 12:17:50 UTC MAIN commitmail json YAML

As the number of allocated vnodes goes beyond 106% of desiredvnodes
start throttling threads allocating new vnodes at a rate of ~100 new
vnodes per second and thread.

(hannken)

2023-11-06 12:16:52 UTC MAIN commitmail json YAML

Undo the DPRINTFN part of the last commit.  It breaks i386 at least
when KERNHIST_LOG casts the pointer to uintmax_t.

Kernel ALL/i386 compiles again.

(hannken)

2023-11-06 08:56:12 UTC MAIN commitmail json YAML

lists/debug/mi: Sprinkle gcc to lib[al]san_g.a to fix clang build

(rin)

2023-11-06 07:09:08 UTC MAIN commitmail json YAML

x86/dosboot: Drop no-longer-available -DSLOW for libz

It should be lost during merge from upstream.

We may introduce a similar hack again, if it is *really* required;
inflate_fast() may be dropped by using slow path unconditionally.

(rin)

2023-11-06 07:02:17 UTC MAIN commitmail json YAML

x86/dosboot: Do not page-align data segment

4K alignment is too heavy burden for COM executable with 64K limit :)

Fix binary size overflow for clang/amd64.

(rin)

2023-11-06 06:53:52 UTC MAIN commitmail json YAML

x86/dosboot: Allow NULL dereference to fetch command line arguments

DOS command line arguments are provided as struct psp at 0x0000;
see doscommain.c.

Recent versions of gcc and clang are clever enough to optimize code
block involving NULL dereference into ud2 insn.

Sprinkle -fno-delete-null-pointer-checks to doscommain.c to
prevent this behavior.

Note that dosboot.com for netbsd-9 and later was broken due to
this ``over optimization''. gcc 5.5.0 and clang 4.0.0 in netbsd-8
generate correct codes without this workaround.

XXX
Are there still use cases for dosboot.com? Does anyone want to
boot NetBSD from real-mode DOS in 2023?

(rin)

2023-11-06 00:35:06 UTC MAIN commitmail json YAML

gpioirq(4) version 2

This update makes this driver more than just an example and allows for:

o More than one pin to be attached to a gpioirq instance.  That is,
  the mask parameter can be greater than 0x01 now.

o A /dev/gpioirqN device that allows GPIO pin interrupts to be
  transported into userland.  This is a device that can be opened for
  reading with a simple fixed output indicating the device unit, pin
  number and current pin state.

This update was used as part of a physical intrusion detection system
where multiple switches (i.e. window magnetic reed switches and etc.)
are tied to a bunch of GPIO inputs with userland software that reacts
to the pins changing state.

(brad)

2023-11-05 22:05:07 UTC MAIN commitmail json YAML

Return missing debug message text and remove obsolete sched_whichqs param.

Allows INTR_DEBUG code to compile.

(andvar)

2023-11-05 21:54:27 UTC MAIN commitmail json YAML

2023-11-05 21:50:27 UTC MAIN commitmail json YAML

Use DPRINTF instead of __gsfb_print() to print smap status.

__gsfb_printf() is defined only with the GSFB_DEBUG_MONITOR option.

(andvar)

2023-11-05 21:13:07 UTC MAIN commitmail json YAML

t_fenv: Improve diagnostics when rounding mode tests fail.

Print the correct input, and print the rounding mode for clarity so
you don't have to cross-reference it by line number.

PR port-mips/57680

XXX pullup-10

(riastradh)

2023-11-05 18:32:01 UTC MAIN commitmail json YAML

ena(4) improvements committed

Pull request: https://github.com/maleic1618/NetBSD/pull/1:
"""
This PR fixes some bugs and MP-ifies ena(4), including RSS.

On t3.small instance, its forward throughput has grown as followings:

              64 bytes 256 bytes
-current 1flow 21.58 110.51
-current 8flow 28.27 123.19
patched 1flow 37.20 142.21
patched 8flow 92.26 366.85
(Unit: Mbps, NET_MPSAFE enabled, Using https://github.com/iij/ipgen)

It also worked well on a aarch64 machine.

Addendum: I forgot to mention that this PR is reviewed ozaki-r@n.o.
"""

Code contributed by KUSABA Takeshi <t-kusaba@iij.ad.jp>
Reviewed also by ozaki-r@n.o

(jdolecek)

2023-11-05 18:30:08 UTC netbsd-10 commitmail json YAML