Skip to contentSkip to conversation

parisc-linux Digest, Vol 2, Issue 32

parisc-linux [email protected] 1 participant 1 message Jan 27, 2004

lore
Share & tools
lore
#0 lore raw

Send parisc-linux mailing list submissions to
[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
or, via email, send a message with subject or body 'help' to
[email protected]

You can reach the person managing the list at
[email protected]

When replying, please edit your Subject line so it is more specific than "Re: Contents of parisc-linux digest..."

Today's Topics:

1. Re: menu not available (Matthew Wilcox)
2. Re: Re: [parisc-linux] missing barrier in _raw_spin_lock? (John David Anglin)
3. Re: kernel BUG at mm/shmem.c:585! (Carlos O'Donell)
4. Re: kernel BUG at mm/shmem.c:585! (John David Anglin)
5. installation failed on C240 (fx4) workstation (Reinhold Flecke CCF)
6. help installation failed on C240 (fx4) workstation (Reinhold Flecke CCF)
7. Re: kernel BUG at mm/shmem.c:585! (Grant Grundler)
8. Re: help installation failed on C240 (fx4) workstation (Grant Grundler)
9. A fix for B2k and CONFIG_PDC_CONSOLE pb (Joel Soete)

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

Message: 1
Date: Sun, 25 Jan 2004 22:40:40 +0000
From: Matthew Wilcox <[email protected]>
Subject: Re: [parisc-linux] menu not available
To: Grant Grundler <[email protected]>
Cc: "Peralta, Joseph A" <[email protected]>,
[email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Quoted 2 lines · Grant Grundler
Quoted 1 line · Joseph A

When I try to install certain X-window managers under Debian 3.0 I

get

Quoted 1 line
Quoted 1 line

"xxx depends on menu (>> 1.5)... menu is not available" How would I

fix

Quoted 4 lines
Quoted 1 line

this?

Dunno...menu is available for "sarge" (aka testing) and that works for me. Sounds like someone wants to backport to Woody.

menu is not available for woody because it's written in a language which bears a passing resemblance to C++. someone rewrote it in C++ for sarge.

Signature · 20 lines
"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


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

Message: 2
Date: Sun, 25 Jan 2004 19:13:47 -0500 (EST)
From: "John David Anglin" <[email protected]>
Subject: Re: Re: [parisc-linux] missing barrier in _raw_spin_lock?
To: [email protected]
Cc: [email protected], [email protected],
	[email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII
Quoted 2 lines
Quoted 2 lines

#define __ldcw(a) ({ \
unsigned int __ret;

\

Quoted 1 line
Quoted 1 line

__asm__ __volatile__("ldcw 0(%2),%0"

\

Quoted 1 line
Quoted 1 line
		      : "=r" (__ret), "=m" (*(a)) : "r" (a));

\

Quoted 1 line
Quoted 1 line

__ret;

\

Quoted 4 lines
Quoted 1 line

})

I suppose the memory operand specification is required here. Newer compilers (especially gcc-3.4) can optimize away local variables if

you

Quoted 3 lines

only access the address but not the contents. I think even your pthreads version is not really correct, because it specifies (*(a)) as output only instead of inout.

I agree.

Quoted 1 line

No, putting the barrier into __ldcw is wrong because it would impact

all

Quoted 1 line

other uses of __ldcw that don't need the barrier. AFAICS, the

The only other uses for __ldcw are the SPIN_LOCK macro in atomic.h and the _raw_spin_trylock in spinlock.h (i.e., it is only used acquire locks). If all these need barriers, then it might as well be in __ldcw.

Dave

Signature · 16 lines
J. David Anglin
[email protected]
National Research Council of Canada              (613) 990-0752 (FAX:
952-6602)


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

Message: 3
Date: Sun, 25 Jan 2004 21:15:09 -0500
From: Carlos O'Donell <[email protected]>
Subject: Re: [parisc-linux] kernel BUG at mm/shmem.c:585!
To: John David Anglin <[email protected]>
Cc: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Quoted 3 lines · John David Anglin
Quoted 1 line

It appears non-fatal, and I want to blame the compiler :)

I agree but the proof is in the pudding ;-)

I told Grant, that at my current schedule, it would be 2006 before I fixed this problem :)

It looks like a reordering issue, perhaps taking a look at the respective .o objects produced by the two compilers might reveal the issue. I think that's the way we did it when the tty layer broke and we had to have that console.o compiled with 3.0.4 by hand? I think Randolph and Grant worked on that together. I might have the wrong names, but we've successfully debugged a problem like this before using similar methods.

