[git pull] drm fixes for 7.2-rc4 (updated with amdgpu)

From: Dave Airlie

Date: Fri Jul 17 2026 - 19:20:53 EST


Hi Linus,

Please ignore the previous one,

Weekly drm fixes, there is amdgpu, xe and i915 and then a lot of
scattered fixes.

Looks about the right level for the new right.

Regards,
Dave.

drm-fixes-2026-07-18-1:
drm fixes for 7.2-rc4

ttm:
- Handle NULL pages and backup handles in ttm_pool_backup() correctly.

gpusvm:
- Improve unmap and error handling on gpusvm.

udmabuf:
- Always synchronize for CPU in begin_cpu_udmabuf.

xe:
- Fix BO prefetch with CONSULT_MEM_ADVISE_PREF_LOCK
- Hold a dma-buf reference for imported BOs
- Fix writable override for CRI
- Fix VF CCS attach/detach race with in-flight BO moves
- Fix WOPCM size for LNL+
- Reset current_op in xe_pt_update_ops_init
- Keep scheduler timeline name alive
- Hold device ref until queue teardown completes
- Disable display in admin only PF mode

i915:
- NV12 display fix for bigjoiner
- clear watermark on plane disable
- GT selftest fixes

host1x:
- Fix UAF

amdxdna
- Fix UAF
- Reject more invalid amdxdna command submissions.

ivpu:
- Fix wrong read
- Handle invalid firmware log in ivpu.

panthor:
- Fix error handling

virtio:
- Fix virtio deadlock
- Fix invalid gem detach.

amdgpu:
- DCN 4.2 fixes
- NUTMEG fixes
- 8K panel fix
- Backlight fixes
- UserQ fix
- Fix bo->pin leaking in amdgpu_bo_create_reserved()
- VFCT fixes
- devcoredump fixes
- Display fixes
- SMU7 DPM fix
- AC/DC fixes for SMU7 and SI
- Queue reset fix
- PCIe DPM fix
- XHCI/GPU resume ordering fix
- Pageflip timeout fix

amdkfd:
- Fix potential overflow in CWSR size calculation
- DQM error clean up fixes
The following changes since commit a13c140cc289c0b7b3770bce5b3ad42ab35074aa:

Linux 7.2-rc3 (2026-07-12 14:16:39 -0700)

are available in the Git repository at:

https://gitlab.freedesktop.org/drm/kernel.git tags/drm-fixes-2026-07-18-1

for you to fetch changes up to 973fd9493ec21f12e760fbbedeb7b0b2317c02f4:

Merge tag 'amd-drm-fixes-7.2-2026-07-17' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes (2026-07-18
08:20:41 +1000)

----------------------------------------------------------------
drm fixes for 7.2-rc4

ttm:
- Handle NULL pages and backup handles in ttm_pool_backup() correctly.

gpusvm:
- Improve unmap and error handling on gpusvm.

udmabuf:
- Always synchronize for CPU in begin_cpu_udmabuf.

xe:
- Fix BO prefetch with CONSULT_MEM_ADVISE_PREF_LOCK
- Hold a dma-buf reference for imported BOs
- Fix writable override for CRI
- Fix VF CCS attach/detach race with in-flight BO moves
- Fix WOPCM size for LNL+
- Reset current_op in xe_pt_update_ops_init
- Keep scheduler timeline name alive
- Hold device ref until queue teardown completes
- Disable display in admin only PF mode

i915:
- NV12 display fix for bigjoiner
- clear watermark on plane disable
- GT selftest fixes

host1x:
- Fix UAF

amdxdna
- Fix UAF
- Reject more invalid amdxdna command submissions.

ivpu:
- Fix wrong read
- Handle invalid firmware log in ivpu.

panthor:
- Fix error handling

virtio:
- Fix virtio deadlock
- Fix invalid gem detach.

amdgpu:
- DCN 4.2 fixes
- NUTMEG fixes
- 8K panel fix
- Backlight fixes
- UserQ fix
- Fix bo->pin leaking in amdgpu_bo_create_reserved()
- VFCT fixes
- devcoredump fixes
- Display fixes
- SMU7 DPM fix
- AC/DC fixes for SMU7 and SI
- Queue reset fix
- PCIe DPM fix
- XHCI/GPU resume ordering fix
- Pageflip timeout fix

amdkfd:
- Fix potential overflow in CWSR size calculation
- DQM error clean up fixes

----------------------------------------------------------------
Alessandro Rinaldi (1):
drm/amd/display: Force PWM backlight on Lenovo Legion 5 15ARH05

Alex Deucher (1):
drm/amdgpu: always emit the job vm fence

Alexander Usyskin (1):
drm/xe/nvm: fix writable override for CRI

Andriy Korud (1):
drm/amd/display: dce100: skip non-DP stream encoders for DP MST

