diff options
author | Matthew Brost <matthew.brost@intel.com> | 2024-06-03 11:18:24 -0700 |
---|---|---|
committer | Matthew Brost <matthew.brost@intel.com> | 2024-06-05 11:40:09 -0700 |
commit | 6d3581edffea0b3a64b0d3094d3f09222e0024f7 (patch) | |
tree | 507f220354813d0cb9f8ff90a45a459ef4dfbf19 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | 3ad7d18c5dad75ed38098c7cc3bc9594b4701399 (diff) | |
download | linux-6d3581edffea0b3a64b0d3094d3f09222e0024f7.tar.gz linux-6d3581edffea0b3a64b0d3094d3f09222e0024f7.tar.bz2 linux-6d3581edffea0b3a64b0d3094d3f09222e0024f7.zip |
drm/xe: Don't overmap identity VRAM mapping
Overmapping the identity VRAM mapping is triggering hardware bugs on
certain platforms. Use 2M pages for the last unaligned (to 1G) VRAM
chunk.
v2:
- Always use 2M pages for last chunk (Fei Yang)
- break loop when 2M pages are used
- Add assert for usable_size being 2M aligned
v3:
- Fix checkpatch
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Fei Yang <fei.yang@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Fei Yang <fei.yang@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240603181824.1927675-1-matthew.brost@intel.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions