diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2023-11-28 18:15:05 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 19:45:27 +0300 |
commit | b1d20405821812ad70d95eefe58cadc6d50b0917 (patch) | |
tree | d88a9374bc4b2baa1c34a84b3719b8efce709e0c /drivers/gpu/drm/xe/xe_device_types.h | |
parent | 5bcedc9eabdc6ecd7a11f1e6147f0f601d7cdc77 (diff) | |
download | linux-b1d20405821812ad70d95eefe58cadc6d50b0917.tar.xz |
drm/xe/pf: Introduce Local Memory Translation Table
The Local Memory Translation Table (LMTT) provides additional
abstraction for Virtual Functions (VF) accessing device VRAM.
This code is based on prior work of Michal Winiarski.
In this patch we focus only on LMTT initialization. Remaining LMTT
functions will be used once we add a VF provisioning to the PF.
Bspec: 44117, 52404, 59314
Reviewed-by: MichaĆ Winiarski <michal.winiarski@intel.com>
Link: https://lore.kernel.org/r/20231128151507.1015-4-michal.wajdeczko@intel.com
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_device_types.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_device_types.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h index 58442da2f6c5..ffe7c6ef26a9 100644 --- a/drivers/gpu/drm/xe/xe_device_types.h +++ b/drivers/gpu/drm/xe/xe_device_types.h @@ -15,6 +15,7 @@ #include "xe_devcoredump_types.h" #include "xe_heci_gsc.h" #include "xe_gt_types.h" +#include "xe_lmtt_types.h" #include "xe_platform_types.h" #include "xe_pt_types.h" #include "xe_pmu.h" @@ -186,6 +187,14 @@ struct xe_tile { struct xe_sa_manager *kernel_bb_pool; } mem; + /** @sriov: tile level virtualization data */ + union { + struct { + /** @sriov.pf.lmtt: Local Memory Translation Table. */ + struct xe_lmtt lmtt; + } pf; + } sriov; + /** @migrate: Migration helper for vram blits and clearing */ struct xe_migrate *migrate; |