kernel_samsung_a53x/drivers/gpu/drm/amd
Alex Deucher d7c4563aa3 drm/amdkfd: don't allow mapping the MMIO HDP page with large pages
commit be4a2a81b6b90d1a47eaeaace4cc8e2cb57b96c7 upstream.

We don't get the right offset in that case.  The GPU has
an unused 4K area of the register BAR space into which you can
remap registers.  We remap the HDP flush registers into this
space to allow userspace (CPU or GPU) to flush the HDP when it
updates VRAM.  However, on systems with >4K pages, we end up
exposing PAGE_SIZE of MMIO space.

Fixes: d8e408a82704 ("drm/amdkfd: Expose HDP registers to user space")
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:20:53 +01:00
..
acp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amdgpu drm/amdgpu: Using uninitialized value *size when calling amdgpu_vce_cs_reloc 2024-11-23 23:20:50 +01:00
amdkfd drm/amdkfd: don't allow mapping the MMIO HDP page with large pages 2024-11-23 23:20:53 +01:00
display Revert "drm/amd/display: Validate hw_points_num before using it" 2024-11-23 23:20:50 +01:00
include drm/amdgpu/atomfirmware: silence UBSAN warning 2024-11-19 14:19:42 +01:00
pm drm/amdgpu/pm: Fix the null pointer dereference in apply_state_adjust_rules 2024-11-23 23:20:24 +01:00