All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: GCC4 fun.
@ 2005-03-03 12:44 Joerg Dorchain
  2005-03-03 13:13 ` Marc Leeman
  2005-03-03 13:46 ` evilninja
  0 siblings, 2 replies; 20+ messages in thread
From: Joerg Dorchain @ 2005-03-03 12:44 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 2109 bytes --]

Hi list,

I just booted a self-compiled 2.6.11 on my iBook G4.

The dmesg shows a hickup, where I am wondering what's the cause.

Total memory = 768MB; using 2048kB for hash table (at c0400000)
Linux version 2.6.11 (root@whisker) (gcc version 3.3.5 (Debian 1:3.3.5-8)) #29 Wed Mar 2 20:15:15 CET 2005
Found UniNorth memory controller & host bridge, revision: 210
Mapped at 0xfdf00000
Found a Intrepid mac-io controller, rev: 0, mapped at 0xfde80000
Processor NAP mode on idle enabled.
PowerMac motherboard: iBook G4
Found UniNorth PCI host bridge at 0xf0000000. Firmware bus number: 0->0
Found UniNorth PCI host bridge at 0xf2000000. Firmware bus number: 0->0
Found UniNorth PCI host bridge at 0xf4000000. Firmware bus number: 0->0
via-pmu: Server Mode is disabled
PMU driver 2 initialized for Core99, firmware: 0c
On node 0 totalpages: 196608
  DMA zone: 196608 pages, LIFO batch:16
  Normal zone: 0 pages, LIFO batch:1
  HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line: root=/dev/hda5 ro 
PowerMac using OpenPIC irq controller at 0x80040000
OpenPIC Version 1.2 (4 CPUs and 64 IRQ sources) at fc633000
OpenPIC timer frequency is 4.166666 MHz
PID hash table entries: 4096 (order: 12, 65536 bytes)
time_init: decrementer frequency = 18.432000 MHz
Console: colour dummy device 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 773632k available (1928k kernel code, 1044k data, 144k init, 0k highmem)
AGP special page: 0xeffff000
Calibrating delay loop... 663.55 BogoMIPS (lpj=331776)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
scheduling while atomic: swapper/0x00000002/0
Call trace:
 [c0007620] dump_stack+0x18/0x28
 [c01de704] schedule+0x678/0x67c
 [c0004500] syscall_exit_work+0x108/0x10c
 [c02a97b4] proc_root_init+0x168/0x174
 [ff847288] 0xff847288
 [c02945e8] start_kernel+0x144/0x170
 [00003a30] 0x3a30

Anyone an idea where this comes from? (Or, what else is needed for a
qualified statement about it?)

TIA,

Joerg

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: GCC4 fun.
@ 2005-03-03 14:57 Rune Torgersen
  0 siblings, 0 replies; 20+ messages in thread
From: Rune Torgersen @ 2005-03-03 14:57 UTC (permalink / raw)
  To: Marc Leeman, Joerg Dorchain; +Cc: linuxppc-dev

I have seen it since 2.6.11-rc2

It is not a fatal error, just more of a warning.
It complains because schedule() was called while scheduling is disabled
during initial setup

As far as I have been able to track it down, schedule gets called after
syscalls, and in this case (and in mine on a 8260)
It gets called when the proc filesystem is enabled.

These errors surfaced on PPC after Ingo Molnars patches to get rid of
the BKL (Big Kernel Lock)

> -----Original Message-----
> From: linuxppc-dev-bounces@ozlabs.org=20
> [mailto:linuxppc-dev-bounces@ozlabs.org] On Behalf Of Marc Leeman
> Sent: Thursday, March 03, 2005 07:14
> To: Joerg Dorchain
> Cc: linuxppc-dev@ozlabs.org
> Subject: Re: GCC4 fun.
>=20
> > scheduling while atomic: swapper/0x00000002/0
> > Call trace:
> >  [c0007620] dump_stack+0x18/0x28
> >  [c01de704] schedule+0x678/0x67c
> >  [c0004500] syscall_exit_work+0x108/0x10c
> >  [c02a97b4] proc_root_init+0x168/0x174
> >  [ff847288] 0xff847288
> >  [c02945e8] start_kernel+0x144/0x170
> >  [00003a30] 0x3a30
>=20
> We have something similar with PPC 8245, I was planning to have a look
> at it, but didn't get round to it. Since our system is=20
> crunching numbers
> since yesterday evening without fault, I guess it's not that=20
> serious...
>=20
> --=20
>   greetz, marc
> Aeryn died so you could live John. She would want you to keep=20
> fighting.
> 	D'Argo - Season of Death
> scorpius 2.6.11 #1 Wed Mar 2 16:38:38 CET 2005 GNU/Linux
>=20

^ permalink raw reply	[flat|nested] 20+ messages in thread
* GCC4 fun.
@ 2005-03-01 10:06 David Woodhouse
  0 siblings, 0 replies; 20+ messages in thread
From: David Woodhouse @ 2005-03-01 10:06 UTC (permalink / raw)
  To: benh; +Cc: linuxppc-dev

include/asm-ppc64/paca.h:
	Fix use of 'struct paca_struct' before it's defined.

arch/ppc/open_pic_defs.h;
	Remove extern declaration of OpenPIC. It's static in openpic.c

include/asm-ppc/prom.h:
	Remove extern declaration of prom_display_paths[] and 
	prom_num_displays. Those are static too in prom_init.c

arch/ppc/kernel/time.c:
	Rename time_offset to rtc_time_offset to avoid conflict
	with the global time_offset.

