drm/xe/xe2hpg: Determine flat ccs offset for vram
authorHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Mon, 8 Apr 2024 17:05:40 +0000 (22:35 +0530)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 9 Apr 2024 21:21:52 +0000 (14:21 -0700)
commitb5c2ca0372dcf5bb7403032ca609c9df1fb23bfc
treeae736b45d4a5b960d4ab4f67529168534097324c
parent183620f9ae3c8ebd9e126e07020b235d34547eb4
drm/xe/xe2hpg: Determine flat ccs offset for vram

on Xe2 dgfx platform determine the offset using Flat CCS size
bitfield of XE2_FLAT_CCS_BASE_RANGE_[UPPER/LOWER] mcr registers.

v2: function argument tile_size changed from pass by reference to pass
by value

Bspec: 68023
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Signed-off-by: Akshata Jahagirdar <akshata.jahagirdar@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240408170545.3769566-7-balasubramani.vivekanandan@intel.com
drivers/gpu/drm/xe/regs/xe_gt_regs.h
drivers/gpu/drm/xe/xe_mmio.c