drm/gk104/pwr: implement PGOB disable method
authorBen Skeggs <bskeggs@redhat.com>
Thu, 12 Jun 2014 08:58:05 +0000 (18:58 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Sat, 9 Aug 2014 19:11:06 +0000 (05:11 +1000)
commit61854bdb135d1b958a5057739206d663528870db
tree9b49ee52cb34bb4587120a91e78a4bce37f9f9b4
parentadec9bc3bd5f2618cea5ab8dccc506b86ab4aabb
drm/gk104/pwr: implement PGOB disable method

As documented at:

ftp://download.nvidia.com/open-gpu-doc/gk104-disable-graphics-power-gating/1/gk104-disable-graphics-power-gating.txt

NVIDIA were not able document the steps necessary to detect whether this
is required or not at this time.  However, they did confirm that this
procedure is safe to perform unconditionally on GK104/6.  GK107 does not
have the power gating feature, and it was recommended that we do not
perform these steps there as the effects were not verified.

The disable path is from observing the binary driver, and not
documented in the link above.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/Makefile
drivers/gpu/drm/nouveau/core/engine/device/nve0.c
drivers/gpu/drm/nouveau/core/include/subdev/pwr.h
drivers/gpu/drm/nouveau/core/subdev/pwr/base.c
drivers/gpu/drm/nouveau/core/subdev/pwr/gk104.c [new file with mode: 0644]
drivers/gpu/drm/nouveau/core/subdev/pwr/priv.h