summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2024-02-06drm/amdgpu: Let KFD sync with VM fencesJonathan Gray
From Felix Kuehling 0d35c8977be8f220931d437d568f64a7028d0115 in linux-6.6.y/6.6.16 ec9ba4821fa52b5efdbc4cdf0a77497990655231 in mainline linux
2024-02-06drm/amd/display: Fix minor issues in BW Allocation Phase2Jonathan Gray
From Meenakshikumar Somasundaram cef7f96a0a4c00f761248cd714b086c1256992cb in linux-6.6.y/6.6.16 aa5dc05340eb97486a631ce6bccb8d020bf6b56b in mainline linux
2024-02-06drm/amdgpu: Fix ecc irq enable/disable unpairedJonathan Gray
From Stanley Yang 0a8fc4e007b933d46f079a1d9ab8539a4d8439ef in linux-6.6.y/6.6.16 a32c6f7f5737cc7e31cd7ad5133f0d96fca12ea6 in mainline linux
2024-02-06drm/amd/display: Only clear symclk otg flag for HDMIJonathan Gray
From Alvin Lee 49b4cab7bcbdfe621162405502283fc9cb3ef77f in linux-6.6.y/6.6.16 dff45f03f508c92cd8eb2050e27b726726b8ae0b in mainline linux
2024-02-06drm/amd/display: make flip_timestamp_in_us a 64-bit variableJonathan Gray
From Josip Pavic 4033887acddcbb15280091f0a125ac0829cffdc8 in linux-6.6.y/6.6.16 6fb12518ca58412dc51054e2a7400afb41328d85 in mainline linux
2024-02-06drm/amdgpu: fix ftrace event amdgpu_bo_move always move on same heapJonathan Gray
From Wang Beyond e7a0ee45c653784edda5e36bae6ae3c75fd5e7a8 in linux-6.6.y/6.6.16 94aeb4117343d072e3a35b9595bcbfc0058ee724 in mainline linux
2024-02-06drm/amdkfd: fix mes set shader debugger process managementJonathan Gray
From Jonathan Kim 3a950c56dea199d65bc98db348c017856aa2f194 in linux-6.6.y/6.6.16 bd33bb1409b494558a2935f7bbc7842def957fcd in mainline linux
2024-02-06drm/amd/display: Force p-state disallow if leaving no plane configJonathan Gray
From Alvin Lee e9ca61a7e6b0d323547067e1dde64a97476e1696 in linux-6.6.y/6.6.16 9a902a9073c287353e25913c0761bfed49d75a88 in mainline linux
2024-02-06drm/amd/display: For prefetch mode > 0, extend prefetch if possibleJonathan Gray
From Alvin Lee 6750d1de747f4d2db0046a25b069e15341f6a9ba in linux-6.6.y/6.6.16 dd4e4bb28843393065eed279e869fac248d03f0f in mainline linux
2024-02-06drm/mipi-dsi: Fix detach call without attachJonathan Gray
From Tomi Valkeinen daf57c5ce16e907405d8a59a4f2be20e204906e4 in linux-6.6.y/6.6.16 90d50b8d85834e73536fdccd5aa913b30494fef0 in mainline linux
2024-02-06drm/framebuffer: Fix use of uninitialized variableJonathan Gray
From Tomi Valkeinen 9b3fbff86a623a0ec053d5a4ab432956cb025c1f in linux-6.6.y/6.6.16 f9af8f0c1dc567a5a6a6318ff324c45d80d4a60f in mainline linux
2024-02-06drm/drm_file: fix use of uninitialized variableJonathan Gray
From Tomi Valkeinen 2cde325e185b43accae56a23c18b2e735245197a in linux-6.6.y/6.6.16 1d3062fad9c7313fff9970a88e0538a24480ffb8 in mainline linux
2024-02-06drm/amd/display: Fix MST PBN/X.Y value calculationsJonathan Gray
From Ilya Bakoulin 01e7578c7cd3d8815fae130ac74b1303c056bd2d in linux-6.6.y/6.6.16 94bbf802efd0a8f13147d6664af6e653637340a8 in mainline linux
2024-02-06drm/amd/display: Fix tiled display misalignmentJonathan Gray
From Meenakshikumar Somasundaram 1c563c04509080b374af5adf8e1c45718e3f37bf in linux-6.6.y/6.6.16 c4b8394e76adba4f50a3c2696c75b214a291e24a in mainline linux
2024-02-06Invert broken check of panic string in if_linkstate().Alexander Bluhm
original bug report from syzkaller Reported-by: syzbot+d19060a65721eb432a72@syzkaller.appspotmail.com broken fix found by Hrvoje Popovski hint to the problem and OK deraadt@
2024-02-05Add netstat counter for route cache.Alexander Bluhm
To optimize route caching, count cache hits and misses. This is shown in netstat -s for both inet and inet6. Reuse the old IPv6 forward cache counter. Sort ip6s_wrongif consistently. For now only IPv4 cache counter has been implemented. OK mvs@
2024-02-05Use `sb_mtx' mutex(9) to protect `sb_timeo_nsecs'. In most placesVitaliy Makkoveev
solock() is still held because other 'sockbuf' members require it, but in so{g,s}etopt() paths solock() is avoided. ok bluhm
2024-02-05support newer mfii devices; ok jmatthewTheo de Raadt
2024-02-05syncTheo de Raadt
2024-02-05newer mfii devices; ok jmatthewTheo de Raadt
2024-02-05Don't send route messages while rebooting after panic. Syskaller exposedVitaliy Makkoveev
[1] that if_downall() tries to send route messages and triggers panic again but in knote(9) layer. 1. https://syzkaller.appspot.com/bug?extid=d19060a65721eb432a72 ok bluhm
2024-02-05Move route_cache() declaration from net/route.h to netinet/in.h.Kenji Aoyama
This prevents gcc3's 'parameter has incomplete type' warning that causes kernel build failure. Suggested by claudio@, ok bluhm@
2024-02-05Add a 1ms delay before starting the MHI channels. This is a hack; we'reMark Kettenis
probably not waiting iproperly for some sort of firmware state transition. But this gets us going on the x13s. ok stsp@, phessler@
2024-02-04Tweak codepatch_control_flow():Philip Guenther
* it should be in .cptext so it gets unmapped when codepatching is done * when doing a JMP, fill the area after it with INT3s instead of NOPs ok deraadt@
2024-02-04Add a DMA constraint for the x13s. Some brilliant person at QualcommMark Kettenis
decided that tying a wifi interface that can only do 32-bit DMA to their compute platform that typically comes with at least 8G of memory was a sensible thing to do. Maybe we should be able to use an IOMMU to work around that. But they fucked that up as well. ok patrick@, phessler@
2024-02-04Fix cases where the size of the complete firmware file is used instead ofMark Kettenis
the carved out board firmware. ok phessler@, stsp@
2024-02-03Rework socket buffers locking for shared netlock.Vitaliy Makkoveev
Shared netlock is not sufficient to call so{r,w}wakeup(). The following sowakeup() modifies `sb_flags' and knote(9) stuff. Unfortunately, we can't call so{r,w}wakeup() with `inp_mtx' mutex(9) because sowakeup() also calls pgsigio() which grabs kernel lock. However, `so*_filtops' callbacks only perform read-only access to the socket stuff, so it is enough to hold shared netlock only, but the klist stuff needs to be protected. This diff introduces `sb_mtx' mutex(9) to protect sockbuf. This time `sb_mtx' used to protect only `sb_flags' and `sb_klist'. Now we have soassertlocked_readonly() and soassertlocked(). The first one is happy if only shared netlock is held, meanwhile the second wants `so_lock' or pru_lock() be held together with shared netlock. To keep soassertlocked*() assertions soft, we need to know mutex(9) state, so new mtx_owned() macro was introduces. Also, the new optional (*pru_locked)() handler brings the state of pru_lock(). Tests and ok from bluhm.
2024-02-03Try to fetch the board variant from the device tree on platforms that haveMark Kettenis
one (e.g. on arm64). Needed to extract the right information from the qwx(4) firmware on the x13s. ok stsp@
2024-02-03Remove Softdep.Bob Beck
Softdep has been a no-op for some time now, this removes it to get it out of the way. Flensing mostly done in Talinn, with some help from krw@ ok deraadt@
2024-02-03Add new amd64-only sysctl machdep.retpoline which says whether the cpuTheo de Raadt
requires retpoline. If 0, we should do everything in our power to avoid pure retpoline (replacing it with a simple thunk where possible), because by it's nature retpoline converts an indirect-branch into a direct branch (push to stack & ret), and therefore it is an IBT (endbr64) bypass method. This sysctl leverages guenther's decision-making logic in the kernel, which already uses codepatch to fix the kernel retpoline thunk. In my opinion, the retpoline-using logic really should be flipped; ROP execution bypassing IBT to re-enter regular control flow is more dangerous than spectre. ok kettenis
2024-02-03Implement Multiple Message MSI support on arm64. As on amd64 this isMark Kettenis
experimental code to assis qwx(4) development. Currently this only works on systems that use agintcmsi(4) as the MSI controller combined with the dwpcie(4) Hots/PCIe bridge. ok patrick@
2024-02-03implement qwx_tx()Stefan Sperling
This gets the 4-way handshake working. Unfortunately, no traffic is passing yet, apparently because of CCMP decryption errors in Rx.
2024-02-03not enough bits for L1 cache size to be >= 1MJonathan Gray
found by "mask and shift to zero: expr='totalsize >> 10'" smatch warning
2024-02-03return early if malloc fails to avoid use after freeJonathan Gray
found by "passing freed memory 'edid'" smatch warning
2024-02-02Fix vector number check.Mark Kettenis
ok kevlo@, patrick@
2024-02-02Implement basics of the qwx(4) data frame Rx path.Stefan Sperling
Port enough ath11k dp_rx code in order to let our net80211 stack see the initial WPA handshake packet sent by the AP.
2024-02-02In in_pcbrtentry() add missing return of in6_pcbrtentry() value.Alexander Bluhm
Reported-by: syzbot+5f2286d5962355f0cfd8@syzkaller.appspotmail.com OK kn@
2024-02-02Enable sximmc(4)Mark Kettenis
2024-02-02Add Allwinner D1 support.Mark Kettenis
ok jca@, patrick@
2024-02-02Add a few more Allwinner D1 clocks.Mark Kettenis
ok patrick@
2024-02-02drm/amdgpu/gfx11: set UNORD_DISPATCH in compute MQDsJonathan Gray
From Alex Deucher 5ff487d180dc25138d2261dda9e3b2d46ef3051a in linux-6.6.y/6.6.15 3380fcad2c906872110d31ddf7aa1fdea57f9df6 in mainline linux
2024-02-02drm/amdgpu/gfx10: set UNORD_DISPATCH in compute MQDsJonathan Gray
From Alex Deucher b59ea95e72e051fe53a5c978222d65b80ca2ef96 in linux-6.6.y/6.6.15 03ff6d7238b77e5fb2b85dc5fe01d2db9eb893bd in mainline linux
2024-02-02drm/i915/psr: Only allow PSR in LPSP mode on HSW non-ULTJonathan Gray
From Ville Syrjala 02cfae7d62783614b433ec93b2ccf9d9fba212ff in linux-6.6.y/6.6.15 f9f031dd21a7ce13a13862fa5281d32e1029c70f in mainline linux
2024-02-02drm/i915/lnl: Remove watchdog timers for PSRJonathan Gray
From Mika Kahola e017ec3807d40a196dd328ca25b3219e0f97c9cc in linux-6.6.y/6.6.15 a2cd15c2411624a7a97bad60d98d7e0a1e5002a6 in mainline linux
2024-02-02drm/amd/display: Fix uninitialized variable usage in core_link_ 'read_dpcd() ↵Jonathan Gray
& write_dpcd()' functions From Srinivasan Shanmugam b565f41b9f20ed65d73660ffa6d8e495bc839789 in linux-6.6.y/6.6.15 a58371d632ebab9ea63f10893a6b6731196b6f8d in mainline linux
2024-02-02drm/amdgpu/pm: Fix the power source flag errorJonathan Gray
From Ma Jun dcda362dc5b4d5aa0df9d1511cb9427df04d2d11 in linux-6.6.y/6.6.15 ca1ffb174f16b699c536734fc12a4162097c49f4 in mainline linux
2024-02-02drm/amd/display: Fix late derefrence 'dsc' check in 'link_set_dsc_pps_packet()'Jonathan Gray
From Srinivasan Shanmugam 6aa5ede6665122f4c8abce3c6eba06b49e54d25c in linux-6.6.y/6.6.15 3bb9b1f958c3d986ed90a3ff009f1e77e9553207 in mainline linux
2024-02-02drm/amd/display: Align the returned error code with legacy DPJonathan Gray
From Wayne Lin d3af41be094a39e1a1392d1d42cdf3eb90922476 in linux-6.6.y/6.6.15 bfe79f5fff1300d96203383582b078c7b0aec80a in mainline linux
2024-02-02drm/amd/display: Port DENTIST hang and TDR fixes to OTG disable W/AJonathan Gray
From Nicholas Kazlauskas fbc4ee5ca79bcdb8010e7209c0a8d48333b324a2 in linux-6.6.y/6.6.15 4b56f7d47be87cde5f368b67bc7fac53a2c3e8d2 in mainline linux
2024-02-02drm/amd/display: Fix variable deferencing before NULL check in ↵Jonathan Gray
edp_setup_replay() From Srinivasan Shanmugam 22ae604aea14756954e1c00ae653e34d2afd2935 in linux-6.6.y/6.6.15 7073934f5d73f8b53308963cee36f0d389ea857c in mainline linux