]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Gen3 HWSTAM is actually 32 bits
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 Aug 2017 18:37:02 +0000 (21:37 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 14 Sep 2017 14:18:54 +0000 (17:18 +0300)
commitbb0ac2f10c30e71c2b24d9dcd4db3cb279cd31d7
tree82da0ee0283e917e536922bc96118537499bdb80
parenta5a2ed59b22d38682bc04b0d00f046deea05bdb9
drm/i915: Gen3 HWSTAM is actually 32 bits

Bspec claims that HWSTAM is only 16 bits on gen3, but the other
interrupts registers are 32 bits and there are 18 valid interrupt
bits. Hence a 16 bit HWSTAM wouldn't be able to contain all the
bits, so it seems the spec is incorrect about the size of the
register. And indeed I can clear bits 16 and 17 just fine with
a 32 bit write. So let's adjust the code to treat the register
as 32 bits.

Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170818183705.27850-14-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/i915_irq.c