summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/xe/regs/xe_gt_regs.h
diff options
context:
space:
mode:
authorMichael J. Ruhl <michael.j.ruhl@intel.com>2023-05-25 15:43:23 -0400
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-19 18:34:10 -0500
commit61f288a8972253f4168f37331e26b6b0f7c9bc9d (patch)
tree36a8bd012b156e2405305b1977181003dbd0f834 /drivers/gpu/drm/xe/regs/xe_gt_regs.h
parent094d739f4dbb6322ae21b3dab8e6a7d272347dc7 (diff)
downloadlinux-stable-61f288a8972253f4168f37331e26b6b0f7c9bc9d.tar.gz
linux-stable-61f288a8972253f4168f37331e26b6b0f7c9bc9d.tar.bz2
linux-stable-61f288a8972253f4168f37331e26b6b0f7c9bc9d.zip
drm/xe: Rework size helper to be a little more correct
The _total_vram_size helper is device based and is not complete. Teach the helper to be tile aware and add the ability to size DG1 correctly. Reviewed-by: Matthew Auld <matthew.auld@intel.com> Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/regs/xe_gt_regs.h')
-rw-r--r--drivers/gpu/drm/xe/regs/xe_gt_regs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/regs/xe_gt_regs.h b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
index 5c239989608f..d8b480f69c5f 100644
--- a/drivers/gpu/drm/xe/regs/xe_gt_regs.h
+++ b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
@@ -74,7 +74,7 @@
#define VE1_AUX_INV XE_REG(0x42b8)
#define AUX_INV REG_BIT(0)
-#define XEHP_TILE0_ADDR_RANGE XE_REG_MCR(0x4900)
+#define XEHP_TILE_ADDR_RANGE(_idx) XE_REG_MCR(0x4900 + (_idx) * 4)
#define XEHP_FLAT_CCS_BASE_ADDR XE_REG_MCR(0x4910)
#define CHICKEN_RASTER_1 XE_REG_MCR(0x6204, XE_REG_OPTION_MASKED)