drm/nouveau/device: fix changing endianess code to work on older GPUs
authorKarol Herbst <kherbst@redhat.com>
Tue, 13 Oct 2020 12:01:26 +0000 (14:01 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 29 Oct 2020 23:34:12 +0000 (09:34 +1000)
commitdcd292c172493067a72672b245a3dd1bcf7268dd
treedd2543d4d01263020b4ee6ca76f035287db16640
parent925681454d7b557d404b5d28ef4469fac1b2e105
drm/nouveau/device: fix changing endianess code to work on older GPUs

With this we try to detect if the endianess switch works and assume LE if
not. Suggested by Ben.

Fixes: 51c05340e407 ("drm/nouveau/device: detect if changing endianness failed")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Cc: <stable@vger.kernel.org> # v5.8+
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c