Arvind Yadav (2):
drm/xe/guc: Keep scheduler timeline name alive
drm/xe/guc: Hold device ref until queue teardown completes

Daniele Ceraolo Spurio (1):
drm/xe/wopcm: fix WOPCM size for LNL+

Dave Airlie (4):
Merge tag 'drm-misc-fixes-2026-07-17' of
https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes
Merge tag 'drm-xe-fixes-2026-07-17' of
https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes
Merge tag 'drm-intel-fixes-2026-07-17' of
https://gitlab.freedesktop.org/drm/i915/kernel into drm-fixes
Merge tag 'amd-drm-fixes-7.2-2026-07-17' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes

Dmytro Laktyushkin (2):
drm/amd/display: fix dcn42 det allocation order
drm/amd/display: fix dcn42b det allocation order

Doruk Tan Ozturk (2):
accel/amdxdna: reject user command submission without a command BO
accel/amdxdna: reject command submission on devices without a submit op

Emre Cecanpunar (1):
drm/i915/selftests: Fix GT PM sort comparators

Fangzhi Zuo (1):
drm/amd/display: Fix 8K Mode Not Parsed by EDID

Guangshuo Li (1):
drm/amdkfd: free MQD managers on DQM init failures

Himal Prasad Ghimiray (1):
drm/xe/vm: Fix BO prefetch with CONSULT_MEM_ADVISE_PREF_LOC

Honglei Huang (3):
drm/gpusvm: free the whole IOVA reservation on unmap
drm/gpusvm: do not route system pages to device_unmap() on IOVA unmap
drm/gpusvm: publish dpagemap early to avoid device mapping leak on error

Jason Macnak (1):
drm/virtio: Don't detach GEM from a non-created context

Jesse Zhang (1):
drm/amdgpu/userq: fix indefinite fence wait during GPU reset

Jhonraushan (1):
accel/ivpu: Reject firmware log with size smaller than header

Karol Wachowski (1):
accel/ivpu: Fix wrong register read in LNL failure diagnostics

Leo Li (3):
drm/amd/display: consolidate DCN vblank/flip handling onto vupdate_no_lock
drm/amd/display: check GRPH_FLIP status before sending event
Revert "drm/amd/display: Restore 5s vbl offdelay for NV3x+ DGPUs"

Linmao Li (1):
drm/panthor: Check debugfs GEM lock initialization

Lizhi Hou (1):
accel/amdxdna: Fix use-after-free of mm_struct in job scheduler

Maarten Lankhorst (1):
Merge v7.2-rc3 into drm-misc-fixes

Mario Limonciello (5):
drm/amd/display: Fix backlight max_brightness to match exported range
drm/amdgpu: Fix VFCT bus number matching with soft filter
drm/amdgpu: Release VFCT ACPI table reference
drm/amdgpu: Disable PCIe dynamic speed switching on Ryzen Pinnacle Ridge
drm/amd: Create a device link between APU display and XHCI devices

Matthew Brost (2):
drm/ttm: Account for NULL and handle pages in ttm_pool_backup
drm/xe/vf: Fix VF CCS attach/detach race with in-flight BO moves

Matthew Stewart (1):
drm/amd/display: Fix DCN42B null registers & register masks

Mikko Perttunen (1):
gpu: host1x: Fix use-after-free in host1x_bo_clear_cached_mappings

Nitin Gote (1):
drm/xe: Hold a dma-buf reference for imported BOs

Osama Abdelkader (1):
drm/panthor: return error on truncated firmware

Pengpeng Hou (2):
drm/i915/gt: use correct selftest config symbol
drm/amd/display: wire DCN42B mcache programming callback

Robert Mader (1):
udmabuf: Ensure to perform cache synchronisation in begin_cpu_udmabuf()

Roman Li (1):
drm/amdgpu/discovery: Fix device family for DCN42

Ryosuke Yasuoka (1):
drm/virtio: fix deadlock in display_info_cb by removing hotplug
from dequeue worker

Satyanarayana K V P (1):
drm/xe/pf: Disable display in admin only PF mode

Timur Kristóf (10):
drm/amd/display: Fix preferred link rate for NUTMEG
drm/amd/display: Add dp_skip_rbr flag for NUTMEG
drm/amdgpu: Print vmid, pasid and more task info in devcoredump
drm/amdgpu: Reserve space for IB contents in devcoredumps
drm/amd/pm/ci: Don't disable MCLK DPM on Bonaire 0x6658 (R7 260X)
drm/amd/display: Set native cursor mode for disabled CRTCs
drm/amd/pm/si: Don't schedule thermal work when queue isn't initialized
drm/amd/pm/si: Fix AC/DC switch notification
drm/amd/pm/smu7: Fix AC/DC switch notification
drm/amdgpu/ttm: Consider concurrent VM flushes for buffer entities

