From: Luotao Fu <l.fu@pengutronix.de>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Luotao Fu <l.fu@pengutronix.de>,
LKML <linux-kernel@vger.kernel.org>,
RT <linux-rt-users@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: 2.6.24-rc7-rt2
Date: Tue, 15 Jan 2008 21:04:11 +0100 [thread overview]
Message-ID: <20080115200411.GA12195@pengutronix.de> (raw)
In-Reply-To: <Pine.LNX.4.58.0801151301550.26624@gandalf.stny.rr.com>
[-- Attachment #1: Type: text/plain, Size: 2906 bytes --]
Hi Steven,
On Tue, Jan 15, 2008 at 01:06:25PM -0500, Steven Rostedt wrote:
>
>
> On Tue, 15 Jan 2008, Luotao Fu wrote:
> >
> > Compiling with tracing function turned seemed still to be broken to me:
>
> Could you email me your config (privately)
will send it later in another private mail, actually nothing spectacular. The
early_printk() is simply missing for 32bit powerpc. The 64bit implementation
puts a dummy for early_printk in setup_64.c:
~ grep -A 4 EARLY_PRINTK ./arch/powerpc/kernel/setup_64.c | head -6
#ifdef CONFIG_EARLY_PRINTK
void notrace early_printk(const char *fmt, ...)
{
BUG();
}
#endif /* CONFIG_EARLY_PRINTK */
;-)
that could be why it works for you.
>
....
> > After recompiling the kernel started normally and it seems to work. I was even
> > able to make a trace with cyclictest. However there were several crashes (which
> > might be caused by other problems). I still have to take a closer look.
> >
> > I am just wondering why the check for mcount_enabled is there at all and I think
> > that there due to be some better fixes than just throw it out ;-). On the other
> > side, I just can't find in which way mcount_enabled is used in the tracer at
> > all. Could you give me some hints on this one?
> >
>
> The way we turn on and off mcount function calls at run time is through
> mcount_enable. I'll look into why this is broken for you. I'm able to run
> with this. My box is a ppc64, and my ppc32 (powerbook) wont come close to
> booting RT (never did). On boot up it locks up right away and the screen
> looks like it starts to melt. No serial, so I don't have much to debug
> that with.
>
ah, thx for the hint. I took a look in the entry_64.S file. The checking of
mcount_enabled is indeed literally the same as the 32bit architecture.
An important point for the failure on 32bit machines is that due to my bdi the
machine got stuck still before the mmu is running. Hence I get quite funny pc
address like
Current PC : 0x000135dc
it still lies over on 0x0 as the physical adress of the decompressed kernel in
memory. I think that mcount_enabled is linked somewhere in the virtual addess
space, so that the cmpwi stucks forever for _mcount is called so early, that we
still don't work with virtual addresses. I don't understand enough powerpc
assembler to work out how the LOAD_REG_ADDR() (used in entry_64.S to load
mcount_enabled) of 64 bit powerpcs work around this problem. Anyway, If my guess
is right, we might need something to get or simply ignore mcount_enabled
checking in the _mcount calls during early initialisation.
> Anyway, I'll take a deeper look into this.
>
Thanks
cheers
Luotao Fu
--
Dipl.-Ing. Luotao Fu | Phone: +49-5121-206917-3
Pengutronix - Linux Solutions for Science and Industry
Entwicklungszentrum Nord http://www.pengutronix.de
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2008-01-15 20:04 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-14 18:41 2.6.24-rc7-rt2 Steven Rostedt
2008-01-14 20:02 ` 2.6.24-rc7-rt2 Mark Knecht
2008-01-14 22:16 ` 2.6.24-rc7-rt2 Mariusz Kozlowski
2008-01-14 22:30 ` 2.6.24-rc7-rt2 Steven Rostedt
2008-01-15 17:10 ` 2.6.24-rc7-rt2 Mariusz Kozlowski
2008-01-17 2:07 ` 2.6.24-rc7-rt2 Steven Rostedt
2008-01-17 17:11 ` 2.6.24-rc7-rt2 Mariusz Kozlowski
2008-01-17 17:25 ` 2.6.24-rc7-rt2 Steven Rostedt
2008-01-17 17:57 ` 2.6.24-rc7-rt2 Mariusz Kozlowski
2008-01-15 0:37 ` 2.6.24-rc7-rt2 S.Çağlar Onur
2008-01-16 3:50 ` 2.6.24-rc7-rt2 Valdis.Kletnieks
2008-01-16 4:04 ` 2.6.24-rc7-rt2 Steven Rostedt
2008-01-16 6:23 ` 2.6.24-rc7-rt2 Valdis.Kletnieks
2008-01-16 14:12 ` 2.6.24-rc7-rt2 Steven Rostedt
2008-01-16 16:22 ` 2.6.24-rc7-rt2 Steven Rostedt
2008-01-21 11:31 ` 2.6.24-rc7-rt2 Esben Nielsen
2008-01-21 12:49 ` 2.6.24-rc7-rt2 Steven Rostedt
2008-01-27 21:51 ` 2.6.24-rc7-rt2 Esben Nielsen
2008-01-28 2:32 ` 2.6.24-rc7-rt2 Stefan Monnier
2008-01-16 13:17 ` 2.6.24-rc7-rt2 Alan Cox
2008-01-16 4:01 ` 2.6.24-rc7-rt2 Steven Rostedt
2008-01-16 7:12 ` 2.6.24-rc7-rt2 S.Çağlar Onur
2008-01-16 10:11 ` 2.6.24-rc7-rt2 S.Çağlar Onur
2008-01-17 2:20 ` 2.6.24-rc7-rt2 Steven Rostedt
2008-01-15 3:44 ` 2.6.24-rc7-rt2: WARNING: at include/linux/rcupreempt.h:110 rcu_enter_nohz() Mike Galbraith
2008-01-15 16:27 ` 2.6.24-rc7-rt2 Luotao Fu
2008-01-15 18:06 ` 2.6.24-rc7-rt2 Steven Rostedt
2008-01-15 20:04 ` Luotao Fu [this message]
2008-01-16 12:03 ` 2.6.24-rc7-rt2 [PATCH] latency tracer fix for ppc32 Luotao Fu
2008-01-17 3:26 ` Steven Rostedt
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=20080115200411.GA12195@pengutronix.de \
--to=l.fu@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.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).