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 (177d) 

2024-05-10 02:07:54 UTC Now

2022-09-25 07:50:15 UTC MAIN commitmail json YAML

rkdrm: Set is_console on the drm device, not the fb child.

The drm device is represented by a rockchip,display-subsystem node in
the device tree.  The fb child is a purely software abstraction used
by drm.

The is_console property is used by MD firmware logic to mark which
actual device in hardware bus enumeration like PCI or FDT the system
has chosen for the console early at boot, so hanging it on the node
for the real hardware device makes more sense than hanging it on the
software abstraction, and is consistent with recent changes to drmfb
to respect its setting on other platforms for hardware devices.

(riastradh)

2022-09-25 07:23:08 UTC MAIN commitmail json YAML

    Add a bs_barrier to make ThunderX xhci work.  Not sure why this is
    needed, but I'll work it out later.

Turns out bus_dma.c needed fixing which I did with

    revision 1.115
    date: 2019-06-14 10:09:12 +0100;  author: skrll;  state: Exp;  lines: +39 -34;  commitid: GKW2p7ijoslyu8rB;
    Simplify the _ARM32_NEED_BUS_DMA_BOUNCE #ifdefs and rely on compiler
    optimisation of the bouncing = false case.

    Drain the write buf (aka DSB) in more cases

    Catch all CPUs that support speculation. (thunderx isn't CPU_CORTEX)

(skrll)

2022-09-25 06:21:58 UTC MAIN commitmail json YAML

Rename pmap_segtab_t *stp to stb for consistency with a future
pmap_pdetab_t *ptb. pmap_pdetab_t *ptp would be far too confusing.

NFC. Same code before and after.

(skrll)

2022-09-25 00:48:37 UTC MAIN commitmail json YAML

2022-09-25 00:47:27 UTC MAIN commitmail json YAML

2022-09-24 23:21:59 UTC MAIN commitmail json YAML

2022-09-24 23:20:13 UTC MAIN commitmail json YAML

malloc(9) -> kmem(9)

(thorpej)

2022-09-24 23:18:54 UTC MAIN commitmail json YAML

malloc(9) -> kmem(9)

(thorpej)

2022-09-24 23:16:37 UTC MAIN commitmail json YAML

malloc(9) -> kmem(9)

(thorpej)

2022-09-24 23:16:02 UTC MAIN commitmail json YAML

Remove unnecessary include of <sys/malloc.h>.

(thorpej)

2022-09-24 20:36:49 UTC MAIN commitmail json YAML

2022-09-24 20:36:11 UTC MAIN commitmail json YAML

2022-09-24 20:33:30 UTC MAIN commitmail json YAML

2022-09-24 20:22:16 UTC MAIN commitmail json YAML

2022-09-24 20:21:46 UTC MAIN commitmail json YAML

2022-09-24 19:55:45 UTC MAIN commitmail json YAML

tests/lint: fix test for queries on platforms where char is unsigned

error: queries.c(118): missing /* expect+1: implicit conversion
    changes sign from 'char' to 'int' [Q3] */
error: queries.c(122): missing /* expect+1: implicit conversion
    changes sign from 'char' to 'int' [Q3] */

(rillig)

2022-09-24 18:12:49 UTC MAIN commitmail json YAML

2022-09-24 18:12:43 UTC MAIN commitmail json YAML

2022-09-24 18:11:43 UTC MAIN commitmail json YAML

2022-09-24 17:40:29 UTC MAIN commitmail json YAML

2022-09-24 17:38:18 UTC MAIN commitmail json YAML

2022-09-24 16:29:27 UTC MAIN commitmail json YAML

Propagate the open flags to the master pty (Anthony Mallet)

(christos)

2022-09-24 16:13:48 UTC MAIN commitmail json YAML

make: clean up tracking of depth of nested .if directives

The variable cond_min_depth was redundant.  It was only accessed while
parsing the makefiles.  Merging it into struct IncludedFile removes the
possible confusion between cond_min_depth and including_cond_min_depth.

No functional change.

(rillig)

2022-09-24 16:09:04 UTC MAIN commitmail json YAML

make: only access the list of included files if it is non-empty

(rillig)

2022-09-24 15:01:55 UTC MAIN commitmail json YAML

x86/efi: Print uuids in slightly more standard notation.

Anyone need a spare hyphen?  We had a few extras, apparently.

XXX pullup-8
XXX pullup-9

(riastradh)

2022-09-24 11:06:41 UTC MAIN commitmail json YAML

uhid(4): Don't wake waiters on changing sc_open.

This is only a diagnostic measure, not part of semantics.

Can probably safely eliminate the diagnostic measure at this point
now.

(riastradh)

2022-09-24 11:06:03 UTC MAIN commitmail json YAML

efi(4): Fix access to efi_isopen.

- Qualify efi_isopen with volatile.
- Ensure open has acquire ordering and close has release ordering.
- Use atomic_swap, not atomic_cas -- simpler and may be cheaper.
- Use atomic_store, not atomic_swap -- simpler and usually cheaper.

(Could maybe just use __cpu_simple_lock to avoid having to write out
these details.)

(riastradh)

2022-09-24 11:05:47 UTC MAIN commitmail json YAML

x86/pmap: Convert conditional to assertion.

pmap_kernel should never have va < VM_MAXUSER_ADDRESS entered.

(riastradh)

2022-09-24 11:05:18 UTC MAIN commitmail json YAML

x86: Support EFI runtime services.

This creates a special pmap, efi_runtime_pmap, which avoids setting
PTE_U but allows mappings to lie in what would normally be user VM --
this way we don't fall afoul of SMAP/SMEP when executing EFI runtime
services from CPL 0.  SVS does not apply to the EFI runtime pmap.

The mechanism is intended to work with either physical addressing or
virtual addressing; currently the bootloader does physical addressing
but in principle it could be modified to do virtual addressing
instead, if it allocated virtual pages, assigned them in the memory
map, and issued RT->SetVirtualAddressMap.

Not sure pmap_activate_sync and pmap_deactivate_sync are correct,
need more review from an x86 wizard.

If this causes fallout, it can be disabled temporarily without
reverting anything by just making efi_runtime_init return immediately
without doing anything, or by removing options EFI_RUNTIME.

amd64-only for now pending type fixes and testing on i386.

(riastradh)

2022-09-24 10:52:05 UTC MAIN commitmail json YAML

tests/make: add test for .if/.for/.if/.break

(rillig)

2022-09-24 10:26:32 UTC MAIN commitmail json YAML

make: fix variable and function names relating to .if nesting

The previous names were confusing since they suggested that cond_depth
instead of cond_min_depth would be saved and restored.

No functional change.

(rillig)

2022-09-24 10:19:07 UTC MAIN commitmail json YAML

make: move Cond_save_depth above Cond_restore_depth

This puts the functions into chronological order, as saving happens
before restoring.

No functional change.

(rillig)

2022-09-24 10:12:46 UTC MAIN commitmail json YAML

make: use assertion for internal error condition

When the nesting level of conditionals is restored to an unreasonably
high value, the error message "0 open conditionals" doesn't make sense.

(rillig)

2022-09-24 08:11:46 UTC netbsd-9 commitmail json YAML

2022-09-24 08:10:26 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #1533):

sys/arch/arm/sunxi/sunxi_can.c: revision 1.10,1.11 (via patch)

Don't process RX if SUNXI_CAN_INT_DATA_OR is pending. Seems to fix occasional
RX stalls

Just skipping sunxi_can_rx_intr() if the DATA_OR flag is set isn't enough
to properly recover from overrrun in all case. So go the linux way and reset
the hardware.

Don't write SUNXI_CAN_INT_RX_FLAG to SUNXI_CAN_INT_REG, this could race
with hardware and clear the interrupt while there are new packets received.
SUNXI_CAN_INT_RX_FLAG clears automatically when all pending packets have been
read, so when no more packets are pending just read SUNXI_CAN_INT_REG again
and process other interrupts, if any (or RX if there are new packets pending).

With this change it seems I get overruns less often in my use case.

(martin)

2022-09-23 22:58:15 UTC MAIN commitmail json YAML

Cond_reset_depth just use cond_min_depth

To avoid errors from unclosed conditionals on .break
it is sufficient to just set cond_depth = cond_min_depth.

Patch from rillig

(sjg)

2022-09-23 19:04:04 UTC MAIN commitmail json YAML

wskbd(4): Add include guards.

No functional change intended.

(riastradh)

2022-09-23 12:35:00 UTC MAIN commitmail json YAML

wdogctl(8): Minor tweak suggested by a passing umarell.

Plus another wording improvement.

(riastradh)

2022-09-23 12:30:52 UTC MAIN commitmail json YAML

Adjust to new bind libraries

(christos)

2022-09-23 12:22:49 UTC MAIN commitmail json YAML

doc: update bind entry

(wiz)

2022-09-23 12:20:47 UTC MAIN commitmail json YAML

2022-09-23 12:19:19 UTC MAIN commitmail json YAML

2022-09-23 12:15:38 UTC MAIN commitmail json YAML

2022-09-23 10:07:36 UTC netbsd-9 commitmail json YAML

2022-09-23 10:05:13 UTC netbsd-9 commitmail json YAML

Apply patch, requested by dholland in ticket #1532:

external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c (apply patch)

Fix mounting of wapbl volumes when the block device node is on a zfs volume.
Fixed differently as part of a bigger change in -current in rev 1.73.

(martin)

2022-09-22 21:48:19 UTC MAIN commitmail json YAML

oops, my previous commit is bad. revert previous.
<frame-address> is a frame pointer, not a trapframe, and it worked correctly. (e.g., trace $x29)

(ryo)

2022-09-22 21:40:42 UTC MAIN commitmail json YAML

wdogctl(8): fix -width in previous

(uwe)

2022-09-22 21:24:10 UTC MAIN commitmail json YAML

2022-09-22 21:22:50 UTC MAIN commitmail json YAML

2022-09-22 21:22:36 UTC MAIN commitmail json YAML

2022-09-22 21:00:46 UTC MAIN commitmail json YAML

Specifying the frame address "trace <frame-address>" was not working.

(ryo)

2022-09-22 19:33:00 UTC MAIN commitmail json YAML

If there was a "bl <func>" instruction at the end of a function block,
the stack analysis backtrace (bt/s) would fail because $lr would point
to the beginning of the next function.

(ryo)

2022-09-22 16:21:34 UTC MAIN commitmail json YAML

Fix fallout from previous: ci_ipending is in the low bytes of ci_istate,
so we should not left-shift by 8 the ci_ipending value we want to add there.
Should fix KASSERT in Xen's idle_block() reported by Frank Kardel in private
mail.

(bouyer)

2022-09-22 14:46:38 UTC MAIN commitmail json YAML

efi(9): Set correct calling convention for EFI runtime services.

No functional change intended -- this only affects x86, which
currently doesn't support EFI runtime services.

(riastradh)

2022-09-22 14:45:33 UTC MAIN commitmail json YAML

ichsmb(4): Remove confusing `lpcib_' prefix on register names.

(riastradh)

2022-09-22 14:45:18 UTC MAIN commitmail json YAML

ichsmb(4): Only rescan i2cbus child if requested.

This will let us rescan tcoichbus later too on devices where the TCO
(Intel platform controller hub watchdog timer) hangs off ichsmb(4)
instead of ichlpcib(4).

(riastradh)

2022-09-22 14:45:01 UTC MAIN commitmail json YAML

ichsmb(4): Use config_detach_children to simplify.

(riastradh)

2022-09-22 14:44:47 UTC MAIN commitmail json YAML

ichsmb(4): Attach i2c bus only once.

The child could be detached, e.g. with drvctl, and then the bus
rescanned, at which point it would reinitialize a mutex without
destroying it.

(riastradh)

2022-09-22 14:43:04 UTC MAIN commitmail json YAML

tco(4): Nix PMC_TCO_BASE offset in TCO register definitions.

This just uses a subregion with PMC_TCO_BASE automatically applied.

No functional change intended.

(riastradh)

2022-09-22 14:42:47 UTC MAIN commitmail json YAML

tco(4): Use a subregion of the PMC registers for TCO registers.

This is an intermediate step that will let us decouple it from access
via PMBASE.

(riastradh)

2022-09-22 14:42:29 UTC MAIN commitmail json YAML

ichlpcib(4), tco(4): Rename iot -> pmt, ioh -> pmh.

Makes it clearer that this is specifically about the power management
controller (PMC) registers relative to PMBASE.

(riastradh)

2022-09-22 14:42:10 UTC MAIN commitmail json YAML

ichlpcib(4), tco(4): Take `lpcib_' off various names.

For PMC-specific ones, change `lpcib_' to `pmc_'.  These are in a
separate PCI device in newer chipsets.

For TCO-specific ones, which may live in different places, whether at
their own base address or as an offset from PMBASE, just leave it as
`tco_' or `tcotimer'.

No functional change intended.

(riastradh)

2022-09-22 14:41:49 UTC MAIN commitmail json YAML

tco(4): Rename lpcib_tco_attach_args -> tco_attach_args.

No longer hangs off LPC bus, newer devices hang it off SMBus.

(riastradh)

2022-09-22 14:41:26 UTC MAIN commitmail json YAML

tco(4): Change has_rcba bit into version number.

Will be useful for newer Intel platform controller hubs.

No functional change intended.  Module ABI is unchanged, although older
modules will do something nonseneical when confronted with versions
above 1 -- that will require a revbump (but with any luck, it will make
life easier for versions above 2 easier once we do that).

(riastradh)

2022-09-22 14:39:24 UTC MAIN commitmail json YAML

crashme(9): Clarify description of kernel_lock_spinout.

(riastradh)

2022-09-22 14:37:38 UTC MAIN commitmail json YAML

2022-09-22 14:27:52 UTC MAIN commitmail json YAML

umass(4): Reduce timeout for control xfers to standard USB timeout.

This should reduce the timeout for a failed sd@umass transfer from
n*(1min + 5sec) to 1min + n*5sec where n is the number of reset and
clear-stall steps.

(riastradh)

2022-09-22 14:27:02 UTC MAIN commitmail json YAML

sandpoint: Teach altboot to handle 9.99.100 modules.

Not tested, but something here will be necessary to make it work, and
the same change does work in x86 efiboot.

(riastradh)

2022-09-22 14:02:45 UTC MAIN commitmail json YAML

wdogctl(8): Rework prose and markup in man page.

No functional change.

(riastradh)

2022-09-22 14:02:24 UTC MAIN commitmail json YAML

curproc(9): Rework man page.

(riastradh)

2022-09-22 07:02:21 UTC MAIN commitmail json YAML

usbnet(9): Omit needless miilock around uno_stop.

This time for real!

(riastradh)

2022-09-22 06:04:26 UTC MAIN commitmail json YAML

Take and release IFNET_LOCK around aq_stop in aq_detach. Also, call with
the disable flag set so that interrupts and the callout are halted.

(skrll)

2022-09-22 05:50:52 UTC MAIN commitmail json YAML

aq(4): Don't schedule tick callout on interrupt if stopping.

Make sure to take the lock around access to sc_detect_linkstat too.

(riastradh)

2022-09-22 03:31:04 UTC MAIN commitmail json YAML

update ftp version to 20220911

PR/57003: Handle relative URLs (patch by kim@)

(lukem)

2022-09-21 22:01:56 UTC MAIN commitmail json YAML

UPDATING: a couple of pedantic edits

(gutteridge)

2022-09-21 20:24:43 UTC MAIN commitmail json YAML

No need to include <sys/malloc.h>

(thorpej)

2022-09-21 20:23:57 UTC MAIN commitmail json YAML

Fix a memory leak in an extremely uncommon error path in ste_start().

(thorpej)

2022-09-21 20:21:16 UTC MAIN commitmail json YAML

Just skipping sunxi_can_rx_intr() if the DATA_OR flag is set isn't enough
to properly recover from overrrun in all case. So go the linux way and reset
the hardware.

Don't write SUNXI_CAN_INT_RX_FLAG to SUNXI_CAN_INT_REG, this could race
with hardware and clear the interrupt while there are new packets received.
SUNXI_CAN_INT_RX_FLAG clears automatically when all pending packets have been
read, so when no more packets are pending just read SUNXI_CAN_INT_REG again
and process other interrupts, if any (or RX if there are new packets pending).
With this change it seems I get overruns less often in my use case.

(bouyer)

2022-09-21 18:55:21 UTC MAIN commitmail json YAML

MAKEDEV: make nvmm node group-writable (was readable only; group nvmm)

Needed by qemu

(wiz)

2022-09-21 14:32:27 UTC MAIN commitmail json YAML

Note bootloader changes needed for 9.99.100.

(riastradh)

2022-09-21 14:30:01 UTC MAIN commitmail json YAML

efiboot: Handle 9.99.100 by taking four, not two, digits.

We haven't used the revision part of __NetBSD_Version__ = MMmmrrpp00
in almos two decades so we're apparently reclaiming it as MMmmpppp00.

(riastradh)

2022-09-21 14:29:45 UTC MAIN commitmail json YAML

i386/stand: Handle 9.99.100 by taking four, not two, digits.

We haven't used the revision part of __NetBSD_Version__ = MMmmrrpp00
in almos two decades so we're apparently reclaiming it as MMmmpppp00.

(riastradh)

2022-09-21 10:59:10 UTC MAIN commitmail json YAML

specfs(9): XXX comment: what if read downgrades lock?

(riastradh)

2022-09-21 10:51:14 UTC MAIN commitmail json YAML

expat-2.4.9 out, fixing a CVE

(wiz)

2022-09-21 10:50:29 UTC MAIN commitmail json YAML

crashme(9): Fix crashme_add return value to match comment.

XXX Why do this and crashme_remove return -1 instead of an error code
like essentially everything else in the kernel?

(riastradh)

2022-09-21 10:50:11 UTC MAIN commitmail json YAML

crashme(9): Use sysctl mib numbers, not node pointers.

The node pointers are not stable across insertions of siblings,
because they are pointers into arrays that may be reallocated and
moved elsewhere.

XXX Need to audit the tree for other bugs of this class, or change
sysctl(9) so it returns stable node pointers.

(riastradh)

2022-09-21 10:36:14 UTC MAIN commitmail json YAML

tco(4): Fix whitespace.  No functional change intended.

(riastradh)

2022-09-21 07:59:19 UTC MAIN commitmail json YAML

2022-09-21 07:15:24 UTC MAIN commitmail json YAML

compat_50_quota: reject invalid quota id types.

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

(dholland)

2022-09-21 07:07:34 UTC MAIN commitmail json YAML

Add some causes and convenience macros

(skrll)

2022-09-21 06:34:30 UTC MAIN commitmail json YAML

2022-09-21 01:33:53 UTC MAIN commitmail json YAML

PR/57016: Ricky Zhou: declare lastidx

(christos)

2022-09-20 23:41:14 UTC MAIN commitmail json YAML

PR/57016: Ricky Zhou: Revert to trimming the last newline instead of the
first one so that multi-line commands work again.

(christos)

2022-09-20 23:01:42 UTC MAIN commitmail json YAML

fill out more of the linux pci API compat

- implement pcie_get_speed_cap(), pcie_bandwidth_available(), and
  pci_is_root_bus().
- expand "enum pci_bus_speed" to add PCIe 5.x and 6.x speeds.
- add "enum pcie_link_width".
- add defines for PCIE_LCSR_LINKSPEED (PCIe generation) and PCIE_LCSR_NLW
  (negotiated lane width) to pcireg.h
- enable amdgpu_device_get_pcie_info() code now it works.

ok riastradh@

(mrg)

2022-09-20 12:25:01 UTC MAIN commitmail json YAML

Typo in comment. No binary changes.

(rin)

2022-09-20 12:12:42 UTC MAIN commitmail json YAML

stfs{,x}{,u}: Switch to conversion algorithm specified by Power ISA.

The ISA specifies algorithm for most bit patterns in double format, that
are not representable in float. I believe that sane people do not rely on
such a specification detail, but *REAL* programmers may utilize it ;)

