Skip to content

Commit 0dd8674

Browse files
drm/i915/guc: Increase GuC log size for CONFIG_DEBUG_GEM
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> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211211065859.2248188-3-John.C.Harrison@Intel.com
1 parent 57b427a commit 0dd8674

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/gpu/drm/i915/gt/uc/intel_guc_log.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@
1515

1616
struct intel_guc;
1717

18-
#ifdef CONFIG_DRM_I915_DEBUG_GUC
18+
#if defined(CONFIG_DRM_I915_DEBUG_GUC)
1919
#define CRASH_BUFFER_SIZE SZ_2M
2020
#define DEBUG_BUFFER_SIZE SZ_16M
21+
#elif defined(CONFIG_DRM_I915_DEBUG_GEM)
22+
#define CRASH_BUFFER_SIZE SZ_1M
23+
#define DEBUG_BUFFER_SIZE SZ_2M
2124
#else
2225
#define CRASH_BUFFER_SIZE SZ_8K
2326
#define DEBUG_BUFFER_SIZE SZ_64K

0 commit comments

Comments
 (0)