[Intel-gfx] [PATCH] drm/i915/gen9+: Whitelist TIMESTAMP register from BLT ring
Andrzej Lawrynowicz
andrzej.lawrynowicz at intel.com
Thu Oct 27 14:39:31 UTC 2016
Since gen9 timestamp can be read from BLT ring (TIMESTAMP_BCSUNIT).
Add this register to reg_read ioctl whitelist.
cc=chris at chris-wilson.co.uk
cc=arkadiusz.hiler at intel.com
cc=michal.winiarski at intel.com
Signed-off-by: Andrzej Lawrynowicz <andrzej.lawrynowicz at intel.com>
---
drivers/gpu/drm/i915/intel_uncore.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_uncore.c b/drivers/gpu/drm/i915/intel_uncore.c
index e2b188d..c2c3fe6 100644
--- a/drivers/gpu/drm/i915/intel_uncore.c
+++ b/drivers/gpu/drm/i915/intel_uncore.c
@@ -1354,6 +1354,9 @@ static const struct register_whitelist {
{ .offset_ldw = RING_TIMESTAMP(RENDER_RING_BASE),
.offset_udw = RING_TIMESTAMP_UDW(RENDER_RING_BASE),
.size = 8, .gen_bitmask = GEN_RANGE(4, 9) },
+ { .offset_ldw = RING_TIMESTAMP(BLT_RING_BASE),
+ .offset_udw = RING_TIMESTAMP_UDW(BLT_RING_BASE),
+ .size = 8, .gen_bitmask = GEN_RANGE(9, 9) },
};
int i915_reg_read_ioctl(struct drm_device *dev,
--
2.10.1
--------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek
przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by
others is strictly prohibited.
More information about the Intel-gfx
mailing list