]> git.baikalelectronics.ru Git - kernel.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)
commitb8414de4901d24d65e134e87841ccd74f3adfb51
treefbad2cafac736d67fb86b00114409fc2b315557e
parent5915d4239f98ee70b04e94de74e480d5e3a44d53
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