OSDN Git Service

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)
commit9e4397579fa4cd5cc411d47815eb805e337d0203
treeeb9985d5865f45b44299e76c99a9c01bce09c2df
parent65d9376b74ff651a8d4c6736d32a3bb3aa47bf09
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