Re: Compaq SMART EISA and ida driver -> kernel panic

2000-03-14 Thread Oliver Schonefeld

Eines schoenen Tages schrieb Matthew N. Dodd:
> On Tue, 14 Mar 2000, Oliver Schonefeld wrote:
> > hmm ... the controller shows up with another io-adress, but now the driver
> > panics because of a time out :-(
> 
> Try this patch:
[snip]

again, no success. the driver counts down the timeout with the same result
as before.
stragne thing, after i applied you first patch (setting the other io-adress)
the machine would not reboot after the panic.
a "call boot()" would also hang the machine. i had to hard-reset that thing.

that's all i can observe right now. if you need more informations, please
let me know.

regards,
oliver
-- 

And remember: "To Infinity And Far Beyond ... Somehow?!"

email: [EMAIL PROTECTED]
   [EMAIL PROTECTED]

Hi! I'm a .signature virus! Copy me in your ~/.signature
to help me spread! <- Save this lifeform ;-)


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Compaq SMART EISA and ida driver -> kernel panic

2000-03-14 Thread Matthew N. Dodd

On Tue, 14 Mar 2000, Oliver Schonefeld wrote:
> hmm ... the controller shows up with another io-adress, but now the driver
> panics because of a time out :-(

Try this patch:

Index: ida.c
===
RCS file: /cvs/src/sys/dev/ida/ida.c,v
retrieving revision 1.7
diff -u -r1.7 ida.c
--- ida.c   2000/03/08 16:16:30 1.7
+++ ida.c   2000/03/14 22:24:34
@@ -348,7 +348,7 @@
s = splbio();
STAILQ_INSERT_TAIL(&ida->qcb_queue, qcb, link.stqe);
ida_start(ida);
-   ida_wait(ida, qcb, 500);
+   ida_wait(ida, qcb, 20);
splx(s);
 
/* XXX should have status returned here? */

> 
> kernel msgs:
> ida0:  at 0x4000-0x40ff, 0x4c88-0x4c9e
> ida0: irq 15 (level) on eisa0 slot 4
> panic: ida_wait: timeout waiting for completion
> 
> kernel debugger:
> ida_wait(c0ca5d00,c0ca7000,1f4,c0ca5d00,0) at ida_wait+0x43
> ida_command(c0ca5d00,11,c029eeb4,9,0,1,c0ca5d00,0) at ida_command+0xf8
> ida_attach(c0ca5d00,c0ca4c80,c0ca4f00,0,c0ca5d00) at ida_attach+0x28
> ida_eisa_attach(c0ca4c80,c029ef08,c0156223,c0ca4c80,c0ca4c80) at
>   ida_eisa_attach+0x187
> DEVICE_ATTACH(c0ca4c80,c0ca4c80,c0ca2000,0,c029ef18) at DEVICE_ATTACH+0x2e
> 
> regards,
> oliver
> 

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter | This Space For Rent  | ISO8802.5 4ever |



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Compaq SMART EISA and ida driver -> kernel panic

2000-03-14 Thread Oliver Schonefeld

Eines schoenen Tages schrieb Matthew N. Dodd:
[snip]
> Doh!  Looks like Jonathan didn't merge the latest ida_eisa.c that I'd
> worked on when he fixed the driver to support multiple access methods and
> added EISA support.
> 
> Try this patch:
[snip]

hmm ... the controller shows up with another io-adress, but now the driver
panics because of a time out :-(

kernel msgs:
ida0:  at 0x4000-0x40ff, 0x4c88-0x4c9e
ida0: irq 15 (level) on eisa0 slot 4
panic: ida_wait: timeout waiting for completion

kernel debugger:
ida_wait(c0ca5d00,c0ca7000,1f4,c0ca5d00,0) at ida_wait+0x43
ida_command(c0ca5d00,11,c029eeb4,9,0,1,c0ca5d00,0) at ida_command+0xf8
ida_attach(c0ca5d00,c0ca4c80,c0ca4f00,0,c0ca5d00) at ida_attach+0x28
ida_eisa_attach(c0ca4c80,c029ef08,c0156223,c0ca4c80,c0ca4c80) at
  ida_eisa_attach+0x187
DEVICE_ATTACH(c0ca4c80,c0ca4c80,c0ca2000,0,c029ef18) at DEVICE_ATTACH+0x2e

regards,
oliver
-- 

And remember: "To Infinity And Far Beyond ... Somehow?!"

email: [EMAIL PROTECTED]
   [EMAIL PROTECTED]

Hi! I'm a .signature virus! Copy me in your ~/.signature
to help me spread! <- Save this lifeform ;-)


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Compaq SMART EISA and ida driver -> kernel panic

2000-03-14 Thread Matthew N. Dodd

On Tue, 14 Mar 2000, Oliver Schonefeld wrote:
> there we go:
> qcb = 0xc0ca7000
> completed = 0x (so propably not initalized?!)
> qcb_done = 0x0

Doh!  Looks like Jonathan didn't merge the latest ida_eisa.c that I'd
worked on when he fixed the driver to support multiple access methods and
added EISA support.

Try this patch:

Index: ida_eisa.c
===
RCS file: /cvs/src/sys/dev/ida/ida_eisa.c,v
retrieving revision 1.1
diff -u -r1.1 ida_eisa.c
--- ida_eisa.c  2000/03/08 16:16:31 1.1
+++ ida_eisa.c  2000/03/14 19:34:23
@@ -247,6 +247,7 @@
return (ENXIO);
}
 
