OpenBSD cvs log

created 2022-02-02T10:31:52Z
begin 2022-01-18T00:00:00Z
end 2022-01-19T00:00:00Z
path src/sys
commits 6

date 2022-01-18T07:44:37Z
author visa
files src/sys/arch/riscv64/dev/plic.c log diff annotate
message plic: Fix cpuid handling

Make `cpu' signed so that the possible return value -1 from
plic_get_cpuid() gets handled correctly in the (cpu < 0) condition.
This prevents plic_attach() from updating sc_contexts[] out of bounds.

When plic_get_cpuid() returns -1, ignore the entry and continue
processing. The error is not fatal. It is normal that secondary CPUs
are not found when running a non-MULTIPROCESSOR kernel on
a multiprocessor machine.

OK kettenis@

date 2022-01-18T07:53:39Z
author visa
files src/sys/arch/riscv64/conf/GENERIC log diff annotate
src/sys/arch/riscv64/conf/RAMDISK log diff annotate
src/sys/dev/fdt/cdsdhc.c log diff annotate
src/sys/dev/fdt/files.fdt log diff annotate
message Add cdsdhc(4), a driver for the Cadence SD/SDIO/eMMC host controller.

Tested on a PolarFire SoC.

date 2022-01-18T10:48:33Z
author dlg
files src/sys/net/if_ethersubr.c log diff annotate
message a comment about bridges shouldnt list switch(4), but can have veb(4).

date 2022-01-18T10:54:05Z
author dlg
files src/sys/net/ifq.c log diff annotate
message return EIO, not ENXIO, when the interface underneath ifq_deq_sleep dies.

this is consistent with other drivers when they report their
underlying device being detached.

date 2022-01-18T11:36:21Z
author patrick
files src/sys/arch/armv7/marvell/mvpxa.c log diff annotate
src/sys/dev/acpi/sdhc_acpi.c log diff annotate
src/sys/dev/fdt/cdsdhc.c log diff annotate
src/sys/dev/fdt/sdhc_fdt.c log diff annotate
src/sys/dev/pci/sdhc_pci.c log diff annotate
src/sys/dev/sdmmc/sdhc.c log diff annotate
src/sys/dev/sdmmc/sdhcvar.h log diff annotate
message Improve how quirks are handled on sdhc(4)-compatible drivers. So far
we have passed a modified version of the contents in the capabilities
register if we wanted to override what sdhc(4) would otherwise read.
Unfortunately there's a second capabilities register that we did not
yet take into consideration, which is why to disable DDR50 support we
created a quirk flag in the softc. The sdhc(4) ACPI nodes have a way
to mask and set bits in both of the capabilities register, which is a
flexible approach to solving that issue and using that for our sdhc(4)
drivers even improves readability.

ok kettenis@

date 2022-01-18T12:38:21Z
author bluhm
files src/sys/kern/uipc_mbuf.c log diff annotate
message Properly handle read-only clusters in m_pullup(9).

If the first mbuf of a chain in m_pullup is a cluster, check if the
cluster is read-only (shared or an external buffer). If so, don't
touch it and create a new mbuf for the pullup data.

This restores original 4.4BSD m_pullup, that not only returned
contiguous mbuf data of the specified length, but also converted
read-only clusters into writeable memory. The latter feature was
lost during some refactoring.

from ehrhardt@; tested by weerd@; OK stsp@ bluhm@ claudio@