Skip to contentSkip to conversation

success 2.4.0-test8 with latest bk

DISCUSSION Andreas Tobler 10 participants 13 messages Sep 12, 2000 – Sep 17, 2000

lore
Share & tools
lore
#0 lore raw

Hi Paul & others,

I want to express my thanks to you including Geert's pci-res patch, now I'm able again to run the latest devel tree from bk on my ancient 7200 with it's 2940UW.
It is running since three h.

Thx

Andreas

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 7 lines · Andreas Tobler

Hi Paul & others,

I want to express my thanks to you including Geert's pci-res patch, now I'm able again to run the latest devel tree from bk on my ancient 7200 with it's 2940UW.
It is running since three h.

You are lucky. For me it stops booting after the "freeing unused kernel memory" line. The one from 2 days ago had 2 days uptime.

--
Martin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 8 lines · Martin Costabel
Quoted 4 lines · Andreas Tobler

I want to express my thanks to you including Geert's pci-res patch, now I'm able again to run the latest devel tree from bk on my ancient 7200 with it's 2940UW.
It is running since three h.

You are lucky. For me it stops booting after the "freeing unused kernel memory" line. The one from 2 days ago had 2 days uptime.

Usually this means that some function/data is marked __init while it must not. Quick verification: #undef __init / #define __init etc.

Just wondering: wouldn't it be possible to write some tool to find such bugs?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#3 lore raw
Quoted 2 lines

Usually this means that some function/data is marked __init while it

must not.

Quoted 3 lines

Quick verification: #undef __init / #define __init etc.

Just wondering: wouldn't it be possible to write some tool to find such bugs?

Yup, we could probably, instead of freeing the __init section, mark it unaccessible with the MMU. This would put us in xmon as soon as we try to access one of these. I'm not sure if this can be done without disabling the BAT mapping of the kernel, however. Well, of course, that would be a DEBUG option, not a feature of the "standard" kernel.

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#4 lore raw
In reply to Geert Uytterhoeven
Quoted 8 lines · Geert Uytterhoeven
Quoted 6 lines · Martin Costabel
Quoted 4 lines · Andreas Tobler

I want to express my thanks to you including Geert's pci-res patch, now I'm able again to run the latest devel tree from bk on my ancient 7200 with it's 2940UW.
It is running since three h.

Quoted 7 lines
Quoted 2 lines

You are lucky. For me it stops booting after the "freeing unused kernel memory" line. The one from 2 days ago had 2 days uptime.

Usually this means that some function/data is marked __init while it must not. Quick verification: #undef __init / #define __init etc.

Just wondering: wouldn't it be possible to write some tool to find such bugs?

Update: After a recompilation with today's updates, the latest bk kernel boots again for me.

--
Martin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#5 lore raw
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

You are lucky. For me it stops booting after the "freeing unused kernel memory" line. The one from 2 days ago had 2 days uptime.

Usually this means that some function/data is marked __init while it

Quoted 8 lines

must not.

Quoted 3 lines

Quick verification: #undef __init / #define __init etc.

Just wondering: wouldn't it be possible to write some tool to find such

bugs?

Update: After a recompilation with today's updates, the latest bk kernel boots again for me.

That's not the first time I notice this strange behaviour. I meant, this happened to me randomly with various bk kernels for monthes. The problem usually disappeared by itself after either recompiling the entire kernel, or changing a few unrelated lines of code and then reompiling. That's weird, I really don't know what can be causing that.

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#6 lore raw
Quoted 11 lines · Benjamin Herrenschmidt
Quoted 11 lines
Quoted 5 lines
Quoted 3 lines

You are lucky. For me it stops booting after the "freeing unused kernel memory" line. The one from 2 days ago had 2 days uptime.

Usually this means that some function/data is marked __init while it

must not.

Quoted 3 lines

Quick verification: #undef __init / #define __init etc.

Just wondering: wouldn't it be possible to write some tool to find such

bugs?