c.

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

Message: 4
Date: Sun, 25 Jan 2004 21:35:07 -0500 (EST)
From: "John David Anglin" <[email protected]>
Subject: Re: [parisc-linux] kernel BUG at mm/shmem.c:585!
To: [email protected] (Carlos O'Donell)
Cc: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII

Quoted 7 lines · John David Anglin
Quoted 3 lines
Quoted 1 line

It appears non-fatal, and I want to blame the compiler :)

I agree but the proof is in the pudding ;-)

I told Grant, that at my current schedule, it would be 2006 before I fixed this problem :)

My schedule isn't much better. I'm off to Tokyo at the end of the week to waive the Canadian flag at the ISO LRG meetin next week. After that, my brother's company would like me to work on more firmware for a new project.

Is this on a SMP kernel (i.e., could this be a locking issue)?

Dave

Signature · 116 lines
J. David Anglin
[email protected]
National Research Council of Canada              (613) 990-0752 (FAX:
952-6602)


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

Message: 5
Date: Mon, 26 Jan 2004 11:54:13 +0100
From: "Reinhold Flecke CCF" <[email protected]>
Subject: [parisc-linux] installation failed on C240 (fx4) workstation
	
To: <[email protected]>
Message-ID:
	<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

I downloaded the "debian-30r2-hppa-binary-1.iso" and burned it to CD. 
If I start the installation on my C240 (fx4) workstation  with the
command:
bo sescsi.2.0

it seems everything ok, until I get the message:
..If this is the last message you see, you may need to switch your
console.
  This is a common sympton sarch the FAQ and mailing list at
parisc-linux.org

After this nothing happens anymore.
I searched the FAQ and mailing list but I could not find a solution.
Anyone who can help?

Thanks in advance.

Best Regards
Reinhold Flecke


Reinhold Flecke CCF
Fon:	+49 (0)5292 930601 (Office)
	+49 (0)700 93000093 (PR)
eMail:	<mailto:[email protected]>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2008 bytes
Desc: not available
Url :
http://lists.parisc-linux.org/pipermail/parisc-linux/attachments/2004012
6/13277935/winmail-0001.bin

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

Message: 6
Date: Mon, 26 Jan 2004 12:13:22 +0100
From: "Reinhold Flecke CCF" <[email protected]>
Subject: [parisc-linux] help installation failed on C240 (fx4)
	workstation
To: <[email protected]>
Message-ID:
	<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

I downloaded the "debian-30r2-hppa-binary-1.iso" and burned it to CD. 
If I start the installation on my C240 (fx4) workstation  with the
command:
bo sescsi.2.0

it seems everything ok, until I get the message:
..If this is the last message you see, you may need to switch your
console.
  This is a common sympton sarch the FAQ and mailing list at
parisc-linux.org

After this nothing happens anymore.
I searched the FAQ and mailing list but I could not find a solution.
Anyone who can help?

Thanks in advance.


Best Regards
Reinhold Flecke


Reinhold Flecke CCF
Auf dem Anger 18
33165 Lichtenau-Husen
Fon:	+49 (0)5292 930601 (Office)
	+49 (0)700 93000093 (PR)
eMail:	<mailto:[email protected]>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2056 bytes
Desc: not available
Url :
http://lists.parisc-linux.org/pipermail/parisc-linux/attachments/2004012
6/902d4aa3/winmail-0001.bin

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