Instead of complicating fpu_explode(), single-purpose helper function,
fpu_to_single(), is introduced. See comment therein for more details.

(rin)

2022-09-20 10:12:18 UTC MAIN commitmail json YAML

2022-09-20 07:37:29 UTC MAIN commitmail json YAML

doc: note tradcpp import, my fault for ignoring commits that start
with "Initial revision"

(nia)

2022-09-20 07:28:06 UTC MAIN commitmail json YAML

doc/CHANGES: Update with recent changes from September

(nia)

2022-09-20 07:19:15 UTC MAIN commitmail json YAML

2022-09-20 07:18:24 UTC MAIN commitmail json YAML

Checkpoint WIP.

QEMU RV64 virt can boot into virtual mode

OpenSBI v1.0
  ____                    _____ ____ _____
  / __ \                  / ____|  _ \_  _|
| |  | |_ __  ___ _ __ | (___ | |_) || |
| |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
| |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name            : riscv-virtio,qemu
Platform Features        : medeleg
Platform HART Count      : 1
Platform IPI Device      : aclint-mswi
Platform Timer Device    : aclint-mtimer @ 10000000Hz
Platform Console Device  : uart8250
Platform HSM Device      : ---
Platform Reboot Device    : sifive_test
Platform Shutdown Device  : sifive_test
Firmware Base            : 0x80000000
Firmware Size            : 252 KB
Runtime SBI Version      : 0.3

