projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e435ad
)
drm/i915: Always use GEN8_RING_PDP_{LDW, UDW} instead of hand rolling the register...
author
Ville Syrjälä
<
[email protected]
>
Fri, 18 Sep 2015 17:03:26 +0000
(20:03 +0300)
committer
Daniel Vetter
<
[email protected]
>
Wed, 30 Sep 2015 08:20:14 +0000
(10:20 +0200)
Signed-off-by: Ville Syrjälä <
[email protected]
>
Reviewed-by: Jani Nikula <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
drivers/gpu/drm/i915/i915_debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_debugfs.c
b/drivers/gpu/drm/i915/i915_debugfs.c
index 879771766973271cb77f6ad7fee6263a065066a3..007d8920eb2f0dbed22a13a56b99e0e547f86de1 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_debugfs.c
+++ b/
drivers/gpu/drm/i915/i915_debugfs.c
@@
-2231,10
+2231,9
@@
static void gen8_ppgtt_info(struct seq_file *m, struct drm_device *dev)
for_each_ring(ring, dev_priv, unused) {
seq_printf(m, "%s\n", ring->name);
for (i = 0; i < 4; i++) {
- u32 offset = 0x270 + i * 8;
- u64 pdp = I915_READ(ring->mmio_base + offset + 4);
+ u64 pdp = I915_READ(GEN8_RING_PDP_UDW(ring, i));
pdp <<= 32;
- pdp |= I915_READ(
ring->mmio_base + offset
);
+ pdp |= I915_READ(
GEN8_RING_PDP_LDW(ring, i)
);
seq_printf(m, "\tPDP%d 0x%016llx\n", i, pdp);
}
}