]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: HWS must be in the mappable region for g33
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 3 Jul 2014 21:33:03 +0000 (17:33 -0400)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Jul 2014 19:07:17 +0000 (21:07 +0200)
commit1dad32b53372db3af46783366c21ad2dd395a05d
treef69839b379d53778752c9f3ad45afe751e6570fd
parentf3bf245357b78b9fe747e464768a35ab4f667a1b
drm/i915: HWS must be in the mappable region for g33

On g33, the documentation states

"HWS_PGA:
 Format = Bits 28:12 of graphics memory address (bits 31:29 MBZ)."

which translates to that the address of the HWS must be below 256MiB,
which is conveniently the mappable aperture.

This also appears to be true (but not documented as so) for gen4 and
gen5. To generalise we force it into the low mappable region for all
non-LLC platforms. If we locate the HWS at the top of the GTT the
machine will hard hang during boot (fails on pnv, gm45, ilk and byt,
but works on snb, ivb, hsw).

v2: Add comments to explain why use PIN_MAPPABLE even though we have
    no intention of mapping the object. (Ville)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c