Domain0 Name              : root
Domain0 Boot HART        : 0
Domain0 HARTs            : 0*
Domain0 Region00          : 0x0000000002000000-0x000000000200ffff (I)
Domain0 Region01          : 0x0000000080000000-0x000000008003ffff ()
Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address      : 0x0000000080200000
Domain0 Next Arg1        : 0x00000000bfe00000
Domain0 Next Mode        : S-mode
Domain0 SysReset          : yes

Boot HART ID              : 0
Boot HART Domain          : root
Boot HART ISA            : rv64imafdcsuh
Boot HART Features        : scounteren,mcounteren,mcountinhibit,time
Boot HART PMP Count      : 16
Boot HART PMP Granularity : 4
Boot HART PMP Address Bits: 54
Boot HART MHPM Count      : 16
Boot HART MIDELEG        : 0x0000000000001666
Boot HART MEDELEG        : 0x0000000000f0b509

------------
NetBSD start

sp:      0x0000_0000_80a0_2000
pc:      0x0000_0000_8020_0090
hart:    0x0000_0000_0000_0000
dtb:    0x0000_0000_bfe0_0000
l1:      0x0000_0000_80a0_2000
l2:      0x0000_0000_80a0_3000
uspace:  0x0000_0000_80a0_0000
bootstk: 0x0000_0000_80a0_2000
vtopdiff:0xffff_ffbf_7fe0_0000

