]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/gr: fallback to legacy paths during firmware lookup
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 4 Nov 2016 09:36:17 +0000 (18:36 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 7 Nov 2016 04:05:04 +0000 (14:05 +1000)
commit1c2bf0d26a04fb5fc194a53cd1fbddf28b440078
tree46b157a2ee463fb806a388202554c1b16c526ed8
parent810c68f17dd659eadd26a8506ef98acf2fe22e02
drm/nouveau/gr: fallback to legacy paths during firmware lookup

Look for firmware files using the legacy ("nouveau/nvxx_fucxxxx") path
if they cannot be found in the new, "official" path. User setups were
broken by the switch, which is bad.

There are only 4 firmware files we may want to look up that way, so
hardcode them into the lookup function. All new firmware files should
use the standard "nvidia/<chip>/gr/" path.

Fixes: ff81d573c108 ("drm/nouveau/gr: use NVIDIA-provided external firmwares")
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c