Add GuC Error Capture Support
Subsystems (2)
v11 cover Add GuC Error Capture Support
This series:
1. Enables support of GuC to report error-state-capture using a list of MMIO registers the driver registers and GuC will dump, log and notify right before a GuC triggered engine-reset event.
2. Updates the ADS blob creation to register said lists of global, engine class and engine instance registers with GuC.
3. Defines tables of register lists that are global or engine class or engine instance in scope.
4. Updates usage and buffer-state data for the regions of the shared GuC log-buffer to accomdate both the existing relay logging of general debug logs along with the new error state capture usage.
5. Using a pool of preallocated memory, provide ability to extract and format the GuC reported register-capture data into chunks consistent with existing i915 error- state collection flows and structures.
6. Connects the i915_gpu_coredump reporting function to the GuC error capture module to print all GuC error state capture dumps that is reported.
This is the 8th rev of this series with the first 3 revs labelled as RFC.
Prior receipts of rvb's:
- Patch #2, #3, #4, #5, #10, #11, #12, #13 have received R-v-b's from Umesh Nerlige Ramappa <[email protected]>
- Patch #6, #7, #8, #9 has received an R-v-b from Matthew Brost <[email protected]>. NOTE: some of these came in on the trybot series. https://patchwork.freedesktop.org/series/100831/
Changes from prior revs:
v11:- Rebase again on latest drm-tip to fix merge error.
v10:- Rebase on latest drm-tip again. Fix a number of checkpatch
warnings and an error Reported-by: kernel test robot <[email protected]>.
v9: - Rebase on latest drm-tip to solve CI merge-build error.
v8: - Fix a bug found by CI in rev7: Create a cached ADS
capture list for null-header like the other lists.
- Fixed a bug on the ggtt offset calculation in the
ADS population loop. Thanks to Matt Brost.
- Change the storage uses for initial allocation and caching of the ADS register lists so we only store
a regular pointer instead of file handle.
- Multiple improvements on code styling, variable names, comments and code reduction from Umesh suggestions
across multiple patches.
v7: - Rebased on lastest drm_tip that has the ADS now using
shmem based ads_blob_write utilities. Stress test was performed with this patch included to fix a legacy bug:
https://patchwork.freedesktop.org/series/100768/
v6: - In patch #1, ADS reg-list population, we now alloc
regular memory to create the lists and cache them for simpler and faster use by GuC ADS module at init, suspend-resume and reset cycles. This was in response to review comments from Lucas De Marchi that also wanted to ensure the GuC ADS module owns the final copying into the ADS phyical memory.
- Thanks to Jani Nikula for pointing out that patch #2 and #3 should ensure static tables as constant and dynamic lists should be allocated and cached but attached to the GT level for the case of multiple cards with different fusings for steered registers. These are addressed now along with multiple code style fixups (thanks to review comment from Umesh) and splitting the steered register list generation as a seperate patch.
- The extraction functionality, Patch #10 and #11 (was patch #7), has fixed all of Umesh's review comments related to the code styling. Additionally, it was discovered during stress tests that the extraction function could be called by the ct processing thread at the same time as the start of a GT reset event. Thus, a redesign was done whereby the linked list of processed capture-output-nodes are allocated up front and reused throughout the driver's life to ensure no memory locks are taken during extraction.
- For patch #6 (now 7, 8 and 9), updates to intel_guc_log was split into smaller chunks and the log_state structure was returned back to inside of the intel_guc_log struct as opposed to the intel_guc struct in prior rev. This is in response to review comments by Matt Brost.
- #Patch 13 (previously #10) is mostly identical but addresses all of the code styling comments reviews from Umesh.
v5: - Added Gen9->Gen11 register list for CI coverage that
included Gen9 with GuC submission.
- Redesigned the extraction of the GuC error-capture dumps by grouping them into complete per-engine-reset nodes. Complete here means each node includes the global, engine-class and engine-instance register lists in a single structure.
- Extraction is decoupled from the print-out. We now do the extraction immediately when receiving the G2H for error-capture notification. A link list of nodes is maintained with a FIFO based threshold while awaiting retrieval from i915_gpu_coredump's capture_engine function.
- Added new plumbing through the i915_gpu_coredump allocation and capture functions to include a flag that is used indicate that GuC had triggered the reset. This new plumbing guarantees an exact match from i915_gpu_coredump's per-engine vma recording and node-retrieval from the guc-error-capture.
- Broke the coredump gt_global capture and recording functions into smaller subsets so we can reuse as much of the existing legacy register reading + printing functions and only rely on GuC error-capture for the smaller subset of registers that are tied to engine workload execution.
- Updated the register list to follow the legacy execlist format of printout.
v4:
- Rebased on latest drm-tip that has been merged with the support of GuC firmware version 69.0.3 that is required for GuC error-state-catpure to work.
- Added register list for DG2 which is the same as XE_LP except an additional steering register set.
- Fixed a bug in the end of capture parsing loop in intel_guc_capture_out_print_next_group that was not properly comparing the engine-instance and engine- class being parsed against the one that triggered the i915_gpu_coredump.
v3:
- Fixed all review comments from rev2 except the following:
- Michal Wajdeczko proposed adding a seperate function to lookup register string nameslookup (based on offset) but decided against it because of offset conflicts and the current table layout is easier to maintain.
- Last set of checkpatch errors pertaining to "COMPLEX MACROS" should be fixed on next rev.
- Abstracted internal-to-guc-capture information into a new __guc_state_capture_priv structure that allows the exclusion of intel_guc.h and intel_guc_fwif.h from intel_guc_capture.h. Now, only the first 2 patches have a wider build time impact because of the changes to intel_guc_fwif.h but subsequent changes to guc-capture internal structures or firmware interfaces used solely by guc-capture module shoudn't impact the rest of the driver build.
- Added missing Gen12LP registers and added slice+subslice indices when reporting extended steered registers.
- Add additional checks to ensure that the GuC reported error capture information matches the i915_gpu_coredump that is being printed before we print out the corresponding VMA dumps such as the batch buffer.
v2:
- Ignore - failed CI retest.
Alan Previn (13):
drm/i915/guc: Update GuC ADS size for error capture lists drm/i915/guc: Add XE_LP static registers for GuC error capture. drm/i915/guc: Add XE_LP steered register lists support drm/i915/guc: Add DG2 registers for GuC error state capture. drm/i915/guc: Add Gen9 registers for GuC error state capture. drm/i915/guc: Add GuC's error state capture output structures. drm/i915/guc: Update GuC-log relay function names drm/i915/guc: Add capture region into intel_guc_log drm/i915/guc: Check sizing of guc_capture output drm/i915/guc: Extract GuC error capture lists on G2H notification. drm/i915/guc: Pre-allocate output nodes for extraction drm/i915/guc: Plumb GuC-capture into gpu_coredump drm/i915/guc: Print the GuC error capture output register list.
drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/gt/intel_engine_cs.c | 4 +- .../drm/i915/gt/intel_execlists_submission.c | 4 +- drivers/gpu/drm/i915/gt/intel_reset.c | 2 +- .../gpu/drm/i915/gt/uc/abi/guc_actions_abi.h | 7 + drivers/gpu/drm/i915/gt/uc/guc_capture_fwif.h | 218 +++ drivers/gpu/drm/i915/gt/uc/intel_guc.c | 13 +- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 12 +- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 127 +- .../gpu/drm/i915/gt/uc/intel_guc_capture.c | 1655 +++++++++++++++++ .../gpu/drm/i915/gt/uc/intel_guc_capture.h | 33 + drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h | 14 +- drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 127 +- drivers/gpu/drm/i915/gt/uc/intel_guc_log.h | 7 +- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 18 +- drivers/gpu/drm/i915/i915_debugfs.c | 3 +- drivers/gpu/drm/i915/i915_gpu_error.c | 282 ++- drivers/gpu/drm/i915/i915_gpu_error.h | 35 +- 18 files changed, 2379 insertions(+), 183 deletions(-) create mode 100644 drivers/gpu/drm/i915/gt/uc/guc_capture_fwif.h create mode 100644 drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c create mode 100644 drivers/gpu/drm/i915/gt/uc/intel_guc_capture.h
Signature · 1 line
2.25.1
PATCH v11 1/13 drm/i915/guc: Update GuC ADS size for error capture lists
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 store 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.
NOTE: Start with a sample static table of register lists to layout the framework before adding real registers in subsequent patch. This static register tables are a different format from the ADS populated list.
--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/gt/uc/guc_capture_fwif.h | 91 +++++ drivers/gpu/drm/i915/gt/uc/intel_guc.c | 13 +- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 9 +- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 127 +++++- .../gpu/drm/i915/gt/uc/intel_guc_capture.c | 374 ++++++++++++++++++ .../gpu/drm/i915/gt/uc/intel_guc_capture.h | 22 ++ drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h | 8 + 8 files changed, 628 insertions(+), 17 deletions(-) create mode 100644 drivers/gpu/drm/i915/gt/uc/guc_capture_fwif.h create mode 100644 drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c create mode 100644 drivers/gpu/drm/i915/gt/uc/intel_guc_capture.h
drivers/gpu/drm/i915/Makefile +1 -0
@@ -184,6 +184,7 @@ i915-y += gt/uc/intel_uc.o \ gt/uc/intel_uc_fw.o \ gt/uc/intel_guc.o \ gt/uc/intel_guc_ads.o \ + gt/uc/intel_guc_capture.o \ gt/uc/intel_guc_ct.o \ gt/uc/intel_guc_debugfs.o \ gt/uc/intel_guc_fw.o \
drivers/gpu/drm/i915/gt/uc/guc_capture_fwif.h new file +91 -0
91 lines not on this page · raw message
drivers/gpu/drm/i915/gt/uc/intel_guc.c +11 -2
@@ -9,8 +9,9 @@#include "gt/intel_gt_pm_irq.h" #include "gt/intel_gt_regs.h" #include "intel_guc.h" -#include "intel_guc_slpc.h" #include "intel_guc_ads.h" +#include "intel_guc_capture.h" +#include "intel_guc_slpc.h" #include "intel_guc_submission.h" #include "i915_drv.h" #include "i915_irq.h"
@@ -362,9 +363,14 @@ int intel_guc_init(struct intel_guc *guc)if (ret) goto err_fw; - ret =intel_guc_ads_create (guc); + ret =intel_guc_capture_init (guc);if (ret) goto err_log; + + ret =intel_guc_ads_create (guc); +if (ret) + goto err_capture; +GEM_BUG_ON (!guc->ads_vma); ret =intel_guc_ct_init (&guc->ct);
@@ -403,6 +409,8 @@ int intel_guc_init(struct intel_guc *guc)intel_guc_ct_fini (&guc->ct); err_ads:intel_guc_ads_destroy (guc); +err_capture: +intel_guc_capture_destroy (guc); err_log:intel_guc_log_destroy (&guc->log); err_fw:
@@ -430,6 +438,7 @@ void intel_guc_fini(struct intel_guc *guc)intel_guc_ct_fini (&guc->ct);intel_guc_ads_destroy (guc); +intel_guc_capture_destroy (guc);intel_guc_log_destroy (&guc->log);intel_uc_fw_fini (&guc->fw); }
drivers/gpu/drm/i915/gt/uc/intel_guc.h +7 -2
@@ -10,18 +10,19 @@#include <linux/iosys-map.h> #include <linux/xarray.h> -#include "intel_uncore.h" +#include "intel_guc_ct.h" #include "intel_guc_fw.h" #include "intel_guc_fwif.h" -#include "intel_guc_ct.h" #include "intel_guc_log.h" #include "intel_guc_reg.h" #include "intel_guc_slpc_types.h" #include "intel_uc_fw.h" +#include "intel_uncore.h" #include "i915_utils.h" #include "i915_vma.h" struct __guc_ads_blob ; +struct intel_guc_state_capture ;/** * struct intel_guc - Top level structure of GuC.
@@ -38,6 +39,8 @@ struct intel_guc {struct intel_guc_ct ct;/** @slpc: sub-structure containing SLPC related data and objects */ struct intel_guc_slpc slpc; +/** @capture: the error-state-capture module's data and objects */ +struct intel_guc_state_capture *capture;/** @sched_engine: Global engine used to submit requests to GuC */ struct i915_sched_engine *sched_engine;
@@ -162,6 +165,8 @@ struct intel_guc {struct guc_mmio_reg *ads_regset;/** @ads_golden_ctxt_size: size of the golden contexts in the ADS */ u32 ads_golden_ctxt_size; +/** @ads_capture_size: size of register lists in the ADS used for error capture */ +u32 ads_capture_size;/** @ads_engine_usage_size: size of engine usage in the ADS */ u32 ads_engine_usage_size;
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c +114 -13
166 lines not on this page · raw message
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c new file +374 -0
374 lines not on this page · raw message
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.h new file +22 -0
@@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2021-2021 Intel Corporation +*/ + +#ifndef _INTEL_GUC_CAPTURE_H +#define _INTEL_GUC_CAPTURE_H + +#include <linux/types.h> + +struct guc_gt_system_info ; +struct intel_guc ; + +int intel_guc_capture_getlist (struct intel_guc *guc,u32 owner,u32 type,u32 classid, +void **outptr); +int intel_guc_capture_getlistsize (struct intel_guc *guc,u32 owner,u32 type,u32 classid, +size_t *size); +int intel_guc_capture_getnullheader (struct intel_guc *guc,void **outptr,size_t *size); +void intel_guc_capture_destroy (struct intel_guc *guc); +int intel_guc_capture_init (struct intel_guc *guc); + +#endif /* _INTEL_GUC_CAPTURE_H */
drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h +8 -0
@@ -314,6 +314,14 @@ enum { GUC_CAPTURE_LIST_INDEX_MAX = 2, }; +/*Register-types of GuC capture register lists */ +enum guc_capture_type { +GUC_CAPTURE_LIST_TYPE_GLOBAL =0 , +GUC_CAPTURE_LIST_TYPE_ENGINE_CLASS , +GUC_CAPTURE_LIST_TYPE_ENGINE_INSTANCE , +GUC_CAPTURE_LIST_TYPE_MAX , +}; +/* GuC Additional Data Struct */ struct guc_ads {struct guc_mmio_reg_set reg_state_list[GUC_MAX_ENGINE_CLASSES ][GUC_MAX_INSTANCES_PER_CLASS ];
Signature · 1 line
2.25.1
Re: [Intel-gfx] [PATCH v11 01/13] drm/i915/guc: Update GuC ADS size for error capture lists
Quoted 34 lines · Alan Previn
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 store 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.
NOTE: Start with a sample static table of register lists to layout the framework before adding real registers in subsequent patch. This static register tables are a different format from the ADS populated list.
Signed-off-by Alan Previn <[email protected]>Reviewed-by Matthew Brost <[email protected]>--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/gt/uc/guc_capture_fwif.h | 91 +++++ drivers/gpu/drm/i915/gt/uc/intel_guc.c | 13 +- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 9 +- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 127 +++++- .../gpu/drm/i915/gt/uc/intel_guc_capture.c | 374 ++++++++++++++++++ .../gpu/drm/i915/gt/uc/intel_guc_capture.h | 22 ++ drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h | 8 + 8 files changed, 628 insertions(+), 17 deletions(-)create mode 100644
drivers/gpu/drm/i915/gt/uc/guc_capture_fwif.hcreate mode 100644drivers/gpu/drm/i915/gt/uc/intel_guc_capture.ccreate mode 100644drivers/gpu/drm/i915/gt/uc/intel_guc_capture.h
[snip]
Quoted 16 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c new file +16
-0+ +static int +guc_capture_list_init (struct intel_guc *guc,u32 owner,u32 type,u32 classid, +struct guc_mmio_reg *ptr,u16 num_entries) +{ +u32 i =0 ; +struct drm_i915_private *i915 =guc_to_gt (guc)->i915; +const struct __guc_mmio_reg_descr_group *reglists = guc->capture->reglists; +const struct __guc_mmio_reg_descr_group *match; + +if (!reglists) +return -ENODEV ; + + match =guc_capture_get_one_list (reglists, owner, type, classid); +if (match) { +for (i =0 ; i < num_entries && i < match->num_regs; ++i) {
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c line 205
Quoted 10 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c new file +10
-0+ ptr[i].offset = match->list[i].reg.reg; + ptr[i].value =0xDEADF00D ; + ptr[i].flags = match->list[i].flags; + ptr[i].mask = match->list[i].mask; + } +return 0 ; + } + +guc_capture_warn_with_list_info (i915,"Missing register list init" , owner, type, + classid);
I got a lot of these when booting on DG1 today (drm-tip):
[ 4.396554] i915 0000:03:00.0: [drm:intel_wopcm_init [i915]] Calculated GuC WOPCM [592K, 1420K) [ 4.396681] i915 0000:03:00.0: [drm:i915_init_ggtt [i915]] clearing unused GTT space: [0, fee00000] [ 4.412408] i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device [ 4.505766] MCR Steering: Default steering: sliceid=0x0, subsliceid=0x0 [ 4.505771] [drm:wa_init_finish [i915]] Initialized 6 GT workarounds on global [ 4.506300] [drm:wa_init_finish [i915]] Initialized 6 engine workarounds on rcs'0 [ 4.506413] [drm:wa_init_finish [i915]] Initialized 3 whitelist workarounds on rcs'0 [ 4.506490] [drm:wa_init_finish [i915]] Initialized 6 context workarounds on rcs'0 [ 4.506712] [drm:wa_init_finish [i915]] Initialized 1 engine workarounds on bcs'0 [ 4.506787] [drm:wa_init_finish [i915]] Initialized 1 whitelist workarounds on bcs'0 [ 4.506845] [drm:wa_init_finish [i915]] Initialized 1 context workarounds on bcs'0 [ 4.506972] [drm:wa_init_finish [i915]] Initialized 1 engine workarounds on vcs'0 [ 4.507026] [drm:wa_init_finish [i915]] Initialized 1 whitelist workarounds on vcs'0 [ 4.507160] [drm:wa_init_finish [i915]] Initialized 1 engine workarounds on vcs'2 [ 4.507217] [drm:wa_init_finish [i915]] Initialized 1 whitelist workarounds on vcs'2 [ 4.507330] [drm:wa_init_finish [i915]] Initialized 1 engine workarounds on vecs'0 [ 4.507385] [drm:wa_init_finish [i915]] Initialized 1 whitelist workarounds on vecs'0 [ 4.508752] [drm:intel_guc_log_create [i915]] guc_log_level=5 (enabled, verbose:yes, verbosity:3) [ 4.508999] i915 0000:03:00.0: [drm:intel_guc_ads_create [i915]] Used 4 KB for temporary ADS regset [ 4.509082] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for PF Class-Registers on Video-Engine [ 4.509152] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for PF Class-Registers on Blitter-Engine [ 4.509219] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Class-Registers on Render-Engine [ 4.509283] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Instance-Registers on Render-Engine [ 4.509347] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Class-Registers on Video-Engine [ 4.509408] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Instance-Registers on Video-Engine [ 4.509472] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Class-Registers on VideoEnhance-Engine [ 4.509531] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Instance-Registers on VideoEnhance-Engine [ 4.509600] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Class-Registers on Blitter-Engine [ 4.509665] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Instance-Registers on Blitter-Engine [ 4.509730] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Global-Registers. [ 4.514938] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for PF Class-Registers on Video-Engine [ 4.515079] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for PF Class-Registers on Blitter-Engine [ 4.515279] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Class-Registers on Render-Engine [ 4.515374] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Instance-Registers on Render-Engine [ 4.515471] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Class-Registers on Video-Engine [ 4.515559] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Instance-Registers on Video-Engine [ 4.515657] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Class-Registers on VideoEnhance-Engine [ 4.515742] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Instance-Registers on VideoEnhance-Engine [ 4.515815] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Class-Registers on Blitter-Engine [ 4.515883] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Instance-Registers on Blitter-Engine [ 4.516049] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Global-Registers. [ 4.519482] [drm:intel_guc_init [i915]] param[ 0] = 0x16304f [ 4.519617] [drm:intel_guc_init [i915]] param[ 1] = 0x40000 [ 4.519707] [drm:intel_guc_init [i915]] param[ 2] = 0x4 [ 4.519841] [drm:intel_guc_init [i915]] param[ 3] = 0x3 [ 4.519969] [drm:intel_guc_init [i915]] param[ 4] = 0xac8 [ 4.520093] [drm:intel_guc_init [i915]] param[ 5] = 0x49050001 [ 4.520221] [drm:intel_guc_init [i915]] param[ 6] = 0x0 [ 4.520350] [drm:intel_guc_init [i915]] param[ 7] = 0x0 [ 4.520468] [drm:intel_guc_init [i915]] param[ 8] = 0x0 [ 4.520581] [drm:intel_guc_init [i915]] param[ 9] = 0x0 [ 4.520665] [drm:intel_guc_init [i915]] param[10] = 0x0 [ 4.520733] [drm:intel_guc_init [i915]] param[11] = 0x0 [ 4.520816] [drm:intel_guc_init [i915]] param[12] = 0x0 [ 4.520883] [drm:intel_guc_init [i915]] param[13] = 0x0 [ 4.521296] i915 0000:03:00.0: [drm] GuC firmware i915/dg1_guc_69.0.3.bin version 69.0 [ 4.521298] i915 0000:03:00.0: [drm] HuC firmware i915/dg1_huc_7.9.3.bin version 7.9 [ 4.521818] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for PF Class-Registers on Video-Engine [ 4.521921] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for PF Class-Registers on Blitter-Engine [ 4.522086] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Class-Registers on Render-Engine [ 4.522151] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Instance-Registers on Render-Engine [ 4.522221] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Class-Registers on Video-Engine [ 4.522289] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Instance-Registers on Video-Engine [ 4.522359] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Class-Registers on VideoEnhance-Engine [ 4.522419] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Instance-Registers on VideoEnhance-Engine [ 4.522486] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Class-Registers on Blitter-Engine [ 4.522544] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Instance-Registers on Blitter-Engine [ 4.522692] i915 0000:03:00.0: [drm:guc_capture_warn_with_list_info [i915]] GuC-capture: Missing register list size for VF Global-Registers. [ 4.527029] i915 0000:03:00.0: [drm:guc_enable_communication [i915]] GuC communication enabled [ 4.527887] i915 0000:03:00.0: [drm] HuC authenticated [ 4.528364] i915 0000:03:00.0: [drm] GuC submission enabled [ 4.528366] i915 0000:03:00.0: [drm] GuC SLPC enabled [ 4.529157] i915 0000:03:00.0: [drm] GuC RC: enabled
What is it about?
Regards,
Tvrtko
PATCH v11 2/13 drm/i915/guc: Add XE_LP static registers for GuC error capture.
In reply to Alan PrevinAdd device specific tables and register lists to cover different engines class types for GuC error state capture for XE_LP products.
--- .../gpu/drm/i915/gt/uc/intel_guc_capture.c | 116 ++++++++++++++---- drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h | 6 +- 2 files changed, 97 insertions(+), 25 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +94 -22
@@ -19,43 +19,109 @@/* * Define all device tables of GuC error capture register lists -* NOTE: For engine-registers, GuC only needs the register offsets -* from the engine-mmio-base +* NOTE1: For engine-registers, GuC only needs the register offsets +* from the engine-mmio-base */ +#define COMMON_GEN12BASE_GLOBAL () \ + {GEN12_FAULT_TLB_DATA0, 0, 0, "GEN12_FAULT_TLB_DATA0"}, \ + {GEN12_FAULT_TLB_DATA1, 0, 0, "GEN12_FAULT_TLB_DATA1"}, \ + {FORCEWAKE_MT, 0, 0, "FORCEWAKE"}, \ + {GEN12_AUX_ERR_DBG, 0, 0, "AUX_ERR_DBG"}, \ + {GEN12_GAM_DONE, 0, 0, "GAM_DONE"}, \ + {GEN12_RING_FAULT_REG, 0, 0, "FAULT_REG"} + +#define COMMON_GEN12BASE_ENGINE_INSTANCE () \ + {RING_PSMI_CTL(0), 0, 0, "RC PSMI"}, \ + {RING_ESR(0), 0, 0, "ESR"}, \ + {RING_DMA_FADD(0), 0, 0, "RING_DMA_FADD_LDW"}, \ + {RING_DMA_FADD_UDW(0), 0, 0, "RING_DMA_FADD_UDW"}, \ + {RING_IPEIR(0), 0, 0, "IPEIR"}, \ + {RING_IPEHR(0), 0, 0, "IPEHR"}, \ + {RING_INSTPS(0), 0, 0, "INSTPS"}, \ + {RING_BBADDR(0), 0, 0, "RING_BBADDR_LOW32"}, \ + {RING_BBADDR_UDW(0), 0, 0, "RING_BBADDR_UP32"}, \ + {RING_BBSTATE(0), 0, 0, "BB_STATE"}, \ + {CCID(0), 0, 0, "CCID"}, \ + {RING_ACTHD(0), 0, 0, "ACTHD_LDW"}, \ + {RING_ACTHD_UDW(0), 0, 0, "ACTHD_UDW"}, \ + {RING_INSTPM(0), 0, 0, "INSTPM"}, \ + {RING_INSTDONE(0), 0, 0, "INSTDONE"}, \ + {RING_NOPID(0), 0, 0, "RING_NOPID"}, \ + {RING_START(0), 0, 0, "START"}, \ + {RING_HEAD(0), 0, 0, "HEAD"}, \ + {RING_TAIL(0), 0, 0, "TAIL"}, \ + {RING_CTL(0), 0, 0, "CTL"}, \ + {RING_MI_MODE(0), 0, 0, "MODE"}, \ + {RING_CONTEXT_CONTROL(0), 0, 0, "RING_CONTEXT_CONTROL"}, \ + {RING_HWS_PGA(0), 0, 0, "HWS"}, \ + {RING_MODE_GEN7(0), 0, 0, "GFX_MODE"}, \ + {GEN8_RING_PDP_LDW(0, 0), 0, 0, "PDP0_LDW"}, \ + {GEN8_RING_PDP_UDW(0, 0), 0, 0, "PDP0_UDW"}, \ + {GEN8_RING_PDP_LDW(0, 1), 0, 0, "PDP1_LDW"}, \ + {GEN8_RING_PDP_UDW(0, 1), 0, 0, "PDP1_UDW"}, \ + {GEN8_RING_PDP_LDW(0, 2), 0, 0, "PDP2_LDW"}, \ + {GEN8_RING_PDP_UDW(0, 2), 0, 0, "PDP2_UDW"}, \ + {GEN8_RING_PDP_LDW(0, 3), 0, 0, "PDP3_LDW"}, \ + {GEN8_RING_PDP_UDW(0, 3), 0, 0, "PDP3_UDW"} + +#define COMMON_GEN12BASE_HAS_EU () \ + {EIR, 0, 0, "EIR"} + +#define COMMON_GEN12BASE_RENDER () \ + {GEN7_SC_INSTDONE, 0, 0, "GEN7_SC_INSTDONE"}, \ + {GEN12_SC_INSTDONE_EXTRA, 0, 0, "GEN12_SC_INSTDONE_EXTRA"}, \ + {GEN12_SC_INSTDONE_EXTRA2, 0, 0, "GEN12_SC_INSTDONE_EXTRA2"} + +#define COMMON_GEN12BASE_VEC () \ + {GEN12_SFC_DONE(0), 0, 0, "SFC_DONE[0]"}, \ + {GEN12_SFC_DONE(1), 0, 0, "SFC_DONE[1]"}, \ + {GEN12_SFC_DONE(2), 0, 0, "SFC_DONE[2]"}, \ + {GEN12_SFC_DONE(3), 0, 0, "SFC_DONE[3]"} +/* XE_LPD - Global */ static const struct __guc_mmio_reg_descr xe_lpd_global_regs[] = { - {GEN12_RING_FAULT_REG ,0 ,0 ,"GEN12_RING_FAULT_REG" } +COMMON_GEN12BASE_GLOBAL (), };/* XE_LPD - Render / Compute Per-Class */ static const struct __guc_mmio_reg_descr xe_lpd_rc_class_regs[] = { - {EIR ,0 ,0 ,"EIR" } +COMMON_GEN12BASE_HAS_EU (), +COMMON_GEN12BASE_RENDER (), };/* XE_LPD - Render / Compute Per-Engine-Instance */ static const struct __guc_mmio_reg_descr xe_lpd_rc_inst_regs[] = { - {RING_HEAD (0 ),0 ,0 ,"RING_HEAD" }, - {RING_TAIL (0 ),0 ,0 ,"RING_TAIL" }, +COMMON_GEN12BASE_ENGINE_INSTANCE (), };/* XE_LPD - Media Decode/Encode Per-Class */ static const struct __guc_mmio_reg_descr xe_lpd_vd_class_regs[] = { +COMMON_GEN12BASE_ENGINE_INSTANCE (), };/* XE_LPD - Media Decode/Encode Per-Engine-Instance */ static const struct __guc_mmio_reg_descr xe_lpd_vd_inst_regs[] = { - {RING_HEAD (0 ),0 ,0 ,"RING_HEAD" }, - {RING_TAIL (0 ),0 ,0 ,"RING_TAIL" }, +COMMON_GEN12BASE_ENGINE_INSTANCE (), };/* XE_LPD - Video Enhancement Per-Class */ static const struct __guc_mmio_reg_descr xe_lpd_vec_class_regs[] = { +COMMON_GEN12BASE_VEC (), };/* XE_LPD - Video Enhancement Per-Engine-Instance */ static const struct __guc_mmio_reg_descr xe_lpd_vec_inst_regs[] = { - {RING_HEAD (0 ),0 ,0 ,"RING_HEAD" }, - {RING_TAIL (0 ),0 ,0 ,"RING_TAIL" }, +COMMON_GEN12BASE_ENGINE_INSTANCE (), +}; + +/* XE_LPD - Blitter Per-Engine-Instance */ +static const struct __guc_mmio_reg_descr xe_lpd_blt_inst_regs[] = { +COMMON_GEN12BASE_ENGINE_INSTANCE (), +}; + +/* XE_LPD - Blitter Per-Class */ +/* XE_LPD - Media Decode/Encode Per-Class */ +static const struct __guc_mmio_reg_descr empty_regs_list[] = { };#define TO_GCAP_DEF_OWNER (x) (GUC_CAPTURE_LIST_INDEX_##x)
@@ -74,10 +140,12 @@ static const struct __guc_mmio_reg_descr_group xe_lpd_lists[] = {MAKE_REGLIST (xe_lpd_global_regs,PF ,GLOBAL ,0 ),MAKE_REGLIST (xe_lpd_rc_class_regs,PF ,ENGINE_CLASS ,GUC_RENDER_CLASS ),MAKE_REGLIST (xe_lpd_rc_inst_regs,PF ,ENGINE_INSTANCE ,GUC_RENDER_CLASS ), -MAKE_REGLIST (xe_lpd_vd_class_regs,PF ,ENGINE_CLASS ,GUC_VIDEO_CLASS ), +MAKE_REGLIST (empty_regs_list,PF ,ENGINE_CLASS ,GUC_VIDEO_CLASS ),MAKE_REGLIST (xe_lpd_vd_inst_regs,PF ,ENGINE_INSTANCE ,GUC_VIDEO_CLASS ),MAKE_REGLIST (xe_lpd_vec_class_regs,PF ,ENGINE_CLASS ,GUC_VIDEOENHANCE_CLASS ),MAKE_REGLIST (xe_lpd_vec_inst_regs,PF ,ENGINE_INSTANCE ,GUC_VIDEOENHANCE_CLASS ), +MAKE_REGLIST (empty_regs_list,PF ,ENGINE_CLASS ,GUC_BLITTER_CLASS ), + MAKE_REGLIST(xe_lpd_blt_inst_regs, PF, ENGINE_INSTANCE, GUC_BLITTER_CLASS), {} };
@@ -191,20 +259,24 @@ guc_capture_list_init(struct intel_guc *guc, u32 owner, u32 type, u32 classid,return -ENODEV ; match =guc_capture_get_one_list (reglists, owner, type, classid); -if (match) { -for (i =0 ; i < num_entries && i < match->num_regs; ++i) { - ptr[i].offset = match->list[i].reg.reg; - ptr[i].value =0xDEADF00D ; - ptr[i].flags = match->list[i].flags; - ptr[i].mask = match->list[i].mask; - } -return 0 ; +if (!match) { +guc_capture_warn_with_list_info (i915,"Missing register list init" , owner, type, + classid); +return -ENODATA ; + } + +for (i =0 ; i < num_entries && i < match->num_regs; ++i) { + ptr[i].offset = match->list[i].reg.reg; + ptr[i].value =0xDEADF00D ; + ptr[i].flags = match->list[i].flags; + ptr[i].mask = match->list[i].mask; } -guc_capture_warn_with_list_info (i915,"Missing register list init" , owner, type, - classid); +if (i < num_entries) +drm_dbg (&i915->drm,"GuC-capture: Init reglist short %d out %d.\n" , + (int )i, (int )num_entries); -return -ENODATA ; +return 0 ; } static int
drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h +3 -3
@@ -285,13 +285,13 @@ struct guc_mmio_reg {u32 offset;u32 value;u32 flags; -u32 mask;#define GUC_REGSET_MASKED BIT(0)#define GUC_REGSET_NEEDS_STEERING BIT(1)#define GUC_REGSET_MASKED_WITH_VALUE BIT(2)#define GUC_REGSET_RESTORE_ONLY BIT(3) -#define GUC_REGSET_STEERING_GROUP GENMASK(15, 12) -#define GUC_REGSET_STEERING_INSTANCE GENMASK(23, 20) +#define GUC_REGSET_STEERING_GROUP GENMASK(15, 12) +#define GUC_REGSET_STEERING_INSTANCE GENMASK(23, 20) +u32 mask; } __packed;/* GuC register sets */
Signature · 1 line
2.25.1
Jani Nikula
maintainerRe: [Intel-gfx] [PATCH v11 02/13] drm/i915/guc: Add XE_LP static registers for GuC error capture.
Quoted 5 lines · Alan Previn
Add device specific tables and register lists to cover different engines class types for GuC error state capture for
XE_LPproducts.Signed-off-by Alan Previn <[email protected]>Reviewed-by Umesh Nerlige Ramappa <[email protected]>
Some random drive-by comments inline.
Quoted 10 lines
--- .../gpu/drm/i915/gt/uc/intel_guc_capture.c | 116 ++++++++++++++---- drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h | 6 +- 2 files changed, 97 insertions(+), 25 deletions(-)drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +0
-0
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c line 23
Quoted 7 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +2
-2@@ -19,43 +19,109 @@/* * Define all device tables of GuC error capture register lists -* NOTE: For engine-registers, GuC only needs the register offsets -* from the engine-mmio-base +* NOTE1: For engine-registers, GuC only needs the register offsets +* from the engine-mmio-base
NOTE1?
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c line 25
Quoted 2 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +1
-0*/ +#define COMMON_GEN12BASE_GLOBAL () \
Why are these function-like macros, they're not used like functions, anywhere?
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c line 26
Quoted 1 line
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +1
-0+ {GEN12_FAULT_TLB_DATA0, 0, 0, "GEN12_FAULT_TLB_DATA0"}, \
Please add spaces after { and before }.
Quoted 180 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +90
-20+ {GEN12_FAULT_TLB_DATA1, 0, 0, "GEN12_FAULT_TLB_DATA1"}, \ + {FORCEWAKE_MT, 0, 0, "FORCEWAKE"}, \ + {GEN12_AUX_ERR_DBG, 0, 0, "AUX_ERR_DBG"}, \ + {GEN12_GAM_DONE, 0, 0, "GAM_DONE"}, \ + {GEN12_RING_FAULT_REG, 0, 0, "FAULT_REG"} + +#define COMMON_GEN12BASE_ENGINE_INSTANCE() \ + {RING_PSMI_CTL(0), 0, 0, "RC PSMI"}, \ + {RING_ESR(0), 0, 0, "ESR"}, \ + {RING_DMA_FADD(0), 0, 0, "RING_DMA_FADD_LDW"}, \ + {RING_DMA_FADD_UDW(0), 0, 0, "RING_DMA_FADD_UDW"}, \ + {RING_IPEIR(0), 0, 0, "IPEIR"}, \ + {RING_IPEHR(0), 0, 0, "IPEHR"}, \ + {RING_INSTPS(0), 0, 0, "INSTPS"}, \ + {RING_BBADDR(0), 0, 0, "RING_BBADDR_LOW32"}, \ + {RING_BBADDR_UDW(0), 0, 0, "RING_BBADDR_UP32"}, \ + {RING_BBSTATE(0), 0, 0, "BB_STATE"}, \ + {CCID(0), 0, 0, "CCID"}, \ + {RING_ACTHD(0), 0, 0, "ACTHD_LDW"}, \ + {RING_ACTHD_UDW(0), 0, 0, "ACTHD_UDW"}, \ + {RING_INSTPM(0), 0, 0, "INSTPM"}, \ + {RING_INSTDONE(0), 0, 0, "INSTDONE"}, \ + {RING_NOPID(0), 0, 0, "RING_NOPID"}, \ + {RING_START(0), 0, 0, "START"}, \ + {RING_HEAD(0), 0, 0, "HEAD"}, \ + {RING_TAIL(0), 0, 0, "TAIL"}, \ + {RING_CTL(0), 0, 0, "CTL"}, \ + {RING_MI_MODE(0), 0, 0, "MODE"}, \ + {RING_CONTEXT_CONTROL(0), 0, 0, "RING_CONTEXT_CONTROL"}, \ + {RING_HWS_PGA(0), 0, 0, "HWS"}, \ + {RING_MODE_GEN7(0), 0, 0, "GFX_MODE"}, \ + {GEN8_RING_PDP_LDW(0, 0), 0, 0, "PDP0_LDW"}, \ + {GEN8_RING_PDP_UDW(0, 0), 0, 0, "PDP0_UDW"}, \ + {GEN8_RING_PDP_LDW(0, 1), 0, 0, "PDP1_LDW"}, \ + {GEN8_RING_PDP_UDW(0, 1), 0, 0, "PDP1_UDW"}, \ + {GEN8_RING_PDP_LDW(0, 2), 0, 0, "PDP2_LDW"}, \ + {GEN8_RING_PDP_UDW(0, 2), 0, 0, "PDP2_UDW"}, \ + {GEN8_RING_PDP_LDW(0, 3), 0, 0, "PDP3_LDW"}, \ + {GEN8_RING_PDP_UDW(0, 3), 0, 0, "PDP3_UDW"} + +#define COMMON_GEN12BASE_HAS_EU() \ + {EIR, 0, 0, "EIR"} + +#define COMMON_GEN12BASE_RENDER() \ + {GEN7_SC_INSTDONE, 0, 0, "GEN7_SC_INSTDONE"}, \ + {GEN12_SC_INSTDONE_EXTRA, 0, 0, "GEN12_SC_INSTDONE_EXTRA"}, \ + {GEN12_SC_INSTDONE_EXTRA2, 0, 0, "GEN12_SC_INSTDONE_EXTRA2"} + +#define COMMON_GEN12BASE_VEC() \ + {GEN12_SFC_DONE(0), 0, 0, "SFC_DONE[0]"}, \ + {GEN12_SFC_DONE(1), 0, 0, "SFC_DONE[1]"}, \ + {GEN12_SFC_DONE(2), 0, 0, "SFC_DONE[2]"}, \ + {GEN12_SFC_DONE(3), 0, 0, "SFC_DONE[3]"} + /* XE_LPD - Global */ static const struct __guc_mmio_reg_descr xe_lpd_global_regs[] = { - {GEN12_RING_FAULT_REG ,0 ,0 ,"GEN12_RING_FAULT_REG" } + COMMON_GEN12BASE_GLOBAL(), };/* XE_LPD - Render / Compute Per-Class */ static const struct __guc_mmio_reg_descr xe_lpd_rc_class_regs[] = { - {EIR ,0 ,0 ,"EIR" } +COMMON_GEN12BASE_HAS_EU (), +COMMON_GEN12BASE_RENDER (), };/* XE_LPD - Render / Compute Per-Engine-Instance */ static const struct __guc_mmio_reg_descr xe_lpd_rc_inst_regs[] = { - {RING_HEAD (0 ),0 ,0 ,"RING_HEAD" }, - {RING_TAIL (0 ),0 ,0 ,"RING_TAIL" }, +COMMON_GEN12BASE_ENGINE_INSTANCE (), };/* XE_LPD - Media Decode/Encode Per-Class */ static const struct __guc_mmio_reg_descr xe_lpd_vd_class_regs[] = { +COMMON_GEN12BASE_ENGINE_INSTANCE (), };/* XE_LPD - Media Decode/Encode Per-Engine-Instance */ static const struct __guc_mmio_reg_descr xe_lpd_vd_inst_regs[] = { - {RING_HEAD (0 ),0 ,0 ,"RING_HEAD" }, - {RING_TAIL (0 ),0 ,0 ,"RING_TAIL" }, +COMMON_GEN12BASE_ENGINE_INSTANCE (), };/* XE_LPD - Video Enhancement Per-Class */ static const struct __guc_mmio_reg_descr xe_lpd_vec_class_regs[] = { +COMMON_GEN12BASE_VEC (), };/* XE_LPD - Video Enhancement Per-Engine-Instance */ static const struct __guc_mmio_reg_descr xe_lpd_vec_inst_regs[] = { - {RING_HEAD (0 ),0 ,0 ,"RING_HEAD" }, - {RING_TAIL (0 ),0 ,0 ,"RING_TAIL" }, +COMMON_GEN12BASE_ENGINE_INSTANCE (), +}; + +/* XE_LPD - Blitter Per-Engine-Instance */ +static const struct __guc_mmio_reg_descr xe_lpd_blt_inst_regs[] = { +COMMON_GEN12BASE_ENGINE_INSTANCE (), +}; + +/* XE_LPD - Blitter Per-Class */ +/* XE_LPD - Media Decode/Encode Per-Class */ +static const struct __guc_mmio_reg_descr empty_regs_list[] = { };#define TO_GCAP_DEF_OWNER (x) (GUC_CAPTURE_LIST_INDEX_##x)@@ -74,10 +140,12 @@ static const struct __guc_mmio_reg_descr_group xe_lpd_lists[] = {MAKE_REGLIST (xe_lpd_global_regs,PF ,GLOBAL ,0 ),MAKE_REGLIST (xe_lpd_rc_class_regs,PF ,ENGINE_CLASS ,GUC_RENDER_CLASS ),MAKE_REGLIST (xe_lpd_rc_inst_regs,PF ,ENGINE_INSTANCE ,GUC_RENDER_CLASS ), -MAKE_REGLIST (xe_lpd_vd_class_regs,PF ,ENGINE_CLASS ,GUC_VIDEO_CLASS ), +MAKE_REGLIST (empty_regs_list,PF ,ENGINE_CLASS ,GUC_VIDEO_CLASS ),MAKE_REGLIST (xe_lpd_vd_inst_regs,PF ,ENGINE_INSTANCE ,GUC_VIDEO_CLASS ),MAKE_REGLIST (xe_lpd_vec_class_regs,PF ,ENGINE_CLASS ,GUC_VIDEOENHANCE_CLASS ),MAKE_REGLIST (xe_lpd_vec_inst_regs,PF ,ENGINE_INSTANCE ,GUC_VIDEOENHANCE_CLASS ), +MAKE_REGLIST (empty_regs_list,PF ,ENGINE_CLASS ,GUC_BLITTER_CLASS ), + MAKE_REGLIST(xe_lpd_blt_inst_regs, PF, ENGINE_INSTANCE, GUC_BLITTER_CLASS), {} };@@ -191,20 +259,24 @@ guc_capture_list_init(struct intel_guc *guc, u32 owner, u32 type, u32 classid,return -ENODEV ; match =guc_capture_get_one_list (reglists, owner, type, classid); -if (match) { -for (i =0 ; i < num_entries && i < match->num_regs; ++i) { - ptr[i].offset = match->list[i].reg.reg; - ptr[i].value =0xDEADF00D ; - ptr[i].flags = match->list[i].flags; - ptr[i].mask = match->list[i].mask; - } -return 0 ; +if (!match) { +guc_capture_warn_with_list_info (i915,"Missing register list init" , owner, type, + classid); +return -ENODATA ; + } + +for (i =0 ; i < num_entries && i < match->num_regs; ++i) { + ptr[i].offset = match->list[i].reg.reg; + ptr[i].value =0xDEADF00D ; + ptr[i].flags = match->list[i].flags; + ptr[i].mask = match->list[i].mask; } -guc_capture_warn_with_list_info (i915,"Missing register list init" , owner, type, - classid); +if (i < num_entries) +drm_dbg (&i915->drm,"GuC-capture: Init reglist short %d out %d.\n" , + (int )i, (int )num_entries); -return -ENODATA ; +return 0 ; } static intdrivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h +3
-3@@ -285,13 +285,13 @@ struct guc_mmio_reg {u32 offset;u32 value;u32 flags; -u32 mask;#define GUC_REGSET_MASKED BIT(0)#define GUC_REGSET_NEEDS_STEERING BIT(1)#define GUC_REGSET_MASKED_WITH_VALUE BIT(2)#define GUC_REGSET_RESTORE_ONLY BIT(3) -#define GUC_REGSET_STEERING_GROUP GENMASK(15, 12) -#define GUC_REGSET_STEERING_INSTANCE GENMASK(23, 20) +#define GUC_REGSET_STEERING_GROUP GENMASK(15, 12) +#define GUC_REGSET_STEERING_INSTANCE GENMASK(23, 20) +u32 mask; } __packed;/* GuC register sets */
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
PATCH v11 3/13 drm/i915/guc: Add XE_LP steered register lists support
In reply to Alan PrevinAdd the ability for runtime allocation and freeing of steered register list extentions that depend on the detected HW config fuses.
--- drivers/gpu/drm/i915/gt/uc/guc_capture_fwif.h | 9 + .../gpu/drm/i915/gt/uc/intel_guc_capture.c | 176 ++++++++++++++++-- 2 files changed, 174 insertions(+), 11 deletions(-)
drivers/gpu/drm/i915/gt/uc/guc_capture_fwif.h +9 -0
@@ -52,6 +52,7 @@ struct __guc_mmio_reg_descr_group {u32 owner;/* see enum guc_capture_owner */ u32 type;/* see enum guc_capture_type */ u32 engine;/* as per MAX_ENGINE_CLASS */ +struct __guc_mmio_reg_descr *extlist;/* only used for steered registers */ };/**
@@ -79,6 +80,14 @@ struct intel_guc_state_capture {*/ const struct __guc_mmio_reg_descr_group *reglists; +/** +* @extlists: allocated table of steered register lists used for error-capture state. +* +* NOTE: steered registers have multiple instances depending on the HW configuration +* (slices or dual-sub-slices) and thus depends on HW fuses discovered at startup +*/ +struct __guc_mmio_reg_descr_group *extlists; +/** * @ads_cache: cached register lists that is ADS format ready */
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +165 -11
239 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH v11 4/13 drm/i915/guc: Add DG2 registers for GuC error state capture.
In reply to Alan PrevinAdd additional DG2 registers for GuC error state capture.
--- .../gpu/drm/i915/gt/uc/intel_guc_capture.c | 80 ++++++++++++++++++- 1 file changed, 77 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +77 -3
@@ -285,20 +285,94 @@ guc_capture_alloc_steered_lists_xe_lpd(struct intel_guc *guc, guc->capture->extlists = extlists; } +static const struct __ext_steer_reg xehpg_extregs[] = { + {"XEHPG_INSTDONE_GEOM_SVG" ,XEHPG_INSTDONE_GEOM_SVG } +}; + +static bool __has_xehpg_extregs (u32 ipver) +{ +return (ipver >=IP_VER (12 ,55 )); +} + +static void +guc_capture_alloc_steered_lists_xe_hpg (struct intel_guc *guc, +const struct __guc_mmio_reg_descr_group *lists, +u32 ipver) +{ +struct intel_gt *gt =guc_to_gt (guc); +struct drm_i915_private *i915 =guc_to_gt (guc)->i915; +struct sseu_dev_info *sseu; +int slice, subslice, i, iter, num_steer_regs, num_tot_regs =0 ; +const struct __guc_mmio_reg_descr_group *list; +struct __guc_mmio_reg_descr_group *extlists; +struct __guc_mmio_reg_descr *extarray; + +/* In XE_LP / HPG we only have render-class steering registers during error-capture */ + list =guc_capture_get_one_list (lists,GUC_CAPTURE_LIST_INDEX_PF , +GUC_CAPTURE_LIST_TYPE_ENGINE_CLASS ,GUC_RENDER_CLASS ); +/* skip if extlists was previously allocated */ +if (!list || guc->capture->extlists) +return ; + + num_steer_regs =ARRAY_SIZE (xe_extregs); +if (__has_xehpg_extregs (ipver)) + num_steer_regs +=ARRAY_SIZE (xehpg_extregs); + + sseu = >->info.sseu; +for_each_instdone_gslice_dss_xehp (i915, sseu, iter, slice, subslice) { + num_tot_regs += num_steer_regs; + } + +if (!num_tot_regs) +return ; + +/* allocate an extra for an end marker */ + extlists =kcalloc (2 ,sizeof (struct __guc_mmio_reg_descr_group ),GFP_KERNEL ); +if (!extlists) +return ; + +if (__alloc_ext_regs (&extlists[0 ], list, num_tot_regs)) { +kfree (extlists); +return ; + } + + extarray = extlists[0 ].extlist; +for_each_instdone_gslice_dss_xehp (i915, sseu, iter, slice, subslice) { +for (i =0 ; i <ARRAY_SIZE (xe_extregs); ++i) { +__fill_ext_reg (extarray, &xe_extregs[i], slice, subslice); + ++extarray; + } +if (__has_xehpg_extregs (ipver)) { +for (i =0 ; i <ARRAY_SIZE (xehpg_extregs); ++i) { +__fill_ext_reg (extarray, &xehpg_extregs[i], slice, subslice); + ++extarray; + } + } + } + +drm_dbg (&i915->drm,"GuC-capture found %d-ext-regs.\n" , num_tot_regs); + guc->capture->extlists = extlists; +} +static const struct __guc_mmio_reg_descr_group *guc_capture_get_device_reglist (struct intel_guc *guc) {struct drm_i915_private *i915 =guc_to_gt (guc)->i915; -if (IS_TIGERLAKE (i915) ||IS_ROCKETLAKE (i915) || -IS_ALDERLAKE_S (i915) ||IS_ALDERLAKE_P (i915)) { +if (GRAPHICS_VER (i915) >11 ) {/* * For certain engine classes, there are slice and subslice * level registers requiring steering. We allocate and populate * these at init time based on hw config add it as an extension * list at the end of the pre-populated render list. */ -guc_capture_alloc_steered_lists_xe_lpd (guc, xe_lpd_lists); +if (IS_DG2 (i915)) +guc_capture_alloc_steered_lists_xe_hpg (guc, xe_lpd_lists,IP_VER (12 ,55 )); +else if (IS_XEHPSDV (i915)) +guc_capture_alloc_steered_lists_xe_hpg (guc, xe_lpd_lists,IP_VER (12 ,50 )); +else +guc_capture_alloc_steered_lists_xe_lpd (guc, xe_lpd_lists); +return xe_lpd_lists; }
Signature · 1 line
2.25.1
PATCH v11 5/13 drm/i915/guc: Add Gen9 registers for GuC error state capture.
In reply to Alan PrevinAbstract out a Gen9 register list as the default for all other platforms we don't yet formally support GuC submission on.
--- .../gpu/drm/i915/gt/uc/intel_guc_capture.c | 82 +++++++++++++------ 1 file changed, 59 insertions(+), 23 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +59 -23
@@ -22,15 +22,24 @@* NOTE1: For engine-registers, GuC only needs the register offsets * from the engine-mmio-base */ +#define COMMON_BASE_GLOBAL () \ + {FORCEWAKE_MT, 0, 0, "FORCEWAKE"} + +#define COMMON_GEN9BASE_GLOBAL () \ + {GEN8_FAULT_TLB_DATA0, 0, 0, "GEN8_FAULT_TLB_DATA0"}, \ + {GEN8_FAULT_TLB_DATA1, 0, 0, "GEN8_FAULT_TLB_DATA1"}, \ + {ERROR_GEN6, 0, 0, "ERROR_GEN6"}, \ + {DONE_REG, 0, 0, "DONE_REG"}, \ + {HSW_GTT_CACHE_EN, 0, 0, "HSW_GTT_CACHE_EN"} +#define COMMON_GEN12BASE_GLOBAL () \ {GEN12_FAULT_TLB_DATA0, 0, 0, "GEN12_FAULT_TLB_DATA0"}, \ {GEN12_FAULT_TLB_DATA1, 0, 0, "GEN12_FAULT_TLB_DATA1"}, \ - {FORCEWAKE_MT, 0, 0, "FORCEWAKE"}, \ {GEN12_AUX_ERR_DBG, 0, 0, "AUX_ERR_DBG"}, \ {GEN12_GAM_DONE, 0, 0, "GAM_DONE"}, \ {GEN12_RING_FAULT_REG, 0, 0, "FAULT_REG"} -#define COMMON_GEN12BASE_ENGINE_INSTANCE () \ +#define COMMON_BASE_ENGINE_INSTANCE () \ {RING_PSMI_CTL(0), 0, 0, "RC PSMI"}, \ {RING_ESR(0), 0, 0, "ESR"}, \ {RING_DMA_FADD(0), 0, 0, "RING_DMA_FADD_LDW"}, \
@@ -64,11 +73,13 @@ {GEN8_RING_PDP_LDW(0, 3), 0, 0, "PDP3_LDW"}, \ {GEN8_RING_PDP_UDW(0, 3), 0, 0, "PDP3_UDW"} -#define COMMON_GEN12BASE_HAS_EU () \ +#define COMMON_BASE_HAS_EU () \ {EIR, 0, 0, "EIR"} +#define COMMON_BASE_RENDER () \ + {GEN7_SC_INSTDONE, 0, 0, "GEN7_SC_INSTDONE"} +#define COMMON_GEN12BASE_RENDER () \ - {GEN7_SC_INSTDONE, 0, 0, "GEN7_SC_INSTDONE"}, \ {GEN12_SC_INSTDONE_EXTRA, 0, 0, "GEN12_SC_INSTDONE_EXTRA"}, \ {GEN12_SC_INSTDONE_EXTRA2, 0, 0, "GEN12_SC_INSTDONE_EXTRA2"}
@@ -80,28 +91,26 @@/* XE_LPD - Global */ static const struct __guc_mmio_reg_descr xe_lpd_global_regs[] = { +COMMON_BASE_GLOBAL (), +COMMON_GEN9BASE_GLOBAL (),COMMON_GEN12BASE_GLOBAL (), };/* XE_LPD - Render / Compute Per-Class */ static const struct __guc_mmio_reg_descr xe_lpd_rc_class_regs[] = { -COMMON_GEN12BASE_HAS_EU (), +COMMON_BASE_HAS_EU (), +COMMON_BASE_RENDER (),COMMON_GEN12BASE_RENDER (), }; -/* XE_LPD - Render / Compute Per-Engine-Instance */ +/* GEN9/XE_LPD - Render / Compute Per-Engine-Instance */ static const struct __guc_mmio_reg_descr xe_lpd_rc_inst_regs[] = { -COMMON_GEN12BASE_ENGINE_INSTANCE (), +COMMON_BASE_ENGINE_INSTANCE (), }; -/* XE_LPD - Media Decode/Encode Per-Class */ -static const struct __guc_mmio_reg_descr xe_lpd_vd_class_regs[] = { -COMMON_GEN12BASE_ENGINE_INSTANCE (), -}; - -/* XE_LPD - Media Decode/Encode Per-Engine-Instance */ +/* GEN9/XE_LPD - Media Decode/Encode Per-Engine-Instance */ static const struct __guc_mmio_reg_descr xe_lpd_vd_inst_regs[] = { -COMMON_GEN12BASE_ENGINE_INSTANCE (), +COMMON_BASE_ENGINE_INSTANCE (), };/* XE_LPD - Video Enhancement Per-Class */
@@ -109,18 +118,33 @@ static const struct __guc_mmio_reg_descr xe_lpd_vec_class_regs[] = { COMMON_GEN12BASE_VEC(), }; -/* XE_LPD - Video Enhancement Per-Engine-Instance */ +/* GEN9/XE_LPD - Video Enhancement Per-Engine-Instance */ static const struct __guc_mmio_reg_descr xe_lpd_vec_inst_regs[] = { -COMMON_GEN12BASE_ENGINE_INSTANCE (), +COMMON_BASE_ENGINE_INSTANCE (), }; -/* XE_LPD - Blitter Per-Engine-Instance */ +/* GEN9/XE_LPD - Blitter Per-Engine-Instance */ static const struct __guc_mmio_reg_descr xe_lpd_blt_inst_regs[] = { -COMMON_GEN12BASE_ENGINE_INSTANCE (), +COMMON_BASE_ENGINE_INSTANCE (), }; -/* XE_LPD - Blitter Per-Class */ -/* XE_LPD - Media Decode/Encode Per-Class */ +/* GEN9 - Global */ +static const struct __guc_mmio_reg_descr default_global_regs[] = { +COMMON_BASE_GLOBAL (), +COMMON_GEN9BASE_GLOBAL (), +}; + +static const struct __guc_mmio_reg_descr default_rc_class_regs[] = { +COMMON_BASE_HAS_EU (), +COMMON_BASE_RENDER (), +}; + +/* +* Empty lists: +* GEN9/XE_LPD - Blitter Per-Class +* GEN9/XE_LPD - Media Decode/Encode Per-Class +* GEN9 - VEC Class +*/ static const struct __guc_mmio_reg_descr empty_regs_list[] = { };
@@ -137,6 +161,19 @@ static const struct __guc_mmio_reg_descr empty_regs_list[] = { }/* List of lists */ +static struct __guc_mmio_reg_descr_group default_lists[] = { +MAKE_REGLIST (default_global_regs,PF ,GLOBAL ,0 ), +MAKE_REGLIST (default_rc_class_regs,PF ,ENGINE_CLASS ,GUC_RENDER_CLASS ), +MAKE_REGLIST (xe_lpd_rc_inst_regs,PF ,ENGINE_INSTANCE ,GUC_RENDER_CLASS ), +MAKE_REGLIST (empty_regs_list,PF ,ENGINE_CLASS ,GUC_VIDEO_CLASS ), +MAKE_REGLIST (xe_lpd_vd_inst_regs,PF ,ENGINE_INSTANCE ,GUC_VIDEO_CLASS ), +MAKE_REGLIST (empty_regs_list,PF ,ENGINE_CLASS ,GUC_VIDEOENHANCE_CLASS ), +MAKE_REGLIST (xe_lpd_vec_inst_regs,PF ,ENGINE_INSTANCE ,GUC_VIDEOENHANCE_CLASS ), +MAKE_REGLIST (empty_regs_list,PF ,ENGINE_CLASS ,GUC_BLITTER_CLASS ), +MAKE_REGLIST (xe_lpd_blt_inst_regs,PF ,ENGINE_INSTANCE ,GUC_BLITTER_CLASS ), + {} +}; +static const struct __guc_mmio_reg_descr_group xe_lpd_lists[] = {MAKE_REGLIST (xe_lpd_global_regs,PF ,GLOBAL ,0 ),MAKE_REGLIST (xe_lpd_rc_class_regs,PF ,ENGINE_CLASS ,GUC_RENDER_CLASS ),
@@ -376,9 +413,8 @@ guc_capture_get_device_reglist(struct intel_guc *guc)return xe_lpd_lists; } -drm_warn (&i915->drm,"No GuC-capture register lists\n" ); - -return NULL ; +/* if GuC submission is enabled on a non-POR platform, just use a common baseline */ +return default_lists; } static const char *
Signature · 1 line
2.25.1
PATCH v11 6/13 drm/i915/guc: Add GuC's error state capture output structures.
In reply to Alan PrevinAdd GuC's error capture output structures and definitions as how they would appear in GuC log buffer's error capture subregion after an error state capture G2H event notification.
--- drivers/gpu/drm/i915/gt/uc/guc_capture_fwif.h | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+)
drivers/gpu/drm/i915/gt/uc/guc_capture_fwif.h +47 -0
@@ -55,6 +55,53 @@ struct __guc_mmio_reg_descr_group {struct __guc_mmio_reg_descr *extlist;/* only used for steered registers */ }; +/** +* struct guc_state_capture_header_t / struct guc_state_capture_t / +* guc_state_capture_group_header_t / guc_state_capture_group_t +* +* Prior to resetting engines that have hung or faulted, GuC microkernel +* reports the engine error-state (register values that was read) by +* logging them into the shared GuC log buffer using these hierarchy +* of structures. +*/ +struct guc_state_capture_header_t { +u32 owner; +#define CAP_HDR_CAPTURE_VFID GENMASK(7, 0) +u32 info; +#define CAP_HDR_CAPTURE_TYPE GENMASK(3, 0)/* see enum guc_capture_type */ +#define CAP_HDR_ENGINE_CLASS GENMASK(7, 4)/* see GUC_MAX_ENGINE_CLASSES */ +#define CAP_HDR_ENGINE_INSTANCE GENMASK(11, 8) +u32 lrca;/* if type-instance, LRCA (address) that hung, else set to ~0 */ +u32 guc_id;/* if type-instance, context index of hung context, else set to ~0 */ +u32 num_mmios; +#define CAP_HDR_NUM_MMIOS GENMASK(9, 0) +} __packed; + +struct guc_state_capture_t { +struct guc_state_capture_header_t header; +struct guc_mmio_reg mmio_entries[0 ]; +} __packed; + +enum guc_capture_group_types { +GUC_STATE_CAPTURE_GROUP_TYPE_FULL , +GUC_STATE_CAPTURE_GROUP_TYPE_PARTIAL , +GUC_STATE_CAPTURE_GROUP_TYPE_MAX , +}; + +struct guc_state_capture_group_header_t { +u32 owner; +#define CAP_GRP_HDR_CAPTURE_VFID GENMASK(7, 0) +u32 info; +#define CAP_GRP_HDR_NUM_CAPTURES GENMASK(7, 0) +#define CAP_GRP_HDR_CAPTURE_TYPE GENMASK(15, 8)/* guc_capture_group_types */ +} __packed; + +/* this is the top level structure where an error-capture dump starts */ +struct guc_state_capture_group_t { +struct guc_state_capture_group_header_t grp_header; +struct guc_state_capture_t capture_entries[0 ]; +} __packed; +/** * struct __guc_capture_ads_cache *
Signature · 1 line
2.25.1
PATCH v11 7/13 drm/i915/guc: Update GuC-log relay function names
In reply to Alan PrevinFor the sake of better code readibility, change previous relay logging function names with "capture_logs" to "copy_debug_logs" to differentiate from error capture functions that will use a different region of the same buffer.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 35 ++++++++++++---------- 1 file changed, 19 insertions(+), 16 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +19 -16
@@ -12,7 +12,7 @@#include "i915_memcpy.h" #include "intel_guc_log.h" -static void guc_log_capture_logs (struct intel_guc_log *log); +static void guc_log_copy_debuglogs_for_relay (struct intel_guc_log *log);/** * DOC: GuC firmware log
@@ -198,7 +198,7 @@ static unsigned int guc_get_log_buffer_size(enum guc_log_buffer_type type)return 0 ; } -static void guc_read_update_log_buffer (struct intel_guc_log *log) +static void _guc_log_copy_debuglogs_for_relay (struct intel_guc_log *log) {unsigned int buffer_size, read_offset, write_offset, bytes_to_copy, full_cnt;struct guc_log_buffer_state *log_buf_state, *log_buf_snapshot_state;
@@ -223,7 +223,7 @@ static void guc_read_update_log_buffer(struct intel_guc_log *log)* Used rate limited to avoid deluge of messages, logs might be * getting consumed by User at a slow rate. */ -DRM_ERROR_RATELIMITED ("no sub-buffer to capture logs\n" ); +DRM_ERROR_RATELIMITED ("no sub-buffer to copy general logs\n" ); log->relay.full_count++; goto out_unlock;
@@ -301,15 +301,15 @@ static void guc_read_update_log_buffer(struct intel_guc_log *log)mutex_unlock (&log->relay.lock); } -static void capture_logs_work (struct work_struct *work) +static void copy_debug_logs_work (struct work_struct *work) {struct intel_guc_log *log = container_of(work, struct intel_guc_log, relay.flush_work); -guc_log_capture_logs (log); +guc_log_copy_debuglogs_for_relay (log); } -static int guc_log_map (struct intel_guc_log *log) +static int guc_log_relay_map (struct intel_guc_log *log) {void *vaddr;
@@ -332,7 +332,7 @@ static int guc_log_map(struct intel_guc_log *log)return 0 ; } -static void guc_log_unmap (struct intel_guc_log *log) +static void guc_log_relay_unmap (struct intel_guc_log *log) {lockdep_assert_held (&log->relay.lock);
@@ -343,7 +343,7 @@ static void guc_log_unmap(struct intel_guc_log *log)void intel_guc_log_init_early (struct intel_guc_log *log) {mutex_init (&log->relay.lock); -INIT_WORK (&log->relay.flush_work, capture_logs_work); +INIT_WORK (&log->relay.flush_work, copy_debug_logs_work); log->relay.started = false; }
@@ -358,8 +358,11 @@ static int guc_log_relay_create(struct intel_guc_log *log)lockdep_assert_held (&log->relay.lock);GEM_BUG_ON (!log->vma); -/* Keep the size of sub buffers same as shared log buffer */ - subbuf_size = log->vma->size; +/* +* Keep the size of sub buffers same as shared log buffer +* but GuC log-events excludes the error-state-capture logs +*/ + subbuf_size = log->vma->size -CAPTURE_BUFFER_SIZE ;/* * Store up to 8 snapshots, which is large enough to buffer sufficient
@@ -394,13 +397,13 @@ static void guc_log_relay_destroy(struct intel_guc_log *log) log->relay.channel =NULL ; } -static void guc_log_capture_logs (struct intel_guc_log *log) +static void guc_log_copy_debuglogs_for_relay (struct intel_guc_log *log) {struct intel_guc *guc =log_to_guc (log);struct drm_i915_private *dev_priv =guc_to_gt (guc)->i915;intel_wakeref_t wakeref; -guc_read_update_log_buffer (log); +_guc_log_copy_debuglogs_for_relay (log);/* * Generally device is expected to be active only at this
@@ -566,7 +569,7 @@ int intel_guc_log_relay_open(struct intel_guc_log *log)if (ret) goto out_unlock; - ret =guc_log_map (log); + ret =guc_log_relay_map (log);if (ret) goto out_relay;
@@ -616,8 +619,8 @@ void intel_guc_log_relay_flush(struct intel_guc_log *log) with_intel_runtime_pm(guc_to_gt(guc)->uncore->rpm, wakeref)guc_action_flush_log (guc); -/* GuC would have updated log buffer by now, so capture it */ -guc_log_capture_logs (log); +/* GuC would have updated log buffer by now, so copy it */ +guc_log_copy_debuglogs_for_relay (log); }/*
@@ -646,7 +649,7 @@ void intel_guc_log_relay_close(struct intel_guc_log *log)mutex_lock (&log->relay.lock);GEM_BUG_ON (!intel_guc_log_relay_created (log)); -guc_log_unmap (log); +guc_log_relay_unmap (log);guc_log_relay_destroy (log);mutex_unlock (&log->relay.lock); }
Signature · 1 line
2.25.1
PATCH v11 8/13 drm/i915/guc: Add capture region into intel_guc_log
In reply to Alan PrevinGuC log buffer regions for debug-log-events, crash-dumps and error-state-capture are all part of a single bo allocation that also includes the guc_log_buffer_state structures. Now that we support it, increase the size allocation for error-capture.
Since the error-capture region is accessed at non-deterministic times (as part of GuC triggered context reset) while debug-log- events region is accessed as part of relay logging or during debugfs triggered dumps, move the mapping and unmapping of the shared buffer into intel_guc_log_create and intel_guc_log_destroy so that it's always mapped throughout life of GuC operation.
Additionally, while here, update the guc log region layout diagram to follow the order according to the enum definition as per the GuC interface.
NOTE: A future effort to visit (part of baseline code) is that buf_addr should be updated to be a io_sys_map and use the io_sys_map wrapper functions to access the various GuC log buffer regions.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 59 +++++++++++++--------- drivers/gpu/drm/i915/gt/uc/intel_guc_log.h | 3 +- 2 files changed, 37 insertions(+), 25 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +35 -24
@@ -26,7 +26,8 @@ static void guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log);static int guc_action_flush_log_complete (struct intel_guc *guc) {u32 action[] = { -INTEL_GUC_ACTION_LOG_BUFFER_FILE_FLUSH_COMPLETE +INTEL_GUC_ACTION_LOG_BUFFER_FILE_FLUSH_COMPLETE , +GUC_DEBUG_LOG_BUFFER };return intel_guc_send (guc, action,ARRAY_SIZE (action));
@@ -137,7 +138,7 @@ static void guc_move_to_next_buf(struct intel_guc_log *log)smp_wmb ();/* All data has been written, so now move the offset of sub buffer. */ -relay_reserve (log->relay.channel, log->vma->obj->base.size); +relay_reserve (log->relay.channel, log->vma->obj->base.size -CAPTURE_BUFFER_SIZE );/* Switch to the next sub buffer */ relay_flush (log->relay.channel);
@@ -213,7 +214,8 @@ static void _guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log) goto out_unlock;/* Get the pointer to shared GuC log buffer */ - log_buf_state = src_data = log->relay.buf_addr; + src_data = log->buf_addr; + log_buf_state = src_data;/* Get the pointer to local buffer to store the logs */ log_buf_snapshot_state = dst_data =guc_get_write_buffer (log);
@@ -233,7 +235,8 @@ static void _guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log) src_data +=PAGE_SIZE ; dst_data +=PAGE_SIZE ; -for (type =GUC_DEBUG_LOG_BUFFER ; type <GUC_MAX_LOG_BUFFER ; type++) { +/* For relay logging, we exclude error state capture */ +for (type =GUC_DEBUG_LOG_BUFFER ; type <=GUC_CRASH_DUMP_LOG_BUFFER ; type++) {/* * Make a copy of the state structure, inside GuC log buffer * (which is uncached mapped), on the stack to avoid reading
@@ -311,23 +314,17 @@ static void copy_debug_logs_work(struct work_struct *work)static int guc_log_relay_map (struct intel_guc_log *log) { -void *vaddr; -lockdep_assert_held (&log->relay.lock); -if (!log->vma) +if (!log->vma || !log->buf_addr)return -ENODEV ;/* -* Create a WC (Uncached for read) vmalloc mapping of log -* buffer pages, so that we can directly get the data -* (up-to-date) from memory. +* WC vmalloc mapping of log buffer pages was done at +* GuC Log Init time, but lets keep a ref for book-keeping */ - vaddr =i915_gem_object_pin_map_unlocked (log->vma->obj,I915_MAP_WC ); -if (IS_ERR (vaddr)) -return PTR_ERR (vaddr); - - log->relay.buf_addr = vaddr; +i915_gem_object_get (log->vma->obj); + log->relay.buf_in_use = true;return 0 ; }
@@ -336,8 +333,8 @@ static void guc_log_relay_unmap(struct intel_guc_log *log) {lockdep_assert_held (&log->relay.lock); -i915_gem_object_unpin_map (log->vma->obj); - log->relay.buf_addr =NULL ; +i915_gem_object_put (log->vma->obj); + log->relay.buf_in_use = false; }void intel_guc_log_init_early (struct intel_guc_log *log)
@@ -443,6 +440,7 @@ int intel_guc_log_create(struct intel_guc_log *log) {struct intel_guc *guc =log_to_guc (log);struct i915_vma *vma; +void *vaddr;u32 guc_log_size;int ret;
@@ -450,20 +448,21 @@ int intel_guc_log_create(struct intel_guc_log *log)/* * GuC Log buffer Layout +* (this ordering must follow "enum guc_log_buffer_type" definition) * * +===============================+ 00B -* | Crash dump state header | -* +-------------------------------+ 32B * | Debug state header | +* +-------------------------------+ 32B +* | Crash dump state header | * +-------------------------------+ 64B * | Capture state header | * +-------------------------------+ 96B * | | * +===============================+ PAGE_SIZE (4KB) -* | Crash Dump logs | -* +===============================+ + CRASH_SIZE * | Debug logs | * +===============================+ + DEBUG_SIZE +* | Crash Dump logs | +* +===============================+ + CRASH_SIZE * | Capture logs | * +===============================+ + CAPTURE_SIZE */
@@ -477,6 +476,17 @@ int intel_guc_log_create(struct intel_guc_log *log) } log->vma = vma; +/* +* Create a WC (Uncached for read) vmalloc mapping up front immediate access to +* data from memory during critical events such as error capture +*/ + vaddr =i915_gem_object_pin_map_unlocked (log->vma->obj,I915_MAP_WC ); +if (IS_ERR (vaddr)) { + ret =PTR_ERR (vaddr); +i915_vma_unpin_and_release (&log->vma,0 ); + goto err; + } + log->buf_addr = vaddr; log->level =__get_default_log_level (log); DRM_DEBUG_DRIVER("guc_log_level=%d (%s, verbose:%s, verbosity:%d)\n",
@@ -487,13 +497,14 @@ int intel_guc_log_create(struct intel_guc_log *log)return 0 ; err: -DRM_ERROR ("Failed to allocate GuC log buffer. %d\n" , ret); +DRM_ERROR ("Failed to allocate or map GuC log buffer. %d\n" , ret);return ret; }void intel_guc_log_destroy (struct intel_guc_log *log) { -i915_vma_unpin_and_release (&log->vma,0 ); + log->buf_addr =NULL ; +i915_vma_unpin_and_release (&log->vma,I915_VMA_RELEASE_MAP ); }int intel_guc_log_set_level (struct intel_guc_log *log,u32 level)
@@ -538,7 +549,7 @@ int intel_guc_log_set_level(struct intel_guc_log *log, u32 level)bool intel_guc_log_relay_created (const struct intel_guc_log *log) { -return log->relay.buf_addr; +return log->buf_addr; }int intel_guc_log_relay_open (struct intel_guc_log *log)
drivers/gpu/drm/i915/gt/uc/intel_guc_log.h +2 -1
@@ -49,8 +49,9 @@ struct intel_guc;struct intel_guc_log {u32 level;struct i915_vma *vma; +void *buf_addr;struct { -void *buf_addr; +bool buf_in_use;bool started;struct work_struct flush_work;struct rchan *channel;
Signature · 1 line
2.25.1
PATCH v11 9/13 drm/i915/guc: Check sizing of guc_capture output
In reply to Alan PrevinAdd intel_guc_capture_output_min_size_est function to provide a reasonable minimum size for error-capture region before allocating the shared buffer.
--- .../gpu/drm/i915/gt/uc/intel_guc_capture.c | 48 +++++++++++++++++++ .../gpu/drm/i915/gt/uc/intel_guc_capture.h | 1 + drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 7 ++- 3 files changed, 55 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +48 -0
@@ -663,6 +663,54 @@ intel_guc_capture_getnullheader(struct intel_guc *guc,return 0 ; } +#define GUC_CAPTURE_OVERBUFFER_MULTIPLIER 3 +int +intel_guc_capture_output_min_size_est (struct intel_guc *guc) +{ +struct intel_gt *gt =guc_to_gt (guc); +struct intel_engine_cs *engine; +enum intel_engine_id id; +int worst_min_size =0 , num_regs =0 ; +size_t tmp =0 ; + +/* +* If every single engine-instance suffered a failure in quick succession but +* were all unrelated, then a burst of multiple error-capture events would dump +* registers for every one engine instance, one at a time. In this case, GuC +* would even dump the global-registers repeatedly. +* +* For each engine instance, there would be 1 x guc_state_capture_group_t output +* followed by 3 x guc_state_capture_t lists. The latter is how the register +* dumps are split across different register types (where the '3' are global vs class +* vs instance). Finally, let's multiply the whole thing by 3x (just so we are +* not limited to just 1 round of data in a worst case full register dump log) +* +* NOTE: intel_guc_log that allocates the log buffer would round this size up to +* a power of two. +*/ + +for_each_engine (engine, gt, id) { + worst_min_size +=sizeof (struct guc_state_capture_group_header_t ) + + (3 *sizeof (struct guc_state_capture_header_t )); + +if (!intel_guc_capture_getlistsize (guc,0 ,GUC_CAPTURE_LIST_TYPE_GLOBAL ,0 , &tmp)) + num_regs += tmp; + +if (!intel_guc_capture_getlistsize (guc,0 ,GUC_CAPTURE_LIST_TYPE_ENGINE_CLASS , + engine->class, &tmp)) { + num_regs += tmp; + } +if (!intel_guc_capture_getlistsize (guc,0 ,GUC_CAPTURE_LIST_TYPE_ENGINE_INSTANCE , + engine->class, &tmp)) { + num_regs += tmp; + } + } + + worst_min_size += (num_regs *sizeof (struct guc_mmio_reg )); + +return (worst_min_size *GUC_CAPTURE_OVERBUFFER_MULTIPLIER ); +} +static void guc_capture_free_ads_cache (struct intel_guc_state_capture *gc) {
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.h +1 -0
@@ -11,6 +11,7 @@struct guc_gt_system_info ;struct intel_guc ; +int intel_guc_capture_output_min_size_est (struct intel_guc *guc);int intel_guc_capture_getlist (struct intel_guc *guc,u32 owner,u32 type,u32 classid,void **outptr); int intel_guc_capture_getlistsize(struct intel_guc *guc, u32 owner, u32 type, u32 classid,
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +6 -1
@@ -7,10 +7,11 @@#include <linux/string_helpers.h> #include "gt/intel_gt.h" +#include "intel_guc_capture.h" +#include "intel_guc_log.h" #include "i915_drv.h" #include "i915_irq.h" #include "i915_memcpy.h" -#include "intel_guc_log.h" static void guc_log_copy_debuglogs_for_relay (struct intel_guc_log *log);
@@ -466,6 +467,10 @@ int intel_guc_log_create(struct intel_guc_log *log)* | Capture logs | * +===============================+ + CAPTURE_SIZE */ +if (intel_guc_capture_output_min_size_est (guc) >CAPTURE_BUFFER_SIZE ) +DRM_WARN ("GuC log buffer for state_capture maybe too small. %d < %d\n" , +CAPTURE_BUFFER_SIZE ,intel_guc_capture_output_min_size_est (guc)); + guc_log_size =PAGE_SIZE +CRASH_BUFFER_SIZE +DEBUG_BUFFER_SIZE +CAPTURE_BUFFER_SIZE ;
Signature · 1 line
2.25.1
PATCH v11 10/13 drm/i915/guc: Extract GuC error capture lists on G2H notification.
In reply to Alan Previn- Upon the G2H Notify-Err-Capture event, parse through the GuC Log Buffer (error-capture-subregion) and generate one or more capture-nodes. A single node represents a single "engine- instance-capture-dump" and contains at least 3 register lists:
global, engine-class and engine-instance. An internal link list is maintained to store one or more nodes.
- Because the link-list node generation happen before the call to i915_gpu_codedump, duplicate global and engine-class register lists for each engine-instance register dump if we find dependent-engine resets in a engine-capture-group.
- When i915_gpu_coredump calls into capture_engine, (in a subsequent patch) we detach the matching node (guc-id, LRCA, etc) from the link list above and attach it to i915_gpu_coredump's intel_engine_coredump structure when have matching LRCA/guc-id/engine-instance.
Additional notes to be aware of:
- GuC generates the error capture dump into the GuC log buffer but this buffer is one big log buffer with 3 independent subregions within it. Each subregion is populated with different content and used in different ways and timings but all regions operate behave as independent ring buffers. Each guc-log subregion (general-logs, crash-dump and error- capture) has it's own guc_log_buffer_state that contain independent read and write pointers.
--- .../gpu/drm/i915/gt/uc/abi/guc_actions_abi.h | 7 + drivers/gpu/drm/i915/gt/uc/guc_capture_fwif.h | 56 ++ .../gpu/drm/i915/gt/uc/intel_guc_capture.c | 561 +++++++++++++++++- .../gpu/drm/i915/gt/uc/intel_guc_capture.h | 1 + drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 26 +- drivers/gpu/drm/i915/gt/uc/intel_guc_log.h | 4 + .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 10 +- 7 files changed, 652 insertions(+), 13 deletions(-)
drivers/gpu/drm/i915/gt/uc/abi/guc_actions_abi.h +7 -0
@@ -171,4 +171,11 @@ enum intel_guc_sleep_state_status {#define GUC_LOG_CONTROL_VERBOSITY_MASK (0xF << GUC_LOG_CONTROL_VERBOSITY_SHIFT)#define GUC_LOG_CONTROL_DEFAULT_LOGGING (1 << 8) +enum intel_guc_state_capture_event_status { +INTEL_GUC_STATE_CAPTURE_EVENT_STATUS_SUCCESS =0x0 , +INTEL_GUC_STATE_CAPTURE_EVENT_STATUS_NOSPACE =0x1 , +}; + +#define INTEL_GUC_STATE_CAPTURE_EVENT_STATUS_MASK 0x000000FF +#endif /* _ABI_GUC_ACTIONS_ABI_H */
drivers/gpu/drm/i915/gt/uc/guc_capture_fwif.h +56 -0
68 lines not on this page · raw message
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +558 -3
596 lines not on this page · raw message
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.h +1 -0
@@ -11,6 +11,7 @@struct guc_gt_system_info ;struct intel_guc ; +void intel_guc_capture_process (struct intel_guc *guc);int intel_guc_capture_output_min_size_est (struct intel_guc *guc);int intel_guc_capture_getlist (struct intel_guc *guc,u32 owner,u32 type,u32 classid,void **outptr);
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +20 -6
@@ -159,9 +159,9 @@ static void *guc_get_write_buffer(struct intel_guc_log *log)return relay_reserve (log->relay.channel,0 ); } -static bool guc_check_log_buf_overflow (struct intel_guc_log *log, -enum guc_log_buffer_type type, -unsigned int full_cnt) +bool intel_guc_check_log_buf_overflow (struct intel_guc_log *log, +enum guc_log_buffer_type type, +unsigned int full_cnt) {unsigned int prev_full_cnt = log->stats[type].sampled_overflow;bool overflow = false;
@@ -184,7 +184,7 @@ static bool guc_check_log_buf_overflow(struct intel_guc_log *log,return overflow; } -static unsigned int guc_get_log_buffer_size (enum guc_log_buffer_type type) +unsigned int intel_guc_get_log_buffer_size (enum guc_log_buffer_type type) {switch (type) {case GUC_DEBUG_LOG_BUFFER :
@@ -200,6 +200,20 @@ static unsigned int guc_get_log_buffer_size(enum guc_log_buffer_type type)return 0 ; } +size_t intel_guc_get_log_buffer_offset (enum guc_log_buffer_type type) +{ +enum guc_log_buffer_type i; +size_t offset =PAGE_SIZE ;/* for the log_buffer_states */ + +for (i =GUC_DEBUG_LOG_BUFFER ; i <GUC_MAX_LOG_BUFFER ; ++i) { +if (i == type) +break ; + offset +=intel_guc_get_log_buffer_size (i); + } + +return offset; +} +static void _guc_log_copy_debuglogs_for_relay (struct intel_guc_log *log) {unsigned int buffer_size, read_offset, write_offset, bytes_to_copy, full_cnt;
@@ -245,14 +259,14 @@ static void _guc_log_copy_debuglogs_for_relay(struct intel_guc_log *log)*/ memcpy (&log_buf_state_local, log_buf_state,sizeof (struct guc_log_buffer_state )); - buffer_size =guc_get_log_buffer_size (type); + buffer_size =intel_guc_get_log_buffer_size (type); read_offset = log_buf_state_local.read_ptr; write_offset = log_buf_state_local.sampled_write_ptr; full_cnt = log_buf_state_local.buffer_full_cnt;/* Bookkeeping stuff */ log->stats[type].flush += log_buf_state_local.flush_to_file; - new_overflow =guc_check_log_buf_overflow (log, type, full_cnt); + new_overflow =intel_guc_check_log_buf_overflow (log, type, full_cnt);/* Update the state of shared log buffer */ log_buf_state->read_ptr = write_offset;
drivers/gpu/drm/i915/gt/uc/intel_guc_log.h +4 -0
@@ -67,6 +67,10 @@ struct intel_guc_log { };void intel_guc_log_init_early (struct intel_guc_log *log); +bool intel_guc_check_log_buf_overflow (struct intel_guc_log *log,enum guc_log_buffer_type type, +unsigned int full_cnt); +unsigned int intel_guc_get_log_buffer_size (enum guc_log_buffer_type type); +size_t intel_guc_get_log_buffer_offset (enum guc_log_buffer_type type);int intel_guc_log_create (struct intel_guc_log *log);void intel_guc_log_destroy (struct intel_guc_log *log);
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +6 -4
@@ -25,6 +25,7 @@#include "gt/intel_ring.h" #include "intel_guc_ads.h" +#include "intel_guc_capture.h" #include "intel_guc_submission.h" #include "i915_drv.h"
@@ -4095,17 +4096,18 @@ int intel_guc_context_reset_process_msg(struct intel_guc *guc,int intel_guc_error_capture_process_msg (struct intel_guc *guc,const u32 *msg,u32 len) { -int status; +u32 status;if (unlikely (len !=1 )) {drm_dbg (&guc_to_gt (guc)->i915->drm,"Invalid length %u" , len);return -EPROTO ; } - status = msg[0 ]; -drm_info (&guc_to_gt (guc)->i915->drm,"Got error capture: status = %d" , status); + status = msg[0 ] &INTEL_GUC_STATE_CAPTURE_EVENT_STATUS_MASK ; +if (status ==INTEL_GUC_STATE_CAPTURE_EVENT_STATUS_NOSPACE ) +drm_warn (&guc_to_gt (guc)->i915->drm,"G2H-Error capture no space" ); -/* FIXME: Do something with the capture */ +intel_guc_capture_process (guc);return 0 ; }
Signature · 1 line
2.25.1
PATCH v11 11/13 drm/i915/guc: Pre-allocate output nodes for extraction
In reply to Alan PrevinIn the rare but possible scenario where we are in the midst of multiple GuC error-capture (and engine reset) events and the user also triggers a forced full GT reset or the internal watchdog triggers the same, intel_guc_submission_reset_prepare's call to flush_work(&guc->ct.requests.worker) can cause the G2H message handler to trigger intel_guc_capture_store_snapshot upon receiving new G2H error-capture notifications. This can happen despite the prior call to disable_submission(guc);. However, there's no race-free way for intel_guc_capture_store_snapshot to know that we are in the midst of a reset. That said, we can never dynamically allocate the output nodes in this handler. Thus, we shall pre-allocate a fixed number of empty nodes up front (at the time of ADS registration) that we can consume from or return to an internal cached list of nodes.
--- drivers/gpu/drm/i915/gt/uc/guc_capture_fwif.h | 19 +- .../gpu/drm/i915/gt/uc/intel_guc_capture.c | 177 ++++++++++++++---- 2 files changed, 161 insertions(+), 35 deletions(-)
drivers/gpu/drm/i915/gt/uc/guc_capture_fwif.h +17 -2
@@ -31,7 +31,7 @@ struct __guc_capture_bufstate {* * A single unit of extracted error-capture output data grouped together * at an engine-instance level. We keep these nodes in a linked list. -* See outlist below. +* See cachelist and outlist below. */ struct __guc_capture_parsed_output {/*
@@ -190,7 +190,22 @@ struct intel_guc_state_capture {void *ads_null_cache;/** -* @outlist: allocated nodes with parsed engine-instance error capture data +* @cachelist: Pool of pre-allocated nodes for error capture output +* +* We need this pool of pre-allocated nodes because we cannot +* dynamically allocate new nodes when receiving the G2H notification +* because the event handlers for all G2H event-processing is called +* by the ct processing worker queue and when that queue is being +* processed, there is no absoluate guarantee that we are not in the +* midst of a GT reset operation (which doesn't allow allocations). +*/ +struct list_head cachelist; +#define PREALLOC_NODES_MAX_COUNT (3 * GUC_MAX_ENGINE_CLASSES * GUC_MAX_INSTANCES_PER_CLASS) +#define PREALLOC_NODES_DEFAULT_NUMREGS 64 +int max_mmio_per_node; + +/** +* @outlist: Pool of pre-allocated nodes for error capture output * * A linked list of parsed GuC error-capture output data before * reporting with formatting via i915_gpu_coredump. Each node in this linked list shall
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +144 -33
293 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH v11 12/13 drm/i915/guc: Plumb GuC-capture into gpu_coredump
In reply to Alan PrevinAdd a flags parameter through all of the coredump creation functions. Add a bitmask flag to indicate if the top level gpu_coredump event is triggered in response to a GuC context reset notification.
Using that flag, ensure all coredump functions that read or print mmio-register values related to work submission or command-streamer engines are skipped and replaced with a calls guc-capture module equivalent functions to retrieve or print the register dump.
While here, split out display related register reading and printing into its own function that is called agnostic to whether GuC had triggered the reset.
For now, introduce an empty printing function that can filled in on a subsequent patch just to handle formatting.
--- .../drm/i915/gt/intel_execlists_submission.c | 4 +- drivers/gpu/drm/i915/gt/intel_reset.c | 2 +- .../gpu/drm/i915/gt/uc/intel_guc_capture.c | 70 +++++ .../gpu/drm/i915/gt/uc/intel_guc_capture.h | 9 + .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 2 +- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_gpu_error.c | 266 ++++++++++++------ drivers/gpu/drm/i915/i915_gpu_error.h | 30 +- 8 files changed, 288 insertions(+), 97 deletions(-)
drivers/gpu/drm/i915/gt/intel_execlists_submission.c +2 -2
@@ -2236,11 +2236,11 @@ static struct execlists_capture *capture_regs(struct intel_engine_cs *engine)if (!cap->error) goto err_cap; - cap->error->gt =intel_gt_coredump_alloc (engine->gt, gfp); + cap->error->gt =intel_gt_coredump_alloc (engine->gt, gfp,CORE_DUMP_FLAG_NONE );if (!cap->error->gt) goto err_gpu; - cap->error->gt->engine =intel_engine_coredump_alloc (engine, gfp); + cap->error->gt->engine =intel_engine_coredump_alloc (engine, gfp,CORE_DUMP_FLAG_NONE );if (!cap->error->gt->engine) goto err_gt;
drivers/gpu/drm/i915/gt/intel_reset.c +1 -1
@@ -1319,7 +1319,7 @@ void intel_gt_handle_error(struct intel_gt *gt, engine_mask &= gt->info.engine_mask;if (flags &I915_ERROR_CAPTURE ) { -i915_capture_error_state (gt, engine_mask); +i915_capture_error_state (gt, engine_mask,CORE_DUMP_FLAG_NONE );intel_gt_clear_error_registers (gt, engine_mask); }
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +70 -0
88 lines not on this page · raw message
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.h +9 -0
@@ -8,9 +8,18 @@#include <linux/types.h> +struct drm_i915_error_state_buf ;struct guc_gt_system_info ; +struct intel_context ; +struct intel_engine_coredump ; +struct intel_gt ;struct intel_guc ; +void intel_guc_capture_free_node (struct intel_engine_coredump *ee); +int intel_guc_capture_print_engine_node (struct drm_i915_error_state_buf *m, +const struct intel_engine_coredump *ee); +void intel_guc_capture_get_matching_node (struct intel_gt *gt,struct intel_engine_coredump *ee, +struct intel_context *ce);void intel_guc_capture_process (struct intel_guc *guc);int intel_guc_capture_output_min_size_est (struct intel_guc *guc); int intel_guc_capture_getlist(struct intel_guc *guc, u32 owner, u32 type, u32 classid,
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +1 -1
@@ -4031,7 +4031,7 @@ static void capture_error_state(struct intel_guc *guc,intel_engine_set_hung_context (engine, ce); with_intel_runtime_pm(&i915->runtime_pm, wakeref) -i915_capture_error_state (gt, engine->mask); +i915_capture_error_state (gt, engine->mask,CORE_DUMP_FLAG_IS_GUC_CAPTURE );atomic_inc (&i915->gpu_error.reset_engine_count[engine->uabi_class]); }
drivers/gpu/drm/i915/i915_debugfs.c +1 -1
@@ -308,7 +308,7 @@ static int i915_gpu_info_open(struct inode *inode, struct file *file) gpu =NULL ;with_intel_runtime_pm (&i915->runtime_pm, wakeref) - gpu = i915_gpu_coredump(to_gt(i915), ALL_ENGINES); + gpu = i915_gpu_coredump(to_gt(i915), ALL_ENGINES, CORE_DUMP_FLAG_NONE);if (IS_ERR (gpu))return PTR_ERR (gpu);
drivers/gpu/drm/i915/i915_gpu_error.c +183 -83
449 lines not on this page · raw message
drivers/gpu/drm/i915/i915_gpu_error.h +21 -9
@@ -53,6 +53,8 @@ struct i915_request_coredump {struct i915_sched_attr sched_attr; }; +struct __guc_capture_parsed_output ; +struct intel_engine_coredump {const struct intel_engine_cs *engine;
@@ -84,6 +86,10 @@ struct intel_engine_coredump {u32 rc_psmi;/* sleep state */ struct intel_instdone instdone; +/* GuC matched capture-lists info */ +struct intel_guc_state_capture *capture; +struct __guc_capture_parsed_output *guc_capture_node; +struct i915_gem_context_coredump {char comm[TASK_COMM_LEN ];
@@ -124,7 +130,6 @@ struct intel_gt_coredump {u32 pgtbl_er;u32 ier;u32 gtier[6 ], ngtier; -u32 derrmr;u32 forcewake;u32 error;/* gen6+ */ u32 err_int;/* gen7 */
@@ -137,9 +142,12 @@ struct intel_gt_coredump {u32 gfx_mode;u32 gtt_cache;u32 aux_err;/* gen12 */ -u32 sfc_done[I915_MAX_SFC ];/* gen12 */ u32 gam_done;/* gen12 */ +/* Display related */ +u32 derrmr; +u32 sfc_done[I915_MAX_SFC ];/* gen12 */ +u32 nfence;u64 fence[I915_MAX_NUM_FENCES ];
@@ -149,6 +157,7 @@ struct intel_gt_coredump {struct intel_uc_fw guc_fw;struct intel_uc_fw huc_fw;struct i915_vma_coredump *guc_log; +bool is_guc_capture; } *uc;struct intel_gt_coredump *next;
@@ -221,24 +230,27 @@ static inline u32 i915_reset_engine_count(struct i915_gpu_error *error,return atomic_read (&error->reset_engine_count[engine->uabi_class]); } +#define CORE_DUMP_FLAG_NONE 0x0 +#define CORE_DUMP_FLAG_IS_GUC_CAPTURE BIT(0) +#if IS_ENABLED (CONFIG_DRM_I915_CAPTURE_ERROR ) __printf(2, 3)void i915_error_printf (struct drm_i915_error_state_buf *e,const char *f, ...);struct i915_gpu_coredump *i915_gpu_coredump (struct intel_gt *gt, -intel_engine_mask_t engine_mask); +intel_engine_mask_t engine_mask,u32 dump_flags);void i915_capture_error_state (struct intel_gt *gt, -intel_engine_mask_t engine_mask); +intel_engine_mask_t engine_mask,u32 dump_flags);struct i915_gpu_coredump *i915_gpu_coredump_alloc (struct drm_i915_private *i915,gfp_t gfp);struct intel_gt_coredump * -intel_gt_coredump_alloc (struct intel_gt *gt,gfp_t gfp); +intel_gt_coredump_alloc (struct intel_gt *gt,gfp_t gfp,u32 dump_flags);struct intel_engine_coredump * -intel_engine_coredump_alloc (struct intel_engine_cs *engine,gfp_t gfp); +intel_engine_coredump_alloc (struct intel_engine_cs *engine,gfp_t gfp,u32 dump_flags);struct intel_engine_capture_vma * intel_engine_coredump_add_request(struct intel_engine_coredump *ee,
@@ -282,7 +294,7 @@ void i915_disable_error_state(struct drm_i915_private *i915, int err);#else static inline void -i915_capture_error_state (struct intel_gt *gt,intel_engine_mask_t engine_mask) +i915_capture_error_state (struct intel_gt *gt,intel_engine_mask_t engine_mask,u32 dump_flags) { }
@@ -293,13 +305,13 @@ i915_gpu_coredump_alloc(struct drm_i915_private *i915, gfp_t gfp) }static inline struct intel_gt_coredump * -intel_gt_coredump_alloc (struct intel_gt *gt,gfp_t gfp) +intel_gt_coredump_alloc (struct intel_gt *gt,gfp_t gfp,u32 dump_flags) {return NULL ; }static inline struct intel_engine_coredump * -intel_engine_coredump_alloc (struct intel_engine_cs *engine,gfp_t gfp) +intel_engine_coredump_alloc (struct intel_engine_cs *engine,gfp_t gfp,u32 dump_flags) {return NULL ; }
Signature · 1 line
2.25.1
PATCH v11 13/13 drm/i915/guc: Print the GuC error capture output register list.
In reply to Alan PrevinPrint the GuC captured error state register list (string names and values) when gpu_coredump_state printout is invoked via the i915 debugfs for flushing the gpu error-state that was captured prior.
Since GuC could have reported multiple engine register dumps in a single notification event, parse the captured data (appearing as a stream of structures) to identify each dump as a different 'engine-capture-group-output'.
Finally, for each 'engine-capture-group-output' that is found, verify if the engine register dump corresponds to the engine_coredump content that was previously populated by the i915_gpu_coredump function. That function would have copied the context's vma's including the bacth buffer during the G2H-context-reset notification that occurred earlier. Perform this verification check by comparing guc_id, lrca and engine- instance obtained from the 'engine-capture-group-output' vs a copy of that same info taken during i915_gpu_coredump. If they match, then print those vma's as well (such as the batch buffers).
NOTE: the output format was verified using the gem_exec_capture IGT test.
--- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 4 +- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 3 + .../gpu/drm/i915/gt/uc/intel_guc_capture.c | 161 ++++++++++++++++++ .../gpu/drm/i915/gt/uc/intel_guc_capture.h | 2 +- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 6 +- drivers/gpu/drm/i915/i915_debugfs.c | 1 + drivers/gpu/drm/i915/i915_gpu_error.c | 16 +- drivers/gpu/drm/i915/i915_gpu_error.h | 5 + 8 files changed, 183 insertions(+), 15 deletions(-)
drivers/gpu/drm/i915/gt/intel_engine_cs.c +1 -3
@@ -1702,9 +1702,7 @@ static void intel_engine_print_registers(struct intel_engine_cs *engine,drm_printf (m,"\tIPEHR: 0x%08x\n" ,ENGINE_READ (engine,IPEHR )); } -if (intel_engine_uses_guc (engine)) { -/* nothing to print yet */ - }else if (HAS_EXECLISTS (dev_priv)) { +if (HAS_EXECLISTS (dev_priv) && !intel_engine_uses_guc (engine)) {struct i915_request *const *port, *rq;const u32 *hws = &engine->status_page.addr[I915_HWS_CSB_BUF0_INDEX ];
drivers/gpu/drm/i915/gt/uc/intel_guc.h +3 -0
@@ -438,6 +438,9 @@ int intel_guc_engine_failure_process_msg(struct intel_guc *guc,int intel_guc_error_capture_process_msg (struct intel_guc *guc,const u32 *msg,u32 len); +struct intel_engine_cs * +intel_guc_lookup_engine (struct intel_guc *guc,u8 guc_class,u8 instance); +void intel_guc_find_hung_context (struct intel_engine_cs *engine);int intel_guc_global_policies_update (struct intel_guc *guc);
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c +161 -0
176 lines not on this page · raw message
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.h +1 -1
@@ -10,8 +10,8 @@struct drm_i915_error_state_buf ;struct guc_gt_system_info ; -struct intel_context ;struct intel_engine_coredump ; +struct intel_context ;struct intel_gt ;struct intel_guc ;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +3 -3
@@ -4112,8 +4112,8 @@ int intel_guc_error_capture_process_msg(struct intel_guc *guc,return 0 ; } -static struct intel_engine_cs * -guc_lookup_engine (struct intel_guc *guc,u8 guc_class,u8 instance) +struct intel_engine_cs * +intel_guc_lookup_engine (struct intel_guc *guc,u8 guc_class,u8 instance) {struct intel_gt *gt =guc_to_gt (guc);u8 engine_class =guc_class_to_engine_class (guc_class);
@@ -4162,7 +4162,7 @@ int intel_guc_engine_failure_process_msg(struct intel_guc *guc, instance = msg[1 ]; reason = msg[2 ]; - engine =guc_lookup_engine (guc, guc_class, instance); + engine =intel_guc_lookup_engine (guc, guc_class, instance);if (unlikely (!engine)) {drm_err (>->i915->drm,"Invalid engine %d:%d" , guc_class, instance);
drivers/gpu/drm/i915/i915_debugfs.c +1 -0
@@ -309,6 +309,7 @@ static int i915_gpu_info_open(struct inode *inode, struct file *file) gpu =NULL ;with_intel_runtime_pm (&i915->runtime_pm, wakeref) gpu = i915_gpu_coredump(to_gt(i915), ALL_ENGINES, CORE_DUMP_FLAG_NONE); +if (IS_ERR (gpu))return PTR_ERR (gpu);
drivers/gpu/drm/i915/i915_gpu_error.c +8 -8
@@ -532,8 +532,8 @@ __find_vma(struct i915_vma_coredump *vma, const char *name)return NULL ; } -static struct i915_vma_coredump * -find_batch (const struct intel_engine_coredump *ee) +struct i915_vma_coredump * +intel_gpu_error_find_batch (const struct intel_engine_coredump *ee) {return __find_vma (ee->vma,"batch" ); }
@@ -561,7 +561,7 @@ static void error_print_engine(struct drm_i915_error_state_buf *m,error_print_instdone (m, ee); - batch =find_batch (ee); + batch =intel_gpu_error_find_batch (ee);if (batch) {u64 start = batch->gtt_offset;u64 end = start + batch->gtt_size;
@@ -612,9 +612,9 @@ void i915_error_printf(struct drm_i915_error_state_buf *e, const char *f, ...)va_end (args); } -static void print_error_vma (struct drm_i915_error_state_buf *m, -const struct intel_engine_cs *engine, -const struct i915_vma_coredump *vma) +void intel_gpu_error_print_vma (struct drm_i915_error_state_buf *m, +const struct intel_engine_cs *engine, +const struct i915_vma_coredump *vma) {char out[ASCII85_BUFSZ ];struct page *page;
@@ -683,7 +683,7 @@ static void err_print_uc(struct drm_i915_error_state_buf *m,intel_uc_fw_dump (&error_uc->guc_fw, &p);intel_uc_fw_dump (&error_uc->huc_fw, &p); -print_error_vma (m,NULL , error_uc->guc_log); +intel_gpu_error_print_vma (m,NULL , error_uc->guc_log); }static void err_free_sgl (struct scatterlist *sgl)
@@ -803,7 +803,7 @@ static void err_print_gt_engines(struct drm_i915_error_state_buf *m,error_print_context (m," Active context: " , &ee->context);for (vma = ee->vma; vma; vma = vma->next) -print_error_vma (m, ee->engine, vma); +intel_gpu_error_print_vma (m, ee->engine, vma); } }
drivers/gpu/drm/i915/i915_gpu_error.h +5 -0
@@ -237,6 +237,11 @@ static inline u32 i915_reset_engine_count(struct i915_gpu_error *error, __printf(2, 3)void i915_error_printf (struct drm_i915_error_state_buf *e,const char *f, ...); +void intel_gpu_error_print_vma (struct drm_i915_error_state_buf *m, +const struct intel_engine_cs *engine, +const struct i915_vma_coredump *vma); +struct i915_vma_coredump * +intel_gpu_error_find_batch (const struct intel_engine_coredump *ee);struct i915_gpu_coredump *i915_gpu_coredump (struct intel_gt *gt,intel_engine_mask_t engine_mask,u32 dump_flags);
Signature · 1 line
2.25.1
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Add GuC Error Capture Support
In reply to Alan Previn== Series Details ==
== Series Details ==
Series: Add GuC Error Capture Support
URL : https://patchwork.freedesktop.org/series/101503/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip eaf2d6ffbe31 drm/i915/guc: Update GuC ADS size for error capture lists -:40: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #40: new file mode 100644
-:471: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'regslist' - possible side-effects? #471: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:63:
+#define MAKE_REGLIST(regslist, regsowner, regstype, class) \
+ { \
+ regslist, \
+ ARRAY_SIZE(regslist), \
+ TO_GCAP_DEF_OWNER(regsowner), \
+ TO_GCAP_DEF_TYPE(regstype), \
+ class, \
+ }
-:691: WARNING:OOM_MESSAGE: Possible unnecessary 'out of memory' message #691: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:283:
+ if (!caplist) {
+ drm_dbg(&i915->drm, "GuC-capture: failed to alloc cached caplist");
-:733: WARNING:OOM_MESSAGE: Possible unnecessary 'out of memory' message #733: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:325:
+ if (!null_header) {
+ drm_dbg(&i915->drm, "GuC-capture: failed to alloc cached nulllist");
total: 0 errors, 3 warnings, 1 checks, 751 lines checkedc37f99f9157f drm/i915/guc: Add XE_LP static registers for GuC error capture. -:26: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #26: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:25:
+#define COMMON_GEN12BASE_GLOBAL() \
+ {GEN12_FAULT_TLB_DATA0, 0, 0, "GEN12_FAULT_TLB_DATA0"}, \
+ {GEN12_FAULT_TLB_DATA1, 0, 0, "GEN12_FAULT_TLB_DATA1"}, \
+ {FORCEWAKE_MT, 0, 0, "FORCEWAKE"}, \
+ {GEN12_AUX_ERR_DBG, 0, 0, "AUX_ERR_DBG"}, \
+ {GEN12_GAM_DONE, 0, 0, "GAM_DONE"}, \
+ {GEN12_RING_FAULT_REG, 0, 0, "FAULT_REG"}-:34: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #34: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:33:
+#define COMMON_GEN12BASE_ENGINE_INSTANCE() \
+ {RING_PSMI_CTL(0), 0, 0, "RC PSMI"}, \
+ {RING_ESR(0), 0, 0, "ESR"}, \
+ {RING_DMA_FADD(0), 0, 0, "RING_DMA_FADD_LDW"}, \
+ {RING_DMA_FADD_UDW(0), 0, 0, "RING_DMA_FADD_UDW"}, \
+ {RING_IPEIR(0), 0, 0, "IPEIR"}, \
+ {RING_IPEHR(0), 0, 0, "IPEHR"}, \
+ {RING_INSTPS(0), 0, 0, "INSTPS"}, \
+ {RING_BBADDR(0), 0, 0, "RING_BBADDR_LOW32"}, \
+ {RING_BBADDR_UDW(0), 0, 0, "RING_BBADDR_UP32"}, \
+ {RING_BBSTATE(0), 0, 0, "BB_STATE"}, \
+ {CCID(0), 0, 0, "CCID"}, \
+ {RING_ACTHD(0), 0, 0, "ACTHD_LDW"}, \
+ {RING_ACTHD_UDW(0), 0, 0, "ACTHD_UDW"}, \
+ {RING_INSTPM(0), 0, 0, "INSTPM"}, \
+ {RING_INSTDONE(0), 0, 0, "INSTDONE"}, \
+ {RING_NOPID(0), 0, 0, "RING_NOPID"}, \
+ {RING_START(0), 0, 0, "START"}, \
+ {RING_HEAD(0), 0, 0, "HEAD"}, \
+ {RING_TAIL(0), 0, 0, "TAIL"}, \
+ {RING_CTL(0), 0, 0, "CTL"}, \
+ {RING_MI_MODE(0), 0, 0, "MODE"}, \
+ {RING_CONTEXT_CONTROL(0), 0, 0, "RING_CONTEXT_CONTROL"}, \
+ {RING_HWS_PGA(0), 0, 0, "HWS"}, \
+ {RING_MODE_GEN7(0), 0, 0, "GFX_MODE"}, \
+ {GEN8_RING_PDP_LDW(0, 0), 0, 0, "PDP0_LDW"}, \
+ {GEN8_RING_PDP_UDW(0, 0), 0, 0, "PDP0_UDW"}, \
+ {GEN8_RING_PDP_LDW(0, 1), 0, 0, "PDP1_LDW"}, \
+ {GEN8_RING_PDP_UDW(0, 1), 0, 0, "PDP1_UDW"}, \
+ {GEN8_RING_PDP_LDW(0, 2), 0, 0, "PDP2_LDW"}, \
+ {GEN8_RING_PDP_UDW(0, 2), 0, 0, "PDP2_UDW"}, \
+ {GEN8_RING_PDP_LDW(0, 3), 0, 0, "PDP3_LDW"}, \
+ {GEN8_RING_PDP_UDW(0, 3), 0, 0, "PDP3_UDW"}-:71: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #71: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:70:
+#define COMMON_GEN12BASE_RENDER() \
+ {GEN7_SC_INSTDONE, 0, 0, "GEN7_SC_INSTDONE"}, \
+ {GEN12_SC_INSTDONE_EXTRA, 0, 0, "GEN12_SC_INSTDONE_EXTRA"}, \
+ {GEN12_SC_INSTDONE_EXTRA2, 0, 0, "GEN12_SC_INSTDONE_EXTRA2"}-:76: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #76: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:75:
+#define COMMON_GEN12BASE_VEC() \
+ {GEN12_SFC_DONE(0), 0, 0, "SFC_DONE[0]"}, \
+ {GEN12_SFC_DONE(1), 0, 0, "SFC_DONE[1]"}, \
+ {GEN12_SFC_DONE(2), 0, 0, "SFC_DONE[2]"}, \
+ {GEN12_SFC_DONE(3), 0, 0, "SFC_DONE[3]"}total: 4 errors, 0 warnings, 0 checks, 183 lines checked6064e6ac7665 drm/i915/guc: Add XE_LP steered register lists support 6d4d03ab0932 drm/i915/guc: Add DG2 registers for GuC error state capture. 436c506544ba drm/i915/guc: Add Gen9 registers for GuC error state capture. -:23: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #23: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:28:
+#define COMMON_GEN9BASE_GLOBAL() \
+ {GEN8_FAULT_TLB_DATA0, 0, 0, "GEN8_FAULT_TLB_DATA0"}, \
+ {GEN8_FAULT_TLB_DATA1, 0, 0, "GEN8_FAULT_TLB_DATA1"}, \
+ {ERROR_GEN6, 0, 0, "ERROR_GEN6"}, \
+ {DONE_REG, 0, 0, "DONE_REG"}, \
+ {HSW_GTT_CACHE_EN, 0, 0, "HSW_GTT_CACHE_EN"}-:39: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #39: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:42:
+#define COMMON_BASE_ENGINE_INSTANCE() \
{RING_PSMI_CTL(0), 0, 0, "RC PSMI"}, \
{RING_ESR(0), 0, 0, "ESR"}, \
{RING_DMA_FADD(0), 0, 0, "RING_DMA_FADD_LDW"}, \total: 2 errors, 0 warnings, 0 checks, 146 lines checked 3d2525dba7a8 drm/i915/guc: Add GuC's error state capture output structures. 770ecb5b750c drm/i915/guc: Update GuC-log relay function names 6533fb008c8e drm/i915/guc: Add capture region into intel_guc_log 2ca7d4dd9146 drm/i915/guc: Check sizing of guc_capture output 53b78c3576f3 drm/i915/guc: Extract GuC error capture lists on G2H notification. e07d357906ea drm/i915/guc: Pre-allocate output nodes for extraction 8e2c0be4c956 drm/i915/guc: Plumb GuC-capture into gpu_coredump a107441ace88 drm/i915/guc: Print the GuC error capture output register list. -:132: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'a' - possible side-effects? #132: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1440:
+#define __out(a, ...) \
+ do { \
+ drm_warn((&(a)->i915->drm), __VA_ARGS__); \
+ i915_error_printf((a), __VA_ARGS__); \
+ } while (0)
-:142: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ebuf' - possible side-effects? #142: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1450:
+#define GCAP_PRINT_INTEL_ENG_INFO(ebuf, eng) \
+ do { \
+ __out(ebuf, " i915-Eng-Name: %s command stream\n", \
+ (eng)->name); \
+ __out(ebuf, " i915-Eng-Inst-Class: 0x%02x\n", (eng)->class); \ + __out(ebuf, " i915-Eng-Inst-Id: 0x%02x\n", (eng)->instance); \ + __out(ebuf, " i915-Eng-LogicalMask: 0x%08x\n", \
+ (eng)->logical_mask); \
+ } while (0)
-:142: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'eng' - possible side-effects? #142: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1450:
+#define GCAP_PRINT_INTEL_ENG_INFO(ebuf, eng) \
+ do { \
+ __out(ebuf, " i915-Eng-Name: %s command stream\n", \
+ (eng)->name); \
+ __out(ebuf, " i915-Eng-Inst-Class: 0x%02x\n", (eng)->class); \ + __out(ebuf, " i915-Eng-Inst-Id: 0x%02x\n", (eng)->instance); \ + __out(ebuf, " i915-Eng-LogicalMask: 0x%08x\n", \
+ (eng)->logical_mask); \
+ } while (0)
-:152: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ebuf' - possible side-effects? #152: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1460:
+#define GCAP_PRINT_GUC_INST_INFO(ebuf, node) \
+ do { \
+ __out(ebuf, " GuC-Engine-Inst-Id: 0x%08x\n", \
+ (node)->eng_inst); \
+ __out(ebuf, " GuC-Context-Id: 0x%08x\n", (node)->guc_id); \
+ __out(ebuf, " LRCA: 0x%08x\n", (node)->lrca); \
+ } while (0)
-:152: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'node' - possible side-effects? #152: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:1460:
+#define GCAP_PRINT_GUC_INST_INFO(ebuf, node) \
+ do { \
+ __out(ebuf, " GuC-Engine-Inst-Id: 0x%08x\n", \
+ (node)->eng_inst); \
+ __out(ebuf, " GuC-Context-Id: 0x%08x\n", (node)->guc_id); \
+ __out(ebuf, " LRCA: 0x%08x\n", (node)->lrca); \
+ } while (0)
total: 0 errors, 0 warnings, 5 checks, 286 lines checked
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Add GuC Error Capture Support
In reply to Alan Previn== Series Details ==
== Series Details ==
Series: Add GuC Error Capture Support
URL : https://patchwork.freedesktop.org/series/101503/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for Add GuC Error Capture Support
In reply to Alan Previn== Series Details ==
== Series Details ==
Series: Add GuC Error Capture Support
URL : https://patchwork.freedesktop.org/series/101503/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_11378 -> Patchwork_22598
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/index.html
Participating hosts (48 -> 45)
------------------------------
Additional (1): fi-pnv-d510
Missing (4): fi-bsw-cyan shard-rkl shard-tglu fi-bdw-samus
Known issues
------------
Here are the changes found in Patchwork_22598 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_huc_copy@huc-copy:
- fi-pnv-d510: NOTRUN -> [SKIP][1] ([fdo#109271]) +57 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/fi-pnv-d510/igt@[email protected]
* igt@i915_selftest@live@hangcheck:
- fi-bdw-5557u: NOTRUN -> [INCOMPLETE][2] ([i915#3921])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/fi-bdw-5557u/igt@i915_selftest@[email protected]
* igt@kms_chamelium@vga-edid-read:
- fi-bdw-5557u: NOTRUN -> [SKIP][3] ([fdo#109271] / [fdo#111827]) +8 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/fi-bdw-5557u/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-c:
- fi-pnv-d510: NOTRUN -> [SKIP][4] ([fdo#109271] / [i915#5341])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/fi-pnv-d510/igt@[email protected]
* igt@kms_setmode@basic-clone-single-crtc:
- fi-bdw-5557u: NOTRUN -> [SKIP][5] ([fdo#109271]) +14 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/fi-bdw-5557u/igt@[email protected]
#### Possible fixes ####
* igt@core_hotunplug@unbind-rebind:
- fi-blb-e6850: [FAIL][6] ([i915#3194]) -> [PASS][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/fi-blb-e6850/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/fi-blb-e6850/igt@[email protected]
* igt@i915_module_load@reload:
- {bat-rpls-2}: [DMESG-WARN][8] ([i915#4391]) -> [PASS][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/bat-rpls-2/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/bat-rpls-2/igt@[email protected]
* igt@i915_selftest@live@gt_pm:
- {bat-rpls-2}: [INCOMPLETE][10] -> [PASS][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/bat-rpls-2/igt@i915_selftest@live@gt_pm.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/bat-rpls-2/igt@i915_selftest@live@gt_pm.html
* igt@kms_busy@basic@modeset:
- {bat-adlp-6}: [DMESG-WARN][12] ([i915#3576]) -> [PASS][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/bat-adlp-6/igt@kms_busy@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/bat-adlp-6/igt@kms_busy@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#3194]: https://gitlab.freedesktop.org/drm/intel/issues/3194
[i915#3576]: https://gitlab.freedesktop.org/drm/intel/issues/3576
[i915#3595]: https://gitlab.freedesktop.org/drm/intel/issues/3595
[i915#3921]: https://gitlab.freedesktop.org/drm/intel/issues/3921
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391
[i915#5087]: https://gitlab.freedesktop.org/drm/intel/issues/5087
[i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
[i915#5192]: https://gitlab.freedesktop.org/drm/intel/issues/5192
[i915#5193]: https://gitlab.freedesktop.org/drm/intel/issues/5193
[i915#5291]: https://gitlab.freedesktop.org/drm/intel/issues/5291
[i915#5337]: https://gitlab.freedesktop.org/drm/intel/issues/5337
[i915#5339]: https://gitlab.freedesktop.org/drm/intel/issues/5339
[i915#5341]: https://gitlab.freedesktop.org/drm/intel/issues/5341
[i915#5356]: https://gitlab.freedesktop.org/drm/intel/issues/5356
Build changes
-------------
* Linux: CI_DRM_11378 -> Patchwork_22598
CI-20190529: 20190529
CI_DRM_11378: 3ec612f871c18232b04e5530e485992c76bf13a6 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6385: f3df40281d93d5a63ee98fa30e90852d780673c9 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_22598: a107441ace88da317a6c8ff2361434245337580a @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
a107441ace88 drm/i915/guc: Print the GuC error capture output register list. 8e2c0be4c956 drm/i915/guc: Plumb GuC-capture into gpu_coredump e07d357906ea drm/i915/guc: Pre-allocate output nodes for extraction 53b78c3576f3 drm/i915/guc: Extract GuC error capture lists on G2H notification. 2ca7d4dd9146 drm/i915/guc: Check sizing of guc_capture output 6533fb008c8e drm/i915/guc: Add capture region into intel_guc_log 770ecb5b750c drm/i915/guc: Update GuC-log relay function names 3d2525dba7a8 drm/i915/guc: Add GuC's error state capture output structures. 436c506544ba drm/i915/guc: Add Gen9 registers for GuC error state capture. 6d4d03ab0932 drm/i915/guc: Add DG2 registers for GuC error state capture. 6064e6ac7665 drm/i915/guc: Add XE_LP steered register lists support c37f99f9157f drm/i915/guc: Add XE_LP static registers for GuC error capture. eaf2d6ffbe31 drm/i915/guc: Update GuC ADS size for error capture lists
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/index.html
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for Add GuC Error Capture Support
In reply to Alan Previn== Series Details ==
== Series Details ==
Series: Add GuC Error Capture Support
URL : https://patchwork.freedesktop.org/series/101503/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_11378_full -> Patchwork_22598_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (13 -> 12)
------------------------------
Missing (1): shard-dg1
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_22598_full:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* {igt@kms_frontbuffer_tracking@fbcpsr-tiling-4}:
- {shard-rkl}: NOTRUN -> [SKIP][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-4/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_22598_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_eio@unwedge-stress:
- shard-tglb: [PASS][2] -> [TIMEOUT][3] ([i915#3063] / [i915#3648])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-tglb7/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-tglb6/igt@[email protected]
* igt@gem_exec_balancer@parallel-balancer:
- shard-iclb: [PASS][4] -> [SKIP][5] ([i915#4525])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-iclb1/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb8/igt@[email protected]
* igt@gem_exec_fair@basic-flow@rcs0:
- shard-skl: NOTRUN -> [SKIP][6] ([fdo#109271]) +90 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl9/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none-rrul@rcs0:
- shard-glk: NOTRUN -> [FAIL][7] ([i915#2842])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-glk9/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-apl: [PASS][8] -> [FAIL][9] ([i915#2842])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-apl3/igt@gem_exec_fair@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-apl8/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs1:
- shard-iclb: NOTRUN -> [FAIL][10] ([i915#2842])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-tglb: [PASS][11] -> [FAIL][12] ([i915#2842])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-tglb1/igt@gem_exec_fair@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-tglb6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-solo@rcs0:
- shard-kbl: [PASS][13] -> [FAIL][14] ([i915#2842]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-kbl6/igt@gem_exec_fair@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-kbl1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-glk: [PASS][15] -> [FAIL][16] ([i915#2842])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-glk5/igt@gem_exec_fair@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-glk6/igt@gem_exec_fair@[email protected]
- shard-iclb: [PASS][17] -> [FAIL][18] ([i915#2849])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-iclb2/igt@gem_exec_fair@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb4/igt@gem_exec_fair@[email protected]
* igt@gem_lmem_swapping@parallel-random-engines:
- shard-skl: NOTRUN -> [SKIP][19] ([fdo#109271] / [i915#4613])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl6/igt@[email protected]
* igt@gem_render_copy@x-tiled-to-vebox-yf-tiled:
- shard-iclb: NOTRUN -> [SKIP][20] ([i915#768])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb6/igt@[email protected]
* igt@gen3_render_linear_blits:
- shard-tglb: NOTRUN -> [SKIP][21] ([fdo#109289])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-tglb6/igt@gen3_render_linear_blits.html
* igt@i915_selftest@live@hangcheck:
- shard-snb: [PASS][22] -> [INCOMPLETE][23] ([i915#3921])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-snb7/igt@i915_selftest@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-snb2/igt@i915_selftest@[email protected]
* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-apl: [PASS][24] -> [DMESG-WARN][25] ([i915#180]) +3 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-apl3/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-apl3/igt@[email protected]
* igt@kms_async_flips@alternate-sync-async-flip:
- shard-skl: [PASS][26] -> [FAIL][27] ([i915#2521])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-skl9/igt@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl1/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip:
- shard-skl: NOTRUN -> [SKIP][28] ([fdo#109271] / [i915#3777]) +1 similar issue
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl9/igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip.html
* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip:
- shard-kbl: NOTRUN -> [SKIP][29] ([fdo#109271] / [i915#3777])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-kbl6/igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip.html
- shard-apl: NOTRUN -> [SKIP][30] ([fdo#109271] / [i915#3777])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-apl3/igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip.html
* igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_gen12_mc_ccs:
- shard-skl: NOTRUN -> [SKIP][31] ([fdo#109271] / [i915#1888] / [i915#3886])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl9/igt@kms_ccs@pipe-a-bad-aux-stride-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-a-bad-pixel-format-y_tiled_gen12_rc_ccs_cc:
- shard-skl: NOTRUN -> [SKIP][32] ([fdo#109271] / [i915#3886]) +6 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl6/igt@kms_ccs@pipe-a-bad-pixel-format-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-b-bad-rotation-90-y_tiled_gen12_mc_ccs:
- shard-kbl: NOTRUN -> [SKIP][33] ([fdo#109271] / [i915#3886]) +3 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-kbl4/igt@kms_ccs@pipe-b-bad-rotation-90-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-b-random-ccs-data-y_tiled_gen12_rc_ccs_cc:
- shard-apl: NOTRUN -> [SKIP][34] ([fdo#109271] / [i915#3886]) +1 similar issue
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-apl3/igt@kms_ccs@pipe-b-random-ccs-data-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-c-crc-primary-basic-y_tiled_gen12_rc_ccs_cc:
- shard-glk: NOTRUN -> [SKIP][35] ([fdo#109271] / [i915#3886])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-glk9/igt@kms_ccs@pipe-c-crc-primary-basic-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-d-random-ccs-data-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][36] ([i915#3689])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-tglb8/igt@kms_ccs@pipe-d-random-ccs-data-y_tiled_gen12_mc_ccs.html
* igt@kms_chamelium@dp-crc-multiple:
- shard-skl: NOTRUN -> [SKIP][37] ([fdo#109271] / [fdo#111827]) +7 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl6/igt@[email protected]
* igt@kms_chamelium@vga-edid-read:
- shard-apl: NOTRUN -> [SKIP][38] ([fdo#109271] / [fdo#111827]) +3 similar issues
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-apl3/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-ctm-0-25:
- shard-kbl: NOTRUN -> [SKIP][39] ([fdo#109271] / [fdo#111827]) +6 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-kbl6/igt@[email protected]
* igt@kms_content_protection@lic:
- shard-kbl: NOTRUN -> [TIMEOUT][40] ([i915#1319])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-kbl4/igt@[email protected]
* igt@kms_content_protection@uevent:
- shard-kbl: NOTRUN -> [FAIL][41] ([i915#2105])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-kbl6/igt@[email protected]
- shard-apl: NOTRUN -> [FAIL][42] ([i915#2105])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-apl3/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-64x21-offscreen:
- shard-iclb: NOTRUN -> [SKIP][43] ([fdo#109278])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb6/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-64x21-rapid-movement:
- shard-apl: NOTRUN -> [SKIP][44] ([fdo#109271]) +39 similar issues
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-apl3/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy:
- shard-glk: [PASS][45] -> [FAIL][46] ([i915#72])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-glk8/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-glk8/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
- shard-skl: [PASS][47] -> [FAIL][48] ([i915#2346])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-skl10/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl10/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-toggle:
- shard-iclb: [PASS][49] -> [FAIL][50] ([i915#2346])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-iclb3/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb7/igt@[email protected]
* igt@kms_flip@2x-dpms-vs-vblank-race:
- shard-tglb: NOTRUN -> [SKIP][51] ([fdo#109274] / [fdo#111825])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-tglb8/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@b-edp1:
- shard-skl: [PASS][52] -> [FAIL][53] ([i915#79])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-skl3/igt@kms_flip@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl4/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@a-dp1:
- shard-kbl: [PASS][54] -> [DMESG-WARN][55] ([i915#180]) +1 similar issue
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-kbl3/igt@kms_flip@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-kbl7/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-ts-check@a-edp1:
- shard-skl: NOTRUN -> [FAIL][56] ([i915#2122])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl6/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile-downscaling:
- shard-iclb: [PASS][57] -> [SKIP][58] ([i915#3701])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-iclb8/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile-downscaling.html
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb2/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile-downscaling.html
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-pri-indfb-draw-render:
- shard-glk: NOTRUN -> [SKIP][59] ([fdo#109271]) +1 similar issue
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-glk9/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-pri-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-pri-shrfb-draw-mmap-cpu:
- shard-kbl: NOTRUN -> [SKIP][60] ([fdo#109271]) +68 similar issues
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-kbl6/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-pri-shrfb-draw-mmap-cpu.html
* igt@kms_hdr@bpc-switch-dpms@bpc-switch-dpms-edp-1-pipe-a:
- shard-skl: [PASS][61] -> [FAIL][62] ([i915#1188])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-skl9/igt@kms_hdr@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl1/igt@kms_hdr@[email protected]
* igt@kms_hdr@bpc-switch-suspend@bpc-switch-suspend-edp-1-pipe-a:
- shard-skl: NOTRUN -> [FAIL][63] ([i915#1188])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl6/igt@kms_hdr@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-max:
- shard-skl: NOTRUN -> [FAIL][64] ([fdo#108145] / [i915#265])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl9/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [PASS][65] -> [FAIL][66] ([fdo#108145] / [i915#265])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-skl6/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl10/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-alpha-basic:
- shard-kbl: NOTRUN -> [FAIL][67] ([fdo#108145] / [i915#265]) +1 similar issue
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-kbl6/igt@[email protected]
- shard-apl: NOTRUN -> [FAIL][68] ([fdo#108145] / [i915#265])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-apl3/igt@[email protected]
* igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-b-edp-1-scaler-with-clipping-clamping:
- shard-iclb: [PASS][69] -> [SKIP][70] ([i915#5176]) +1 similar issue
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-iclb5/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-b-edp-1-scaler-with-clipping-clamping.html
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb3/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-b-edp-1-scaler-with-clipping-clamping.html
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area:
- shard-skl: NOTRUN -> [SKIP][71] ([fdo#109271] / [i915#658])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl6/igt@[email protected]
* igt@kms_psr@psr2_suspend:
- shard-iclb: [PASS][72] -> [SKIP][73] ([fdo#109441]) +2 similar issues
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-iclb2/igt@kms_psr@psr2_suspend.html
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb4/igt@kms_psr@psr2_suspend.html
* igt@kms_vblank@pipe-b-ts-continuation-suspend:
- shard-skl: [PASS][74] -> [INCOMPLETE][75] ([i915#2828])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-skl9/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl9/igt@[email protected]
* igt@sysfs_clients@split-25:
- shard-skl: NOTRUN -> [SKIP][76] ([fdo#109271] / [i915#2994]) +1 similar issue
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl9/igt@[email protected]
#### Possible fixes ####
* igt@fbdev@read:
- {shard-rkl}: ([SKIP][77], [SKIP][78]) ([i915#2582]) -> [PASS][79]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-2/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-4/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-6/igt@[email protected]
* igt@gem_ctx_isolation@preservation-s3@vcs0:
- shard-kbl: [DMESG-WARN][80] ([i915#180]) -> [PASS][81] +2 similar issues
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-kbl7/igt@gem_ctx_isolation@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-kbl4/igt@gem_ctx_isolation@[email protected]
* igt@gem_eio@unwedge-stress:
- {shard-tglu}: [TIMEOUT][82] ([i915#3063] / [i915#3648]) -> [PASS][83]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-tglu-4/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-tglu-5/igt@[email protected]
- {shard-rkl}: [TIMEOUT][84] ([i915#3063]) -> [PASS][85]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-6/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-2/igt@[email protected]
* igt@gem_exec_capture@pi@bcs0:
- shard-skl: [INCOMPLETE][86] ([i915#4547]) -> [PASS][87]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-skl10/igt@gem_exec_capture@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl10/igt@gem_exec_capture@[email protected]
* igt@gen9_exec_parse@allowed-all:
- shard-glk: [DMESG-WARN][88] ([i915#1436] / [i915#716]) -> [PASS][89]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-glk5/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-glk9/igt@[email protected]
* igt@i915_pm_dc@dc9-dpms:
- {shard-tglu}: [SKIP][90] ([i915#4281]) -> [PASS][91]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-tglu-6/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-tglu-2/igt@[email protected]
* igt@kms_async_flips@crc:
- {shard-rkl}: ([SKIP][92], [SKIP][93]) ([i915#1845] / [i915#4098]) -> [PASS][94]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-2/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-4/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-6/igt@[email protected]
* igt@kms_big_fb@x-tiled-32bpp-rotate-180:
- {shard-tglu}: [DMESG-WARN][95] ([i915#402]) -> [PASS][96]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-tglu-1/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-tglu-3/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0:
- {shard-rkl}: [SKIP][97] ([i915#1845] / [i915#4098]) -> [PASS][98] +8 similar issues
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-2/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-6/igt@[email protected]
* igt@kms_color@pipe-a-ctm-blue-to-red:
- {shard-rkl}: [SKIP][99] ([i915#1149] / [i915#1849] / [i915#4070] / [i915#4098]) -> [PASS][100] +1 similar issue
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-2/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-64x21-random:
- {shard-rkl}: [SKIP][101] ([fdo#112022] / [i915#4070]) -> [PASS][102]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-2/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-a-128x128-top-edge:
- {shard-rkl}: ([SKIP][103], [SKIP][104]) ([i915#1849] / [i915#4070] / [i915#4098]) -> [PASS][105]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-2/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-4/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-6/igt@[email protected]
* igt@kms_dp_aux_dev:
- {shard-rkl}: [SKIP][106] ([i915#1257]) -> [PASS][107]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-2/igt@kms_dp_aux_dev.html
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-6/igt@kms_dp_aux_dev.html
* igt@kms_draw_crc@draw-method-rgb565-pwrite-untiled:
- {shard-rkl}: [SKIP][108] ([fdo#111314] / [i915#4098] / [i915#4369]) -> [PASS][109] +1 similar issue
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-2/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-6/igt@[email protected]
* igt@kms_draw_crc@draw-method-xrgb2101010-mmap-wc-untiled:
- shard-skl: [DMESG-WARN][110] ([i915#1982]) -> [PASS][111]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-skl1/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-skl10/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@a-edp1:
- shard-iclb: [FAIL][112] ([i915#79]) -> [PASS][113]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-iclb8/igt@kms_flip@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb2/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@c-dp1:
- shard-apl: [DMESG-WARN][114] ([i915#180]) -> [PASS][115] +2 similar issues
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-apl4/igt@kms_flip@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-apl7/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-downscaling:
- shard-iclb: [SKIP][116] ([i915#3701]) -> [PASS][117]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-iclb2/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-downscaling.html
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb1/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-downscaling.html
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-mmap-gtt:
- {shard-rkl}: [SKIP][118] ([i915#1849]) -> [PASS][119] +2 similar issues
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-2/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-mmap-gtt.html
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-6/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-mmap-gtt.html
* igt@kms_frontbuffer_tracking@fbcpsr-rgb565-draw-blt:
- {shard-rkl}: ([SKIP][120], [SKIP][121]) ([i915#1849] / [i915#4098]) -> [PASS][122] +1 similar issue
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-4/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-2/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-6/igt@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-b:
- {shard-rkl}: [SKIP][123] ([i915#1849] / [i915#4098]) -> [PASS][124]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-2/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-6/igt@[email protected]
* igt@kms_plane_multiple@atomic-pipe-a-tiling-y:
- {shard-rkl}: [SKIP][125] ([i915#1849] / [i915#3558] / [i915#4070]) -> [PASS][126]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-2/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-6/igt@[email protected]
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-c-edp-1-downscale-with-pixel-format:
- shard-iclb: [SKIP][127] ([i915#5176]) -> [PASS][128] +2 similar issues
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-iclb2/igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-c-edp-1-downscale-with-pixel-format.html
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb6/igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-c-edp-1-downscale-with-pixel-format.html
* igt@kms_psr@primary_mmap_gtt:
- {shard-rkl}: [SKIP][129] ([i915#1072]) -> [PASS][130]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-2/igt@kms_psr@primary_mmap_gtt.html
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-6/igt@kms_psr@primary_mmap_gtt.html
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [SKIP][131] ([fdo#109441]) -> [PASS][132] +2 similar issues
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-iclb8/igt@kms_psr@psr2_primary_mmap_cpu.html
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html
* igt@kms_universal_plane@universal-plane-pipe-b-functional:
- {shard-rkl}: [SKIP][133] ([i915#1845] / [i915#4070] / [i915#4098]) -> [PASS][134]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-rkl-2/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-rkl-6/igt@[email protected]
#### Warnings ####
* igt@gem_exec_balancer@parallel:
- shard-iclb: [SKIP][135] ([i915#4525]) -> [DMESG-WARN][136] ([i915#5076]) +1 similar issue
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-iclb5/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb1/igt@[email protected]
* igt@gem_exec_balancer@parallel-out-fence:
- shard-iclb: [DMESG-WARN][137] ([i915#5076]) -> [SKIP][138] ([i915#4525])
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-iclb1/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb6/igt@[email protected]
* igt@kms_flip@flip-vs-suspend@c-dp1:
- shard-kbl: [INCOMPLETE][139] ([i915#636]) -> [DMESG-WARN][140] ([i915#180])
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-kbl3/igt@kms_flip@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-kbl7/igt@kms_flip@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area:
- shard-iclb: [SKIP][141] ([i915#2920]) -> [SKIP][142] ([fdo#111068] / [i915#658])
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11378/shard-iclb2/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/shard-iclb6/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: ([FAIL][143], [FAIL][144], [FAIL][145], [FAIL][146], [FAIL][147], [FAIL][148], [FAIL][149], [FAIL][150], [FAIL][151], [FAIL][152]) ([i915#1436] / [i915#180] / [i915#1814] / [i915#4312] / [i915#5257] / [i915#602]) -> ([FAIL][153], [FAIL][154
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22598/index.html