bss:    0x0000_0000_808a_8bdc - 0x0000_0000_80a0_4000

0x0000_0000_80a0_3800: 0x0000_0000_2028_0821

kern 0x0000_0000_80a0_2000: 0x0000_0000_2008_002f
kern 0x0000_0000_80a0_2008: 0x0000_0000_2010_002f
kern 0x0000_0000_80a0_2010: 0x0000_0000_2018_002f
kern 0x0000_0000_80a0_2018: 0x0000_0000_2020_002f
kern 0x0000_0000_80a0_2020: 0x0000_0000_2028_002f
kern 0x0000_0000_80a0_2028: 0x0000_0000_2030_002f
kern 0x0000_0000_80a0_2030: 0x0000_0000_2038_002f
kern 0x0000_0000_80a0_2038: 0x0000_0000_2040_002f
kern 0x0000_0000_80a0_2040: 0x0000_0000_2048_002f
kern 0x0000_0000_80a0_2048: 0x0000_0000_2050_002f
kern 0x0000_0000_80a0_2050: 0x0000_0000_2058_002f
kern 0x0000_0000_80a0_2058: 0x0000_0000_2060_002f
kern 0x0000_0000_80a0_2060: 0x0000_0000_2068_002f
kern 0x0000_0000_80a0_2068: 0x0000_0000_2070_002f
kern 0x0000_0000_80a0_2070: 0x0000_0000_2078_002f
kern 0x0000_0000_80a0_2078: 0x0000_0000_2080_002f
dtb  0x0000_0000_80a0_2080: 0x0000_0000_2ff8_0027
PM
[  1.0000000] FDT<0xffffffc002000000>
[  1.0000000] consinit ok
[  1.0000000] NetBSD/riscv (fdt) booting ...
[  1.0000000] FDT /memory @ 0x80000000 size 0x40000000
[  1.0000000] init_riscv: memory start 80000000 end c0000000 (len 40000000)
[  1.0000000] bootargs: root=ld4a -v -x
[  1.0000000] bootflag 'r' not recognised
[  1.0000000] bootflag 'o' not recognised
[  1.0000000] bootflag 'o' not recognised
[  1.0000000] bootflag 't' not recognised
[  1.0000000] bootflag '=' not recognised
[  1.0000000] bootflag 'l' not recognised
[  1.0000000] bootflag ' ' not recognised
[  1.0000000] bootflag ' ' not recognised
[  1.0000000] ------------------------------------------
[  1.0000000]            kern_vtopdiff = 0xffffffbf7fe00000
[  1.0000000]            memory_start = 0x        80000000
[  1.0000000]              memory_end = 0x        c0000000
[  1.0000000]              memory_size = 0x        40000000
[  1.0000000]          kernstart_phys = 0x        80200000
[  1.0000000]            kernend_phys = 0x        80a00000
[  1.0000000]    VM_MIN_KERNEL_ADDRESS = 0xffffffc000000000
[  1.0000000]          kernstart_mega = 0xffffffc000000000
[  1.0000000]                kernstart = 0xffffffc000000000
[  1.0000000]                  kernend = 0xffffffc000800000
[  1.0000000]            kernend_mega = 0xffffffc000800000
[  1.0000000]    VM_MAX_KERNEL_ADDRESS = 0xffffffd000000000
[  1.0000000] ------------------------------------------
[  1.0000000] panic: kernel diagnostic assertion "msgbufaddr != 0" failed: file "/home/nick/netbsd/nbcvs/src/sys/arch/riscv/riscv/riscv_machdep.c", line 564

