diff options
author | Jani Nikula <jani.nikula@intel.com> | 2022-03-30 13:34:15 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2022-04-01 09:06:22 +0200 |
commit | 5efde05f6af1c5dd1abf63cd26c004bdfb4bbb5c (patch) | |
tree | 74b222b4933f41b30564e0c121cd76a373cabb71 /drivers/gpu/drm/i915/i915_gpu_error.h | |
parent | drm/i915: Handle the DG2 max bw properly (diff) | |
download | linux-5efde05f6af1c5dd1abf63cd26c004bdfb4bbb5c.tar.xz linux-5efde05f6af1c5dd1abf63cd26c004bdfb4bbb5c.zip |
drm/i915/dmc: abstract GPU error state dump
Only intel_dmc.c should be accessing dmc details directly.
Need to add an i915_error_printf() stub for
CONFIG_DRM_I915_CAPTURE_ERROR=n.
v2: Add the stub (kernel test robot <lkp@intel.com>)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> # v1
Link: https://patchwork.freedesktop.org/patch/msgid/20220330113417.220964-1-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gpu_error.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gpu_error.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gpu_error.h b/drivers/gpu/drm/i915/i915_gpu_error.h index 903d838e2e63..88ce3a08f555 100644 --- a/drivers/gpu/drm/i915/i915_gpu_error.h +++ b/drivers/gpu/drm/i915/i915_gpu_error.h @@ -281,6 +281,12 @@ void i915_disable_error_state(struct drm_i915_private *i915, int err); #else +__printf(2, 3) +static inline void +i915_error_printf(struct drm_i915_error_state_buf *e, const char *f, ...) +{ +} + static inline void i915_capture_error_state(struct intel_gt *gt, intel_engine_mask_t engine_mask) { |