]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Initialise GTT MTRR to -1
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 23 Mar 2012 17:38:49 +0000 (17:38 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 28 Mar 2012 20:07:57 +0000 (22:07 +0200)
commit943e362ddf6a8a76b425e04dc5ef4421556bc3b9
tree1cbbd94881f1cc2aa6ff50376fe6bba015e72765
parentdfd14dbd0f6a9cf53292a4ab25279912dae357d7
drm/i915: Initialise GTT MTRR to -1

Fixes a regression from 031164e8 (drm/i915: Don't do MTRR setup if PAT
is enabled) where we left the MTRR as 0 and so tried to free a MTRR we
did not own during unload.

Reported-and-tested-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c