+   eisa_add_iospace(dev, io_base, 0x100, RESVADDR_NONE);
eisa_add_iospace(dev, (io_base + IDA_EISA_IOPORT_START),
 IDA_EISA_IOPORT_LEN, RESVADDR_NONE);
 

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter | This Space For Rent  | ISO8802.5 4ever |


Index: ida_eisa.c
===
RCS file: /cvs/src/sys/dev/ida/ida_eisa.c,v
retrieving revision 1.1
diff -u -r1.1 ida_eisa.c
--- ida_eisa.c  2000/03/08 16:16:31 1.1
+++ ida_eisa.c  2000/03/14 19:34:23
@@ -247,6 +247,7 @@
return (ENXIO);
}
 
+   eisa_add_iospace(dev, io_base, 0x100, RESVADDR_NONE);
eisa_add_iospace(dev, (io_base + IDA_EISA_IOPORT_START),
 IDA_EISA_IOPORT_LEN, RESVADDR_NONE);
 



Re: Compaq SMART EISA and ida driver -> kernel panic

2000-03-14 Thread Oliver Schonefeld

Eines schoenen Tages schrieb Matthew N. Dodd:
[snip]
> Could you add
> 
> printf("0x%lx\n0x%lx0x%lx\n", qcb, completed, qcb_done);
> 
> to ida.c:ida_wait() after this line:
> 
> 454:qcb_done = idahwqcbptov(ida, completed & ~3);
> 
> And show us the output.
there we go:
qcb = 0xc0ca7000
completed = 0x (so propably not initalized?!)
qcb_done = 0x0

cheers,
oliver
-- 

And remember: "To Infinity And Far Beyond ... Somehow?!"

email: [EMAIL PROTECTED]
   [EMAIL PROTECTED]

Hi! I'm a .signature virus! Copy me in your ~/.signature
to help me spread! <- Save this lifeform ;-)


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Compaq SMART EISA and ida driver -> kernel panic

2000-03-13 Thread Matthew N. Dodd

