[git pull] drm fixes for 6.12-rc2

From: Dave Airlie
Date: Fri Oct 04 2024 - 00:06:44 EST


Hi Linus,

Weekly fixes, xe and amdgpu lead the way, with panthor, and few core
components getting various fixes. Nothing seems too out of the
ordinary.

Regards,
Dave.

drm-fixes-2024-10-04:
drm fixes for 6.12-rc2

atomic:
- Use correct type when reading damage rectangles

display:
- Fix kernel docs

dp-mst:
- Fix DSC decompression detection

hdmi:
- Fix infoframe size

sched:
- Update maintainers
- Fix race condition whne queueing up jobs
- Fix locking in drm_sched_entity_modify_sched()
- Fix pointer deref if entity queue changes

sysfb:
- Disable sysfb if framebuffer parent device is unknown

amdgpu:
- DML2 fix
- DSC fix
- Dispclk fix
- eDP HDR fix
- IPS fix
- TBT fix

i915:
- One fix for bitwise and logical "and" mixup in PM code

xe:
- Restore pci state on resume
- Fix locking on submission, queue and vm
- Fix UAF on queue destruction
- Fix resource release on freq init error path
- Use rw_semaphore to reduce contention on ASID->VM lookup
- Fix steering for media on Xe2_HPM
- Tuning updates to Xe2
- Resume TDR after GT reset to prevent jobs running forever
- Move id allocation to avoid userspace using a guessed number
to trigger UAF
- Fix OA stream close preventing pbatch buffers to complete
- Fix NPD when migrating memory on LNL
- Fix memory leak when aborting binds

panthor:
- Fix locking
- Set FOP_UNSIGNED_OFFSET in fops instance
- Acquire lock in panthor_vm_prepare_map_op_ctx()
- Avoid uninitialized variable in tick_ctx_cleanup()
- Do not block scheduler queue if work is pending
- Do not add write fences to the shared BOs

vbox:
- Fix VLA handling
The following changes since commit 9852d85ec9d492ebef56dc5f229416c925758edc:

Linux 6.12-rc1 (2024-09-29 15:06:19 -0700)

are available in the Git repository at:

https://gitlab.freedesktop.org/drm/kernel.git tags/drm-fixes-2024-10-04

for you to fetch changes up to 5b272bf7dcf969eb4f19ef994b6e60458ee6300f:

Merge tag 'drm-xe-fixes-2024-10-03' of
https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes
(2024-10-04 11:00:39 +1000)

----------------------------------------------------------------
drm fixes for 6.12-rc2

atomic:
- Use correct type when reading damage rectangles

display:
- Fix kernel docs

dp-mst:
- Fix DSC decompression detection

hdmi:
- Fix infoframe size

sched:
- Update maintainers
- Fix race condition whne queueing up jobs
- Fix locking in drm_sched_entity_modify_sched()
- Fix pointer deref if entity queue changes

sysfb:
- Disable sysfb if framebuffer parent device is unknown

amdgpu:
- DML2 fix
- DSC fix
- Dispclk fix
- eDP HDR fix
- IPS fix
- TBT fix

i915:
- One fix for bitwise and logical "and" mixup in PM code

xe:
- Restore pci state on resume
- Fix locking on submission, queue and vm
- Fix UAF on queue destruction
- Fix resource release on freq init error path
- Use rw_semaphore to reduce contention on ASID->VM lookup
- Fix steering for media on Xe2_HPM
- Tuning updates to Xe2
- Resume TDR after GT reset to prevent jobs running forever
- Move id allocation to avoid userspace using a guessed number
to trigger UAF
- Fix OA stream close preventing pbatch buffers to complete
- Fix NPD when migrating memory on LNL
- Fix memory leak when aborting binds

panthor:
- Fix locking
- Set FOP_UNSIGNED_OFFSET in fops instance
- Acquire lock in panthor_vm_prepare_map_op_ctx()
- Avoid uninitialized variable in tick_ctx_cleanup()
- Do not block scheduler queue if work is pending
- Do not add write fences to the shared BOs

vbox:
- Fix VLA handling

----------------------------------------------------------------
Alex Hung (1):
drm/amd/display: Add HDR workaround for specific eDP

Boris Brezillon (4):
drm/panthor: Lock the VM resv before calling
drm_gpuvm_bo_obtain_prealloc()
drm/panthor: Fix access to uninitialized variable in tick_ctx_cleanup()
drm/panthor: Don't declare a queue blocked if deferred
operations are pending
drm/panthor: Don't add write fences to the shared BOs

Charlene Liu (1):
drm/amd/display: avoid set dispclk to 0

Christian König (1):
drm/sched: revert "Always increment correct scheduler score"

Dave Airlie (5):
Merge tag 'drm-misc-fixes-2024-09-26' of
https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes
Merge tag 'amd-drm-fixes-6.12-2024-10-02' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
Merge tag 'drm-misc-fixes-2024-10-02' of
https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes
Merge tag 'drm-intel-fixes-2024-10-02' of
https://gitlab.freedesktop.org/drm/i915/kernel into drm-fixes
Merge tag 'drm-xe-fixes-2024-10-03' of
https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes

Derek Foreman (1):
drm/connector: hdmi: Fix writing Dynamic Range Mastering infoframes

Dmitry Baryshkov (1):
drm/display: fix kerneldocs references

Fangzhi Zuo (1):
drm/amd/display: Restore Optimized pbn Value if Failed to Disable DSC

Gustavo Sousa (3):
drm/xe/mcr: Use Xe2_LPM steering tables for Xe2_HPM
drm/xe/xe2: Extend performance tuning to media GT
drm/xe/xe2: Add performance tuning for L3 cache flushing