Message: 7
Date: Mon, 26 Jan 2004 08:53:56 -0700
From: Grant Grundler <[email protected]>
Subject: Re: [parisc-linux] kernel BUG at mm/shmem.c:585!
To: John David Anglin <[email protected]>
Cc: Carlos O'Donell <[email protected]>,
	[email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Quoted 1 line · John David Anglin

Is this on a SMP kernel (i.e., could this be a locking issue)?

no. I don't build or run SMP kernels on anything at the moment.

thanks,
grant

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

Message: 8
Date: Mon, 26 Jan 2004 09:13:16 -0700
From: Grant Grundler <[email protected]>
Subject: Re: [parisc-linux] help installation failed on C240 (fx4)
workstation
To: Reinhold Flecke CCF <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Quoted 2 lines · Reinhold Flecke CCF

I downloaded the "debian-30r2-hppa-binary-1.iso" and burned it to CD. If I start the installation on my C240 (fx4) workstation with the

command:

Quoted 1 line

bo sescsi.2.0

FX-4 graphics is not supported.
Either use serial console or replace the FX4 with PCI FX-E.

sorry,
grant

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

Message: 9
Date: Mon, 26 Jan 2004 18:00:53 +0100
From: "Joel Soete" <[email protected]>
Subject: [parisc-linux] A fix for B2k and CONFIG_PDC_CONSOLE pb
To: "Grant Grundler" <[email protected]>, "Christoph
Plattner"
<[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hi Grant, Christoph,

I find a fix for this pb. I tested successfully (I reach to login with a ttyB0 after replacing ttyS0 in inittab and telinit q :) ) on a 32bit 2.4 kernel on my b2k and a 64bit (up) [also 2.4] kernel on my N4k.

Here is its main part:
diff -NaurX dontdiff linux-2.4.24-pa0.orig/arch/parisc/kernel/firmware.c linux-2.4.24-pa0/arch/parisc/kernel/firmware.c
--- linux-2.4.24-pa0.orig/arch/parisc/kernel/firmware.c 2003-10-02
07:30:55.000000000
+0200
+++ linux-2.4.24-pa0/arch/parisc/kernel/firmware.c 2004-01-26
16:48:23.000000000
+0100
@@ -871,15 +937,21 @@
int status;

/* Bail if no console input device. */
- if (!PAGE0->mem_kbd.iodc_io)
+ if ((PAGE0->mem_cons.cl_class != CL_DUPLEX) &&
!PAGE0->mem_kbd.iodc_io)
return 0;

/* wait for a keyboard (rs232)-input */
spin_lock_irqsave(&pdc_lock, flags);
- real32_call(PAGE0->mem_kbd.iodc_io,

-		    (unsigned long)PAGE0->mem_kbd.hpa, ENTRY_IO_CIN,
-		    PAGE0->mem_kbd.spa, __pa(PAGE0->mem_kbd.dp.layers), 
-		    __pa(iodc_retbuf), 0, __pa(iodc_dbuf), 1, 0);

+ if (PAGE0->mem_cons.cl_class == CL_DUPLEX)
+ real32_call(PAGE0->mem_cons.iodc_io,
+ (unsigned long)PAGE0->mem_cons.hpa,
ENTRY_IO_CIN,
+ PAGE0->mem_cons.spa,
__pa(PAGE0->mem_cons.dp.layers),
+ __pa(iodc_retbuf), 0, __pa(iodc_dbuf), 1,
0);
+ else
+ real32_call(PAGE0->mem_kbd.iodc_io,
+ (unsigned long)PAGE0->mem_kbd.hpa,
ENTRY_IO_CIN,
+ PAGE0->mem_kbd.spa,
__pa(PAGE0->mem_kbd.dp.layers),
+ __pa(iodc_retbuf), 0, __pa(iodc_dbuf), 1,
0);

ch = *iodc_dbuf;
status = *iodc_retbuf;
diff -NaurX dontdiff linux-2.4.24-pa0.orig/arch/parisc/kernel/pdc_cons.c linux-2.4.24-pa0/arch/parisc/kernel/pdc_cons.c
--- linux-2.4.24-pa0.orig/arch/parisc/kernel/pdc_cons.c 2004-01-19
07:25:46.000000000
+0100
+++ linux-2.4.24-pa0/arch/parisc/kernel/pdc_cons.c 2004-01-26
16:53:32.000000000
+0100
@@ -113,10 +112,6 @@
return;
++pdc_console_initialized;

- /* If the console is duplex then copy the COUT parameters to
CIN. */
- if (PAGE0->mem_cons.cl_class == CL_DUPLEX)
- memcpy(&PAGE0->mem_kbd, &PAGE0->mem_cons,
sizeof(PAGE0->mem_cons));
-
/* register the pdc console */
register_console(&pdc_cons);
}
==========><==========

Can somebody else could also test it on some other platform to be sure I don't broken other stuff?

Thanks in advance,
Joel

PS: Grant I join the text file of the final backport of 2.6 work included
this patch. Thanks in advance for your attention

------------------------------------------------------------------------
-
Tiscali ADSL: 12 mois à 29,50 EUR/mois! L'Internet rapide, c'est pour tout
le monde.
http://reg.tiscali.be/default.asp?lg=fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdc_console-bp+patch.diff
Type: application/octet-stream
Size: 23324 bytes
Desc: not available
Url :
http://lists.parisc-linux.org/pipermail/parisc-linux/attachments/2004012
6/67438867/pdc_console-bppatch.obj

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

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

End of parisc-linux Digest, Vol 2, Issue 32
*******************************************