From: Francisco Jerez Date: Wed, 4 Aug 2010 03:15:11 +0000 (+0200) Subject: drm/nouveau: Fix the INIT_CONFIGURE_PREINIT BIOS opcode. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3c9b25349e8fd6e29c4e8298dc08fb052f45a18b;p=linux-beck.git drm/nouveau: Fix the INIT_CONFIGURE_PREINIT BIOS opcode. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index 66035283546a..c608b0b29a36 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c @@ -2595,7 +2595,7 @@ init_configure_preinit(struct nvbios *bios, uint16_t offset, /* no iexec->execute check by design */ uint32_t straps = bios_rd32(bios, NV_PEXTDEV_BOOT_0); - uint8_t cr3c = ((straps << 2) & 0xf0) | (straps & (1 << 6)); + uint8_t cr3c = ((straps << 2) & 0xf0) | (straps & 0x40) >> 6; if (bios->major_version > 2) return 0;