Hans de Goede (1):
drm/vboxvideo: Replace fake VLA at end of
vbva_mouse_pointer_shape with real VLA

He Lugang (1):
drm/xe: use devm_add_action_or_reset() helper

Imre Deak (1):
drm/dp_mst: Fix DSC decompression detection in Synaptics branch devices

Jani Nikula (1):
drm/i915/gem: fix bitwise and logical AND mixup

José Roberto de Souza (1):
drm/xe/oa: Don't reset OAC_CONTEXT_ENABLE on OA stream close

Leo Li (1):
drm/amd/display: Enable idle workqueue for more IPS modes

Liviu Dudau (1):
drm/panthor: Add FOP_UNSIGNED_OFFSET to fop_flags

Maarten Lankhorst (1):
Merge remote-tracking branch 'drm/drm-fixes' into drm-misc-fixes

Matthew Auld (4):
drm/xe/guc_submit: add missing locking in wedged_fini
drm/xe: fix UAF around queue destruction
drm/xe/vm: move xa_alloc to prevent UAF
drm/xe/queue: move xa_alloc to prevent UAF

Matthew Brost (5):
drm/xe: Convert to USM lock to rwsem
drm/xe: Use helper for ASID -> VM in GPU faults and access counters
drm/xe: Resume TDR after GT reset
drm/xe: Clean up VM / exec queue file lock usage.
drm/xe: Fix memory leak when aborting binds

Philipp Stanner (1):
MAINTAINERS: drm/sched: Add new maintainers

Rob Clark (1):
drm/sched: Fix dynamic job-flow control race

Rodrigo Vivi (1):
drm/xe: Restore pci state upon resume

Steven Price (1):
drm/panthor: Fix race when converting group handle to group object

Thomas Zimmermann (2):
drm: Consistently use struct drm_mode_rect for FB_DAMAGE_CLIPS
firmware/sysfb: Disable sysfb for firmware buffers with unknown parent

Tom Chung (1):
drm/amd/display: Fix system hang while resume with TBT monitor

Tvrtko Ursulin (3):
drm/sched: Add locking to drm_sched_entity_modify_sched
drm/sched: Always wake up correct scheduler in drm_sched_entity_push_job
drm/sched: Always increment correct scheduler score

Yihan Zhu (1):
drm/amd/display: update DML2 policy
EnhancedPrefetchScheduleAccelerationFinal DCN35

Zhanjun Dong (1):
drm/xe: Prevent null pointer access in xe_migrate_copy

Documentation/gpu/drm-kms-helpers.rst | 4 +--
MAINTAINERS | 2 ++
drivers/firmware/sysfb.c | 4 ++-
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 20 +++++++++--
.../drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 4 +++
.../amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 17 +++++++---
drivers/gpu/drm/amd/display/dc/dc_types.h | 1 +
drivers/gpu/drm/amd/display/dc/dml2/dml2_policy.c | 1 -
.../display/dc/resource/dcn351/dcn351_resource.c | 1 +
drivers/gpu/drm/display/drm_dp_mst_topology.c | 10 ++++--
drivers/gpu/drm/display/drm_hdmi_state_helper.c | 4 +--
drivers/gpu/drm/drm_atomic_uapi.c | 2 +-
drivers/gpu/drm/drm_debugfs.c | 4 +--
drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 2 +-
drivers/gpu/drm/panthor/panthor_drv.c | 1 +
drivers/gpu/drm/panthor/panthor_mmu.c | 8 +++++
drivers/gpu/drm/panthor/panthor_sched.c | 36 ++++++++++++++------
drivers/gpu/drm/scheduler/sched_entity.c | 14 ++++++--
drivers/gpu/drm/scheduler/sched_main.c | 7 ++--
drivers/gpu/drm/vboxvideo/hgsmi_base.c | 10 +++++-
drivers/gpu/drm/vboxvideo/vboxvideo.h | 4 +--
drivers/gpu/drm/xe/regs/xe_gt_regs.h | 11 ++++++
drivers/gpu/drm/xe/xe_bo.c | 4 +--
drivers/gpu/drm/xe/xe_device.c | 12 +++----
drivers/gpu/drm/xe/xe_device_types.h | 19 ++++++++---
drivers/gpu/drm/xe/xe_drm_client.c | 9 ++++-
drivers/gpu/drm/xe/xe_exec_queue.c | 6 ++--
drivers/gpu/drm/xe/xe_gpu_scheduler.c | 5 +++
drivers/gpu/drm/xe/xe_gpu_scheduler.h | 2 ++
drivers/gpu/drm/xe/xe_gt_freq.c | 4 +--
drivers/gpu/drm/xe/xe_gt_mcr.c | 2 +-
drivers/gpu/drm/xe/xe_gt_pagefault.c | 39 ++++++++++++----------
drivers/gpu/drm/xe/xe_gt_sysfs.c | 2 +-
drivers/gpu/drm/xe/xe_guc_submit.c | 37 ++++++++++++++++++--
drivers/gpu/drm/xe/xe_guc_types.h | 2 ++
drivers/gpu/drm/xe/xe_oa.c | 9 ++---
drivers/gpu/drm/xe/xe_pci.c | 2 ++
drivers/gpu/drm/xe/xe_pt.c | 2 +-
drivers/gpu/drm/xe/xe_tuning.c | 28 ++++++++++++++++
drivers/gpu/drm/xe/xe_vm.c | 28 +++++++---------
include/drm/gpu_scheduler.h | 2 +-
include/linux/hdmi.h | 9 +++++
42 files changed, 282 insertions(+), 108 deletions(-)