]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/bar/gk20a: Avoid bar teardown during init
authorJon Hunter <jonathanh@nvidia.com>
Thu, 4 Jan 2018 11:29:09 +0000 (11:29 +0000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 19 Jan 2018 01:35:44 +0000 (11:35 +1000)
commitcdce5f0b97547a0f2bdaf66756a92896e2a012c1
treeae62e13175a658da6243c787e5ca58bd565d551a
parenta22d22e84d06d283788dac0e00750f6633dbfe55
drm/nouveau/bar/gk20a: Avoid bar teardown during init

Commit 40b0602c4e7f ("drm/nouveau/bar: implement bar1 teardown")
introduced add a teardown helper function for BAR1. During
initialisation of the Nouveau, initially all the teardown helpers are
called once, before calling their init counterparts. For gk20a, after
the BAR1 teardown function is called, the device is hanging during the
initialisation of the FB sub-device. At this point it is unclear why
this is happening and this is still under investigation. However, this
change is preventing Tegra124 devices from booting when Nouveau is
enabled. To allow Tegra124 to boot, remove the teardown helper for
gk20a.

This is based upon a previous patch by Guillaume Tucker but limits
the workaround to only gk20a GPUs.

Fixes: 40b0602c4e7f ("drm/nouveau/bar: implement bar1 teardown")
Reported-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/bar/gk20a.c