Re: mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11]

2000-12-15 Thread David S. Miller
Date: Fri, 15 Dec 2000 18:55:28 +0100 From: Andrea Arcangeli <[EMAIL PROTECTED]> I'm aware this way all ports actively using `mm->context' needs to be changed but the change is certainly a no-brainer... OK? My problem is that I don't want to typedef it to a structure, this will unnec

Re: mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11]

2000-12-15 Thread Andrea Arcangeli
On Fri, Dec 15, 2000 at 09:11:31AM -0800, David S. Miller wrote: > Can you name the mm_struct member "context" [..] I got you was proposing that but once we change it I preferred to use a generic mm_arch structure (not just a context field) to have a more generic interface in the long run. (mayb

Re: mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11]

2000-12-15 Thread David S. Miller
Date: Fri, 15 Dec 2000 16:46:26 +0100 From: Andrea Arcangeli <[EMAIL PROTECTED]> This one breaks all archs but i386 and alpha. If some arch maintainer likes me to update its arch blindly implementing mm_arch structure as an `unsigned long context' and fixing up the miscompilation I

Re: mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11]

2000-12-15 Thread Andrea Arcangeli
On Fri, Dec 01, 2000 at 08:14:44PM +0100, Andrea Arcangeli wrote: > On Fri, Dec 01, 2000 at 10:19:44AM -0800, David S. Miller wrote: > > I would instead suggest to declare 'context' to be of an arch-specific > > defined type, much like "thread_struct" is. > > I agree, [..] Here it is:

Re: Alpha SCSI error on 2.4.0-test11

2000-12-05 Thread Jay Estabrook
On Mon, Dec 04, 2000 at 01:53:42PM -0500, Phillip Ezolt wrote: > > I've recompiled as you have suggested. Any ideas? Compile again with the following patches (these are against 2.4.0-test12, but those in arch/alpha/kernel/core_cia.c should work against test10/11 as well). Something got

Re: Alpha SCSI error on 2.4.0-test11

2000-12-05 Thread Phillip Ezolt
Andrea, > Does the qlogic driver works well on an ES40 with more than 1G of ram? If > yes then qlogic driver should be ok. Yes. I have tried it on an ES40 with 16 Gig of ram, and it boots just fine. From what you say, this appears to be a Miata problem and NOT a qlogic problem. What ne

Re: Alpha SCSI error on 2.4.0-test11

2000-12-04 Thread Phillip Ezolt
Ivan, I've recompiled as you have suggested. Any ideas? Here is my dmesg output: Linux version 2.4.0-test12 ([EMAIL PROTECTED]) (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #3 Mon Dec 4 02:38:18 EST 2000 Booting GENERIC on Miata using machine vector Miata from SRM C

Re: Alpha SCSI error on 2.4.0-test11

2000-12-01 Thread Ivan Kokshaysky
On Fri, Dec 01, 2000 at 02:56:43PM -0500, Phillip Ezolt wrote: > What data structure's would I look at? What should I investigate to > verify this? In the arch/alpha/kernel/pci_iommu.c change #define DEBUG_ALLOC 0 to #define DEBUG_ALLOC 2 Perhaps this will give us more info. At the first look w

Re: Alpha SCSI error on 2.4.0-test11

2000-12-01 Thread Andrea Arcangeli
On Fri, Dec 01, 2000 at 02:56:43PM -0500, Phillip Ezolt wrote: > What data structure's would I look at? What should I investigate to > verify this? The relevant code is in arch/alpha/kernel/core_cia.c > What would I have to do to test this? I have an ES40 & 3 miata's Does the qlogic dr

Re: Alpha SCSI error on 2.4.0-test11

2000-12-01 Thread Phillip Ezolt
Andrea, > large 2G. So it's maybe the second window between 1G and 2G that isn't set > correctly? What data structure's would I look at? What should I investigate to verify this? > Does the qlogic driver works on a tsunami southbridge? What would I have to do to test this? I have an

Re: Alpha SCSI error on 2.4.0-test11

2000-12-01 Thread Andrea Arcangeli
On Fri, Dec 01, 2000 at 01:30:10PM -0500, Phillip Ezolt wrote: > Any ideas? (Or patches that I can test... ;-) ) miata seems to use cia southbridge so it should set an iommu direct mapping large 2G. So it's maybe the second window between 1G and 2G that isn't set correctly? Does the qlogic drive

Re: mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11]

2000-12-01 Thread Andrea Arcangeli
On Fri, Dec 01, 2000 at 10:19:44AM -0800, David S. Miller wrote: >I'm still left the #ifdef __alpha__ around the context[NR_CPUS] to >avoid breakage of other archs but that should be probably removed: >any CPU with per-CPU ASNs like alpha needs per-CPU per-MM context >information t

Re: mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11]

2000-12-01 Thread David S. Miller
Date:Fri, 1 Dec 2000 15:18:42 +0100 From: Andrea Arcangeli <[EMAIL PROTECTED]> I'm still left the #ifdef __alpha__ around the context[NR_CPUS] to avoid breakage of other archs but that should be probably removed: any CPU with per-CPU ASNs like alpha needs per-CPU per-MM con

Re: Alpha SCSI error on 2.4.0-test11

2000-12-01 Thread Phillip Ezolt
Ivan, I have tried test12-pre3 with and without your patch, it fails in the same way. The Qlogic SCSI controller continues to fail if we have >1 gig in the machine. (But works fine without it.) Any ideas? (Or patches that I can test... ;-) ) Thanks, --Phil Compaq: High Performance Server D

mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11]

2000-12-01 Thread Andrea Arcangeli
On Fri, Dec 01, 2000 at 02:56:19PM +0300, Ivan Kokshaysky wrote: > Andrea, could you try this? that's the right fix thanks (please send to Linus). BTW, here is a preview of the asn SMP race fix for 2.4.x: ftp://ftp.us.kernel.org/pub/linux/kernel/people/andrea/patches/v2.4/2.4.0-test12-

Re: Alpha SCSI error on 2.4.0-test11

2000-12-01 Thread Ivan Kokshaysky
On Thu, Nov 30, 2000 at 11:37:42PM +0100, Andrea Arcangeli wrote: > test12-pre2 crashes at boot on my DS20. This patch workaround the problem > but I would be _very_ surprised if this is the right fix :) It's obviously not > meant for inclusion. ... > - struct resource_list *ln

Re: Alpha SCSI error on 2.4.0-test11

2000-11-30 Thread Andrea Arcangeli
On Thu, Nov 30, 2000 at 05:26:58PM -0500, Phillip Ezolt wrote: > I'll give test12-pre3 a try and see if it fixes things. test12-pre2 crashes at boot on my DS20. This patch workaround the problem but I would be _very_ surprised if this is the right fix :) It's obviously not meant for inclusion. -

Re: Alpha SCSI error on 2.4.0-test11

2000-11-30 Thread Phillip Ezolt
Ivan, We dug a little deeper, and think that we found the problem. The error occurs if we have over 1024 MB of memory in the machine. If we have less than 1024MB, the machine behaves correctly. (This is a 600Mhz Digital Personal Workstation) Once again, the 2.2 kernel in RH 7.0 behave

Re: Alpha SCSI error on 2.4.0-test11

2000-11-30 Thread Ivan Kokshaysky
On Thu, Nov 30, 2000 at 03:02:42PM -0500, Phillip Ezolt wrote: > Qlogic SCSI support seems broken on 2.4.0-test11 on a Miata (Digital Personal >WorkStation 600au). > > When starting up, we get a machine check after initialing the qlogic SCSI code. Try test12-pre3 - there is the new PCI init st

RE: Alpha SCSI error on 2.4.0-test11

2000-11-30 Thread Mathiasen, Torben
Phillip > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; > Estabrook, Jay; [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: Re: Alpha SCSI error on 2.4.0-test11 > > > Hi Phil, > > Phillip Ezolt wrote: > > > Hi All, > > &

Re: Alpha SCSI error on 2.4.0-test11

2000-11-30 Thread Peter Rival
Hi Phil, Phillip Ezolt wrote: > Hi All, > > Qlogic SCSI support seems broken on 2.4.0-test11 on a Miata (Digital Personal >WorkStation 600au). > > When starting up, we get a machine check after initialing the qlogic SCSI code. > > Using the Alpha kgdb, we figured out that the code is dying

Alpha SCSI error on 2.4.0-test11

2000-11-30 Thread Phillip Ezolt
Hi All, Qlogic SCSI support seems broken on 2.4.0-test11 on a Miata (Digital Personal WorkStation 600au). When starting up, we get a machine check after initialing the qlogic SCSI code. Using the Alpha kgdb, we figured out that the code is dying in scsi_wait_request(). Here's the backtrace: