summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2024-05-20drm/i915/bios: Fix parsing backlight BDB dataJonathan Gray
From Karthikeyan Ramasubramanian ca82830e453364d192e3c0c92a0f8823f621879c in linux-6.6.y/6.6.3 43b26bdd2ee5cfca80939be910d5b23a50cd7f9d in mainline linux
2024-05-20drm/i915/gt: Automate CCS Mode setting during engine resetsJonathan Gray
From Andi Shyti be59b2d3d9750f784101d62cc0f25fb75e294f7e in linux-6.6.y/6.6.3 51c1b42a232f17743cd825be6790cb64735ff98f in mainline linux
2024-05-20drm/i915/audio: Fix audio time stamp programming for DPJonathan Gray
From Chaitanya Kumar Borah b0624c032a02a8c2141663e21961ade9d3424e3c in linux-6.6.y/6.6.3 c66b8356273c8d22498f88e4223af47a7bf8a23c in mainline linux
2024-05-20drm/ttm: Print the memory decryption status just onceJonathan Gray
From Zack Rusin 306e99777886fd9fe3495a2b889d551dc509a820 in linux-6.6.y/6.6.3 27906e5d78248b19bcdfdae72049338c828897bb in mainline linux
2024-05-20drm/amdkfd: don't allow mapping the MMIO HDP page with large pagesJonathan Gray
From Alex Deucher 4b4cff994a27ebf7bd3fb9a798a1cdfa8d01b724 in linux-6.6.y/6.6.3 be4a2a81b6b90d1a47eaeaace4cc8e2cb57b96c7 in mainline linux
2024-05-20drm/amdgpu: once more fix the call oder in amdgpu_ttm_move() v2Jonathan Gray
From Christian Koenig 0c7ed3ed35eec9138b88d42217b5a6b9a62bda4d in linux-6.6.y/6.6.3 d3a9331a6591e9df64791e076f6591f440af51c3 in mainline linux
2024-05-20drm/amdgpu: Fix comparison in amdgpu_res_cpu_visibleJonathan Gray
From Michel Daenzer 52c1af381cb8bf72f2600ea02ba03d05fee2d733 in linux-6.6.y/6.6.3 8d2c930735f850e5be6860aeb39b27ac73ca192f in mainline linux
2024-05-20drm/amd/display: Atom Integrated System Info v2_2 for DCN35Jonathan Gray
From Gabe Teeger 7e3030774431eb093165a31baff040d35446fb8b in linux-6.6.y/6.6.31 9a35d205f466501dcfe5625ca313d944d0ac2d60 in mainline linux
2024-05-20dm/amd/pm: Fix problems with reboot/shutdown for some SMU 13.0.4/13.0.11 usersJonathan Gray
From Mario Limonciello 6c83a8f236ece78d5c2e60ae3dcfd1a64509410e in linux-6.6.y/6.6.31 cd94d1b182d2986378550c9087571991bfee01d4 in mainline linux
2024-05-20drm/connector: Add \n to message about demoting connector force-probesJonathan Gray
From Douglas Anderson 1b9e8de483bcc230f6e922bdfa9d1c186c27dd3b in linux-6.6.y/6.6.31 6897204ea3df808d342c8e4613135728bc538bcd in mainline linux
2024-05-20drm/radeon: silence UBSAN warning (v3)Jonathan Gray
From Alex Deucher aff9dba5e8cedddb32759e835304697661ccf3f1 in linux-6.6.y/6.6.31 781d41fed19caf900c8405064676813dc9921d32 in mainline linux
2024-05-20amd/amdkfd: sync all devices to wait all processes being evictedJonathan Gray
From Zhigang Luo b6f6626528fe724b512c34f3fb5946c36a135f58 in linux-6.6.y/6.6.31 d06af584be5a769d124b7302b32a033e9559761d in mainline linux
2024-05-20drm/amdgpu: Fix VCN allocation in CPX partitionJonathan Gray
From Lijo Lazar a624829bba2752a2b726f227574d6ca1d2e39671 in linux-6.6.y/6.6.31 f7e232de51bb1b45646e5b7dc4ebcf13510f2630 in mainline linux
2024-05-20drm/amd/display: Skip on writeback when it's not applicableJonathan Gray
From Alex Hung 951a498fa993c5501994ec2df97c9297b02488c7 in linux-6.6.y/6.6.31 ecedd99a9369fb5cde601ae9abd58bca2739f1ae in mainline linux
2024-05-20drm/amdgpu: implement IRQ_STATE_ENABLE for SDMA v4.4.2Jonathan Gray
From Tao Zhou c0beff4e35af8ef3f5e30ac3f55a6109f751d9c0 in linux-6.6.y/6.6.31 f886b49feaae30acd599e37d4284836024b0f3ed in mainline linux
2024-05-20drm/amdgpu: Refine IB schedule error loggingJonathan Gray
From Lijo Lazar 1e2c28e74a823aa36821c5c68e7834ca7e4fbb9b in linux-6.6.y/6.6.31 4b18a91faf1752f9bd69a4ed3aed2c8f6e5b0528 in mainline linux
2024-05-20drm/amdkfd: range check cp bad op exception interruptsJonathan Gray
From Jonathan Kim 41dc6791596656dd41100b85647ed489e1d5c2f2 in linux-6.6.y/6.6.31 0cac183b98d8a8c692c98e8dba37df15a9e9210d in mainline linux
2024-05-20drm/amdkfd: Check cgroup when returning DMABuf infoJonathan Gray
From Mukul Joshi d644962423704441713be6669b9544beed5d4176 in linux-6.6.y/6.6.31 9d7993a7ab9651afd5fb295a4992e511b2b727aa in mainline linux
2024-05-20drm/amdgpu: fix doorbell regressionJonathan Gray
From Shashank Sharma 4fd8cd4154a213e944933622039d83184b31617c in linux-6.6.y/6.6.31 705d0480e6ae5a73ca3a9c04316d0678e19a46ed in mainline linux
2024-05-20add __counted_by() for 6.6.31 drmJonathan Gray
2024-05-20Map MSI-X in addition to MSI and INTx on rge(4).Kevin Lo
Brad noticed on Orange Pi 5 Plus apparently the RTL8125 Ethernet controller doesn't support MSIs, but does support MSI-X. With this diff running on Orange Pi 5+ we switch over from shared INTx to device-specific MSI-X interrupts. Tested by Brad. ok kettenis@
2024-05-19Use aggregation interrupts like stated in the documentation; Setup valuesMarcus Glocker
(counter and timeout) during device init, reset values once commands have been completed. This also let us get rid of the 'sc_intraggr_enabled' variable.
2024-05-18RegenPhilip Guenther
2024-05-18Add pathconfat(2): pathconf(2) but with at-fd and flags arguments,Philip Guenther
the latter supporting the ability to get timestamp resolution of symlinks. ok deraadt@ millert@
2024-05-17IPv6 has to use ip6_defhlim, not ip_defttl.Alexander Bluhm
OK claudio@
2024-05-17Make sure `row' is not used uninitialized in wsmouse_matching().Miod Vallat
2024-05-17Cast alpha_pal_swpipl return value to int in splx, to make sure both sidesMiod Vallat
of the ternary operator have the same type. NFC
2024-05-17Constify the first argument of getdevunit(). NFCIMiod Vallat
2024-05-17Update comments to match reality.Miod Vallat
2024-05-17The INTSTS register is read-only, so the attempt to clear interruptsMark Kettenis
by writing to it doesn't actually work. Therefore we have to keep processing interrupts until all the bits corresponding to enabled interrupts are cleared. This makes MSIs actually work, also on the AMD implementations for which we currently disable MSIs. Based on some digging by martijn@ ok ratchov@, martijn@, stsp@
2024-05-17Turn sblock() to `sb_lock' rwlock(9) wrapper for all sockets.Vitaliy Makkoveev
Unify behaviour to all sockets. Now sblock() should be always taken before solock() in all involved paths as sosend(), soreceive(), sorflush() and sosplice(). sblock() is fine-grained lock which serializes socket send and receive routines on `so_rcv' or `so_snd' buffers. There is no big problem to wait netlock while holding sblock(). This unification removes a lot of temporary "sb_flags & SB_MTXLOCK" code from sockets layer. This unification makes straight "solock()" and "sblock()" lock order, no more solock() -> sblock() -> sounlock() -> solock() -> sbunlock() -> sounlock() chains in sosend() and soreceive() paths. This unification brings witness(4) support for sblock(), include NFS involved sockets, which is useful. Since the witness(4) support was introduced to sblock() with this diff, some new witness reports appeared. bulk(1) tests by tb, ok bluhm
2024-05-17Switch AF_KEY sockets to the new locking scheme.Vitaliy Makkoveev
The simplest case. Nothing to change in sockets layer, only set SB_MTXLOCK on socket buffers. ok bluhm
2024-05-17Fix uninitialized memory access in pfkeyv2_sysctl().Vitaliy Makkoveev
pfkeyv2_sysctl() reads the SA type from uninitialized memory if it is not provided by the caller of sysctl(2) because of a missing length check. From Carsten Beckmann. ok bluhm
2024-05-17vio: Fix signal handling and locking in sysctl pathStefan Fritsch
Commits f0b002d01d5 "Release the netlock when sleeping for control messages in in vioioctl()" and 126b881f71 "Insert a workaround for per-ifp ioctl being called w/o NET_LOCK()." in vio(4) fixed a deadlock but may cause a crash with a protection fault trap if addresses are added/removed concurrently. The actual issue is that signals are not handled correctly while sleeping. After a signal, there is a race condition where sc_ctrl_inuse is first set to FREE and then the interrupt handler sets it to DONE, causing a hang in the next vio_wait_ctrl() call. To fix it: * Revert the NET_LOCK unlocking work-around. * Remove PCATCH from the sleep call when we wait for control queue, avoiding the race with vio_ctrleof(). To ensure that we don't hang forever, use a 5 second timeout. * If the timeout is hit, or if the hypervisor has set the DEVICE_NEEDS_RESET status bit, do not try to use the control queue until the next ifconfig down/up which resets the device. * In order to allow reading the device status from device drivers, add a new interface to the virtio transport drivers. * Avoid a crash if there is outgoing traffic while doing ifconfig down. OK bluhm@
2024-05-16Fix IPsec in use with IP forwarding 2 logic.Alexander Bluhm
If sysctl net.inet.ip.forwarding is 2, only packets processed by IPsec are forwarded. Variable ipsec_in_use is a shortcut to avoid IPsec processing if no policy has been configured. With ipsec_in_use unset and ipforwarding set to IPsec only, the packet must be dropped. OK claudio@
2024-05-16As of the documentation, the value of the Command UPIU expected_xfer_lenMarcus Glocker
field shall be the product of the Logical Block Size and the transfer length field of the CDB.
2024-05-16Stop treating IPL_NONE mutexes special in MULTIPROCESSOR kernels. WhileMark Kettenis
in theory these are safe to use in code that runs under the kernel lock they are nasty trips when converting code to run without the kernel lock. ok mpi@, claudio@
2024-05-15Recent OpenSBI versions implement shutdown and reboot through the DA9063Mark Kettenis
PMIC, but expect the I2C controller to remain enabled. Adjust ociic(4) such that this is the case. ok jca@
2024-05-15Remove unused variable.Marcus Glocker
2024-05-15Fix multi-slot support.Marcus Glocker
We also add an timeout while waiting for command completion.
2024-05-15Also free CCBs in the error case. Fixes an intermittent panic seen onMarcus Glocker
arm64.
2024-05-15ansi style function declJonathan Gray
2024-05-15remove unused headerJonathan Gray
opti functions were removed in pciide.c rev 1.360
2024-05-15remove extra snprintf arguments to fix buildJonathan Gray
usps(4) is not included in any kernel config
2024-05-15regenKevin Lo
2024-05-15Add CH9102 support. Tested on the NodeMCU esp8266 v3 ch9102x board.Kevin Lo
ok deraadt@
2024-05-14Sanity check for TSO payload length in TCP chopper.Alexander Bluhm
Although it should not happen, check that ph_mss is not 0 in tcp_chopper(). This could catch errors in the LRO path of network drivers. Better count bad packet and drop it rather than ending in an endless loop. The new logic is analog to a recent change in the hardware TSO path in the drivers. OK jan@
2024-05-14remove prototypes with no matching functionJonathan Gray
2024-05-14remove unneeded nfs_getreq() prototypeJonathan Gray
nfs_getreq() is in nfs_socket.c and not called from nfs_vnops.c
2024-05-14make amdgpu_activate() return early when called during hibernate resumeJonathan Gray
Hibernate does DVACT_QUIESCE/DVACT_SUSPEND from hibernate_resume(), before config_process_deferred_mountroot() calls amdgpu_attachhook(). Without this change the amdgpu_device_prepare() call ends up faulting in ttm_resource_manager_evict_all() after the 'drm/amd: Evict resources during PM ops prepare() callback' commit from April. earlier diff from and ok stsp@ report and bisection from florian@