drm/radeon: fix PM on non-vram cards.
authorDave Airlie <airlied@redhat.com>
Mon, 7 Jun 2010 02:00:57 +0000 (12:00 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 7 Jun 2010 23:33:16 +0000 (09:33 +1000)
commit9bad145ee2ef43ac36d397190a7d8b1a7306d3fb
tree5c0854f0a1db25cd52ba2cc32b449347a9177eb7
parent5a79395b2791cc70442ab8434aed1b5206683e7c
drm/radeon: fix PM on non-vram cards.

PM attemps to unmap objects that aren't actually mapped into userspace ever,
so just don't bother unmapping them at this point, since all you are doing
is nothing. We should be making sure all access to these objects are locked in
kernel space instead. In theory the VRAM gart table is already done, and both
the shaders and stolen vga memory blocks are never accessed at runtime.

fixes: https://bugzilla.kernel.org/show_bug.cgi?id=16127

Reported-by: Jure Repnic <jlp.bugs@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_pm.c