On Tue, 14 Mar 2000, Oliver Schonefeld wrote:
> i was very happy to se, that the eisa bus attachment stuff had been
> reviewed and comitted to the source tree. the kernel compiles w/o
> problems but panics, when booting :-( has anybody with an eisa board
> have had success (maybe my setup is somehow wrong?!)

Could you add

printf("0x%lx\n0x%lx0x%lx\n", qcb, completed, qcb_done);

to ida.c:ida_wait() after this line:

454:qcb_done = idahwqcbptov(ida, completed & ~3);

And show us the output.

> relevent kernel messages:
> ahb0:  at 0x3c00-0x3cff, irq 12 (edge)
> ahb0: on eisa0 slot 3
> ahb0: AHA1740A Single Ended SCSI Adapter, FW Rev. E, ID=7, 64 ECBs
> ida0:  at 0x4c88-0x4c9e, irq 15 (level)
> ida0: on eisa0 slot 4
> panic: ida_wait: incorrect qcb returned
> Debugger("panic")
> Stopped atDebugger+0x35:  movb$0,in_Debugger.372
> 
> "trace" in the kernel debugger returnes following output:
> panic(c01f7520,c0ca7000,c0ca5d00,,c029ee84) at panic+0xf8
> ida_wait(c0ca5d00,c0ca7000,1f4,c0ca5d00,0) at ida_wait+0x75
> ida_command(c0ca5d00,11,c029eeb4,9,0,1,c0ca5d00,0) at ida_command+0xf8
> ida_attach(c0ca5d00,c0ca4c80,c0ca4f00,0,c0ca5d00) at ida_attach+0x28
> ida_eisa_attach(c0ca4c80,c029ef08,c01561fb,c0ca4c80,c0ca4c80) at
>   ida_eisa_attach+0x187
> DEVICE_ATTACH(c0ca4c80,c0ca4c80,c0ca2000,0,c029ef18) at DEVICE_ATTACH+0x2e
> [some more, but i think, that was the importtant part, since the adaptec
> board ist probed and initialized correclty]
> 
> unfortunaly no core dump available.
> 
> information on machine:
> compaq prosignia 486 w/pentium overdrive (bios version as from 09/25/97)
>   os set to "UNIX/XENIX"
> 1x compaq smart array controller (firmware revision 2.26)
>os set to "UNIX/XENIX"
>one logical volume:
>   2x quantum fireball 1.08GB (drive mirroring)
>setup via compaq system configuration utility (did i miss something?)
> 1x adaptec 1740
> 1x adaptec 2742 (floppy controller disabled)
> 2x 3com 3c597 NICs
> 
> without the driver the machine runs just rock solid (lacking a raid, of
> course). so something must be wrong, when probing for the controller.
> any ideas?
> if more information is needed, i will try to provide them,
> 
> cheers,
> oliver
> 

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter | This Space For Rent  | ISO8802.5 4ever |



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Compaq SMART EISA and ida driver -> kernel panic

2000-03-13 Thread Oliver Schonefeld

hello *!

i was very happy to se, that the eisa bus attachment stuff had been reviewed
and comitted to the source tree. the kernel compiles w/o problems but
panics, when booting :-(
has anybody with an eisa board have had success (maybe my setup is somehow
wrong?!)

relevent kernel messages:
ahb0:  at 0x3c00-0x3cff, irq 12 (edge)
ahb0: on eisa0 slot 3
ahb0: AHA1740A Single Ended SCSI Adapter, FW Rev. E, ID=7, 64 ECBs
ida0:  at 0x4c88-0x4c9e, irq 15 (level)
ida0: on eisa0 slot 4
panic: ida_wait: incorrect qcb returned
Debugger("panic")
Stopped at  Debugger+0x35:  movb$0,in_Debugger.372

"trace" in the kernel debugger returnes following output:
panic(c01f7520,c0ca7000,c0ca5d00,,c029ee84) at panic+0xf8
ida_wait(c0ca5d00,c0ca7000,1f4,c0ca5d00,0) at ida_wait+0x75
ida_command(c0ca5d00,11,c029eeb4,9,0,1,c0ca5d00,0) at ida_command+0xf8
ida_attach(c0ca5d00,c0ca4c80,c0ca4f00,0,c0ca5d00) at ida_attach+0x28
ida_eisa_attach(c0ca4c80,c029ef08,c01561fb,c0ca4c80,c0ca4c80) at
  ida_eisa_attach+0x187
DEVICE_ATTACH(c0ca4c80,c0ca4c80,c0ca2000,0,c029ef18) at DEVICE_ATTACH+0x2e
[some more, but i think, that was the importtant part, since the adaptec
board ist probed and initialized correclty]

unfortunaly no core dump available.

information on machine:
compaq prosignia 486 w/pentium overdrive (bios version as from 09/25/97)
os set to "UNIX/XENIX"
1x compaq smart array controller (firmware revision 2.26)
   os set to "UNIX/XENIX"
   one logical volume:
  2x quantum fireball 1.08GB (drive mirroring)
   setup via compaq system configuration utility (did i miss something?)
1x adaptec 1740
1x adaptec 2742 (floppy controller disabled)
2x 3com 3c597 NICs

without the driver the machine runs just rock solid (lacking a raid, of
course). so something must be wrong, when probing for the controller.
any ideas?
if more information is needed, i will try to provide them,

cheers,
oliver
-- 

email: [EMAIL PROTECTED]
   [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message