summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2023-04-16vmm(4): save and restore Intel CET state on vm entry/exit.Dave Voutila
2023-04-15Unlock in_ioctl_get(), push kernel lock into in_ioctl_{set,change}_ifaddr()Klemens Nanni
Just like in6_ioctl_get(), read ioctls are safe with the shared net lock to protect interface addresses and flags. OK mvs
2023-04-15return directly to drop needless error variable; OK mvsKlemens Nanni
2023-04-15fixed regulators might rely on other regulators specified by "vin-supply"David Gwynne
when turning a fixed regulator on, turn on the regulator specified in vin-supply too. kettenis agrees we should do this.
2023-04-15change trap16 from IDTVEC_NOALIGN to IDTVEC as it is now the firstJonathan Gray
in the reserved block ok deraadt@
2023-04-15add endbr defines and control protection trapJonathan Gray
ok deraadt@
2023-04-14vmm: NENTRY -> ENTRYDave Voutila
Originally used NENTRY macros in the asm, but the plan is for endbr64 to appear in the ENTRY macros. cluestick from deraadt@
2023-04-14Use designated initializer for ffs_vtbl.Moritz Buhl
OK kn
2023-04-14vmm(4): add NENTRY/END macros around asm functions.Dave Voutila
Part of prep for endbr64 on amd64 hosts. ok mlarkin@
2023-04-14add VMX/VMCS defines for amd64 endbr64 featuresDave Voutila
"these are fine," mlarkin@
2023-04-14Wire up the iwm_updatechan and iwx_updatechan callbacks.Stefan Sperling
These callbacks were not reachable by mistake. This change is a first step towards preventing iwx SYSASSERT 0x20101A28 as seen by beck@ and Mikhail when an 11ac AP switches channel width. The callbacks may still not trigger after this change. Possibly because APs use channel switch announcements (CSA) which we currently ignore. We only check the 11n HTOP IE for channel info. We may eventually need to add CSA support in order to detect channel width changes in 11ac mode. No regressions seen by jmc@ on iwx, nor by florian@, millert@ on iwm
2023-04-14add support for "rockchip,cryptov2-rng"David Gwynne
the steps to operate rockchip,cryptov2-rng are basically the same as the existing rockchip,cryptov1-rng support, but the registers and bits have moved around. add some abstraction for the register differences and have the state machine call the different backends. this is present on rk356x chips as the "True Random Number Generator (TRNG)". tested on a bunch of different rk3568 boards. ok kettenis@
2023-04-13add the "local experiments" ethertypesDavid Gwynne
2023-04-13Sprinkle UL suffix to constant literals which don't fit in int. NFCIMiod Vallat
2023-04-13Catch up with box drawing characters which have been standardized in unicodeMiod Vallat
after the original wscons code was written and chose placeholder values. From NetBSD (wsemul_vt100_chars.c r1.8 and r1.14) via Crystal Kolipe, thanks!
2023-04-13Grammar fixes in comments.Miod Vallat
2023-04-13pmap_copy() has never, ever, been implemented in any of the platforms OpenBSDMiod Vallat
ever ran on, and it's unlikely to ever be implemented, so remove it. ok jsg@
2023-04-13Remove intentionally undocumented pci_{io,mem}_find and convert their lastMiod Vallat
few users to pci_mapreg_info(). ok jsg@
2023-04-13Move USRSTACK to the end of userland address space.Miod Vallat
2023-04-13remove duplicate includesJonathan Gray
ok deraadt@ miod@ krw@
2023-04-12Pull MP-safe arprequest() out of kernel lockKlemens Nanni
Defer sending after unlock, reuse `refresh' from similar construct. OK bluhm
2023-04-12regenMark Kettenis
2023-04-12Add BCM4388.Mark Kettenis
ok patrick@, deraadt@
2023-04-12regenMark Kettenis
2023-04-12Add PCI IDs for the 2nd generation Aquantio 10G NICs.Mark Kettenis
ok mlarkin@
2023-04-12remove unused buffer selection codeJonathan Gray
ok visa@
2023-04-11Nuke unused function prototype.Marcus Glocker
Only acknowledge interrupts when one was active. ok kettenis@
2023-04-11fix double words in commentsJonathan Gray
feedback and ok jmc@ miod, ok millert@
2023-04-10add missing write of SAB_DAFOJonathan Gray
ok miod@ who tested on Ultra 5
2023-04-10Enable caps lock LED on modern Apple laptop keyboards.Tobias Heider
ok kettenis@ patrick@
2023-04-10fix setting parity bitsJonathan Gray
ok mglocker@
2023-04-10spellingJonathan Gray
2023-04-09So clang 13 miscompiles dev/usb/umass_scsi.c with the combination if -OzMark Kettenis
and -mbranch-protection=bti. So turn off the BTI protection in ramdisk kernels for now. ok deraadt@, miod@, phessler@
2023-04-09don't attach temperature sensors for which there is no TMP# node inJoshua Stein
the DSDT, and verify the result of the fetch when updating it later. ok kn
2023-04-08Return -1 on actual failureKlemens Nanni
MI boot.c's "a-x" fchmod on bsd.upgrade is the only caller that checks the return value and that call can fail on, e.g. softraid volumes. Stop clobbering the actual fchmod return value and get that warning printed. OK deraadt
2023-04-08Do not reload `inp' in gre_send(). The pointer to PCB of raw socket isVitaliy Makkoveev
immutable, we don't need to reload it again. ok bluhm@
2023-04-08Move rtm_ifannounce(IFAN_DEPARTURE) outside netlock within if_detach().Vitaliy Makkoveev
This is the mbuf(9) allocation and broadcast transmission for PF_ROUTE sockets, netlock is not required here. ok bluhm@
2023-04-08add missing write to XENON_EMMC_PHY_PAD_CONTROL2Jonathan Gray
ok patrick@
2023-04-08correct write to MV_XLG_PORT_MAC_CTRL4_REGJonathan Gray
tested by matthieu@ ok patrick@
2023-04-08try and cope with not having the firmware/boot loader init the hardware.David Gwynne
more specifically, spin up the clocks and phy, and if the device tree has a "ports-implemented" property use it to initialise the AHCI_REG_PI register. this gets sata working on a banana pi bpi-r2 pro. help from jared mcneill ok jmatthew@ kettenis@
2023-04-07print which gmac the dwqe driver is attaching to.David Gwynne
there's no guarantee that dwqe0 in the kernel will attach to gmac0 in the device tree, so print it to make it explicit what's going where. ok patrick@ kettenis@
2023-04-07Remove kernel locks from the ARP input path. Caller if_netisr()Alexander Bluhm
grabs the exclusive netlock and that is sufficent for in_arpinput() and arpcache(). with kn@; OK mvs@; tested by Hrvoje Popovski
2023-04-07Fix whitespace on two linesTheo Buehler
2023-04-07register a mapping of dwqe interfaces to ofw nodes/phandles.David Gwynne
i forgot to commit this as part of src/sys/dev/fdt/if_dwqe_fdt.c r1.7 found by mglocker@
2023-04-07avoid use of uninitialised memoryJonathan Gray
ok miod@ kettenis@
2023-04-07Determine PHY mode and pass the appropriate flags down to the PHY when weMark Kettenis
attach it. ok dlg@
2023-04-07register a mapping of dwqe interfaces to ofw nodes/phandles.David Gwynne
ok kettenis@
2023-04-07fixed regulators could have a "gpios" or "gpio" property.David Gwynne
we only handled "gpio" before. figuring this out has wasted many days of my life recently. ok patrick@ kettenis@
2023-04-07drm/amdkfd: Get prange->offset after svm_range_vram_node_newJonathan Gray
From Xiaogang Chen d0386bd84e6d81990ef22e10657d5a5d9c209763 in linux-6.1.y/6.1.23 8eeddc0d4200762063e1c66b9cc63afa7b24ebf0 in mainline linux
2023-04-07drm/i915: Move CSC load back into .color_commit_arm() when PSR is enabled on ↵Jonathan Gray
skl/glk From Ville Syrjala fcf712b4e5d0aacbc193e71962bdaa4d4afe3335 in linux-6.1.y/6.1.23 a8e03e00b62073b494886dbff32f8b5338066c8b in mainline linux