]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaaa458b309e514a910948f6488c5621bc2a156a7
treed5eece7968f2e74ec3f4230655a1da9c13828c48
parent1b2476ceebdf884c0e5a25d892a5bddfa719333d
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