]> 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)
commit6eb7f1b203e535df2f182bbe32f294bf9e14f3f3
treed5eece7968f2e74ec3f4230655a1da9c13828c48
parent90ccd8c3fc60fc4298bb5e1dd9cf4b75f97843d9
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