All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Michael Buesch <mb@bu3sch.de>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: Powerbook shuts down hard when hot, patch found
Date: Sat, 29 Sep 2007 09:04:13 +1000	[thread overview]
Message-ID: <1191020653.6158.90.camel@pasglop> (raw)
In-Reply-To: <200709282332.52819.mb@bu3sch.de>


On Fri, 2007-09-28 at 23:32 +0200, Michael Buesch wrote:
> Hi,
> 
> some time ago I already mailed you about this problem.
> I will quickly describe what's going on, again:
> 
> My powerbook boots fine when it's cold. You can work with
> it and you can also run it hot (compile something, etc...).
> But when you try to boot it while it is hot, it will
> automatically shutdown hard inside of the boot process.
> Some part of the hardware is shutting it down.
> This does not happen when it's getting hot _after_ boot.
> Only while boot when it's hot.
> 
> I bisected the problem and found out that the following patch
> is responsible for this. Yeah, this sounds a little bit
> crazy, as this patch does not seem to be related to
> this at all. But I confirmed it by booting kernel
> 4f71c5de19c27f2198105d3b26b398494d5c353b
> That kernel triggered the bug. Then I patch -R the patch below
> and it booted properly, even when hot. I also rechecked
> that it really was hot enough to trigger the event by
> immediately rebooting into a known bad kernel, that immediately
> shut down the pbook, as expected.
> So I'm pretty sure it's the patch below causing this weird
> behaviour. Any idea why?

This is very strange... Can you try also clearing VGA_DDC_CLK_OUT_EN and
VGA_DDC_DATA_OUT_EN and the same time and see if that helps ?

> 
> commit 4f71c5de19c27f2198105d3b26b398494d5c353b
> Author: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Date:   Fri Nov 17 15:35:00 2006 +1100
> 
>     [PATCH] Fix radeon DDC regression
>     
>     When radeonfb was changed to use the new "generic" ddc, a bit of
>     code initializing the GPIO lines was lost, causing it to not work
>     if the firmware didn't configure them properly, which seems to
>     happen on some cards.
>     
>     Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
>     Signed-off-by: Linus Torvalds <torvalds@osdl.org>
> 
> diff --git a/drivers/video/aty/radeon_i2c.c b/drivers/video/aty/radeon_i2c.c
> index 6767545..869725a 100644
> --- a/drivers/video/aty/radeon_i2c.c
> +++ b/drivers/video/aty/radeon_i2c.c
> @@ -139,7 +139,13 @@ void radeon_delete_i2c_busses(struct rad
>  int radeon_probe_i2c_connector(struct radeonfb_info *rinfo, int conn,
>  			       u8 **out_edid)
>  {
> -	u8 *edid = fb_ddc_read(&rinfo->i2c[conn-1].adapter);
> +	u32 reg = rinfo->i2c[conn-1].ddc_reg;
> +	u8 *edid;
> +
> +	OUTREG(reg, INREG(reg) &
> +			~(VGA_DDC_DATA_OUTPUT | VGA_DDC_CLK_OUTPUT));
> +
> +	edid = fb_ddc_read(&rinfo->i2c[conn-1].adapter);
>  
>  	if (out_edid)
>  		*out_edid = edid;
> 

  reply	other threads:[~2007-09-28 23:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-28 21:32 Powerbook shuts down hard when hot, patch found Michael Buesch
2007-09-28 23:04 ` Benjamin Herrenschmidt [this message]
2007-09-29 11:06   ` Michael Buesch
2007-09-29 11:22     ` Michael Buesch
2007-09-29 21:51       ` Benjamin Herrenschmidt
2007-09-29 21:53         ` Michael Buesch
2007-09-29 22:19           ` Benjamin Herrenschmidt
2007-09-29 22:26             ` Michael Buesch
2007-09-29 22:49               ` Benjamin Herrenschmidt
2007-09-30 10:13                 ` Michael Buesch
2007-09-30 10:16                   ` Michael Buesch
2007-10-01  8:00                     ` Michel Dänzer
2007-10-01 20:58                       ` Michael Buesch
2007-10-02  6:43                         ` Michel Dänzer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1191020653.6158.90.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=mb@bu3sch.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.