]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commite062a01e6daa2555ed13cf3f4e8cd3a05bbe474c
treeae62e13175a658da6243c787e5ca58bd565d551a
parentb554b12addf939f826ec97c7c9ff0214a2801a0a
drm/nouveau/bar/gk20a: Avoid bar teardown during init

Commit bbb163e18960 ("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: bbb163e18960 ("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