* Alpha SCSI error on 2.4.0-test11
@ 2000-11-30 20:02 Phillip Ezolt
2000-11-30 20:37 ` Peter Rival
2000-11-30 21:40 ` Ivan Kokshaysky
0 siblings, 2 replies; 8+ messages in thread
From: Phillip Ezolt @ 2000-11-30 20:02 UTC (permalink / raw)
To: ink, rth, axp-list, Jay.Estabrook; +Cc: linux-kernel, clinux, wcarr
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:
scsi_wait_req (SRpnt=0xfffffc0001f9b480, cmnd=0xfffffc890000a078,
buffer=0x100, bufflen=2, timeout=17891584, retries=6144)
at /usr/src/linux/include/asm/atomic.h:85
(gdb) where
#0 scsi_wait_req (SRpnt=0xfffffc0001f9b480, cmnd=0xfffffc890000a078,
buffer=0x100, bufflen=2, timeout=17891584, retries=6144)
at /usr/src/linux/include/asm/atomic.h:85
#1 0xfffffc00004107f0 in scan_scsis_single (channel=0, dev=41080, lun=0,
max_dev_lun=0xfffffc00001efa30, sparse_lun=0xfffffc00001efa34,
SDpnt2=0xfffffc00001efa38, shpnt=0xfffffc00005ff800,
scsi_result=0xfffffc00001ef930 "\001") at scsi_scan.c:516
#2 0xfffffc0000410548 in scan_scsis (shpnt=0xfffffc00005ff800, hardcoded=1,
hchannel=0, hid=0, hlun=0) at scsi_scan.c:403
#3 0xfffffc0000404f58 in scsi_register_host (tpnt=0xfffffc000058fb80)
at scsi.c:1904
#4 0xfffffc00004dac50 in init_this_scsi_driver ()
#5 0xfffffc00004c2bec in do_initcalls ()
#6 0xfffffc00004c2c6c in do_basic_setup ()
#7 0xfffffc0000310078 in init (unused=0x0) at init/main.c:775
Note: On the working kernels, the two controllers are 0x800 apart, but
on the broken kernels, they are only 0x400. Could the overlap
cause problems?
Working: 2.2.14-6.0: (from 6.2 Redhat)
qlogicisp: new isp1020 revision ID (5)
qlogicisp: new isp1020 revision ID (5)
scsi0: QLogic ISP1020 SCSI on PCI bus 01 device 20 irq 27 I/O base 0x9000
scsi1: QLogic ISP1020 SCSI on PCI bus 01 device 48 irq 40 I/O base 0x9800
scsi: 2 hosts.
Vendor: DEC Model: RZ1CB-BA (C) DEC Rev: LYE0
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
Vendor: DEC Model: RZ28D (C) DEC Rev: 0008
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sdb at scsi0, channel 0, id 1, lun 0
Vendor: DEC Model: RZ1BB-BA (C) DEC Rev: LYE0
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sdc at scsi0, channel 0, id 2, lun 0
scsi: detected 3 SCSI disks total.
Working: vmlinux-2.2.17-4 (from 7.0 Redhat)
qlogicisp: new isp1020 revision ID (5)
qlogicisp: new isp1020 revision ID (5)
DC390: 0 adapters found
scsi0: QLogic ISP1020 SCSI on PCI bus 01 device 20 irq 27 I/O base 0xa000
scsi1: QLogic ISP1020 SCSI on PCI bus 01 device 48 irq 40 I/O base 0xa800
scsi: 2 hosts.
Vendor: DEC Model: RZ1CB-BA (C) DEC Rev: LYE0
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
Vendor: DEC Model: RZ28D (C) DEC Rev: 0008
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sdb at scsi0, channel 0, id 1, lun 0
Vendor: DEC Model: RZ1BB-BA (C) DEC Rev: LYE0
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sdc at scsi0, channel 0, id 2, lun 0
scsi: detected 3 SCSI disks total.
SCSI device sda: hdwr sector= 512 bytes. Sectors= 8380080 [4091 MB] [4.1 GB]
SCSI device sdb: hdwr sector= 512 bytes. Sectors= 4110480 [2007 MB] [2.0 GB]
SCSI device sdc: hdwr sector= 512 bytes. Sectors= 4110480 [2007 MB] [2.0 GB]
Broken 2.4.0-test11: (gcc version 2.96 20000731 (Red Hat Linux 7.0))
SCSI subsystem driver Revision: 1.00
qlogicisp: new isp1020 revision ID (5)
qlogicisp: new isp1020 revision ID (5)
scsi0: QLogic ISP1020 SCSI on PCI bus 01 device 20 irq 27 I/O base 0xa000
scsi1: QLogic ISP1020 SCSI on PCI bus 01 device 48 irq 40 I/O base 0xa400
CIA machine check: vector=0x660 pc=0xfffffc0000312644 code=0x813
machine check type: unknown
pc = [<fffffc0000312644>] ra = [<fffffc0000312660>] ps = 0000
v0 = 0000000000000000 t0 = 0000000000000000 t1 = fffffc00005d8b20
t2 = 0000000000000001 t3 = 0000000000000001 t4 = fffffc000057a110
t5 = fffffffffffffc18 t6 = 000000000000451d t7 = fffffc0000520000
a0 = 0000000000000019 a1 = 0000000000000032 a2 = fffffc000035d5cc
a3 = 0000000000000002 a4 = fffffc0000544080 a5 = fffffc000057a110
t8 = 0000000000000000 t9 = 00000000f96329ef t10= 0000000000000000
t11= 0000000000000001 pv = fffffc0000329f80 at = fffffc0000520000
gp = fffffc000059dd88 sp = fffffc0000523fd0
scsi: aborting command due to timeout : pid 0, scsi0, channel 0, id 0, lun 0 0
scsi: aborting command due to timeout : pid 0, scsi0, channel 0, id 0, lun 0 0
scsi: aborting command due to timeout : pid 0, scsi0, channel 0, id 0, lun 0 0
scsi: aborting command due to timeout : pid 0, scsi0, channel 0, id 0, lun 0 0
Broken 2.4.0-test11: (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release))
SCSI subsystem driver Revision: 1.00
qlogicisp: new isp1020 revision ID (5)
qlogicisp: new isp1020 revision ID (5)
scsi0: QLogic ISP1020 SCSI on PCI bus 01 device 20 irq 27 I/O base 0xa000
scsi1: QLogic ISP1020 SCSI on PCI bus 01 device 48 irq 40 I/O base 0xa400
CIA machine check: vector=0x660 pc=0xfffffc0000312464 code=0x813
machine check type: unknown
pc = [<fffffc0000312464>] ra = [<fffffc0000312480>] ps = 0000
v0 = 0000000000000000 t0 = 0000000000000000 t1 = 0000000000000001
t2 = 0000000000000001 t3 = fffffc0000562850 t4 = fffffc0000562850
t5 = fffffffffffffc18 t6 = fffffc00005613d0 t7 = fffffc0000508000
a0 = 0000000000000019 a1 = 0000000000000032 a2 = fffffc000035b478
a3 = 0000000000000002 a4 = fffffc00003f8880 a5 = 0000000000001800
t8 = 0000000000000000 t9 = 000000001feee829 t10= 0000000000000000
t11= ffff00ff00000012 pv = fffffc0000329f80 at = fffffc000052c080
gp = fffffc0000585ed8 sp = fffffc000050bfd0
scsi: aborting command due to timeout : pid 0, scsi0, channel 0, id 0, lun 0 0
scsi: aborting command due to timeout : pid 0, scsi0, channel 0, id 0, lun 0 0
scsi: aborting command due to timeout : pid 0, scsi0, channel 0, id 0, lun 0 0
scsi: aborting command due to timeout : pid 0, scsi0, channel 0, id 0, lun 0 0
Thanks,
--Phil & Bill
Compaq: High Performance Server Division/Benchmark Performance Engineering
---------------- Alpha, The Fastest Processor on Earth --------------------
Phillip.Ezolt@compaq.com |C|O|M|P|A|Q| ezolt@perf.zko.dec.com
------------------- See the results at www.spec.org -----------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Alpha SCSI error on 2.4.0-test11
2000-11-30 20:02 Alpha SCSI error on 2.4.0-test11 Phillip Ezolt
@ 2000-11-30 20:37 ` Peter Rival
2000-11-30 21:40 ` Ivan Kokshaysky
1 sibling, 0 replies; 8+ messages in thread
From: Peter Rival @ 2000-11-30 20:37 UTC (permalink / raw)
To: Phillip Ezolt
Cc: ink, rth, axp-list, Jay.Estabrook, linux-kernel, clinux, wcarr
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 in scsi_wait_request().
Wow, I'm impressed! I didn't realize that kgdb worked on Alpha...Were
you using the remote kgdb? (You can answer me offline to save
bandwidth.) This would be a _huge_ help in trying to figure out why my
Wildfire^WGS160 is crashing with the DISCONTIGMEM code that I stole from
Jay and have been hacking on.
Speaking of that system, it has two QLogic adapters in it (both 1040Bs,
like the Miata), and they are working just fine under 2.4.0-test11
(obviously, without my changes ;). It looks like it's probably the
platform code that's busted. I can't remember...are those Pyxis or
CIA? Anyway, could this have something to do with the PCI & PCI bridge
work that Richard and Ivan just submitted?
- Pete
>
> Here's the backtrace:
>
> scsi_wait_req (SRpnt=0xfffffc0001f9b480, cmnd=0xfffffc890000a078,
> buffer=0x100, bufflen=2, timeout=17891584, retries=6144)
> at /usr/src/linux/include/asm/atomic.h:85
> (gdb) where
> #0 scsi_wait_req (SRpnt=0xfffffc0001f9b480, cmnd=0xfffffc890000a078,
> buffer=0x100, bufflen=2, timeout=17891584, retries=6144)
> at /usr/src/linux/include/asm/atomic.h:85
> #1 0xfffffc00004107f0 in scan_scsis_single (channel=0, dev=41080, lun=0,
> max_dev_lun=0xfffffc00001efa30, sparse_lun=0xfffffc00001efa34,
> SDpnt2=0xfffffc00001efa38, shpnt=0xfffffc00005ff800,
> scsi_result=0xfffffc00001ef930 "\001") at scsi_scan.c:516
> #2 0xfffffc0000410548 in scan_scsis (shpnt=0xfffffc00005ff800, hardcoded=1,
> hchannel=0, hid=0, hlun=0) at scsi_scan.c:403
> #3 0xfffffc0000404f58 in scsi_register_host (tpnt=0xfffffc000058fb80)
> at scsi.c:1904
> #4 0xfffffc00004dac50 in init_this_scsi_driver ()
> #5 0xfffffc00004c2bec in do_initcalls ()
> #6 0xfffffc00004c2c6c in do_basic_setup ()
> #7 0xfffffc0000310078 in init (unused=0x0) at init/main.c:775
>
>
> Note: On the working kernels, the two controllers are 0x800 apart, but
> on the broken kernels, they are only 0x400. Could the overlap
> cause problems?
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Alpha SCSI error on 2.4.0-test11
2000-11-30 20:02 Alpha SCSI error on 2.4.0-test11 Phillip Ezolt
2000-11-30 20:37 ` Peter Rival
@ 2000-11-30 21:40 ` Ivan Kokshaysky
2000-11-30 22:26 ` Phillip Ezolt
1 sibling, 1 reply; 8+ messages in thread
From: Ivan Kokshaysky @ 2000-11-30 21:40 UTC (permalink / raw)
To: Phillip Ezolt; +Cc: rth, axp-list, Jay.Estabrook, linux-kernel, clinux, wcarr
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 stuff. It works (to some degree)
on as1000a with the same qlogic scsi.
Ivan.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Alpha SCSI error on 2.4.0-test11
2000-11-30 21:40 ` Ivan Kokshaysky
@ 2000-11-30 22:26 ` Phillip Ezolt
[not found] ` <20001130233742.A21823@athlon.random>
0 siblings, 1 reply; 8+ messages in thread
From: Phillip Ezolt @ 2000-11-30 22:26 UTC (permalink / raw)
To: axp-list; +Cc: rth, Jay.Estabrook, linux-kernel, clinux, wcarr
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 behaves properly.
I'll give test12-pre3 a try and see if it fixes things.
Thanks,
--Phil
Compaq: High Performance Server Division/Benchmark Performance Engineering
---------------- Alpha, The Fastest Processor on Earth --------------------
Phillip.Ezolt@compaq.com |C|O|M|P|A|Q| ezolt@perf.zko.dec.com
------------------- See the results at www.spec.org -----------------------
On Fri, 1 Dec 2000, Ivan Kokshaysky wrote:
> 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 stuff. It works (to some degree)
> on as1000a with the same qlogic scsi.
>
> Ivan.
>
>
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Alpha SCSI error on 2.4.0-test11
[not found] ` <20001130233742.A21823@athlon.random>
@ 2000-12-01 11:56 ` Ivan Kokshaysky
[not found] ` <20001201151842.C30653@athlon.random>
0 siblings, 1 reply; 8+ messages in thread
From: Ivan Kokshaysky @ 2000-12-01 11:56 UTC (permalink / raw)
To: Andrea Arcangeli
Cc: Phillip Ezolt, axp-list, rth, Jay.Estabrook, linux-kernel, clinux,
wcarr
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 = list->next;
> + struct resource_list *ln;
>
> + if (!list)
> + return;
> + ln = list->next;
Argh. I believe that crash could happen only if some broken device has
empty I/O or memory range and IORESOURCE_[IO,MEM] bit set.
Andrea, could you try this?
Ivan.
--- linux/drivers/pci/setup-res.c~ Thu Nov 30 12:14:31 2000
+++ linux/drivers/pci/setup-res.c Fri Dec 1 13:49:34 2000
@@ -136,6 +136,7 @@ pdev_sort_resources(struct pci_dev *dev,
for (i = 0; i < PCI_NUM_RESOURCES; i++) {
struct resource *r;
struct resource_list *list, *tmp;
+ unsigned long r_size;
/* PCI-PCI bridges may have I/O ports or
memory on the primary bus */
@@ -144,7 +145,9 @@ pdev_sort_resources(struct pci_dev *dev,
continue;
r = &dev->resource[i];
- if (!(r->flags & type_mask) || r->parent)
+ r_size = r->end - r->start;
+
+ if (!(r->flags & type_mask) || !r_size || r->parent)
continue;
for (list = head; ; list = list->next) {
unsigned long size = 0;
@@ -152,7 +155,7 @@ pdev_sort_resources(struct pci_dev *dev,
if (ln)
size = ln->res->end - ln->res->start;
- if (r->end - r->start > size) {
+ if (r_size > size) {
tmp = kmalloc(sizeof(*tmp), GFP_KERNEL);
tmp->next = ln;
tmp->res = r;
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11]
[not found] ` <20001201151842.C30653@athlon.random>
@ 2000-12-01 18:19 ` David S. Miller
[not found] ` <20001201201444.A2098@inspiron.random>
0 siblings, 1 reply; 8+ messages in thread
From: David S. Miller @ 2000-12-01 18:19 UTC (permalink / raw)
To: andrea
Cc: ink, ezolt, axp-list, rth, Jay.Estabrook, linux-kernel, clinux,
wcarr, linux-alpha
Date: Fri, 1 Dec 2000 15:18:42 +0100
From: Andrea Arcangeli <andrea@suse.de>
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 to avoid wasting ASNs when the task migrate CPU or with
threads.
I would instead suggest to declare 'context' to be of an arch-specific
defined type, much like "thread_struct" is.
For example, I don't need NR_CPUS contexts in the mm_struct on
sparc64, my allocation just works differently, so I shouldn't eat
all the space.
Later,
David S. Miller
davem@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11]
[not found] ` <20001215164626.C16586@inspiron.random>
@ 2000-12-15 17:11 ` David S. Miller
[not found] ` <20001215185528.C17781@inspiron.random>
0 siblings, 1 reply; 8+ messages in thread
From: David S. Miller @ 2000-12-15 17:11 UTC (permalink / raw)
To: andrea
Cc: ink, ezolt, axp-list, rth, Jay.Estabrook, linux-kernel, clinux,
wcarr, linux-alpha
Date: Fri, 15 Dec 2000 16:46:26 +0100
From: Andrea Arcangeli <andrea@suse.de>
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 will do.
Can you name the mm_struct member "context" still instead of
"mm_arch"? Because many ports will simply:
typedef unsigned long mm_arch_t;
Then all the code changes will make the accesses look less
meaningful. Consider:
if (CTX_VALID(mm->mm_arch))
whereas before the code said:
if (CTX_VALID(mm->context))
which tells the reader lot more. In fact, retaining the "context" member
name allows most ports to operate with only one change, creating
the asm/mm_arch.h header. You can in fact do this for all ports
which care about MMU tlb contexts (a simple grep such as
egrep -e "m->context" `find . -type f -name "*.[ch]"`
will show you which ports care).
Later,
David S. Miller
davem@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11]
[not found] ` <20001215185528.C17781@inspiron.random>
@ 2000-12-15 17:44 ` David S. Miller
0 siblings, 0 replies; 8+ messages in thread
From: David S. Miller @ 2000-12-15 17:44 UTC (permalink / raw)
To: andrea
Cc: ink, ezolt, axp-list, rth, Jay.Estabrook, linux-kernel, clinux,
wcarr, linux-alpha
Date: Fri, 15 Dec 2000 18:55:28 +0100
From: Andrea Arcangeli <andrea@suse.de>
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 unnecessarily increase the required alignment of the structure
member on some architectures.
Well, if you're willing to do all the fixing up, then I won't argue it
much more. :-)
Later,
David S. Miller
davem@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2000-12-15 18:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-30 20:02 Alpha SCSI error on 2.4.0-test11 Phillip Ezolt
2000-11-30 20:37 ` Peter Rival
2000-11-30 21:40 ` Ivan Kokshaysky
2000-11-30 22:26 ` Phillip Ezolt
[not found] ` <20001130233742.A21823@athlon.random>
2000-12-01 11:56 ` Ivan Kokshaysky
[not found] ` <20001201151842.C30653@athlon.random>
2000-12-01 18:19 ` mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11] David S. Miller
[not found] ` <20001201201444.A2098@inspiron.random>
[not found] ` <20001215164626.C16586@inspiron.random>
2000-12-15 17:11 ` David S. Miller
[not found] ` <20001215185528.C17781@inspiron.random>
2000-12-15 17:44 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox