drm/nouveau/gr/gk104-gk20a: call pmu to disable any power-gating before ctor()
authorBen Skeggs <bskeggs@redhat.com>
Fri, 20 Mar 2015 05:38:23 +0000 (15:38 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 14 Apr 2015 07:00:51 +0000 (17:00 +1000)
commited22e684622533f903dfad9beb99d872536c3040
tree1f5890453126ae4639b6f72c390867ab7ed884ba
parentf02a0e849dbd16541a1e75ef8c8719bc5f611219
drm/nouveau/gr/gk104-gk20a: call pmu to disable any power-gating before ctor()

On some of these chipsets, reading NV_PGRAPH_GPC_GPM_PD_PES_TPC_ID_MASK
can trigger a PRI fault and return an error code instead of a TPC mask,
unless PGOB has been disabled first.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110b.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk208.c