]> 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)
commita5f8c20ff840d284ca98d493bb608cafa81a7ca4
treeae62e13175a658da6243c787e5ca58bd565d551a
parent93c71aa879891a9bb9154cb4515a9be4d787cd58
drm/nouveau/bar/gk20a: Avoid bar teardown during init

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