[Intel-gfx] [PATCH 4/5] drm/i915: Add pci device revision to error state
Mika Kuoppala
mika.kuoppala at linux.intel.com
Fri Sep 18 08:17:08 PDT 2015
We have codepaths that branch using the revision of the device.
Add pci revision to error state.
Signed-off-by: Mika Kuoppala <mika.kuoppala at intel.com>
---
drivers/gpu/drm/i915/i915_gpu_error.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c
index fef708d..a29377e 100644
--- a/drivers/gpu/drm/i915/i915_gpu_error.c
+++ b/drivers/gpu/drm/i915/i915_gpu_error.c
@@ -364,7 +364,8 @@ int i915_error_state_to_str(struct drm_i915_error_state_buf *m,
}
err_printf(m, "Reset count: %u\n", error->reset_count);
err_printf(m, "Suspend count: %u\n", error->suspend_count);
- err_printf(m, "PCI ID: 0x%04x\n", dev->pdev->device);
+ err_printf(m, "PCI ID: 0x%04x (rev %02x)\n", dev->pdev->device,
+ dev->pdev->revision);
err_printf(m, "IOMMU enabled?: %d\n", error->iommu);
err_printf(m, "DMC fw: %u.%u\n", dev_priv->csr.dmc_ver_major,
dev_priv->csr.dmc_ver_minor);
--
2.1.4
More information about the Intel-gfx
mailing list