(skrll)

2022-09-20 07:15:46 UTC MAIN commitmail json YAML

revert rev 1.111 (which was 1.106 again, without the 1.107 changes).

fixes an assert reported by msaitoh@.  also fix another missing miilock
assert in usbnet_stop() that triggered for me.

(mrg)

2022-09-20 06:53:37 UTC MAIN commitmail json YAML

2022-09-20 06:48:29 UTC MAIN commitmail json YAML

2022-09-20 02:25:07 UTC MAIN commitmail json YAML

tests: add tests for automatic route deletions on an address removal

(knakahara)

2022-09-20 02:24:18 UTC MAIN commitmail json YAML

Welcome to 9.99.100

    - changed the prototype of rt_replace_ifa_matched_entries()

See also the follwoing thread
    https://mail-index.netbsd.org/tech-kern/2022/09/15/msg028385.html
Advised by kre@n.o, pgoyette@n.o, gutteridge@n.o and dholland@n.o, thanks.

(knakahara)

2022-09-20 02:23:38 UTC MAIN commitmail json YAML

Remove routes on an address removal if the routes referencing to the address.  Implemented by ozaki-r@n.o.

A route that has a gateway is on a connected route can be invalid if the
connected route is deleted, i.e., an associated address is removed.
Traditionally NetBSD doesn't sweep such a route on the address removal.  Sending
packets over the route fails with "No route to host".  Also the route holds an
orphan ifaddr as rt_ifa that is destructed say by in_purgeaddr.

