]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/i915: Fix context size calculation on SNB/IVB/VLV
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 22 Aug 2013 16:23:13 +0000 (19:23 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 23 Aug 2013 12:52:37 +0000 (14:52 +0200)
commite8016055335687b90e7cd5bbfa30e0c269417f34
treefbad2cafac736d67fb86b00114409fc2b315557e
parent35d8f2eb259e2d32c4bb67e9733ba0cba031f64f
drm/i915: Fix context size calculation on SNB/IVB/VLV

All the different context sizes reported in the CXT_SIZE register
aren't meant to be simply added together.

While BSpec is somewhat unclear on the topic of the actual context
size, empirical tests have now revealed the truth. So let's add a
big fat comment to remind people how it all works.

As a result of correctly interpreting CXT_SIZE, the IVB context
size is reduced from three pages to two, while SNB context size
remains at two pages.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h