]> git.karo-electronics.de Git - mv-sheeva.git/commit
drm/switcheroo: track state of switch in drivers.
authorDave Airlie <airlied@redhat.com>
Mon, 6 Dec 2010 23:20:40 +0000 (09:20 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 5 Jan 2011 03:45:30 +0000 (13:45 +1000)
commit5bcf719b7db0f9366cedaf102b081f99b1c325ae
tree6929d42e1d61a3b1bd7b130a37a80b99718e14aa
parent8d608aa6295242fe4c4b6105b8c59c6a5b232d89
drm/switcheroo: track state of switch in drivers.

We need to track the state of the switch in drivers, so that after s/r
we don't resume the card we've explicitly switched off before. Also
don't allow a userspace open to occur if we've switched the gpu off.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fops.c
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/nouveau/nouveau_drv.c
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_state.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/radeon_kms.c
include/drm/drmP.h