From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Andreas Schwab <schwab@suse.de>
Cc: linuxppc-dev list <linuxppc-dev@ozlabs.org>
Subject: Re: Wakeup broken on iBook G3
Date: Tue, 22 Mar 2005 10:23:01 +1100	[thread overview]
Message-ID: <1111447381.1236.295.camel@gaston> (raw)
In-Reply-To: <je8y4g7m6h.fsf@sykes.suse.de>
On Mon, 2005-03-21 at 21:56 +0100, Andreas Schwab wrote:
> Benjamin Herrenschmidt <benh@kernel.crashing.org> writes:
> 
> > Can you try playing with pmac_sleep.S and pmac_cache.S, basically
> > reverting those including the calls to set_L2CR in via-pmu.c ?
> 
> That makes it even worse (it apparently crashes almost immediately after
> wakeup).
Hrm... Ok...
At this point, I don't know for sure what's up, there have been several
reports but nobody physically close to me has any of these machines for
me to test with.
Have you tried with very latest bk which contains by workarounds for
radeon erratas ? The M7 has smore bugs that might have been triggered by
the moving of code around that I did in the latest readeonfb.
Also, in pmac_cache.S, try locating that bit:
	/* disp-flush L1 */
	li	r4,0x4000
	mtctr	r4
	lis	r4,0xfff0
1:	lwzx	r0,r0,r4
	addi	r4,r4,32
	bdnz	1b
	sync
	isync
And turn the li r4,0x4000 into lis r4,2 and let me know if that makes
any difference... Same a little bit later, there is:
	lis	r4,2
	mtctr	r4
	lis	r4,0xfff0
1:	lwzx	r0,r0,r4
	addi	r4,r4,32
	bdnz	1b
	sync
	isync
Here, try turning the lis r4,2 into lis r4,0x20
And let me know if any of these help.
Finally, what happens if you boot without any framebuffer in the kernel
(no fbdev at all, no fbcon, just no console), ssh into the box, and put
it to sleep ? Does it wake up ?
Ben.
next prev parent reply	other threads:[~2005-03-21 23:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-20 17:19 Wakeup broken on iBook G3 Andreas Schwab
2005-03-21  3:59 ` Benjamin Herrenschmidt
2005-03-21 10:35   ` Andreas Schwab
2005-03-21 12:22     ` Benjamin Herrenschmidt
2005-03-21 20:56       ` Andreas Schwab
2005-03-21 23:23         ` Benjamin Herrenschmidt [this message]
2005-03-22  0:42           ` Andreas Schwab
2005-03-22  2:01             ` Benjamin Herrenschmidt
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=1111447381.1236.295.camel@gaston \
    --to=benh@kernel.crashing.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=schwab@suse.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).