]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Nov 2020 11:38:56 +0000 (12:38 +0100)
commit656ebbda99312d2cc558deb928caec657286fa0c
tree0d28432ac9a92a723d571809ec4692ecf2db1798
parent8d6ef44fb1a96111b1d66c1d7de0452fe9331e24
drm/nouveau/device: fix changing endianess code to work on older GPUs

commit dcd292c172493067a72672b245a3dd1bcf7268dd upstream.

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