summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-08-04 05:15:11 +0200
committerBen Skeggs <bskeggs@redhat.com>2010-08-06 08:34:50 +1000
commit3c9b25349e8fd6e29c4e8298dc08fb052f45a18b (patch)
treec70ac55107664de44b05d4bd76018be626dca9b5
parent0bf9b0e0ce9140c200c0db67a0c71983f07e1a65 (diff)
downloadlinux-3.10-3c9b25349e8fd6e29c4e8298dc08fb052f45a18b.tar.gz
linux-3.10-3c9b25349e8fd6e29c4e8298dc08fb052f45a18b.tar.bz2
linux-3.10-3c9b25349e8fd6e29c4e8298dc08fb052f45a18b.zip
drm/nouveau: Fix the INIT_CONFIGURE_PREINIT BIOS opcode.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_bios.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c
index 66035283546..c608b0b29a3 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;