drm/i915: Fix oops on HWS unload
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 10 Oct 2010 17:54:08 +0000 (18:54 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Oct 2010 08:16:35 +0000 (09:16 +0100)
commit701394cc534a4a7883ddc4f8f82fb438b3d664ff
tree249ba3988a902be66e701f4acc9cf1a1f5ba8a55
parent939fe4d7d6e2c92370ca5d1fb70e81043f5ff8d9
drm/i915: Fix oops on HWS unload

Freeing the Hardware Status Page was writing to the HWS register in
order to disable the GPU writing to the HWS page. Unfortunately, we were
writing to the mmio register after unmapping the register space, hence
the oops.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_dma.c