[git pull] drm fixes for 6.9-rc5

From: Dave Airlie
Date: Thu Apr 18 2024 - 20:53:27 EST


Hi Linus,

Regular week of fixes, seems to be about right for this time in the
release cycle, amdgpu, and nouveau are the main one with some
scattered fixes otherwise.

Dave.

drm-fixes-2024-04-19:
drm fixes for v6.9-rc5

ttm:
- Stop pooling cached NUMA pages

amdgpu:
- Fix invalid resource->start check
- USB-C DSC fix
- Fix a potential UAF in VA IOCTL
- Fix visible VRAM handling during faults

amdkfd:
- Fix memory leak in create_process failure

radeon:
- Silence UBSAN warnings from variable sized arrays

nouveau:
- dp: Don't probe DP ports twice
- nv04: Fix OOB access
- nv50: Disable AUX bus for disconnected DP ports
- nvkm: Fix instmem race condition

panel:
- Don't unregister DSI devices in several drivers

v3d:
- Fix enabled_ns increment

xe:
- Fix bo leak on error path during fb init
- Fix use-after-free due to order vm is put and destroyed
The following changes since commit 0bbac3facb5d6cc0171c45c9873a2dc96bea9680:

Linux 6.9-rc4 (2024-04-14 13:38:39 -0700)

are available in the Git repository at:

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

for you to fetch changes up to 52c8b6e1c007b93d35058508fbe1ec80a1d9ca39:

Merge tag 'drm-xe-fixes-2024-04-18' of
https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes
(2024-04-19 10:40:47 +1000)

----------------------------------------------------------------
drm fixes for v6.9-rc5

ttm:
- Stop pooling cached NUMA pages

amdgpu:
- Fix invalid resource->start check
- USB-C DSC fix
- Fix a potential UAF in VA IOCTL
- Fix visible VRAM handling during faults

amdkfd:
- Fix memory leak in create_process failure

radeon:
- Silence UBSAN warnings from variable sized arrays

nouveau:
- dp: Don't probe DP ports twice
- nv04: Fix OOB access
- nv50: Disable AUX bus for disconnected DP ports
- nvkm: Fix instmem race condition

panel:
- Don't unregister DSI devices in several drivers

v3d:
- Fix enabled_ns increment

xe:
- Fix bo leak on error path during fb init
- Fix use-after-free due to order vm is put and destroyed

----------------------------------------------------------------
Alex Deucher (3):
Revert "drm/amd/display: fix USB-C flag update after enc10 feature init"
drm/radeon: make -fstrict-flex-arrays=3 happy
drm/radeon: silence UBSAN warning (v3)

Christian König (3):
drm/ttm: stop pooling cached NUMA pages v2
drm/amdgpu: remove invalid resource->start check v2
drm/amdgpu: fix visible VRAM handling during faults

Dave Airlie (4):
nouveau: fix instmem race condition around ptr stores
Merge tag 'amd-drm-fixes-6.9-2024-04-17' of
https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
Merge tag 'drm-misc-fixes-2024-04-18' of
https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes
Merge tag 'drm-xe-fixes-2024-04-18' of
https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes

Dmitry Baryshkov (2):
drm/panel: visionox-rm69299: don't unregister DSI device
drm/panel: novatek-nt36682e: don't unregister DSI device

Felix Kuehling (1):
drm/amdkfd: Fix memory leak in create_process failure

Lyude Paul (2):
drm/nouveau/kms/nv50-: Disable AUX bus for disconnected DP ports
drm/nouveau/dp: Don't probe eDP ports twice harder

Maarten Lankhorst (1):
drm/xe: Fix bo leak in intel_fb_bo_framebuffer_init

Matthew Auld (1):
drm/xe/vm: prevent UAF with asid based lookup

Maíra Canal (1):
drm/v3d: Don't increment `enabled_ns` twice

Mikhail Kobuk (1):
drm: nv04: Fix out of bounds access

Zack Rusin (3):
drm/vmwgfx: Fix prime import/export
drm/vmwgfx: Fix crtc's atomic check conditional
drm/vmwgfx: Sort primary plane formats by order of preference

xinhui pan (1):
drm/amdgpu: validate the parameters of bo mapping operations more clearly

drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 22 +++----
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 22 -------
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 65 +++++++++++--------
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 3 +
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 72 ++++++++++++++--------
drivers/gpu/drm/amd/amdkfd/kfd_process.c | 4 +-
.../amd/display/dc/dcn32/dcn32_dio_link_encoder.c | 8 +--
.../amd/display/dc/dcn35/dcn35_dio_link_encoder.c | 4 +-
drivers/gpu/drm/nouveau/nouveau_bios.c | 13 ++--
drivers/gpu/drm/nouveau/nouveau_dp.c | 23 +++++--
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c | 7 ++-
drivers/gpu/drm/panel/panel-novatek-nt36672e.c | 2 -
drivers/gpu/drm/panel/panel-visionox-rm69299.c | 2 -
drivers/gpu/drm/radeon/pptable.h | 10 +--
drivers/gpu/drm/radeon/radeon_atombios.c | 8 ++-
drivers/gpu/drm/ttm/ttm_pool.c | 38 +++++++++---
drivers/gpu/drm/v3d/v3d_irq.c | 4 --
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c | 35 ++++++++++-
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 7 ++-
drivers/gpu/drm/vmwgfx/vmwgfx_bo.h | 2 +
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 1 +
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 3 +
drivers/gpu/drm/vmwgfx/vmwgfx_gem.c | 32 ++++++++++
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 11 +++-
drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | 4 +-
drivers/gpu/drm/vmwgfx/vmwgfx_prime.c | 15 ++++-
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 44 ++++++++-----
drivers/gpu/drm/xe/display/intel_fb_bo.c | 8 ++-
drivers/gpu/drm/xe/xe_vm.c | 21 ++++---
30 files changed, 320 insertions(+), 172 deletions(-)