diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-09-27 22:38:55 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 19:41:20 +0300 |
commit | 23c8495efeed0d83657de89b44a569ac406bdfad (patch) | |
tree | f0065365589370e3fde292e28571b5b7221debbe /drivers/gpu/drm/xe/xe_pt_types.h | |
parent | 0e5e77bd9704edf1713ebed37e2da1b4faa25a52 (diff) | |
download | linux-23c8495efeed0d83657de89b44a569ac406bdfad.tar.xz |
drm/xe/migrate: Do not hand-encode pte
Instead of encoding the pte, call a new vfunc from xe_vm to handle that.
The encoding may not be the same on every platform, so keeping it in one
place helps to better support them.
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20230927193902.2849159-5-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_pt_types.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_pt_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_pt_types.h b/drivers/gpu/drm/xe/xe_pt_types.h index c58f6926fabf..64e3921a0f46 100644 --- a/drivers/gpu/drm/xe/xe_pt_types.h +++ b/drivers/gpu/drm/xe/xe_pt_types.h @@ -39,6 +39,8 @@ struct xe_pt_ops { enum xe_cache_level cache, u32 pt_level); u64 (*pte_encode_vma)(u64 pte, struct xe_vma *vma, enum xe_cache_level cache, u32 pt_level); + u64 (*pte_encode_addr)(u64 addr, enum xe_cache_level cache, + u32 pt_level, bool devmem, u64 flags); u64 (*pde_encode_bo)(struct xe_bo *bo, u64 bo_offset, const enum xe_cache_level cache); }; |