]> www.infradead.org Git - users/hch/misc.git/commit
drm/xe: Don't overmap identity VRAM mapping
authorMatthew Brost <matthew.brost@intel.com>
Mon, 3 Jun 2024 18:18:24 +0000 (11:18 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 5 Jun 2024 18:40:09 +0000 (11:40 -0700)
commit6d3581edffea0b3a64b0d3094d3f09222e0024f7
tree507f220354813d0cb9f8ff90a45a459ef4dfbf19
parent3ad7d18c5dad75ed38098c7cc3bc9594b4701399
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
drivers/gpu/drm/xe/xe_migrate.c