Vidya Srinivas (1):
drm/i915/display: Fix NV12 ceiling division for bigjoiner case

Vinod Govindapillai (1):
drm/i915/wm: clear the plane ddb_y entries on plane disable

WenTao Liang (1):
drm/amd/display: set new_stream to NULL after release

Yongqiang Sun (1):
drm/amdkfd: fix 32-bit overflow in CWSR total size calculation

Zhu Lingshan (1):
drm/amdgpu: fix bo->pin leaking in amdgpu_bo_create_reserved

Zongyao Bai (1):
drm/xe/pt: Reset current_op in xe_pt_update_ops_init()

yanglinlin (1):
drm/amd/display: fix __udivdi3 link error

drivers/accel/amdxdna/amdxdna_ctx.c | 18 +
drivers/accel/ivpu/ivpu_fw_log.c | 4 +
drivers/accel/ivpu/ivpu_hw_btrs.c | 2 +-
drivers/dma-buf/udmabuf.c | 9 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 62 ++-
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 10 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h | 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 9 +
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 4 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 13 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 20 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 21 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 10 +-
.../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 4 +
drivers/gpu/drm/amd/amdkfd/kfd_queue.c | 23 +-
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 551 +++++++++++++--------
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 70 +--
.../drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 20 +-
drivers/gpu/drm/amd/display/dc/core/dc.c | 45 ++
drivers/gpu/drm/amd/display/dc/dc.h | 3 +
.../gpu/drm/amd/display/dc/dce/dce_clock_source.c | 11 +-
.../gpu/drm/amd/display/dc/link/link_detection.c | 2 +-
.../display/dc/link/protocols/link_dp_capability.c | 6 +-
.../display/dc/resource/dce100/dce100_resource.c | 7 +-
.../amd/display/dc/resource/dcn42/dcn42_resource.c | 1 +
.../display/dc/resource/dcn42b/dcn42b_resource.c | 23 +-
.../display/dc/resource/dcn42b/dcn42b_resource.h | 116 +----
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 17 +-
drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c | 7 +-
.../gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c | 16 +-
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 12 +
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 12 +-
.../gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c | 45 ++
drivers/gpu/drm/drm_gpusvm.c | 53 +-
drivers/gpu/drm/drm_panel_backlight_quirks.c | 9 +
drivers/gpu/drm/i915/display/skl_universal_plane.c | 33 +-
drivers/gpu/drm/i915/display/skl_watermark.c | 2 +-
drivers/gpu/drm/i915/gt/intel_engine_user.c | 2 +-
drivers/gpu/drm/i915/gt/selftest_gt_pm.c | 8 +-
drivers/gpu/drm/panthor/panthor_device.c | 5 +-
drivers/gpu/drm/panthor/panthor_fw.c | 1 +
drivers/gpu/drm/ttm/ttm_pool.c | 34 +-
drivers/gpu/drm/virtio/virtgpu_gem.c | 14 +-
drivers/gpu/drm/virtio/virtgpu_kms.c | 5 +-
drivers/gpu/drm/virtio/virtgpu_vq.c | 3 -
drivers/gpu/drm/xe/xe_bo.c | 58 ++-
drivers/gpu/drm/xe/xe_bo.h | 3 +-
drivers/gpu/drm/xe/xe_bo_types.h | 2 +
drivers/gpu/drm/xe/xe_device.c | 4 +-
drivers/gpu/drm/xe/xe_device_types.h | 2 +-
drivers/gpu/drm/xe/xe_dma_buf.c | 2 +-
drivers/gpu/drm/xe/xe_guc_exec_queue_types.h | 5 +
drivers/gpu/drm/xe/xe_guc_submit.c | 70 +--
drivers/gpu/drm/xe/xe_guc_types.h | 2 -
drivers/gpu/drm/xe/xe_migrate.c | 5 +-
drivers/gpu/drm/xe/xe_migrate.h | 1 +
drivers/gpu/drm/xe/xe_module.c | 49 ++
drivers/gpu/drm/xe/xe_module.h | 5 +
drivers/gpu/drm/xe/xe_nvm.c | 9 +-
drivers/gpu/drm/xe/xe_pci.c | 9 +-
drivers/gpu/drm/xe/xe_pt.c | 3 +
drivers/gpu/drm/xe/xe_sriov_vf_ccs.c | 20 +-
drivers/gpu/drm/xe/xe_sriov_vf_ccs.h | 3 +-
drivers/gpu/drm/xe/xe_vm.c | 25 +-
drivers/gpu/drm/xe/xe_wopcm.c | 15 +-
drivers/gpu/host1x/bus.c | 4 +-
include/drm/drm_utils.h | 1 +
67 files changed, 1076 insertions(+), 564 deletions(-)