Skip to content

Commit 19c656a

Browse files
vsyrjaladanvet
authored andcommitted
drm/i915: Print PCI revision in i915_dump_device_info()
Knowing the device stepping may be crucial in analyzing problems. Since we always ask bug reporters for dmegs with drm.debug=0xe (or something) it would be nice if the PCI revision is already included in the dump. Avoids having to ask for lspci output as well. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent 60a5ca0 commit 19c656a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/i915/i915_dma.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1460,10 +1460,11 @@ static void i915_dump_device_info(struct drm_i915_private *dev_priv)
14601460
#define SEP_EMPTY
14611461
#define PRINT_FLAG(name) info->name ? #name "," : ""
14621462
#define SEP_COMMA ,
1463-
DRM_DEBUG_DRIVER("i915 device info: gen=%i, pciid=0x%04x flags="
1463+
DRM_DEBUG_DRIVER("i915 device info: gen=%i, pciid=0x%04x rev=0x%02x flags="
14641464
DEV_INFO_FOR_EACH_FLAG(PRINT_S, SEP_EMPTY),
14651465
info->gen,
14661466
dev_priv->dev->pdev->device,
1467+
dev_priv->dev->pdev->revision,
14671468
DEV_INFO_FOR_EACH_FLAG(PRINT_FLAG, SEP_COMMA));
14681469
#undef PRINT_S
14691470
#undef SEP_EMPTY

0 commit comments

Comments
 (0)