]> 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)
commit50ddcc1a1d06d48684796a4547c1feb6f15aa13b
tree46b157a2ee463fb806a388202554c1b16c526ed8
parent9b445939f797d847926a29a6d9d24ddc2320861b
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: 6395a41c6af2 ("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