Quoted 8 lines
Quoted 2 lines

Update: After a recompilation with today's updates, the latest bk kernel boots again for me.

That's not the first time I notice this strange behaviour. I meant, this happened to me randomly with various bk kernels for monthes. The problem usually disappeared by itself after either recompiling the entire kernel, or changing a few unrelated lines of code and then reompiling. That's weird, I really don't know what can be causing that.

Broken dependencies?

Michel

--
Earthling Michel Dänzer (MrCooper) \ CS student and free software enthusiast
Debian GNU/Linux (powerpc,i386) user \ member of XFree86 and the DRI project

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#7 lore raw
In reply to Benjamin Herrenschmidt

On 13 Sep, this message from Benjamin Herrenschmidt echoed through cyberspace:

Quoted 8 lines
Quoted 2 lines

Update: After a recompilation with today's updates, the latest bk kernel boots again for me.

That's not the first time I notice this strange behaviour. I meant, this happened to me randomly with various bk kernels for monthes. The problem usually disappeared by itself after either recompiling the entire kernel, or changing a few unrelated lines of code and then reompiling. That's weird, I really don't know what can be causing that.

Same for me, except that for a few weeks now I'm basically stuck in a non-booting mood. One out of roughly 20 tries boots indeed; all the other stop in various places in init/main.c. Not even going into xmon...

Since it doesn't seem to be a reproducible crash in one specific place, its rather hard to isolate the problem. I feel like chasing ghosts... Anybody got Ghostbusters' phone?

Michel

-------------------------------------------------------------------------

Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   [email protected]            |
http://www.cpu.lu/~mlan        |                     Learn Always. "

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#8 lore raw
Quoted 5 lines · Michel Lanners

On 13 Sep, this message from Benjamin Herrenschmidt echoed through cyberspace:

Quoted 1 line

That's not the first time I notice this strange behaviour. I meant, this

Quoted 7 lines

Same for me, except that for a few weeks now I'm basically stuck in a non-booting mood. One out of roughly 20 tries boots indeed; all the other stop in various places in init/main.c. Not even going into xmon...

Since it doesn't seem to be a reproducible crash in one specific place, its rather hard to isolate the problem. I feel like chasing ghosts... Anybody got Ghostbusters' phone?

Actually, it (latest bk-2.4.0-test) is now pretty stable again on my old 6400(*). The only problems are those that seem to plague everybody:

I had to apply Al Viro's remaining fix for fs/buffers.c:block_truncate_page() ("kernel BUG at ll_rw_blk.c:711"), otherwise I was dropped into xmon all the time. Linus seems to hide under a ton of brown paper bags.

There are now processes that don't listen to SIGHUP or to Ctrl-C (bk sccstool, for example) and get transformed into zombies.

(*) I'll check your valkyriefb patch as soon as I can find it, so it might not remain as stable :-)

--
Martin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#9 lore raw
In reply to Michel Lanners
Quoted 10 lines · Michel Lanners

On 13 Sep, this message from Benjamin Herrenschmidt echoed through cyberspace:

Quoted 8 lines
Quoted 2 lines

Update: After a recompilation with today's updates, the latest bk kernel boots again for me.

That's not the first time I notice this strange behaviour. I meant, this happened to me randomly with various bk kernels for monthes. The problem usually disappeared by itself after either recompiling the entire kernel, or changing a few unrelated lines of code and then reompiling. That's weird, I really don't know what can be causing that.

Quoted 7 lines

Same for me, except that for a few weeks now I'm basically stuck in a non-booting mood. One out of roughly 20 tries boots indeed; all the other stop in various places in init/main.c. Not even going into xmon...

Since it doesn't seem to be a reproducible crash in one specific place, its rather hard to isolate the problem. I feel like chasing ghosts... Anybody got Ghostbusters' phone?

Could you try the following change for arch/ppc/mm/init.c?

static void __init
clear_hash_table(void)

