diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-03-14 03:30:01 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 02:29:47 +0300 |
commit | d855d2246ea6b04cbda372846b21c040fb068575 (patch) | |
tree | abc1dc06f85fd8b57d91063bbff62d432290f300 /drivers/gpu/drm/xe/xe_reg_whitelist.h | |
parent | 5be84050ddce298503e7290d375b6dcf3ce920d2 (diff) | |
download | linux-d855d2246ea6b04cbda372846b21c040fb068575.tar.xz |
drm/xe: Print whitelist while applying
Besides printing the various register save-restore, it's also useful to
know the register being allowed/denied access from unprivileged batch
buffers. Print them during device probe.
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20230314003012.2600353-4-lucas.demarchi@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_reg_whitelist.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_reg_whitelist.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_reg_whitelist.h b/drivers/gpu/drm/xe/xe_reg_whitelist.h index 6e861b1bdb01..c76d81c528da 100644 --- a/drivers/gpu/drm/xe/xe_reg_whitelist.h +++ b/drivers/gpu/drm/xe/xe_reg_whitelist.h @@ -6,8 +6,15 @@ #ifndef _XE_REG_WHITELIST_ #define _XE_REG_WHITELIST_ +#include <linux/types.h> + +struct drm_printer; struct xe_hw_engine; +struct xe_reg_sr_entry; void xe_reg_whitelist_process_engine(struct xe_hw_engine *hwe); +void xe_reg_whitelist_print_entry(struct drm_printer *p, unsigned int indent, + u32 reg, struct xe_reg_sr_entry *entry); + #endif |