From: Rutger Nijlunsing <rutger@nospam.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org, paulus@samba.org,
Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Subject: Re: powerpc.git build error
Date: Tue, 28 Nov 2006 00:12:46 +0100 [thread overview]
Message-ID: <20061127231246.GA6192@nospam.com> (raw)
In-Reply-To: <1164597365.22055.2.camel@localhost.localdomain>
On Mon, Nov 27, 2006 at 02:16:04PM +1100, Benjamin Herrenschmidt wrote:
>
> > Hold your horses, I'm just a simple user without too much
> > understanding of the hardware trying to get most out of his PowerBook
> > G3 Lombard (with broken L2 cache: 33bogomips) which I got a week ago :)
>
> What makes you think it has a broken L2 cache ?
During the time Mac OS9 was on this machine, the machine would
occasionaly boot with a window displaying a message along the lines
'problem with memory'. I forgot the exact error message, but it
involved memory in general (so not L2 specific). When the message
would not display, the machine would hang randomly after some time
(say, 1 hour).
I was told the Apple Store owner suggested swapping the motherboard to
fix it, but I don't know the expertise of him either.
I got this hang once in Linux and I seem to remember /proc/cpuinfo
containing a line 'L2 cache: 1024Kb' or something like that. After
that first hang, I cannot find the L2-cache line in /proc/cpuinfo any
more _and_ I did not have a single hang (apart from during rebooting).
Actually I hoped to be able to play with the l2cr values (whatever
valid values might be for this machine), but I cannot find the
corresponding /proc/sys/kernel/l2cr which should exist according to
Documentation/sysctl/kernel.txt . It might be that a smaller value
(say, 512Kb) might still work. I don't know.
Furthermore the machine feels sluggish. A kernel compile takes ~5.5
hours, while the same compile on my P4 takes ~10 minutes. But it might
be normal for a 400Mhz G3, I don't know...
> The 33 bogomips are
> totally unrelated, it's the timebase frequency. Bogomips are NOT a
> benchmark and on the powerpc architecture, and not even related to the
> processor speed at all (but to the frequency of the timebase input).
Goolging around for 'lombard bogomips' I got the impression the value
should be 600 to 800, or at least of that order of magnitude. Since 33
is far outside this range, I thought that to be the reason. Apparently
not, then...
> > It seems suspend-to-ram is working to some extend, or at least
> > 'should' work out-of-the-box. When I close the lid and reopen it, it
> > resumes 'a little': PCMCIA cards seem to power up again (TX/RX WiFi
> > led starts to flash again), but the screen stays dark. I haven't tried
> > to debug this yet, since getting WiFi to work
>
> Does it work better without the PCMCIA card ? Is it properly going to
> sleep (snoozing LED) ? Also make sure you are using the proper video
> driver (atyfb on the lombard) and not booting with "novideo" or
> "video=ofonly".
Ok, I got further with this one thanks to you :)
Suspend-to-RAM works like a charm! However, when it wakes up the
screen is black (and I thought the suspend had crashed...). With fn-F2
(increase brightness key) I can make the screen visible again.
> > Furthermore I'm not interested in kexec if 'all is working'. But since
> > 'rebooting' already hangs after the powerdown, I'm more focused on
> > getting the normal 'reboot' working.
>
> That is the strange thing... does it reboot fine in MacOS ?
Uhm, I got this second-hand machine 1.5 weeks ago, and I wiped MacOS
in day one. So I cannot remember. It also looses track of date/time
once in a while (not always!) after pressing the reset-button on the
back (which I need to bring it back to life).
How am I supposed to power down the machine? halt -p? With
'powerprefs' I can only select different suspend modes but not
power-down modes...
This leaves me to some OOPSes still:
- removing the PCMCIA wifi card (Orinoco) while the network is up
- booting the machine with the wifi card inserted
- bringing up the wifi card while no access point is found
(maybe-related:)
And a warning in dmesg which reads (no OOPS):
pcmcia: the driver needs updating to supported shared IRQ lines.
...which corresponds to /proc/interrupts :
22: 4912397 PMAC-PIC Level yenta, pcmcia0.0
The wifi-at-startup-OOPS:
pccard: PCMCIA card inserted into slot 0
cs: memory probe 0x0c0000-0x0fffff: excluding 0xc0000-0xfffff
cs: memory probe 0x60000000-0x60ffffff: excluding 0x60000000-0x60ffffff
cs: memory probe 0x80000000-0xfcffffff: excluding 0x80000000-0x81ffffff
cs: memory probe 0xfd000000-0xfdffffff:Machine check in kernel mode.
Caused by (from SRR1=49030): Transfer error ack signal
Oops: Machine check, sig: 7 [#1]
...
Call Trace:
[D30ABD40] [D5044E90] pcmcia_read_cis_mem+0x15c/0x274 [pcmcia_core] (unreliable)
[D30ABD70] [D5045110] read_cis_cache+0x168/0x16c [pcmcia_core]
[D30ABD90] [D50452B8] pccard_get_next_tuple+0x100/0x454 [pcmcia_core]
[D30ABDD0] [D50456A4] pccard_get_first_tuple+0x98/0x144 [pcmcia_core]
...
When I insert the PCMCIA card at a later stage, there are no 'cs: '
lines in dmesg at all.
So still some riddles to be solved ;)
--
Rutger Nijlunsing ---------------------------------- eludias ed dse.nl
never attribute to a conspiracy which can be explained by incompetence
----------------------------------------------------------------------
next prev parent reply other threads:[~2006-11-27 23:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-25 22:58 powerpc.git build error Rutger Nijlunsing
2006-11-26 6:39 ` Michael Ellerman
2006-11-26 19:06 ` Rutger Nijlunsing
2006-11-26 20:47 ` Guennadi Liakhovetski
2006-11-26 21:05 ` Rutger Nijlunsing
2006-11-26 21:19 ` Guennadi Liakhovetski
2006-11-27 3:16 ` Benjamin Herrenschmidt
2006-11-27 23:12 ` Rutger Nijlunsing [this message]
2006-11-27 23:17 ` Benjamin Herrenschmidt
2006-11-26 22:56 ` 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=20061127231246.GA6192@nospam.com \
--to=rutger@nospam.com \
--cc=benh@kernel.crashing.org \
--cc=g.liakhovetski@gmx.de \
--cc=linuxppc-dev@ozlabs.org \
--cc=linuxppc-dev@tux.tmfweb.nl \
--cc=paulus@samba.org \
/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.