{
	unsigned char *adr = (unsigned char *)Hash;
	unsigned long i = Hash_size;

	for (; i > 0; --i)
		*adr++ = 0;
}

/*
* Initialize the hash table and patch the instructions in head.S. */
static void __init hash_init(void)

{
	int Hash_bits, mb, mb2;
	....
	....
	if ( ppc_md.progress ) ppc_md.progress("hash:find piece", 0x322);
	/* Find some memory for the hash table. */
	if ( Hash_size ) {
		Hash = mem_pieces_find(Hash_size, Hash_size);
		clear_hash_table();
	} else
		Hash = 0;
	....
	....
}

I was seeing the random freezes until I made this change. What it does is to zero out the hash table *before* anybody tries to use it. I think that is at least sensible thing to do. For your machine, you can probably replace "clear_hash_table()" by memset(Hash,0,Hash_size) or something and be done with it. The helper function is to avoid taking exception on NuBus machines this early in boot process.

Actually, I've sent a message to this list months ago asking why the hash table is never initialized but no one seemed to care at the time. Perhaps, this time, someone would care to comment? I still fail to see why it's not necessary anyhow.

Martin's boot problem is certainly something else since his machine (603e) doesn't use Hash.

For me, 2.4.0-test8 + fs/buffer.c fix has been very stable.

Takashi Oe

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#10 lore raw
Quoted 1 line · Takashi Oe

Could you try the following change for arch/ppc/mm/init.c?

[snip]

Quoted 2 lines
		Hash = mem_pieces_find(Hash_size, Hash_size);
		clear_hash_table();

Huh? There is a __clear_user(Hash, Hash_size) call in there but it's commented out, which I don't understand at all. Certainly the hash table needs to be cleared. Using cacheable_memzero would probably be the fastest way to do it.

Paul.

--
Paul Mackerras, Senior Open Source Researcher, Linuxcare, Inc. +61 2 6262 8990 tel, +61 2 6262 8991 fax [email protected], http://www.linuxcare.com.au/
Linuxcare. Support for the revolution.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#11 lore raw
Quoted 10 lines · Paul Mackerras
Quoted 1 line · Takashi Oe

Could you try the following change for arch/ppc/mm/init.c?

[snip]

Quoted 2 lines
		Hash = mem_pieces_find(Hash_size, Hash_size);
		clear_hash_table();

Huh? There is a __clear_user(Hash, Hash_size) call in there but it's commented out, which I don't understand at all. Certainly the hash table needs to be cleared.

Yeah, that's what I thought when I first saw the code a few months ago.

Quoted 2 lines

Using cacheable_memzero would probably be
the fastest way to do it.

__clear_user() works but I can't use cacheable_memzero() since frame buffer memory resides on the same memory block.

Takashi Oe

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#12 lore raw

I got curious, and I tracked down the commented out __clear_user(Hash, hash_size)

to version 1.10 of init.c

arch/ppc/mm/init.c
1.10 00/02/04 13:20:23 [email protected] +15 -2 Changes to fix PPC64 MM (short term fix) and protect the system map memory from being written over.

Cort, any chance you happen to recall why that was needed

Quoted 16 lines · Paul Mackerras
Quoted 11 lines
Quoted 1 line · Takashi Oe

Could you try the following change for arch/ppc/mm/init.c?

[snip]

Quoted 2 lines
		Hash = mem_pieces_find(Hash_size, Hash_size);
		clear_hash_table();

Huh? There is a __clear_user(Hash, Hash_size) call in there but it's commented out, which I don't understand at all. Certainly the hash table needs to be cleared.

Yeah, that's what I thought when I first saw the code a few months ago.

Quoted 12 lines
Quoted 2 lines

Using cacheable_memzero would probably be
the fastest way to do it.

__clear_user() works but I can't use cacheable_memzero() since frame buffer memory resides on the same memory block.

Takashi Oe

--
--------------------------------------------------------------------------
Troy Benjegerdes 'da hozer' [email protected]

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/