All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: Fix for SB100/SB150 bootup hangs
@ 2007-03-05  9:11 David Miller
  2007-03-05 16:56 ` Tom 'spot' Callaway
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: David Miller @ 2007-03-05  9:11 UTC (permalink / raw)
  To: sparclinux


Anyone with a SunBlade100 or SunBlade150 trying to use
kernels built with gcc-4.1.x or later and seeing hangs
should try out this patch.

GCC-4.1.x and later optimize away this poorly constructed
delay, so there is no delay, and the chip hangs.

I'll put a proper version of this fix, using a udelay(),
upstream very soon.

Thanks.

diff --git a/drivers/video/aty/mach64_ct.c b/drivers/video/aty/mach64_ct.c
index f3b487b..96e91ee 100644
--- a/drivers/video/aty/mach64_ct.c
+++ b/drivers/video/aty/mach64_ct.c
@@ -614,7 +614,8 @@ static void aty_resume_pll_ct(const struct fb_info *info,
 		 * helps for Rage Mobilities that sometimes crash when
 		 * we switch to sclk. (Daniel Mantione, 13-05-2003)
 		 */
-		for (i=0;i<=0x1ffff;i++);
+		for (i=0;i<=0x1ffff;i++)
+			barrier();
 	}
 
 	aty_st_pll_ct(PLL_REF_DIV, pll->ct.pll_ref_div, par);

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

end of thread, other threads:[~2007-05-17  8:25 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-05  9:11 [PATCH]: Fix for SB100/SB150 bootup hangs David Miller
2007-03-05 16:56 ` Tom 'spot' Callaway
2007-03-05 19:26 ` Jason Wever
2007-03-08 22:12 ` Emanuele Rocca
2007-03-08 22:19 ` David Miller
2007-03-08 22:36 ` Emanuele Rocca
2007-03-08 23:08 ` David Miller
2007-03-08 23:21 ` Emanuele Rocca
2007-04-12 21:11 ` David Miller
2007-04-15 12:06 ` Emanuele Rocca
2007-04-16  9:22 ` Emanuele Rocca
2007-04-16 18:55 ` David Miller
2007-04-16 19:49 ` Emanuele Rocca
2007-04-16 19:53 ` David Miller
2007-04-16 20:08 ` Emanuele Rocca
2007-04-16 20:19 ` David Miller
2007-04-16 20:56 ` Tom "spot" Callaway
2007-04-16 21:16 ` Emanuele Rocca
2007-04-16 22:21 ` David Miller
2007-04-17  2:27 ` Tom "spot" Callaway
2007-04-17 12:19 ` Emanuele Rocca
2007-04-17 19:54 ` Emanuele Rocca
2007-05-17  8:25 ` David Miller

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.