All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/nouveau/bios: fix bug introduced in 457e77b2
@ 2014-04-09 19:33 Andreas Noever
       [not found] ` <1397072012-9475-1-git-send-email-andreas.noever-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  2014-04-11  7:40 ` Ben Skeggs
  0 siblings, 2 replies; 4+ messages in thread
From: Andreas Noever @ 2014-04-09 19:33 UTC (permalink / raw)
  To: dri-devel
  Cc: Andreas Noever, David Airlie, Ben Skeggs, Martin Peres,
	Ilia Mirkin, Maarten Lankhorst, linux-kernel

457e77b2 effectively replaces (... & 0xffffff00) << 8 with (... >> 8) << 8.
Which does not do the same and breaks boot on my machine.

Restore the old behaviour and remove the unnecessary cast.

Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
---
 drivers/gpu/drm/nouveau/core/subdev/bios/base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/nouveau/core/subdev/bios/base.c b/drivers/gpu/drm/nouveau/core/subdev/bios/base.c
index e9df94f..2885b7c 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/bios/base.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/bios/base.c
@@ -109,7 +109,7 @@ nouveau_bios_shadow_pramin(struct nouveau_bios *bios)
 			return;
 		}
 
-		addr = (u64)(addr >> 8) << 8;
+		addr = (addr >> 8) << 16;
 		if (!addr) {
 			addr  = (u64)nv_rd32(bios, 0x001700) << 16;
 			addr += 0xf0000;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-11  7:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-09 19:33 [PATCH] drm/nouveau/bios: fix bug introduced in 457e77b2 Andreas Noever
     [not found] ` <1397072012-9475-1-git-send-email-andreas.noever-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-04-10  9:41   ` REGRESSION " Thomas Glanzmann
2014-04-10  9:41     ` Thomas Glanzmann
2014-04-11  7:40 ` Ben Skeggs

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.