From: Matthew Brost <matthew.brost@intel.com>
To: Alan Previn <alan.previn.teres.alexis@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [RFC 4/7] drm/i915/guc: Add GuC's error state capture output structures.
Date: Tue, 7 Dec 2021 13:01:29 -0800 [thread overview]
Message-ID: <20211207210129.GA16721@jons-linux-dev-box> (raw)
In-Reply-To: <20211122230402.2023576-5-alan.previn.teres.alexis@intel.com>
On Mon, Nov 22, 2021 at 03:03:59PM -0800, Alan Previn wrote:
> Add 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.
>
> Signed-off-by: Alan Previn <alan.previn.teres.alexis@intel.com>
> ---
> .../gpu/drm/i915/gt/uc/intel_guc_capture.h | 35 +++++++++++++++++++
> 1 file changed, 35 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_capture.h b/drivers/gpu/drm/i915/gt/uc/intel_guc_capture.h
> index df420f0f49b3..b2454b6cd778 100644
> --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_capture.h
> +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_capture.h
> @@ -29,6 +29,41 @@ struct __guc_mmio_reg_descr_group {
> struct __guc_mmio_reg_descr * ext;
> };
>
> +struct intel_guc_capture_out_data_header {
> + u32 reserved1;
> + u32 info;
> + #define GUC_CAPTURE_DATAHDR_SRC_TYPE GENMASK(3, 0) /* as per enum guc_capture_type */
> + #define GUC_CAPTURE_DATAHDR_SRC_CLASS GENMASK(7, 4) /* as per GUC_MAX_ENGINE_CLASSES */
> + #define GUC_CAPTURE_DATAHDR_SRC_INSTANCE GENMASK(11, 8)
> + u32 lrca; /* if type-instance, LRCA (address) that hung, else set to ~0 */
> + u32 guc_ctx_id; /* if type-instance, context index of hung context, else set to ~0 */
s/guc_ctx_id/guc_id
With __packed (per Jani's feedback) as well:
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
> + u32 num_mmios;
> + #define GUC_CAPTURE_DATAHDR_NUM_MMIOS GENMASK(9, 0)
> +};
> +
> +struct intel_guc_capture_out_data {
> + struct intel_guc_capture_out_data_header capture_header;
> + struct guc_mmio_reg capture_list[0];
> +};
> +
> +enum guc_capture_group_types {
> + GUC_STATE_CAPTURE_GROUP_TYPE_FULL,
> + GUC_STATE_CAPTURE_GROUP_TYPE_PARTIAL,
> + GUC_STATE_CAPTURE_GROUP_TYPE_MAX,
> +};
> +
> +struct intel_guc_capture_out_group_header {
> + u32 reserved1;
> + u32 info;
> + #define GUC_CAPTURE_GRPHDR_SRC_NUMCAPTURES GENMASK(7, 0)
> + #define GUC_CAPTURE_GRPHDR_SRC_CAPTURE_TYPE GENMASK(15, 8)
> +};
> +
> +struct intel_guc_capture_out_group {
> + struct intel_guc_capture_out_group_header group_header;
> + struct intel_guc_capture_out_data group_lists[0];
> +};
> +
> struct intel_guc_state_capture {
> struct __guc_mmio_reg_descr_group *reglists;
> u16 num_instance_regs[GUC_CAPTURE_LIST_INDEX_MAX][GUC_MAX_ENGINE_CLASSES];
> --
> 2.25.1
>
next prev parent reply other threads:[~2021-12-07 21:06 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-22 23:03 [Intel-gfx] [RFC 0/7] Add GuC Error Capture Support Alan Previn
2021-11-22 23:03 ` [Intel-gfx] [RFC 1/7] drm/i915/guc: Add basic support for error capture lists Alan Previn
2021-11-23 21:12 ` Michal Wajdeczko
2021-12-08 18:23 ` Teres Alexis, Alan Previn
2021-11-22 23:03 ` [Intel-gfx] [RFC 2/7] drm/i915/guc: Update GuC ADS size " Alan Previn
2021-11-23 21:46 ` Michal Wajdeczko
2021-11-24 9:52 ` Jani Nikula
2021-11-24 17:34 ` Teres Alexis, Alan Previn
2021-12-21 23:15 ` Teres Alexis, Alan Previn
2021-12-22 1:49 ` Teres Alexis, Alan Previn
2021-12-22 20:13 ` Teres Alexis, Alan Previn
2021-11-24 10:06 ` Jani Nikula
2021-11-24 17:37 ` Teres Alexis, Alan Previn
2021-11-22 23:03 ` [Intel-gfx] [RFC 3/7] drm/i915/guc: Populate XE_LP register lists for GuC error state capture Alan Previn
2021-11-23 21:55 ` Michal Wajdeczko
2021-11-24 17:16 ` Teres Alexis, Alan Previn
2021-11-22 23:03 ` [Intel-gfx] [RFC 4/7] drm/i915/guc: Add GuC's error state capture output structures Alan Previn
2021-11-24 10:08 ` Jani Nikula
2021-11-24 17:37 ` Teres Alexis, Alan Previn
2021-12-07 21:01 ` Matthew Brost [this message]
2021-12-07 23:35 ` Teres Alexis, Alan Previn
2021-11-22 23:04 ` [Intel-gfx] [RFC 5/7] drm/i915/guc: Update GuC's log-buffer-state access for error capture Alan Previn
2021-12-07 22:31 ` Matthew Brost
2021-12-07 23:33 ` Teres Alexis, Alan Previn
2021-12-07 23:30 ` Matthew Brost
2021-11-22 23:04 ` [Intel-gfx] [RFC 6/7] drm/i915/guc: Copy new GuC error capture logs upon G2H notification Alan Previn
2021-12-07 22:58 ` Matthew Brost
2021-12-08 5:14 ` Teres Alexis, Alan Previn
2021-12-08 18:22 ` Teres Alexis, Alan Previn
2021-11-22 23:04 ` [Intel-gfx] [RFC 7/7] drm/i915/guc: Print the GuC error capture output register list Alan Previn
2021-11-23 0:25 ` Teres Alexis, Alan Previn
2021-12-08 0:22 ` Matthew Brost
2021-12-08 6:31 ` Teres Alexis, Alan Previn
2021-12-23 18:54 ` Teres Alexis, Alan Previn
2021-12-24 12:09 ` Tvrtko Ursulin
2021-12-24 13:34 ` Teres Alexis, Alan Previn
2022-01-04 13:56 ` Tvrtko Ursulin
2022-01-05 17:30 ` Teres Alexis, Alan Previn
2022-01-06 9:38 ` Tvrtko Ursulin
2022-01-06 18:33 ` Teres Alexis, Alan Previn
2022-01-07 9:03 ` Tvrtko Ursulin
2022-01-07 17:03 ` Teres Alexis, Alan Previn
2022-01-10 8:07 ` Tvrtko Ursulin
2022-01-10 18:19 ` Teres Alexis, Alan Previn
2022-01-11 10:08 ` Tvrtko Ursulin
2022-01-14 7:16 ` Teres Alexis, Alan Previn
2021-11-22 23:44 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Add GuC Error Capture Support Patchwork
2021-11-22 23:45 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2021-11-23 0:16 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
2021-11-23 0:40 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for Add GuC Error Capture Support (rev2) Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211207210129.GA16721@jons-linux-dev-box \
--to=matthew.brost@intel.com \
--cc=alan.previn.teres.alexis@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox