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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jan 2017 07:21:49 +0000 (08:21 +0100)
commit00e1fb138ffacf4c8141a03e5d5ef81cc548dc10
treef0d63fb57a7712cea3b37e2a7cd49ebfbc809cef
parentfef542735a48d2029c8c1e509772884e4ec321e7
drm/nouveau/gr: fallback to legacy paths during firmware lookup

commit e137040e0d0376b404fc5155eba44ea07126e3bd upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c