drm/i915: Use Graphics Base of Stolen Memory on all gen3+
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 3 Jul 2013 23:23:33 +0000 (00:23 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Jul 2013 08:37:11 +0000 (10:37 +0200)
commit17fec8a08698bcab98788e1e89f5b8e7502ababd
treed5eece7968f2e74ec3f4230655a1da9c13828c48
parentf63a484c2f606b8267eb4d1dbfce5d1d3416e0bb
drm/i915: Use Graphics Base of Stolen Memory on all gen3+

So I made the mistake of missing that the desktop and mobile chipsets
have different layouts in their PCI configurations, and we were
incorrectly setting the wrong physical address for stolen memory on
mobile chipsets.

Since all gen3+ are actually consistent in the location of the GBSM
register in the PCI configuration space on device 2 (the GPU), use it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
[danvet: Drop cc: stable and fudge conflicts.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_stolen.c