--- linux-2.6.10/include/asm-ppc64/paca.h~	2005-03-01 08:48:20.000000000 +0000
+++ linux-2.6.10/include/asm-ppc64/paca.h	2005-03-01 08:54:47.662044104 +0000
@@ -22,7 +22,6 @@
 #include	<asm/iSeries/ItLpRegSave.h>
 #include	<asm/mmu.h>
 
-extern struct paca_struct paca[];
 register struct paca_struct *local_paca asm("r13");
 #define get_paca()	local_paca
 
@@ -115,4 +114,6 @@
 #endif
 };
 
+extern struct paca_struct paca[];
+
 #endif /* _PPC64_PACA_H */
--- linux-2.6.10-ppc/arch/ppc/syslib/open_pic_defs.h~	2005-03-01 09:20:34.000000000 +0000
+++ linux-2.6.10-ppc/arch/ppc/syslib/open_pic_defs.h	2005-03-01 09:39:22.776010608 +0000
@@ -172,8 +172,6 @@ struct OpenPIC {
     OpenPIC_Processor Processor[OPENPIC_MAX_PROCESSORS];
 };
 
-extern volatile struct OpenPIC __iomem *OpenPIC;
-
 
     /*
      *  Current Task Priority Register
--- linux-2.6.10-ppc/include/asm-ppc/prom.h~	2004-12-24 21:35:23.000000000 +0000
+++ linux-2.6.10-ppc/include/asm-ppc/prom.h	2005-03-01 09:36:01.350016664 +0000
@@ -13,9 +13,6 @@
 typedef void *phandle;
 typedef void *ihandle;
 
-extern char *prom_display_paths[];
-extern unsigned int prom_num_displays;
-
 struct address_range {
 	unsigned int space;
 	unsigned int address;
--- linux-2.6.10-ppc/arch/ppc/kernel/time.c~	2005-03-01 09:20:34.000000000 +0000
+++ linux-2.6.10-ppc/arch/ppc/kernel/time.c	2005-03-01 09:53:47.293085192 +0000
@@ -89,7 +89,7 @@ unsigned long tb_to_ns_scale;
 
 extern unsigned long wall_jiffies;
 
-static long time_offset;
+static long rtc_time_offset;
 
 DEFINE_SPINLOCK(rtc_lock);
 
@@ -172,7 +172,7 @@ void timer_interrupt(struct pt_regs * re
 		     xtime.tv_sec - last_rtc_update >= 659 &&
 		     abs((xtime.tv_nsec / 1000) - (1000000-1000000/HZ)) < 500000/HZ &&
 		     jiffies - wall_jiffies == 1) {
-		  	if (ppc_md.set_rtc_time(xtime.tv_sec+1 + time_offset) == 0)
+		  	if (ppc_md.set_rtc_time(xtime.tv_sec+1 + rtc_time_offset) == 0)
 				last_rtc_update = xtime.tv_sec+1;
 			else
 				/* Try again one minute later */
@@ -289,7 +289,7 @@ void __init time_init(void)
 	unsigned old_stamp, stamp, elapsed;
 
         if (ppc_md.time_init != NULL)
-                time_offset = ppc_md.time_init();
+                rtc_time_offset = ppc_md.time_init();
 
 	if (__USE_RTC()) {
 		/* 601 processor: dec counts down by 128 every 128ns */
@@ -334,10 +334,10 @@ void __init time_init(void)
 	set_dec(tb_ticks_per_jiffy);
 
 	/* If platform provided a timezone (pmac), we correct the time */
-        if (time_offset) {
-		sys_tz.tz_minuteswest = -time_offset / 60;
+        if (rtc_time_offset) {
+		sys_tz.tz_minuteswest = -rtc_time_offset / 60;
 		sys_tz.tz_dsttime = 0;
-		xtime.tv_sec -= time_offset;
+		xtime.tv_sec -= rtc_time_offset;
         }
         set_normalized_timespec(&wall_to_monotonic,
                                 -xtime.tv_sec, -xtime.tv_nsec);


-- 
dwmw2

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

end of thread, other threads:[~2005-03-17  0:46 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-03 12:44 GCC4 fun Joerg Dorchain
2005-03-03 13:13 ` Marc Leeman
2005-03-03 13:46 ` evilninja
2005-03-03 14:18   ` boot time scheduling hile atomic (was: GCC4 fun.) Joerg Dorchain
2005-03-04  7:57     ` Joerg Dorchain
2005-03-04 15:06       ` boot time scheduling hile atomic _evil
2005-03-10  4:51       ` Takeharu KATO
2005-03-10  7:28         ` Joerg Dorchain
2005-03-10 16:19           ` Takeharu KATO
2005-03-11  6:19             ` Takeharu KATO
2005-03-16  0:18               ` Benjamin Herrenschmidt
2005-03-16  5:24                 ` Takeharu KATO
2005-03-16  5:49                   ` Takeharu KATO
2005-03-16  6:28                     ` Benjamin Herrenschmidt
2005-03-16 14:07                       ` Takeharu KATO
2005-03-16 22:28                         ` Benjamin Herrenschmidt
2005-03-17  0:46                           ` Takeharu KATO
2005-03-11 22:21           ` boot time scheduling while atomic Takeharu KATO
  -- strict thread matches above, loose matches on Subject: below --
2005-03-03 14:57 GCC4 fun Rune Torgersen
2005-03-01 10:06 David Woodhouse

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.