[parisc-linux] parisc-linux Digest, Vol 2, Issue 32

parisc-linux-request at lists.parisc-linux.org parisc-linux-request at lists.parisc-linux.org
Mon Jan 26 10:01:09 MST 2004


Send parisc-linux mailing list submissions to
	parisc-linux at lists.parisc-linux.org

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
	parisc-linux-request at lists.parisc-linux.org

You can reach the person managing the list at
	parisc-linux-owner at lists.parisc-linux.org

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 <willy at debian.org>
Subject: Re: [parisc-linux] menu not available
To: Grant Grundler <grundler at parisc-linux.org>
Cc: "Peralta, Joseph A" <jperalta at WPI.EDU>,
	parisc-linux at lists.parisc-linux.org
Message-ID: <20040125224040.GG11844 at parcelfarce.linux.theplanet.co.uk>
Content-Type: text/plain; charset=us-ascii

On Fri, Jan 23, 2004 at 03:11:49PM -0700, Grant Grundler wrote:
> On Fri, Jan 23, 2004 at 04:47:11PM -0500, Peralta, Joseph A wrote:
> > When I try to install certain X-window managers under Debian 3.0 I
get
> > "xxx depends on menu (>> 1.5)... menu is not available" How would I
fix
> > 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.

-- 
"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" <dave at hiauly1.hia.nrc.ca>
Subject: Re: Re: [parisc-linux] missing barrier in _raw_spin_lock?
To: arndb at onlinehome.de
Cc: grundler at parisc-linux.org, arnd at arndb.de,
	parisc-linux at parisc-linux.org
Message-ID: <200401260013.i0Q0Dltk013819 at hiauly1.hia.nrc.ca>
Content-Type: text/plain; charset=US-ASCII

> > #define __ldcw(a) ({ \
> >   unsigned int __ret;
\
> >   __asm__ __volatile__("ldcw 0(%2),%0"
\
> > 		      : "=r" (__ret), "=m" (*(a)) : "r" (a));
\
> >   __ret;
\
> > })

> I suppose the memory operand specification is required here. Newer 
> compilers (especially gcc-3.4) can optimize away local variables if
you 
> 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.

> No, putting the barrier into __ldcw is wrong because it would impact
all
> 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
-- 
J. David Anglin
dave.anglin at nrc-cnrc.gc.ca
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 <carlos at baldric.uwo.ca>
Subject: Re: [parisc-linux] kernel BUG at mm/shmem.c:585!
To: John David Anglin <dave at hiauly1.hia.nrc.ca>
Cc: grundler at parisc-linux.org, parisc-linux at lists.parisc-linux.org
Message-ID: <20040126021508.GZ1060 at baldric.uwo.ca>
Content-Type: text/plain; charset=us-ascii

On Fri, Jan 23, 2004 at 02:40:27PM -0500, John David Anglin wrote:
> > 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" <dave at hiauly1.hia.nrc.ca>
Subject: Re: [parisc-linux] kernel BUG at mm/shmem.c:585!
To: carlos at baldric.uwo.ca (Carlos O'Donell)
Cc: grundler at parisc-linux.org, parisc-linux at lists.parisc-linux.org
Message-ID: <200401260235.i0Q2Z783024373 at hiauly1.hia.nrc.ca>
Content-Type: text/plain; charset=US-ASCII

> On Fri, Jan 23, 2004 at 02:40:27PM -0500, John David Anglin wrote:
> > > 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
-- 
J. David Anglin
dave.anglin at nrc-cnrc.gc.ca
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" <reinhold.flecke at ccf-consulting.de>
Subject: [parisc-linux] installation failed on C240 (fx4) workstation
	
To: <parisc-linux at lists.parisc-linux.org>
Message-ID:
	<LBEMKLBEFDGDOGGAOGIKAEJPCCAA.reinhold.flecke at ccf-consulting.de>
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:Reinhold.Flecke at ccf-consulting.de>

-------------- 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" <reinhold.flecke at ccf-consulting.de>
Subject: [parisc-linux] help installation failed on C240 (fx4)
	workstation
To: <parisc-linux at lists.parisc-linux.org>
Message-ID:
	<LBEMKLBEFDGDOGGAOGIKOEJPCCAA.reinhold.flecke at ccf-consulting.de>
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:Reinhold.Flecke at ccf-consulting.de>

-------------- 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 <grundler at parisc-linux.org>
Subject: Re: [parisc-linux] kernel BUG at mm/shmem.c:585!
To: John David Anglin <dave at hiauly1.hia.nrc.ca>
Cc: Carlos O'Donell <carlos at baldric.uwo.ca>,
	parisc-linux at lists.parisc-linux.org
Message-ID: <20040126155356.GA12175 at colo.lackof.org>
Content-Type: text/plain; charset=us-ascii

On Sun, Jan 25, 2004 at 09:35:07PM -0500, John David Anglin wrote:
> 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 <grundler at parisc-linux.org>
Subject: Re: [parisc-linux] help installation failed on C240 (fx4)
	workstation
To: Reinhold Flecke CCF <reinhold.flecke at ccf-consulting.de>
Cc: parisc-linux at lists.parisc-linux.org
Message-ID: <20040126161316.GC12175 at colo.lackof.org>
Content-Type: text/plain; charset=us-ascii

On Mon, Jan 26, 2004 at 12:13:22PM +0100, Reinhold Flecke CCF wrote:
> 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

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" <soete.joel at tiscali.be>
Subject: [parisc-linux] A fix for B2k and CONFIG_PDC_CONSOLE pb
To: "Grant Grundler" <grundler at parisc-linux.org>,	"Christoph
Plattner"
	<christoph.plattner at gmx.at>
Cc: parisc-linux at lists.parisc-linux.org
Message-ID: <400CB8A100004C60 at ocpmta3.freegates.net>
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
parisc-linux at lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux


End of parisc-linux Digest, Vol 2, Issue 32
*******************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.parisc-linux.org/pipermail/parisc-linux/attachments/20040126/31251d0f/attachment-0001.html


More information about the parisc-linux mailing list