diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2024-03-14 18:31:26 +0100 |
---|---|---|
committer | Michał Winiarski <michal.winiarski@intel.com> | 2024-03-15 22:20:14 +0100 |
commit | 5a9481a86b7448d600829e6f14205a241a23a03c (patch) | |
tree | 8e5eba8eb6fb7574d846e3a15458eef8873646d7 | |
parent | 0322fa12f4513eca159f6f605282ccf5f4f2bbc3 (diff) | |
download | linux-stable-5a9481a86b7448d600829e6f14205a241a23a03c.tar.gz linux-stable-5a9481a86b7448d600829e6f14205a241a23a03c.tar.bz2 linux-stable-5a9481a86b7448d600829e6f14205a241a23a03c.zip |
drm/xe: Define XE_REG_OPTION_VF
We will tag registers that SR-IOV Virtual Functions can access.
This will help us catch any invalid usage and/or provide custom
replacement if available.
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240314173130.1177-3-michal.wajdeczko@intel.com
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
-rw-r--r-- | drivers/gpu/drm/xe/regs/xe_reg_defs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/regs/xe_reg_defs.h b/drivers/gpu/drm/xe/regs/xe_reg_defs.h index 114b07db962f..c89ef2b79a3f 100644 --- a/drivers/gpu/drm/xe/regs/xe_reg_defs.h +++ b/drivers/gpu/drm/xe/regs/xe_reg_defs.h @@ -38,6 +38,10 @@ struct xe_reg { */ u32 mcr:1; /** + * @vf: register is accessible from the Virtual Function. + */ + u32 vf:1; + /** * @ext: access MMIO extension space for current register. */ u32 ext:1; @@ -79,6 +83,13 @@ struct xe_reg_mcr { #define XE_REG_OPTION_MASKED .masked = 1 /** + * XE_REG_OPTION_VF - Register is "VF" accessible. + * + * To be used with XE_REG() and XE_REG_INITIALIZER(). + */ +#define XE_REG_OPTION_VF .vf = 1 + +/** * XE_REG_INITIALIZER - Initializer for xe_reg_t. * @r_: Register offset * @...: Additional options like access mode. See struct xe_reg for available |