]> www.infradead.org Git - linux.git/commit
drm/xe/guc: Prepare GuC register list and update ADS size for error capture
authorZhanjun Dong <zhanjun.dong@intel.com>
Fri, 4 Oct 2024 19:34:23 +0000 (12:34 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 8 Oct 2024 16:34:04 +0000 (09:34 -0700)
commit9c8c7a7e6f1f55ec28cf0dbfe39a7a797f67be78
tree62b14052d04ad847a57acb67249b69dd455b7970
parentd6d87a10d9e45f7b5ae142dedb7ff76d1cf9e475
drm/xe/guc: Prepare GuC register list and update ADS size for error capture

Add referenced registers defines and list of registers.
Update GuC ADS size allocation to include space for
the lists of error state capture register descriptors.

Then, populate GuC ADS with the lists of registers we want
GuC to report back to host on engine reset events. This list
should include global, engine-class and engine-instance
registers for every engine-class type on the current hardware.

Ensure we allocate a persistent storage for the register lists
that are populated into ADS so that we don't need to allocate
memory during GT resets when GuC is reloaded and ADS population
happens again.

Signed-off-by: Zhanjun Dong <zhanjun.dong@intel.com>
Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241004193428.3311145-2-zhanjun.dong@intel.com
12 files changed:
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/abi/guc_capture_abi.h [new file with mode: 0644]
drivers/gpu/drm/xe/regs/xe_gt_regs.h
drivers/gpu/drm/xe/xe_guc.c
drivers/gpu/drm/xe/xe_guc.h
drivers/gpu/drm/xe/xe_guc_ads.c
drivers/gpu/drm/xe/xe_guc_ads_types.h
drivers/gpu/drm/xe/xe_guc_capture.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_capture.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_capture_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_fwif.h
drivers/gpu/drm/xe/xe_guc_types.h