]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/falcon: delay construction of falcons to oneinit()
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 22 Feb 2017 11:48:30 +0000 (20:48 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 7 Mar 2017 07:05:12 +0000 (17:05 +1000)
commitc301a8a7a2912b09c9510ceef5845410d98049b5
treeeb9985d5865f45b44299e76c99a9c01bce09c2df
parente861aeae5e399ce73bd1e295848416b8ac4819b6
drm/nouveau/falcon: delay construction of falcons to oneinit()

Reading registers at device construction time can be harmful, as there
is no guarantee the underlying engine will be up, or in its runtime
configuration. Defer register reading to the oneinit() hook and update
users accordingly.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/engine/falcon.h
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
drivers/gpu/drm/nouveau/nvkm/falcon/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/base.c