diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2023-01-12 17:25:17 -0500 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-12 14:06:00 -0500 |
commit | d8b52a02cb40fe355374e8b0b89763fefc697b53 (patch) | |
tree | e25066ce3f491d2ead799509af8799a65d8f4267 /drivers/gpu/drm/xe/xe_mmio.h | |
parent | 765b65e5bde79a9e8332c58f54a98e20fdb25fc7 (diff) | |
download | linux-stable-d8b52a02cb40fe355374e8b0b89763fefc697b53.tar.gz linux-stable-d8b52a02cb40fe355374e8b0b89763fefc697b53.tar.bz2 linux-stable-d8b52a02cb40fe355374e8b0b89763fefc697b53.zip |
drm/xe: Implement stolen memory.
This adds support for stolen memory, with the same allocator as
vram_mgr. This allows us to skip a whole lot of copy-paste,
by re-using parts of xe_ttm_vram_mgr.
The stolen memory may be bound using VM_BIND, so it performs like any
other memory region.
We should be able to map a stolen BO directly using the physical memory
location instead of through GGTT even on old platforms, but I don't know
what the effects are on coherency.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@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, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_mmio.h b/drivers/gpu/drm/xe/xe_mmio.h index adc7d7484afb..a3b144553873 100644 --- a/drivers/gpu/drm/xe/xe_mmio.h +++ b/drivers/gpu/drm/xe/xe_mmio.h @@ -130,5 +130,6 @@ static inline bool xe_mmio_in_range(const struct xe_mmio_range *range, u32 reg) } int xe_mmio_probe_vram(struct xe_device *xe); +int xe_mmio_total_vram_size(struct xe_device *xe, u64 *vram_size, u64 *flat_ccs_base); #endif |