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)
commite137040e0d0376b404fc5155eba44ea07126e3bd
tree46b157a2ee463fb806a388202554c1b16c526ed8
parentf479c0ba4a170aa65cafcfa5c8a4e1d5c35181f2
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: 8539b37acef7 ("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