If the same address is assgined again in such a state, there can be two
different ifaddr objects with the same address.  Until recently it's not a
big problem because we can send packets anyway.  However after MP-ification
of the network stack, we can't send packets because we strictly check if rt_ifa
(i.e., the (old) ifaddr) is valid.

This change automatically removes such routes on a removal of an associated
address to avoid keeping inconsistent routes.

(knakahara)

2022-09-19 22:30:19 UTC MAIN commitmail json YAML

Reference kernel-wide hz constant instead of using a private but possibly
different value.

(mlelstv)

2022-09-19 18:48:30 UTC MAIN commitmail json YAML

2022-09-19 18:46:06 UTC MAIN commitmail json YAML

2022-09-19 17:24:23 UTC MAIN commitmail json YAML

Fixed stack analyzing backtrace (bt/s) correctly for nested trapframes.

(ryo)

2022-09-19 17:23:14 UTC MAIN commitmail json YAML

Move cpu_Debugger() into a more suitable file, from cpuswitch.S to db_interface.c.

(ryo)

2022-09-19 11:21:36 UTC MAIN commitmail json YAML

Don't process RX if SUNXI_CAN_INT_DATA_OR is pending. Seems to fix occasional
RX stalls

(bouyer)

2022-09-19 09:15:01 UTC MAIN commitmail json YAML

