public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* What does unwcheck.pl do?
@ 2004-10-25 17:21 Roland Dreier
  2004-10-25 18:06 ` Matthew Wilcox
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Roland Dreier @ 2004-10-25 17:21 UTC (permalink / raw)
  To: linux-ia64

When I build an ia64 kernel, I get a warning about ia64_monarch_init_handler:

	$ make O=../kbuild-ia64
	  Using /data/home/roland/Src/linux-2.6.9 as source for kernel
	  CHK     include/linux/version.h
	make[2]: rch/ia64/kernel/asm-offsets.s' is up to date.
	  CHK     include/asm-ia64/offsets.h
	  CHK     include/linux/compile.h
	ERROR: ia64_monarch_init_handler: 186 slots, total region length = 0
	1 error detected in 9381 functions.
	make[1]: [unwcheck] Error 1 (ignored)
	  Building modules, stage 2.
	  MODPOST

This is with gcc 3.4.1/binutils 2.15 (built with Dan Kegel's crosstool):

	$ ${CROSS_COMPILE}gcc --version
	ia64-unknown-linux-gnu-gcc (GCC) 3.4.1
	Copyright (C) 2004 Free Software Foundation, Inc.
	This is free software; see the source for copying conditions.  There is NO
	warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

	$ ${CROSS_COMPILE}ld --version
	GNU ld version 2.15
	Copyright 2002 Free Software Foundation, Inc.
	This program is free software; you may redistribute it under the terms of
	the GNU General Public License.  This program has absolutely no warranty.

I can see the ERROR: comes from unwcheck.pl but I have no idea what it
is checking (something to do with unwind info?) let alone how to fix
the problem.

Is this benign or is there something to be fixed?

Thanks,
  Roland

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

* Re: What does unwcheck.pl do?
  2004-10-25 17:21 What does unwcheck.pl do? Roland Dreier
@ 2004-10-25 18:06 ` Matthew Wilcox
  2004-10-26  8:36 ` David Mosberger
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Matthew Wilcox @ 2004-10-25 18:06 UTC (permalink / raw)
  To: linux-ia64

On Mon, Oct 25, 2004 at 10:21:50AM -0700, Roland Dreier wrote:
> 	ERROR: ia64_monarch_init_handler: 186 slots, total region length = 0
> 	1 error detected in 9381 functions.

Don't worry about it.  Somebody should fix it at some point, but it's
nothing you introduced.

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain

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

* Re: What does unwcheck.pl do?
  2004-10-25 17:21 What does unwcheck.pl do? Roland Dreier
  2004-10-25 18:06 ` Matthew Wilcox
@ 2004-10-26  8:36 ` David Mosberger
  2004-10-26 23:53 ` Luck, Tony
  2004-10-27 10:59 ` David Mosberger
  3 siblings, 0 replies; 5+ messages in thread
From: David Mosberger @ 2004-10-26  8:36 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Mon, 25 Oct 2004 10:21:50 -0700, Roland Dreier <roland@topspin.com> said:

  Roland> I can see the ERROR: comes from unwcheck.pl but I have no
  Roland> idea what it is checking (something to do with unwind info?)
  Roland> let alone how to fix the problem.

  Roland> Is this benign or is there something to be fixed?

Both: it needs to be fixed, but it's (mostly) benign since the only
time we're executing that code is when the unwinder can't run anyhow,
since we're in the middle of delivering an MCA.  That may (and
probably will) change in the future, so it's something that should be
fixed.

I was hoping someone who knows and could test the MCA code better
would fix it but that hasn't happened yet, so it's time for plan B.

Tony, below is a patch that fixes the unwind info enough that the
warning/error goes away.  The unwind-info may not be 100% correct
though.  Someone who can test/exercise this code may want to check on
that.

	--david

=== arch/ia64/kernel/mca_asm.S 1.14 vs edited ==--- 1.14/arch/ia64/kernel/mca_asm.S	2003-12-23 08:52:44 -08:00
+++ edited/arch/ia64/kernel/mca_asm.S	2004-10-26 01:29:47 -07:00
@@ -868,7 +868,7 @@
 
 
 GLOBAL_ENTRY(ia64_monarch_init_handler)
-
+	.prologue
 	// stash the information the SAL passed to os
 	SAL_TO_OS_MCA_HANDOFF_STATE_SAVE(r2)
 	;;
@@ -907,6 +907,7 @@
 	adds out0\x16,sp				// out0 = pointer to pt_regs
 	;;
 	DO_SAVE_SWITCH_STACK
+	.body
 	adds out1\x16,sp				// out0 = pointer to switch_stack
 
 	br.call.sptk.many rp=ia64_init_handler

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

* RE: What does unwcheck.pl do?
  2004-10-25 17:21 What does unwcheck.pl do? Roland Dreier
  2004-10-25 18:06 ` Matthew Wilcox
  2004-10-26  8:36 ` David Mosberger
@ 2004-10-26 23:53 ` Luck, Tony
  2004-10-27 10:59 ` David Mosberger
  3 siblings, 0 replies; 5+ messages in thread
From: Luck, Tony @ 2004-10-26 23:53 UTC (permalink / raw)
  To: linux-ia64

>Tony, below is a patch that fixes the unwind info enough that the
>warning/error goes away.  The unwind-info may not be 100% correct
>though.  Someone who can test/exercise this code may want to check on
>that.

I tried the patch ... but the error message is still there intermittently.
I saw it on the build for my zx2000 (zx1_defconfig with SMP=n), but not
for the tiger (tiger_defconfig).

-Tony

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

* RE: What does unwcheck.pl do?
  2004-10-25 17:21 What does unwcheck.pl do? Roland Dreier
                   ` (2 preceding siblings ...)
  2004-10-26 23:53 ` Luck, Tony
@ 2004-10-27 10:59 ` David Mosberger
  3 siblings, 0 replies; 5+ messages in thread
From: David Mosberger @ 2004-10-27 10:59 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Tue, 26 Oct 2004 16:53:48 -0700, "Luck, Tony" <tony.luck@intel.com> said:

  >> Tony, below is a patch that fixes the unwind info enough that the
  >> warning/error goes away.  The unwind-info may not be 100% correct
  >> though.  Someone who can test/exercise this code may want to check on
  >> that.

  Tony> I tried the patch ... but the error message is still there
  Tony> intermittently.  I saw it on the build for my zx2000
  Tony> (zx1_defconfig with SMP=n), but not for the tiger
  Tony> (tiger_defconfig).

Works fine here.  Are you sure you're not seeing the effect of a
not-quite-up-to-date toolchain?

	--david

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

end of thread, other threads:[~2004-10-27 10:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-25 17:21 What does unwcheck.pl do? Roland Dreier
2004-10-25 18:06 ` Matthew Wilcox
2004-10-26  8:36 ` David Mosberger
2004-10-26 23:53 ` Luck, Tony
2004-10-27 10:59 ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox