summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2022-01-02contoller -> controllerJonathan Gray
2022-01-02phsyaddr -> physaddrJonathan Gray
2022-01-02spellingJonathan Gray
2022-01-02addres -> addressJonathan Gray
2022-01-02unhandle -> unhandledJonathan Gray
2022-01-02slignment -> alignmentJonathan Gray
2022-01-02preferense -> preferenceJonathan Gray
2022-01-02plaform -> platformJonathan Gray
2022-01-02establush -> establishJonathan Gray
2022-01-01Add ENTRY_NB() macro for doing an ASM function entry without settingPhilip Guenther
the binding to global (NB == "no binding"), as clang 13 is now warning about changing the binding from global to weak. This first pass does amd64 and sparc64 and pulls DEFS.h out of the per-arch directory to a common directory; others to follow ok kettenis@
2022-01-01Revert the hack for Apple M1 systems.Mark Kettenis
ok patrick@
2022-01-01Rewrite the kernel FPU handling code. The new code saves the FPU stateMark Kettenis
in cpu_switch() instead of at the kernel edge and gets rid of the FPU state tracking in struct cpu_info and struct pcb. This fixes the random crashes seen with SMP kernels on Apple M1. ok patrick@
2022-01-01Use correct defines for random seed magic/length.Patrick Wildt
Spotted by Andreas Schnebinger
2022-01-01Remove unused function prototype.Mark Kettenis
2022-01-01Add missing locking to pmap_extract(9) and pmap_unwire(9).Mark Kettenis
ok patrick@, mpi@
2022-01-01copyright++;Jonathan Gray
2021-12-31spellingJonathan Gray
ok ratchov@
2021-12-31Interrups -> InterruptsJonathan Gray
2021-12-31Add missing locking to pmap_extract(9) and pmap_unwire(9).Mark Kettenis
ok patrick@, mpi@
2021-12-31avaialble -> availableJonathan Gray
2021-12-31specifed -> specifiedJonathan Gray
2021-12-31Newer Apple firmware on chipsets without a hardware RNG require the host toPatrick Wildt
provide a buffer of random bytes to the device on initialization.
2021-12-31Fix up handling of IFF_ALLMULTI and call uaq_iff() from uaq_init().Jonathan Matthew
from Brad
2021-12-30Add Xiaomi MiniWif to list of devices supported by mtw(4).Kevin Lo
Works for me on amd64. ok hastings@
2021-12-30Use a distinct variable while iterating the list of existing devices.Anton Lindqvist
ok mvs@ Reported-by: syzbot+e2d1df67f742a5a47938@syzkaller.appspotmail.com Reported-by: syzbot+72298724beda82ec8e7f@syzkaller.appspotmail.com
2021-12-30Prevent a double free by assigning the new keymap and corresponding sizeAnton Lindqvist
after the allocation and initialization is done. Otherwise, a race is possible if malloc ends up sleeping. ok sashan@ Reported-by: syzbot+7f8224e9f1a3487caf25@syzkaller.appspotmail.com
2021-12-30Prevent concurrent access to incomplete or dying `sc' caused by sleepVitaliy Makkoveev
points in pppacopen() and pppacclose() paths. Use the same "sc_ready" logic we use for 'pppx_if' structure. Reported-by: syzbot+a7ac144b48f7f471f689@syzkaller.appspotmail.com ok anton@ dlg@
2021-12-30combine ifdef blocksJonathan Gray
from Ted Bullock
2021-12-29Consistently name page argument `pg'.Martin Pieuchot
Reduce differences with NetBSD, no functional changes.
2021-12-29PHYs that we want to talk to over SGMII need to be switched into SGMIIPatrick Wildt
mode for the link to go up. This is relevant on RJ45 SFPs. ok sthen@
2021-12-29Enable ohci(4) and ehci(4) at acpi(4).Patrick Wildt
2021-12-29Allow ohci(4) and ehci(4) to attach to acpi(4).Patrick Wildt
ok kettenis@
2021-12-29acpi_intr_disestablish() is available on all our ACPI platforms whichPatrick Wildt
support interrupts via ACPI, so there's need for an ifdef around it. ok kettenis@
2021-12-29Do not allow send/receive of kcov descriptors as the file descriptor canAnton Lindqvist
be kept alive longer than expected causing syzkaller to no longer being able to enable remote coverage. ok visa@ Reported-by: syzbot+ab2016d729cda7b0d003@syzkaller.appspotmail.com
2021-12-28whitespace tweak, no functional change.David Gwynne
2021-12-28it doesnt make sense to configure a vport as a span port.David Gwynne
2021-12-28move away from using the M_PROTO1 flag to prevent loops with vportsDavid Gwynne
if a vlan interface is configured on a vport interface, vlan(4) will take the packet away from ether_input before the veb bridge input handler gets to clear M_PROTO1. this leaves the flag on the mbuf as it goes through the l3 stacks. if it goes back out a vport into a veb, the presence of M_PROTO1 means the packet ends up getting dropped, which is unexpected. this diff specialises vport handling by veb even more to avoid the problem the flag was handling. vports get their own bridge input handler that skips veb processing completely because a packet being received on a vport can only occur if a veb has decided to forward it there and has already processed it. when the stack sends a packet out a vport interface, then we do actual veb bridge input handling. bug reported on misc@ and the fix tested by Simon Baker
2021-12-28The initial kd_lookup() in kcovopen() is redundant as kcov is a cloningAnton Lindqvist
device. Turn it into an assertion instead to better state the expected semantics of D_CLONE. Prompted after a discussion with visa@
2021-12-28Now that -A prints -- markers as it is supposed to filter them out whenOtto Moerbeek
doing the consistency check for locore.o; ok millert@
2021-12-28Unlock bottom part of the fault handler.Martin Pieuchot
Tested by many during the past months, thanks! ok sthen@
2021-12-27Not only BCM4378, but all PCIe core revisions >= 64 need to be accessedPatrick Wildt
using the new sets of registers.
2021-12-27Map the chip ids used on Apple M1 Pro/Max and Apple T2 Macs to firmwarePatrick Wildt
names.
2021-12-27Support reading OTP information from a few more chips, necessary to learnPatrick Wildt
firmare names on Apple M1 Pro/Max and Apple T2 Macs.
2021-12-27Yet another errno correction.Anton Lindqvist
2021-12-27Fix off-by-one in blob download, where in the case that the blob is evenlyPatrick Wildt
divisible by 1400, the last chunk isn't marked with an end flag. ok tobhe@
2021-12-27BCM4387 needs the D11 cores to be held in reset by us, the firmwarePatrick Wildt
will take care of releasing them, as otherwise initialization would fail some of the time. That chip also contains 3 of these, so make sure we reset all of them. Necessary on Apple M1 Pro/Max.
2021-12-27Send TxCap and WiFi calibration blobs to the chip.Patrick Wildt
2021-12-27Switch module codename retrieval to use the newly proposed device treePatrick Wildt
bindings.
2021-12-27Handle trailing odd-sized 1024 byte blocks when calculating TCM RAM size.Patrick Wildt
2021-12-27Bump rxpost and rxcomplete ring size to 1024 for newer chips.Patrick Wildt