2022-09-18 22:04:31 UTC MAIN commitmail json YAML

error out on proportional fonts, provide option to override

(macallan)

2022-09-18 21:33:57 UTC MAIN commitmail json YAML

KNF. 80 columns, use tab. NFC.

(ryo)

2022-09-18 19:24:14 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 18:26:53 UTC MAIN commitmail json YAML

2022-09-18 18:20:31 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 18:03:51 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 17:54:46 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 17:21:18 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.  (This driver never even set it.)

(thorpej)

2022-09-18 17:18:19 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 17:11:33 UTC MAIN commitmail json YAML

Oops, somehow managed to commit an older version where NBSH_INVOCATION
start char was '@' rather than '!' (which meant not lexically ordered).
This is how it was intended to be (and is documented).

(kre)

2022-09-18 16:59:36 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 16:58:54 UTC MAIN commitmail json YAML

Typo in comment

(martin)

2022-09-18 16:54:30 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 16:51:28 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 15:57:13 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 15:53:24 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 15:49:43 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 15:47:09 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 15:44:29 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

While here, fix a use-after-free bug in the "too many segments" error path in
sunxi_emac_setup_txbuf().

(thorpej)

2022-09-18 15:28:01 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 15:22:43 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 15:19:36 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 15:14:06 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 13:53:06 UTC MAIN commitmail json YAML

2022-09-18 13:37:42 UTC netbsd-9 commitmail json YAML

2022-09-18 13:36:53 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 13:36:29 UTC netbsd-9 commitmail json YAML

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

sys/crypto/nist_hash_drbg/nist_hash_drbg.c: revision 1.2
sys/crypto/nist_hash_drbg/nist_hash_drbg.c: revision 1.3

Use CTASSERT where possible, run-time assertion where not.

Should fix negative-length variable-length array found by kamil.

Use an explicit run-time assertion where compile-time doesn't work.

(martin)

2022-09-18 13:34:07 UTC netbsd-9 commitmail json YAML

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

sys/dev/usb/usb.h: revision 1.121

Cast to uint32_t to avoid undefined behavior in UGETDW(). Found by kUBSan.

(martin)

2022-09-18 13:32:27 UTC netbsd-9 commitmail json YAML

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

sys/dev/usb/if_ure.c: revision 1.58 (via patch)

Use unsigned to avoid undefined behavior in ure_uno_mcast(). Found by kUBSan.

(martin)

2022-09-18 13:31:08 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 13:28:49 UTC netbsd-9 commitmail json YAML

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

sys/external/bsd/acpica/dist/dispatcher/dswexec.c: revision 1.2

Fix out of range access in AcpiDsExecEndOp().

- Found by kUBSan.
- See: https://github.com/acpica/acpica/pull/745

(martin)

2022-09-18 13:26:40 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 13:23:53 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 13:19:40 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 13:09:17 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 13:03:51 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 13:00:18 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.  (It was not being used correctly here in
any case.)

(thorpej)

2022-09-18 12:49:34 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE, take 2.  (Not sure what happened there.)

(thorpej)

2022-09-18 12:48:03 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 12:43:41 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 12:39:26 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 11:38:48 UTC MAIN commitmail json YAML

2022-09-18 11:30:40 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 11:25:34 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 11:17:36 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 11:08:29 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 10:59:22 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 10:54:53 UTC MAIN commitmail json YAML

2022-09-18 06:03:19 UTC MAIN commitmail json YAML

Add the -l option (aka -o login): be a login shell.  Meaningful only on
the command line (with both - and + forms) - overrides the presence (or
otherwise) of a '-' as argv[0][0].

