summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2022-06-02Take the size of allocation into account when checking the kernel reserve.Mark Kettenis
ok mpi@
2022-06-02Implement and enable IPv4, TCP, and UDP checksum offloading for igc.mbuhl
ok kevlo@
2022-06-02Stop hiding a few assertions behind the opt-in LOCKF_DIAGNOSTIC option.Anton Lindqvist
This code has already been exercised quite extensively by syzkaller and got decent test coverage.
2022-06-02enable aq(4) on arm64 now that it works reasonably wellJonathan Matthew
2022-06-01change amd64 pmap_convert to return voidDave Voutila
There are no other return options, so adjust function signature to void. This also allows for cleaning up its usage in vmm(4) in the vm pmap initialization logic. ok mlarkin@
2022-06-01callers to pf(4) must continue to run with packet as returnedAlexandr Nedvedicky
by firewall. OK dlg@
2022-06-01remove unused pmap_convert prototype from i386Dave Voutila
Leftover lint from early days of vmm(4). ok mlarkin@
2022-06-01Fix ambiguity with lock range endVisa Hankala
When the user requests a lock range that ends at LLONG_MAX, replace the end point with the special EOF value -1. This avoids ambiguity with lf_end in lf_split(). The ambiguity could result in a broken data structure. This change is visible to userspace in a corner case. When a lock range has been requested with an end point at absolute position LLONG_MAX, fcntl(F_GETLK) returns l_len == 0, instead of a positive value, for that range. This seems consistent with FreeBSD and Linux. OK anton@ Reported-by: syzbot+c93afea6c27a3fa3af39@syzkaller.appspotmail.com
2022-06-01Fix lock range start when l_whence == SEEK_END and l_len < 0.Visa Hankala
OK anton@
2022-06-01shrink dmesg output by printing the ethernet address on the attach line.David Gwynne
2022-06-01mark the mvneta interrupt handler as mpsafe.David Gwynne
link state changes still take the kernel lock, but packet processing is unlocked now.
2022-06-01rework the rx ring processing.David Gwynne
this is another big step toward making the code mpsafe, and makes a bunch of ring operations such as dmamap syncs and register updates get done once for the ring rather than for every packet.
2022-06-01mark mvneta_start mpsafe.David Gwynne
the interrupt handler is still under kernel lock, but at least you can queue packets from another cpu concurrently.
2022-06-01dont have to say Ethernet address in dmesg, address is fineDavid Gwynne
2022-06-01trim some white spaceDavid Gwynne
2022-06-01rework tx start and completion.David Gwynne
this is a big step toward making the code mpsafe, and makes a bunch of ring operations such as dmamap syncs and register updates per start/completion call rather than per packet.
2022-05-30knf; fix whitespace in structsDave Voutila
2022-05-30Add sfgpio(4), a driver for the GPIO controller found on theMark Kettenis
SiFive FU740 SoC. ok jca@
2022-05-30Replace selwakeup() with KNOTE() in pipe event activation.Visa Hankala
Recommit the reverted change selectively so that only pipes are affected. Leave sockets untouched for now.
2022-05-30make a first pass at providing kstats from the hardware counters.David Gwynne
mvneta counters are read to clear, so we accumulate them over time. they are also mostly 32bit, except for 2 of them, so this handles all the 32bit counters in a loop and deals with the 64bit ones as exceptions. i can see rx drops now, but not the rx rx counters yet. i'll figure it out. this is mostly inspired by em(4).
2022-05-30tell the compiler about the tx/rx desc alignment.David Gwynne
this leads to better (and shorter) code. ok patrick@
2022-05-29pwr_action isn't used in this file, zap pointless decl.Jeremie Courreges-Anglas
2022-05-29Device tree bindings for this device are official now.Mark Kettenis
2022-05-28oops, wrong value in previous commitTheo de Raadt
2022-05-2864K of locked memory should be enough for anyone (until we hear a goodTheo de Raadt
reason why) discussed with many, ok millert
2022-05-27Convert KVA allocation to km_alloc(9).Mark Kettenis
ok deraadt@, mpi@
2022-05-27Call uvm_vnp_uncache() before VOP_RENAME().Martin Pieuchot
ok kettenis@
2022-05-26Adjust compatible string to match what has been submitted to mainline Linux.Mark Kettenis
Keep supporting the old compatible string for a bit longer. Add frequency sensors that reflect the actual frequencies the CPU clusters are running at as reported by the hardware. ok patrick@
2022-05-26recognise Cortex-X1CJonathan Gray
2022-05-26drm/i915/adl-n: Add stepping infoJonathan Gray
From Tejas Upadhyay 8d80cceecdd98de6d2281d39d6571a1fe08e5af9 in mainline linux
2022-05-26drm/i915/rpl-s: Add stepping infoJonathan Gray
From Anusha Srivatsa 8295524a2d5550b56e800ac779a183b7f4d8c33c in mainline linux
2022-05-26drm/i915/rpl-s: Enable guc submission by defaultJonathan Gray
From Anusha Srivatsa c9ee950a2ca55ea0f63d0893f796b2eb089e7900 in mainline linux
2022-05-26drm/i915/adl-n: Add PCH Support for Alder Lake NJonathan Gray
From Tejas Upadhyay 02ed904261481460e6084769416e7ca31bbb92eb in mainline linux
2022-05-26drm/i915/rpl-s: Add PCH Support for Raptor Lake SJonathan Gray
From Anusha Srivatsa 4a75f32fc783128d0c42ef73fa62a20379a66828 in mainline linux
2022-05-26regenJonathan Gray
2022-05-26add more Intel RPL-S graphics idsJonathan Gray
2022-05-26drm/i915/rpl-p: Add PCI IDsJonathan Gray
From Matt Atwood 72c3c8d6e5275b19fd2d32ec787e8135a421c7ec in mainline linux
2022-05-26drm/i915: Add RPL-S PCI IDsJonathan Gray
From Tejas Upadhyay 756b807f6a3e01d238c346925006cdfd6a59e341 in mainline linux
2022-05-25Call if_put(9) after we finish with `ia' within ip_getmoptions().Vitaliy Makkoveev
if_put(9) call means we finish work with `ifp' and it could be destroyed. `ia' is the pointer to 'in_ifaddr' data belongs to `ifp', so we need to release corresponding `ifp' after we finish deal with `ia'. `if_addrlist' list destruction and ip_getmoptions() are serialized with kernel and net locks so this is not critical, but looks inconsistent. ok bluhm@
2022-05-25drm/dp/mst: fix a possible memory leak in fetch_monitor_name()Jonathan Gray
From Hangyu Hua deec86168170d085d4f91445c1f72a900ed02372 in linux 5.15.y/5.15.42 6e03b13cc7d9427c2c77feed1549191015615202 in mainline linux
2022-05-25drm/i915/dmc: Add MMIO range restrictionsJonathan Gray
From Anusha Srivatsa aaf0f01d074d6fd39ec1b01477f69cd688bf6c9d in linux 5.15.y/5.15.42 54395a33718af1c04b5098203335b25382291a16 in mainline linux
2022-05-25drm/amd: Don't reset dGPUs if the system is going to s2idleJonathan Gray
From Mario Limonciello 9d3ec4e5bf032f53137e11075846cec9c474ce4b in linux 5.15.y/5.15.42 7123d39dc24dcd21ff23d75f46f926b15269b9da in mainline linux
2022-05-25Revert "drm/i915/opregion: check port number bounds for SWSCI display power ↵Jonathan Gray
state" From Greg Thelen 11e6a90ffd6294083b808d34ccc5a5ea18ed603e in linux 5.15.y/5.15.42
2022-05-25As with if_em.c r1.350, and for the same reasons (arm64 systems with nonJonathan Matthew
cache coherent PCIe), map the rx and tx rings coherent. tested by kevlo@ on rockpro64 ok dlg@
2022-05-25marvell,armada-3700-ahci seems to work.David Gwynne
ok kettenis@ patrick@
2022-05-24Address the clang 13 "changed binding to STB_WEAK" warning on arm64:Philip Guenther
add _?ENTRY_NB to asm.h, switch libc's asm bits to the generic DEFS.h, and use ENTRY_NB as necessary. Also, give sizes to the htonl/htons symbols and mark them as weak. ok kettenis@ miod@
2022-05-24fdisk(8) no longer uses the partition table it finds inKenneth R Westerback
/usr/mdec/mbr. Make the partition table all zeros and see if any hidden uses fall out. ok deraadt@
2022-05-24Address the clang 13 "changed binding to STB_WEAK" warning on arm (32bit):Philip Guenther
* add _?ENTRY_NB to arm/asm.h * make sure ld.so's arm asm bits see the same includes as libc * switch libc's arm bits to the generic DEFS.h * switch arm ASM bits from ENTRY to ENTRY_NB as necessary ok kettenis@ miod@
2022-05-23Neither macppc nor the retired loongson have any remaining usefulKenneth R Westerback
information in /usr/mdec/mbr. Stop telling fdisk(8) that macppc and loongson HAS_MBR, and don't bother including the file in the base set. macppc build/install tests and ok gkoehler@ loongson is gone deraadt@
2022-05-23Respect RLIMIT_FSIZE when extending a file via truncat(2)/ftruncate(2).Todd C. Miller
This refactors the commin parts of sys_truncate() and sys_ftruncate() into dotruncate(). If the new size of the file is larger than the RLIMIT_FSIZE limit _and_ the file is being extended, not truncated, return EFBIG. Adapted from a diff by Piotr Durlej. With help from and OK by deraadt@ guenther@.