diff options
author | Brian Welty <brian.welty@intel.com> | 2023-11-13 16:49:43 -0800 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 11:44:33 -0500 |
commit | b646ce9ce99f74d3dee8fd56303b9255d3c278ec (patch) | |
tree | 3e2a3f013b08a50e81de4469213a3c82cfa1afc8 /drivers/gpu/drm/xe/xe_mmio.h | |
parent | be13336e07b5cc26c8b971a50ff6dc60d7050417 (diff) | |
download | lwn-b646ce9ce99f74d3dee8fd56303b9255d3c278ec.tar.gz lwn-b646ce9ce99f74d3dee8fd56303b9255d3c278ec.zip |
drm/xe: Make xe_mmio_tile_vram_size() static
During xe_mmio_probe_vram(), we already store the values returned from
xe_mmio_tile_vram_size() into the xe_tile structures.
There is no need to call xe_mmio_tile_vram_size() again later during
setup of the STOLEN region. Just use the values stored in the root tile.
Signed-off-by: Brian Welty <brian.welty@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper at intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_mmio.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_mmio.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_mmio.h b/drivers/gpu/drm/xe/xe_mmio.h index 24a23dad7dce..b244e9063caa 100644 --- a/drivers/gpu/drm/xe/xe_mmio.h +++ b/drivers/gpu/drm/xe/xe_mmio.h @@ -135,7 +135,6 @@ static inline bool xe_mmio_in_range(const struct xe_gt *gt, } int xe_mmio_probe_vram(struct xe_device *xe); -int xe_mmio_tile_vram_size(struct xe_tile *tile, u64 *vram_size, u64 *tile_size, u64 *tile_base); u64 xe_mmio_read64_2x32(struct xe_gt *gt, struct xe_reg reg); #endif |