Since this allows any shell to be a login shell (which simply means that
it runs /etc/profile and ~/.profile at shell startup - there are no other
side effects) add a new, always set at startup, variable NBSH_INVOCATION
which has a char string as its value, where each char has a meaning,
more or less related to how the shell was started.  See sh(1).
This is intended to allow those startup scripts to tailor their behaviour
to the nature of this particular login shell (it is possible to detect
whether a shell is a login shell merely because of -l, or whether it would
have been anyway, before the -l option was added - and more).  The
var could also be used to set different values for $ENV for different
uses of the shell.

(kre)

2022-09-18 02:45:38 UTC MAIN commitmail json YAML

2022-09-18 02:41:24 UTC MAIN commitmail json YAML

2022-09-18 02:32:14 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-18 00:12:43 UTC netbsd-9 commitmail json YAML

2022-09-18 00:09:52 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #1531):
libexec/ld.elf_so/arch/powerpc/ppc_reloc.c: revision 1.62
Fix copy & pasto: DTPREL relocations do not need to allocate a static
TLS index. Patch from joerg@

(msaitoh)

2022-09-17 19:49:09 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-17 19:46:59 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.  (In this driver, it was set in one
location, and never tested or cleared.  &shrug;)

(thorpej)

2022-09-17 19:44:14 UTC MAIN commitmail json YAML

2022-09-17 19:41:19 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-17 19:32:01 UTC MAIN commitmail json YAML

2022-09-17 19:23:24 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-17 19:20:14 UTC MAIN commitmail json YAML

Make qn_softc::transmit_pending a bool.  NFC.

(thorpej)

2022-09-17 19:18:04 UTC MAIN commitmail json YAML

Remove statically allocated qn_softc[] array.  NFC, as it was not
referenced by anything.

(thorpej)

2022-09-17 19:03:31 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-17 18:58:49 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-17 18:41:26 UTC MAIN commitmail json YAML

Use C99 designated initializers.

(tsutsui)

2022-09-17 18:29:54 UTC MAIN commitmail json YAML

Make local functions static.

(tsutsui)

2022-09-17 17:21:52 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-17 17:15:02 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-17 17:08:43 UTC MAIN commitmail json YAML

u_int*_t -> uint*_t

(thorpej)

2022-09-17 17:05:12 UTC MAIN commitmail json YAML

Liberally apply static.

(thorpej)

2022-09-17 17:00:02 UTC MAIN commitmail json YAML

egstart(): Use m_copydata() rather than open-coding it.

(thorpej)

2022-09-17 16:54:01 UTC MAIN commitmail json YAML

Convert an open-coded check for M_PKTHDR + panic into a KASSERT().

(thorpej)

2022-09-17 16:52:26 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-17 16:48:33 UTC MAIN commitmail json YAML

u_int*_t -> uint*_t

(thorpej)

2022-09-17 16:46:18 UTC MAIN commitmail json YAML

Liberally apply "static".

(thorpej)

2022-09-17 16:42:38 UTC MAIN commitmail json YAML

malloc() -> kmem_alloc()

(thorpej)

2022-09-17 15:44:15 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-17 15:33:53 UTC MAIN commitmail json YAML

Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-17 15:31:29 UTC MAIN commitmail json YAML

vte_ifstart(): Make the condition if the transmit loop the number of
free descriptors, not "are there packets in the queue"; the latter is
redundant with the IFQ_POLL() that happens within the loop after the
number of available descriptors is checked.  Eliminate use of IFF_OACTIVE.

(thorpej)

2022-09-17 13:55:35 UTC MAIN commitmail json YAML

alc_start(): Remove redundant IFQ_IS_EMPTY().  This very same condition
is checked as soon as we enter the loop.

(thorpej)

2022-09-17 13:51:09 UTC MAIN commitmail json YAML

age_start(): Remove redundant IFQ_IS_EMPTY().  This very same condition
is checked as soon as we enter the loop 2 statements later.

(thorpej)

2022-09-17 06:33:55 UTC MAIN commitmail json YAML

- synaptics_filter_policy no longer generates movements from stale data.
- button boundary is now computed consistently.
- multi finger operation now works for MULTI_FINGER and MULTI_FINGER_REPORT.

Fixes PR kern/56476 and probably kern/56998.

(mlelstv)

2022-09-16 20:43:17 UTC MAIN commitmail json YAML

2022-09-16 19:25:10 UTC MAIN commitmail json YAML

More wording improvements.  There might be more to come.

(kre)

2022-09-16 18:40:23 UTC netbsd-8 commitmail json YAML

2022-09-16 18:39:16 UTC netbsd-8 commitmail json YAML

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

sys/arch/x86/x86/procfs_machdep.c: revision 1.45

Add tdx_guest, brs, hfi, ibt, amx_bf16, amx_tile and amx_int8.

(martin)