From: John.C.Harrison@Intel.com To: Intel-GFX@Lists.FreeDesktop.Org Cc: John Harrison <John.C.Harrison@Intel.com>, DRI-Devel@Lists.FreeDesktop.Org Subject: [PATCH 2/5] drm/i915/guc: Increase GuC log size for CONFIG_DEBUG_GEM Date: Fri, 3 Dec 2021 10:33:36 -0800 [thread overview] Message-ID: <20211203183339.3276250-3-John.C.Harrison@Intel.com> (raw) In-Reply-To: <20211203183339.3276250-1-John.C.Harrison@Intel.com> From: John Harrison <John.C.Harrison@Intel.com> Lots of testing is done with the DEBUG_GEM config option enabled but not the DEBUG_GUC option. That means we only get teeny-tiny GuC logs which are not hugely useful. Enabling full DEBUG_GUC also spews lots of other detailed output that is not generally desired. However, bigger GuC logs are extremely useful for almost any regression debug. So enable bigger logs for DEBUG_GEM builds as well. Signed-off-by: John Harrison <John.C.Harrison@Intel.com> --- drivers/gpu/drm/i915/gt/uc/intel_guc_log.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_log.h b/drivers/gpu/drm/i915/gt/uc/intel_guc_log.h index ac1ee1d5ce10..fe6ab7550a14 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_log.h +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_log.h @@ -15,9 +15,12 @@ struct intel_guc; -#ifdef CONFIG_DRM_I915_DEBUG_GUC +#if defined(CONFIG_DRM_I915_DEBUG_GUC) #define CRASH_BUFFER_SIZE SZ_2M #define DEBUG_BUFFER_SIZE SZ_16M +#elif defined(CONFIG_DRM_I915_DEBUG_GEM) +#define CRASH_BUFFER_SIZE SZ_1M +#define DEBUG_BUFFER_SIZE SZ_2M #else #define CRASH_BUFFER_SIZE SZ_8K #define DEBUG_BUFFER_SIZE SZ_64K -- 2.25.1
WARNING: multiple messages have this Message-ID (diff)
From: John.C.Harrison@Intel.com To: Intel-GFX@Lists.FreeDesktop.Org Cc: DRI-Devel@Lists.FreeDesktop.Org Subject: [Intel-gfx] [PATCH 2/5] drm/i915/guc: Increase GuC log size for CONFIG_DEBUG_GEM Date: Fri, 3 Dec 2021 10:33:36 -0800 [thread overview] Message-ID: <20211203183339.3276250-3-John.C.Harrison@Intel.com> (raw) In-Reply-To: <20211203183339.3276250-1-John.C.Harrison@Intel.com> From: John Harrison <John.C.Harrison@Intel.com> Lots of testing is done with the DEBUG_GEM config option enabled but not the DEBUG_GUC option. That means we only get teeny-tiny GuC logs which are not hugely useful. Enabling full DEBUG_GUC also spews lots of other detailed output that is not generally desired. However, bigger GuC logs are extremely useful for almost any regression debug. So enable bigger logs for DEBUG_GEM builds as well. Signed-off-by: John Harrison <John.C.Harrison@Intel.com> --- drivers/gpu/drm/i915/gt/uc/intel_guc_log.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_log.h b/drivers/gpu/drm/i915/gt/uc/intel_guc_log.h index ac1ee1d5ce10..fe6ab7550a14 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_log.h +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_log.h @@ -15,9 +15,12 @@ struct intel_guc; -#ifdef CONFIG_DRM_I915_DEBUG_GUC +#if defined(CONFIG_DRM_I915_DEBUG_GUC) #define CRASH_BUFFER_SIZE SZ_2M #define DEBUG_BUFFER_SIZE SZ_16M +#elif defined(CONFIG_DRM_I915_DEBUG_GEM) +#define CRASH_BUFFER_SIZE SZ_1M +#define DEBUG_BUFFER_SIZE SZ_2M #else #define CRASH_BUFFER_SIZE SZ_8K #define DEBUG_BUFFER_SIZE SZ_64K -- 2.25.1
next prev parent reply other threads:[~2021-12-03 18:33 UTC|newest] Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-12-03 18:33 [PATCH 0/5] Update to GuC version 69.0.0 John.C.Harrison 2021-12-03 18:33 ` [Intel-gfx] " John.C.Harrison 2021-12-03 18:33 ` [PATCH 1/5] drm/i915/uc: Allow platforms to have GuC but not HuC John.C.Harrison 2021-12-03 18:33 ` [Intel-gfx] " John.C.Harrison 2021-12-03 19:01 ` Lucas De Marchi 2021-12-03 19:01 ` [Intel-gfx] " Lucas De Marchi 2021-12-06 22:09 ` Daniele Ceraolo Spurio 2021-12-03 18:33 ` John.C.Harrison [this message] 2021-12-03 18:33 ` [Intel-gfx] [PATCH 2/5] drm/i915/guc: Increase GuC log size for CONFIG_DEBUG_GEM John.C.Harrison 2021-12-03 20:25 ` Matthew Brost 2021-12-03 18:33 ` [PATCH 3/5] drm/i915/guc: Don't go bang in GuC log if no GuC John.C.Harrison 2021-12-03 18:33 ` [Intel-gfx] " John.C.Harrison 2021-12-03 18:33 ` [PATCH 4/5] drm/i915/guc: Update to GuC version 69.0.0 John.C.Harrison 2021-12-03 18:33 ` [Intel-gfx] " John.C.Harrison 2021-12-03 22:28 ` Michal Wajdeczko 2021-12-03 22:28 ` [Intel-gfx] " Michal Wajdeczko 2021-12-03 23:56 ` Matthew Brost 2021-12-03 23:56 ` Matthew Brost 2021-12-03 18:33 ` [PATCH 5/5] drm/i915/guc: Improve GuC loading status check/error reports John.C.Harrison 2021-12-03 18:33 ` [Intel-gfx] " John.C.Harrison 2021-12-03 20:22 ` Matthew Brost 2021-12-03 20:22 ` [Intel-gfx] " Matthew Brost 2021-12-03 22:22 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Update to GuC version 69.0.0 Patchwork 2021-12-03 22:23 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork 2021-12-03 22:27 ` [Intel-gfx] ✗ Fi.CI.DOCS: " Patchwork 2021-12-06 19:29 ` John Harrison 2021-12-06 22:34 ` Michal Wajdeczko 2021-12-03 22:50 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork 2021-12-04 9:55 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " 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=20211203183339.3276250-3-John.C.Harrison@Intel.com \ --to=john.c.harrison@intel.com \ --cc=DRI-Devel@Lists.FreeDesktop.Org \ --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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.