Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fcaa149 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau/device: post write to NV_PMC_BOOT_1 when flipping endian switch



fdo#88868

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 404ba3f7
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -340,11 +340,13 @@ nvkm_devobj_ctor(struct nvkm_object *parent, struct nvkm_object *engine,


		/* switch mmio to cpu's native endianness */
		/* switch mmio to cpu's native endianness */
#ifndef __BIG_ENDIAN
#ifndef __BIG_ENDIAN
		if (ioread32_native(map + 0x000004) != 0x00000000)
		if (ioread32_native(map + 0x000004) != 0x00000000) {
#else
#else
		if (ioread32_native(map + 0x000004) == 0x00000000)
		if (ioread32_native(map + 0x000004) == 0x00000000) {
#endif
#endif
			iowrite32_native(0x01000001, map + 0x000004);
			iowrite32_native(0x01000001, map + 0x000004);
			ioread32_native(map);
		}


		/* read boot0 and strapping information */
		/* read boot0 and strapping information */
		boot0 = ioread32_native(map + 0x000000);
		boot0 = ioread32_native(map + 0x000000);