* [parisc-linux] Status SPIFI SCSI
@ 2002-09-15 23:25 Christoph Plattner
2002-09-17 2:25 ` [parisc-linux] " Ryan Bradetich
0 siblings, 1 reply; 8+ messages in thread
From: Christoph Plattner @ 2002-09-15 23:25 UTC (permalink / raw)
To: Ryan Bradetich; +Cc: parisc-linux@lists.parisc-linux.org
Hallo Ryan,
here some comments on my non-successful work so far.
I did code reading and used debug instrumented code
to understand the structure behind the linux SCSI
handling.
Further I studied the NetBSD code.
One major point: We do not get any interrupts.
For my analysis I only had a look on the first
steps of SCSI initialization, so this was the
INQUERY command.
The spifi command routine is called correctly,
but it has a wrong logical implementation. As I
have seen on other (older) linux driver, the
xxx_command() has to block, after the command was
successful completed by interrupt. But the interrupt
never comes !! Even a "long" delay for simulating
blocking does not solve this problem.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [parisc-linux] Re: Status SPIFI SCSI
2002-09-15 23:25 [parisc-linux] Status SPIFI SCSI Christoph Plattner
@ 2002-09-17 2:25 ` Ryan Bradetich
2002-09-17 3:53 ` Grant Grundler
2002-09-17 18:33 ` Christoph Plattner
0 siblings, 2 replies; 8+ messages in thread
From: Ryan Bradetich @ 2002-09-17 2:25 UTC (permalink / raw)
To: Christoph Plattner; +Cc: parisc-linux@lists.parisc-linux.org
Hello Christoph,
On Sun, 2002-09-15 at 17:25, Christoph Plattner wrote:
> Hallo Ryan,
>
> here some comments on my non-successful work so far.
>
> I did code reading and used debug instrumented code
> to understand the structure behind the linux SCSI
> handling.
>
> Further I studied the NetBSD code.
>
> One major point: We do not get any interrupts.
> For my analysis I only had a look on the first
> steps of SCSI initialization, so this was the
> INQUERY command.
This is where I am also currently stuck :( The
ESIEE guys are going to hook up an analyzer to the
box and see if the target device is getting the command
(ie... did we send the command correctly to the device)
or if the device returns a command (do we catch the
command the device is returning). I have been studyting
the setup routines in the HP-UX driver and I believe
I have the chip initialized properly ... but I am not
sure why I am not getting any interrupts. Hopefully
between ESIEE, you, and myself and anyone else
interested we can figure this out.
> The spifi command routine is called correctly,
> but it has a wrong logical implementation. As I
> have seen on other (older) linux driver, the
> xxx_command() has to block, after the command was
> successful completed by interrupt. But the interrupt
> never comes !! Even a "long" delay for simulating
> blocking does not solve this problem.
That is highly possible. The driver skeleton is just
a test harness for me right now. I am just trying to see
what I can get returned from the spifi chip (that is why
most of the functions are stubs with printk. Once I see
an interrupt come in, I'll start working on putting that piece
togeather.
> From base of the NetBSD code, I cannot follow your
> code resetting the spifi subsystem. I think you have
> this from HP-UX code. Especially the
>
> __raw_writel(CMD_RESET, dev->hpa + IO_MODULE_COMMAND);
Yes, this is part of the initizlization from the HP-UX
driver. The Loquix chip sits between the HP-PB bus, and
the spifi scsi chip. According to the HP-UX driver, the
Loquix chip also required some setup. Once again, I
do not actually have the Loquix documentation, but I might
have a lead on it. Will have to wait and see if that lead
pans out.
> Is this a reset method via the IO PDC address space
> common for all HP devices ? In the NetBSD the full
> reset is done only via the `auxctrl' register, which
> you use for releasing the reset state.
I am not sure about all the HP devices. It might be an iodc
specific call. I will have to look at the driver again,
but that might reset the loquix chip *shrug* I'll take
a look and see what I can find.
> So we have a principal problem here, not having correct
> access to the spifi subsystem. Except: the SCSI-ID is
> read out correctly, I think, as ...
>
> SCSI subsystem driver Revision: 1.00
> DEBUG: 0xfff74c00
> Device: Sahp Baat Kiuh SCSI
> scsi0 : SPIFI SCSI: scsi_id: 7 IRQ: 34 type: SPIFI-3 (SE) parity
> checking: enabled
>
> ... is reported !
That is where I am also. We actually read the type SPIFI-3 (SE) for the
SKUNK card, and SPIFI-3 (DF) for the wizard (16-bit) card. I have
tested this on both cards so I know it works. I am convinced we are
reading the correct information from the card, but what I am not
convinced of is that we have it setup properly yet :) The problem is I
do not know what I am missing yet :(
> Is everything around the interrupt subsystem setup correctly ?
> The `cat /proc/interrupts' tells ...
>
> bash# cat /proc/interrupts
> CPU396195552
> 32: 124925 PARISC-CPU timer
> 33: 19767 PARISC-CPU lasi
> 34: 0 PARISC-CPU spifi
> 87: 19767 Lasi i82596
>
> ... which is no surprise ... !
>
I do not think the fact the interrupt is registered is very infomative,
I think you can register an interrupt for device even if it doesn't have
an real irq assocaitated with it (ie... the serial mux).
Yeah, thanks for looking at it ... we will have to beat on it some more
and see what we can find. Hopefully the ESIEE guys will be able to
provide us with some good information!
Thanks
- Ryan
> Till soon,
> Christoph P.
>
>
>
>
>
> --
> -------------------------------------------------------
> private: christoph.plattner@gmx.at
> company: christoph.plattner@alcatel.at
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [parisc-linux] Re: Status SPIFI SCSI
2002-09-17 2:25 ` [parisc-linux] " Ryan Bradetich
@ 2002-09-17 3:53 ` Grant Grundler
2002-09-17 18:33 ` Christoph Plattner
1 sibling, 0 replies; 8+ messages in thread
From: Grant Grundler @ 2002-09-17 3:53 UTC (permalink / raw)
To: Ryan Bradetich; +Cc: Christoph Plattner, parisc-linux@lists.parisc-linux.org
Ryan Bradetich wrote:
> > __raw_writel(CMD_RESET, dev->hpa + IO_MODULE_COMMAND);
This looks like something will be documented in the IO ACD.
CMD_RESET is an architecture defined command PA IO devices
are required to accept.
> > Is this a reset method via the IO PDC address space
> > common for all HP devices?
I believe so. That doesn't mean *all* of them implement
it properly or even need it.
> That is where I am also. We actually read the type SPIFI-3 (SE) for the
> SKUNK card, and SPIFI-3 (DF) for the wizard (16-bit) card.
I'm pretty sure wizard card used SPIFI-4.
hth,
grant
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [parisc-linux] Re: Status SPIFI SCSI
2002-09-17 2:25 ` [parisc-linux] " Ryan Bradetich
2002-09-17 3:53 ` Grant Grundler
@ 2002-09-17 18:33 ` Christoph Plattner
2002-09-17 19:56 ` Thibaut VARENE
1 sibling, 1 reply; 8+ messages in thread
From: Christoph Plattner @ 2002-09-17 18:33 UTC (permalink / raw)
To: Ryan Bradetich; +Cc: parisc-linux@lists.parisc-linux.org
Hello Ryan,
I think usinf the logic analyser will not help you on the
SCSI bus. You need the logic analyser on the SPIFI chip!!!
As I already mentioned in another mail, I think, we
DO NOT access the real device. As I have mentioned,
we only read out 0x0000ff00 at each address and we
"write" the SCSI command in an invalid space ! So this
is "OK", that the chip do not produce any interrupts !
I think, this is a very basic problem of the bus or
i/o bus initilization or the Loquix init, or whatever.
I do not expect any frame on the SCSI output !
Bye
Christoph
Ryan Bradetich wrote:
>
> Hello Christoph,
>
> On Sun, 2002-09-15 at 17:25, Christoph Plattner wrote:
> > Hallo Ryan,
> >
> > here some comments on my non-successful work so far.
> >
> > I did code reading and used debug instrumented code
> > to understand the structure behind the linux SCSI
> > handling.
> >
> > Further I studied the NetBSD code.
> >
> > One major point: We do not get any interrupts.
> > For my analysis I only had a look on the first
> > steps of SCSI initialization, so this was the
> > INQUERY command.
>
> This is where I am also currently stuck :( The
> ESIEE guys are going to hook up an analyzer to the
> box and see if the target device is getting the command
> (ie... did we send the command correctly to the device)
> or if the device returns a command (do we catch the
> command the device is returning). I have been studyting
> the setup routines in the HP-UX driver and I believe
> I have the chip initialized properly ... but I am not
> sure why I am not getting any interrupts. Hopefully
> between ESIEE, you, and myself and anyone else
> interested we can figure this out.
>
> > The spifi command routine is called correctly,
> > but it has a wrong logical implementation. As I
> > have seen on other (older) linux driver, the
> > xxx_command() has to block, after the command was
> > successful completed by interrupt. But the interrupt
> > never comes !! Even a "long" delay for simulating
> > blocking does not solve this problem.
>
> That is highly possible. The driver skeleton is just
> a test harness for me right now. I am just trying to see
> what I can get returned from the spifi chip (that is why
> most of the functions are stubs with printk. Once I see
> an interrupt come in, I'll start working on putting that piece
> togeather.
>
> > From base of the NetBSD code, I cannot follow your
> > code resetting the spifi subsystem. I think you have
> > this from HP-UX code. Especially the
> >
> > __raw_writel(CMD_RESET, dev->hpa + IO_MODULE_COMMAND);
>
> Yes, this is part of the initizlization from the HP-UX
> driver. The Loquix chip sits between the HP-PB bus, and
> the spifi scsi chip. According to the HP-UX driver, the
> Loquix chip also required some setup. Once again, I
> do not actually have the Loquix documentation, but I might
> have a lead on it. Will have to wait and see if that lead
> pans out.
>
> > Is this a reset method via the IO PDC address space
> > common for all HP devices ? In the NetBSD the full
> > reset is done only via the `auxctrl' register, which
> > you use for releasing the reset state.
>
> I am not sure about all the HP devices. It might be an iodc
> specific call. I will have to look at the driver again,
> but that might reset the loquix chip *shrug* I'll take
> a look and see what I can find.
>
> > So we have a principal problem here, not having correct
> > access to the spifi subsystem. Except: the SCSI-ID is
> > read out correctly, I think, as ...
> >
> > SCSI subsystem driver Revision: 1.00
> > DEBUG: 0xfff74c00
> > Device: Sahp Baat Kiuh SCSI
> > scsi0 : SPIFI SCSI: scsi_id: 7 IRQ: 34 type: SPIFI-3 (SE) parity
> > checking: enabled
> >
> > ... is reported !
>
> That is where I am also. We actually read the type SPIFI-3 (SE) for the
> SKUNK card, and SPIFI-3 (DF) for the wizard (16-bit) card. I have
> tested this on both cards so I know it works. I am convinced we are
> reading the correct information from the card, but what I am not
> convinced of is that we have it setup properly yet :) The problem is I
> do not know what I am missing yet :(
>
> > Is everything around the interrupt subsystem setup correctly ?
> > The `cat /proc/interrupts' tells ...
> >
> > bash# cat /proc/interrupts
> > CPU396195552
> > 32: 124925 PARISC-CPU timer
> > 33: 19767 PARISC-CPU lasi
> > 34: 0 PARISC-CPU spifi
> > 87: 19767 Lasi i82596
> >
> > ... which is no surprise ... !
> >
>
> I do not think the fact the interrupt is registered is very infomative,
> I think you can register an interrupt for device even if it doesn't have
> an real irq assocaitated with it (ie... the serial mux).
>
> Yeah, thanks for looking at it ... we will have to beat on it some more
> and see what we can find. Hopefully the ESIEE guys will be able to
> provide us with some good information!
>
> Thanks
>
> - Ryan
>
> > Till soon,
> > Christoph P.
> >
> >
> >
> >
> >
> > --
> > -------------------------------------------------------
> > private: christoph.plattner@gmx.at
> > company: christoph.plattner@alcatel.at
> >
>
> _______________________________________________
> parisc-linux mailing list
> parisc-linux@lists.parisc-linux.org
> http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
--
-------------------------------------------------------
private: christoph.plattner@gmx.at
company: christoph.plattner@alcatel.at
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [parisc-linux] Re: Status SPIFI SCSI
2002-09-17 18:33 ` Christoph Plattner
@ 2002-09-17 19:56 ` Thibaut VARENE
2002-09-17 21:31 ` Christoph Plattner
2002-09-18 1:37 ` Derek Engelhaupt
0 siblings, 2 replies; 8+ messages in thread
From: Thibaut VARENE @ 2002-09-17 19:56 UTC (permalink / raw)
To: Christoph Plattner; +Cc: Ryan Bradetich, parisc-linux@lists.parisc-linux.org
Le mardi, 17 sep 2002, =E0 20:33 Europe/Paris, Christoph Plattner a =
=E9crit=20
:
Hi Christoph,
> Hello Ryan,
>
> I think usinf the logic analyser will not help you on the
> SCSI bus. You need the logic analyser on the SPIFI chip!!!
That's not a problem,
atm we have a 16channels analyser (we can have up to 128 if needed),
we tried using the HP 2423A SCSI preprocessor, but ours seems b0rken,
therefore we decided to plug directly onto the scsi board.
So plugging onto SPIFI chip shouldn't be a pb, as long as we have its=20
pinout,
so that we can isolate signals we're trying to find.
So if you can provide us with the pin numbers we should plug on,
that would help a lot ! :)
>
> As I already mentioned in another mail, I think, we
> DO NOT access the real device. As I have mentioned,
> we only read out 0x0000ff00 at each address and we
> "write" the SCSI command in an invalid space ! So this
> is "OK", that the chip do not produce any interrupts !
>
> I think, this is a very basic problem of the bus or
> i/o bus initilization or the Loquix init, or whatever.
>
> I do not expect any frame on the SCSI output !
>
> Bye
> Christoph
>
>
> Ryan Bradetich wrote:
>>
>> Hello Christoph,
>>
>> On Sun, 2002-09-15 at 17:25, Christoph Plattner wrote:
>>> Hallo Ryan,
>>>
>>> here some comments on my non-successful work so far.
>>>
>>> I did code reading and used debug instrumented code
>>> to understand the structure behind the linux SCSI
>>> handling.
>>>
>>> Further I studied the NetBSD code.
>>>
>>> One major point: We do not get any interrupts.
>>> For my analysis I only had a look on the first
>>> steps of SCSI initialization, so this was the
>>> INQUERY command.
>>
>> This is where I am also currently stuck :( The
>> ESIEE guys are going to hook up an analyzer to the
>> box and see if the target device is getting the command
>> (ie... did we send the command correctly to the device)
>> or if the device returns a command (do we catch the
>> command the device is returning). I have been studyting
>> the setup routines in the HP-UX driver and I believe
>> I have the chip initialized properly ... but I am not
>> sure why I am not getting any interrupts. Hopefully
>> between ESIEE, you, and myself and anyone else
>> interested we can figure this out.
>>
>>> The spifi command routine is called correctly,
>>> but it has a wrong logical implementation. As I
>>> have seen on other (older) linux driver, the
>>> xxx_command() has to block, after the command was
>>> successful completed by interrupt. But the interrupt
>>> never comes !! Even a "long" delay for simulating
>>> blocking does not solve this problem.
>>
>> That is highly possible. The driver skeleton is just
>> a test harness for me right now. I am just trying to see
>> what I can get returned from the spifi chip (that is why
>> most of the functions are stubs with printk. Once I see
>> an interrupt come in, I'll start working on putting that piece
>> togeather.
>>
>>> =46rom base of the NetBSD code, I cannot follow your
>>> code resetting the spifi subsystem. I think you have
>>> this from HP-UX code. Especially the
>>>
>>> __raw_writel(CMD_RESET, dev->hpa + IO_MODULE_COMMAND);
>>
>> Yes, this is part of the initizlization from the HP-UX
>> driver. The Loquix chip sits between the HP-PB bus, and
>> the spifi scsi chip. According to the HP-UX driver, the
>> Loquix chip also required some setup. Once again, I
>> do not actually have the Loquix documentation, but I might
>> have a lead on it. Will have to wait and see if that lead
>> pans out.
>>
>>> Is this a reset method via the IO PDC address space
>>> common for all HP devices ? In the NetBSD the full
>>> reset is done only via the `auxctrl' register, which
>>> you use for releasing the reset state.
>>
>> I am not sure about all the HP devices. It might be an iodc
>> specific call. I will have to look at the driver again,
>> but that might reset the loquix chip *shrug* I'll take
>> a look and see what I can find.
>>
>>> So we have a principal problem here, not having correct
>>> access to the spifi subsystem. Except: the SCSI-ID is
>>> read out correctly, I think, as ...
>>>
>>> SCSI subsystem driver Revision: 1.00
>>> DEBUG: 0xfff74c00
>>> Device: Sahp Baat Kiuh SCSI
>>> scsi0 : SPIFI SCSI: scsi_id: 7 IRQ: 34 type: SPIFI-3 (SE) parity
>>> checking: enabled
>>>
>>> ... is reported !
>>
>> That is where I am also. We actually read the type SPIFI-3 (SE) for=20=
>> the
>> SKUNK card, and SPIFI-3 (DF) for the wizard (16-bit) card. I have
>> tested this on both cards so I know it works. I am convinced we are
>> reading the correct information from the card, but what I am not
>> convinced of is that we have it setup properly yet :) The problem is=20=
>> I
>> do not know what I am missing yet :(
>>
>>> Is everything around the interrupt subsystem setup correctly ?
>>> The `cat /proc/interrupts' tells ...
>>>
>>> bash# cat /proc/interrupts
>>> CPU396195552
>>> 32: 124925 PARISC-CPU timer
>>> 33: 19767 PARISC-CPU lasi
>>> 34: 0 PARISC-CPU spifi
>>> 87: 19767 Lasi i82596
>>>
>>> ... which is no surprise ... !
>>>
>>
>> I do not think the fact the interrupt is registered is very=20
>> infomative,
>> I think you can register an interrupt for device even if it doesn't=20=
>> have
>> an real irq assocaitated with it (ie... the serial mux).
>>
>> Yeah, thanks for looking at it ... we will have to beat on it some=20
>> more
>> and see what we can find. Hopefully the ESIEE guys will be able to
>> provide us with some good information!
>>
>> Thanks
>>
>> - Ryan
>>
>>> Till soon,
>>> Christoph P.
>>>
>>>
>>>
>>>
>>>
>>> --
>>> -------------------------------------------------------
>>> private: christoph.plattner@gmx.at
>>> company: christoph.plattner@alcatel.at
>>>
>>
>> _______________________________________________
>> parisc-linux mailing list
>> parisc-linux@lists.parisc-linux.org
>> http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
>
> --=20
> -------------------------------------------------------
> private: christoph.plattner@gmx.at
> company: christoph.plattner@alcatel.at
> _______________________________________________
> parisc-linux mailing list
> parisc-linux@lists.parisc-linux.org
> http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [parisc-linux] Re: Status SPIFI SCSI
2002-09-17 19:56 ` Thibaut VARENE
@ 2002-09-17 21:31 ` Christoph Plattner
2002-09-17 21:43 ` Thibaut VARENE
2002-09-18 1:37 ` Derek Engelhaupt
1 sibling, 1 reply; 8+ messages in thread
From: Christoph Plattner @ 2002-09-17 21:31 UTC (permalink / raw)
To: Thibaut VARENE; +Cc: Ryan Bradetich, parisc-linux@lists.parisc-linux.org
Hello,
the problem I wanted to point out is, that not the SCSI
interface problem is the point.
IMO we have a simple (take the word "simple" not too
critical ...) software setup problem. It seems, that
we do not access the chip physically.
I have no NDA, I have no possibility to look into the
source codes of HP-UX (but I want to have it !!), I have
no hardware docu, no chip docu (although I am able to
read them and I want to have access), so my help here
is very restricted !!!
But one small hint: The "chip selelct" line and the
low order address bits, to see if there is really a
hardware access to this chip. Further perhaps the
read and write control line. I do not know the
HP own bus system (I also miss such documentation),
but I use simple the words of a standard bus access
(RD, WR, CS or CE, address lines, data lines).
HOW CAN I GET DOCUMENTATIONS ????
Bye
Christoph
Thibaut VARENE wrote:
>
> Le mardi, 17 sep 2002, à 20:33 Europe/Paris, Christoph Plattner a écrit
> :
>
> Hi Christoph,
> > Hello Ryan,
> >
> > I think usinf the logic analyser will not help you on the
> > SCSI bus. You need the logic analyser on the SPIFI chip!!!
> That's not a problem,
> atm we have a 16channels analyser (we can have up to 128 if needed),
> we tried using the HP 2423A SCSI preprocessor, but ours seems b0rken,
> therefore we decided to plug directly onto the scsi board.
>
> So plugging onto SPIFI chip shouldn't be a pb, as long as we have its
> pinout,
> so that we can isolate signals we're trying to find.
>
> So if you can provide us with the pin numbers we should plug on,
> that would help a lot ! :)
> >
> > As I already mentioned in another mail, I think, we
> > DO NOT access the real device. As I have mentioned,
> > we only read out 0x0000ff00 at each address and we
> > "write" the SCSI command in an invalid space ! So this
> > is "OK", that the chip do not produce any interrupts !
> >
> > I think, this is a very basic problem of the bus or
> > i/o bus initilization or the Loquix init, or whatever.
> >
> > I do not expect any frame on the SCSI output !
> >
> > Bye
> > Christoph
> >
> >
> > Ryan Bradetich wrote:
> >>
> >> Hello Christoph,
> >>
> >> On Sun, 2002-09-15 at 17:25, Christoph Plattner wrote:
> >>> Hallo Ryan,
> >>>
> >>> here some comments on my non-successful work so far.
> >>>
> >>> I did code reading and used debug instrumented code
> >>> to understand the structure behind the linux SCSI
> >>> handling.
> >>>
> >>> Further I studied the NetBSD code.
> >>>
> >>> One major point: We do not get any interrupts.
> >>> For my analysis I only had a look on the first
> >>> steps of SCSI initialization, so this was the
> >>> INQUERY command.
> >>
> >> This is where I am also currently stuck :( The
> >> ESIEE guys are going to hook up an analyzer to the
> >> box and see if the target device is getting the command
> >> (ie... did we send the command correctly to the device)
> >> or if the device returns a command (do we catch the
> >> command the device is returning). I have been studyting
> >> the setup routines in the HP-UX driver and I believe
> >> I have the chip initialized properly ... but I am not
> >> sure why I am not getting any interrupts. Hopefully
> >> between ESIEE, you, and myself and anyone else
> >> interested we can figure this out.
> >>
> >>> The spifi command routine is called correctly,
> >>> but it has a wrong logical implementation. As I
> >>> have seen on other (older) linux driver, the
> >>> xxx_command() has to block, after the command was
> >>> successful completed by interrupt. But the interrupt
> >>> never comes !! Even a "long" delay for simulating
> >>> blocking does not solve this problem.
> >>
> >> That is highly possible. The driver skeleton is just
> >> a test harness for me right now. I am just trying to see
> >> what I can get returned from the spifi chip (that is why
> >> most of the functions are stubs with printk. Once I see
> >> an interrupt come in, I'll start working on putting that piece
> >> togeather.
> >>
> >>> From base of the NetBSD code, I cannot follow your
> >>> code resetting the spifi subsystem. I think you have
> >>> this from HP-UX code. Especially the
> >>>
> >>> __raw_writel(CMD_RESET, dev->hpa + IO_MODULE_COMMAND);
> >>
> >> Yes, this is part of the initizlization from the HP-UX
> >> driver. The Loquix chip sits between the HP-PB bus, and
> >> the spifi scsi chip. According to the HP-UX driver, the
> >> Loquix chip also required some setup. Once again, I
> >> do not actually have the Loquix documentation, but I might
> >> have a lead on it. Will have to wait and see if that lead
> >> pans out.
> >>
> >>> Is this a reset method via the IO PDC address space
> >>> common for all HP devices ? In the NetBSD the full
> >>> reset is done only via the `auxctrl' register, which
> >>> you use for releasing the reset state.
> >>
> >> I am not sure about all the HP devices. It might be an iodc
> >> specific call. I will have to look at the driver again,
> >> but that might reset the loquix chip *shrug* I'll take
> >> a look and see what I can find.
> >>
> >>> So we have a principal problem here, not having correct
> >>> access to the spifi subsystem. Except: the SCSI-ID is
> >>> read out correctly, I think, as ...
> >>>
> >>> SCSI subsystem driver Revision: 1.00
> >>> DEBUG: 0xfff74c00
> >>> Device: Sahp Baat Kiuh SCSI
> >>> scsi0 : SPIFI SCSI: scsi_id: 7 IRQ: 34 type: SPIFI-3 (SE) parity
> >>> checking: enabled
> >>>
> >>> ... is reported !
> >>
> >> That is where I am also. We actually read the type SPIFI-3 (SE) for
> >> the
> >> SKUNK card, and SPIFI-3 (DF) for the wizard (16-bit) card. I have
> >> tested this on both cards so I know it works. I am convinced we are
> >> reading the correct information from the card, but what I am not
> >> convinced of is that we have it setup properly yet :) The problem is
> >> I
> >> do not know what I am missing yet :(
> >>
> >>> Is everything around the interrupt subsystem setup correctly ?
> >>> The `cat /proc/interrupts' tells ...
> >>>
> >>> bash# cat /proc/interrupts
> >>> CPU396195552
> >>> 32: 124925 PARISC-CPU timer
> >>> 33: 19767 PARISC-CPU lasi
> >>> 34: 0 PARISC-CPU spifi
> >>> 87: 19767 Lasi i82596
> >>>
> >>> ... which is no surprise ... !
> >>>
> >>
> >> I do not think the fact the interrupt is registered is very
> >> infomative,
> >> I think you can register an interrupt for device even if it doesn't
> >> have
> >> an real irq assocaitated with it (ie... the serial mux).
> >>
> >> Yeah, thanks for looking at it ... we will have to beat on it some
> >> more
> >> and see what we can find. Hopefully the ESIEE guys will be able to
> >> provide us with some good information!
> >>
> >> Thanks
> >>
> >> - Ryan
> >>
> >>> Till soon,
> >>> Christoph P.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> --
> >>> -------------------------------------------------------
> >>> private: christoph.plattner@gmx.at
> >>> company: christoph.plattner@alcatel.at
> >>>
> >>
> >> _______________________________________________
> >> parisc-linux mailing list
> >> parisc-linux@lists.parisc-linux.org
> >> http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
> >
> > --
> > -------------------------------------------------------
> > private: christoph.plattner@gmx.at
> > company: christoph.plattner@alcatel.at
> > _______________________________________________
> > parisc-linux mailing list
> > parisc-linux@lists.parisc-linux.org
> > http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
--
-------------------------------------------------------
private: christoph.plattner@gmx.at
company: christoph.plattner@alcatel.at
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [parisc-linux] Re: Status SPIFI SCSI
2002-09-17 21:31 ` Christoph Plattner
@ 2002-09-17 21:43 ` Thibaut VARENE
0 siblings, 0 replies; 8+ messages in thread
From: Thibaut VARENE @ 2002-09-17 21:43 UTC (permalink / raw)
To: Christoph Plattner; +Cc: Ryan Bradetich, parisc-linux@lists.parisc-linux.org
Le mardi, 17 sep 2002, =E0 23:31 Europe/Paris, Christoph Plattner a =
=E9crit=20
:
> Hello,
>
> the problem I wanted to point out is, that not the SCSI
> interface problem is the point.
yes i got that.
>
> IMO we have a simple (take the word "simple" not too
> critical ...) software setup problem. It seems, that
> we do not access the chip physically.
ok
>
> I have no NDA, I have no possibility to look into the
> source codes of HP-UX (but I want to have it !!), I have
> no hardware docu, no chip docu (although I am able to
> read them and I want to have access), so my help here
> is very restricted !!!
Alas, it looks like we're all in the same case here...
>
> But one small hint: The "chip selelct" line and the
> low order address bits, to see if there is really a
> hardware access to this chip. Further perhaps the
> read and write control line. I do not know the
I agree on the fact that CS;R/W; and other signal are
mandatory to trace chip activity, but if we don't have
a somehow precise pinout, it will be helpless...
We can eventually trace all pins of the chipset, but if
we don't know what is what, that won't be useful.
> HP own bus system (I also miss such documentation),
> but I use simple the words of a standard bus access
> (RD, WR, CS or CE, address lines, data lines).
>
> HOW CAN I GET DOCUMENTATIONS ????
Alas, they're all "for your eyes only".
We've been fighting with such a problem for ages.
We have lots of old 725 cards (SCSI, ATM and others)
for which we couldn't developp driver since we didn't have
any doc.
Same for newest graphic cards (FX series)...
If someone can help on that point, that would be really
awesome.
Of course we (at ESIEE) are ready to sign a NDA...
>
> Bye
> Christoph
>
Thibaut.
>
>
> Thibaut VARENE wrote:
>>
>> Le mardi, 17 sep 2002, =E0 20:33 Europe/Paris, Christoph Plattner a=20=
>> =E9crit
>> :
>>
>> Hi Christoph,
>>> Hello Ryan,
>>>
>>> I think usinf the logic analyser will not help you on the
>>> SCSI bus. You need the logic analyser on the SPIFI chip!!!
>> That's not a problem,
>> atm we have a 16channels analyser (we can have up to 128 if needed),
>> we tried using the HP 2423A SCSI preprocessor, but ours seems b0rken,
>> therefore we decided to plug directly onto the scsi board.
>>
>> So plugging onto SPIFI chip shouldn't be a pb, as long as we have its
>> pinout,
>> so that we can isolate signals we're trying to find.
>>
>> So if you can provide us with the pin numbers we should plug on,
>> that would help a lot ! :)
>>>
>>> As I already mentioned in another mail, I think, we
>>> DO NOT access the real device. As I have mentioned,
>>> we only read out 0x0000ff00 at each address and we
>>> "write" the SCSI command in an invalid space ! So this
>>> is "OK", that the chip do not produce any interrupts !
>>>
>>> I think, this is a very basic problem of the bus or
>>> i/o bus initilization or the Loquix init, or whatever.
>>>
>>> I do not expect any frame on the SCSI output !
>>>
>>> Bye
>>> Christoph
>>>
>>>
>>> Ryan Bradetich wrote:
>>>>
>>>> Hello Christoph,
>>>>
>>>> On Sun, 2002-09-15 at 17:25, Christoph Plattner wrote:
>>>>> Hallo Ryan,
>>>>>
>>>>> here some comments on my non-successful work so far.
>>>>>
>>>>> I did code reading and used debug instrumented code
>>>>> to understand the structure behind the linux SCSI
>>>>> handling.
>>>>>
>>>>> Further I studied the NetBSD code.
>>>>>
>>>>> One major point: We do not get any interrupts.
>>>>> For my analysis I only had a look on the first
>>>>> steps of SCSI initialization, so this was the
>>>>> INQUERY command.
>>>>
>>>> This is where I am also currently stuck :( The
>>>> ESIEE guys are going to hook up an analyzer to the
>>>> box and see if the target device is getting the command
>>>> (ie... did we send the command correctly to the device)
>>>> or if the device returns a command (do we catch the
>>>> command the device is returning). I have been studyting
>>>> the setup routines in the HP-UX driver and I believe
>>>> I have the chip initialized properly ... but I am not
>>>> sure why I am not getting any interrupts. Hopefully
>>>> between ESIEE, you, and myself and anyone else
>>>> interested we can figure this out.
>>>>
>>>>> The spifi command routine is called correctly,
>>>>> but it has a wrong logical implementation. As I
>>>>> have seen on other (older) linux driver, the
>>>>> xxx_command() has to block, after the command was
>>>>> successful completed by interrupt. But the interrupt
>>>>> never comes !! Even a "long" delay for simulating
>>>>> blocking does not solve this problem.
>>>>
>>>> That is highly possible. The driver skeleton is just
>>>> a test harness for me right now. I am just trying to see
>>>> what I can get returned from the spifi chip (that is why
>>>> most of the functions are stubs with printk. Once I see
>>>> an interrupt come in, I'll start working on putting that piece
>>>> togeather.
>>>>
>>>>> =46rom base of the NetBSD code, I cannot follow your
>>>>> code resetting the spifi subsystem. I think you have
>>>>> this from HP-UX code. Especially the
>>>>>
>>>>> __raw_writel(CMD_RESET, dev->hpa + IO_MODULE_COMMAND);
>>>>
>>>> Yes, this is part of the initizlization from the HP-UX
>>>> driver. The Loquix chip sits between the HP-PB bus, and
>>>> the spifi scsi chip. According to the HP-UX driver, the
>>>> Loquix chip also required some setup. Once again, I
>>>> do not actually have the Loquix documentation, but I might
>>>> have a lead on it. Will have to wait and see if that lead
>>>> pans out.
>>>>
>>>>> Is this a reset method via the IO PDC address space
>>>>> common for all HP devices ? In the NetBSD the full
>>>>> reset is done only via the `auxctrl' register, which
>>>>> you use for releasing the reset state.
>>>>
>>>> I am not sure about all the HP devices. It might be an iodc
>>>> specific call. I will have to look at the driver again,
>>>> but that might reset the loquix chip *shrug* I'll take
>>>> a look and see what I can find.
>>>>
>>>>> So we have a principal problem here, not having correct
>>>>> access to the spifi subsystem. Except: the SCSI-ID is
>>>>> read out correctly, I think, as ...
>>>>>
>>>>> SCSI subsystem driver Revision: 1.00
>>>>> DEBUG: 0xfff74c00
>>>>> Device: Sahp Baat Kiuh SCSI
>>>>> scsi0 : SPIFI SCSI: scsi_id: 7 IRQ: 34 type: SPIFI-3 (SE) parity
>>>>> checking: enabled
>>>>>
>>>>> ... is reported !
>>>>
>>>> That is where I am also. We actually read the type SPIFI-3 (SE) for
>>>> the
>>>> SKUNK card, and SPIFI-3 (DF) for the wizard (16-bit) card. I have
>>>> tested this on both cards so I know it works. I am convinced we =
are
>>>> reading the correct information from the card, but what I am not
>>>> convinced of is that we have it setup properly yet :) The problem=20=
>>>> is
>>>> I
>>>> do not know what I am missing yet :(
>>>>
>>>>> Is everything around the interrupt subsystem setup correctly ?
>>>>> The `cat /proc/interrupts' tells ...
>>>>>
>>>>> bash# cat /proc/interrupts
>>>>> CPU396195552
>>>>> 32: 124925 PARISC-CPU timer
>>>>> 33: 19767 PARISC-CPU lasi
>>>>> 34: 0 PARISC-CPU spifi
>>>>> 87: 19767 Lasi i82596
>>>>>
>>>>> ... which is no surprise ... !
>>>>>
>>>>
>>>> I do not think the fact the interrupt is registered is very
>>>> infomative,
>>>> I think you can register an interrupt for device even if it doesn't
>>>> have
>>>> an real irq assocaitated with it (ie... the serial mux).
>>>>
>>>> Yeah, thanks for looking at it ... we will have to beat on it some
>>>> more
>>>> and see what we can find. Hopefully the ESIEE guys will be able to
>>>> provide us with some good information!
>>>>
>>>> Thanks
>>>>
>>>> - Ryan
>>>>
>>>>> Till soon,
>>>>> Christoph P.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> -------------------------------------------------------
>>>>> private: christoph.plattner@gmx.at
>>>>> company: christoph.plattner@alcatel.at
>>>>>
>>>>
>>>> _______________________________________________
>>>> parisc-linux mailing list
>>>> parisc-linux@lists.parisc-linux.org
>>>> http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
>>>
>>> --
>>> -------------------------------------------------------
>>> private: christoph.plattner@gmx.at
>>> company: christoph.plattner@alcatel.at
>>> _______________________________________________
>>> parisc-linux mailing list
>>> parisc-linux@lists.parisc-linux.org
>>> http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
>
> --=20
> -------------------------------------------------------
> private: christoph.plattner@gmx.at
> company: christoph.plattner@alcatel.at
> _______________________________________________
> parisc-linux mailing list
> parisc-linux@lists.parisc-linux.org
> http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [parisc-linux] Re: Status SPIFI SCSI
2002-09-17 19:56 ` Thibaut VARENE
2002-09-17 21:31 ` Christoph Plattner
@ 2002-09-18 1:37 ` Derek Engelhaupt
1 sibling, 0 replies; 8+ messages in thread
From: Derek Engelhaupt @ 2002-09-18 1:37 UTC (permalink / raw)
To: parisc-linux
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1877 bytes --]
Good luck trying to find a pinout for the chips on the cards....I can't
even find a block diagram of the cards on the HP internal websites. As
a sidenote, I was talking to one of my customers this evening that had
dealings with a contractor to HP that was involved in the original
development of the HP-PB devices. I found an E-mail address for him in
the HP address book and asked him if he would mind us bouncing ideas
off of him. Waiting to see what he says or if I get a responce.
derek
--- Thibaut VARENE <varenet@esiee.fr> wrote:
>
> Le mardi, 17 sep 2002, à 20:33 Europe/Paris, Christoph Plattner a
> écrit
> :
>
> Hi Christoph,
> > Hello Ryan,
> >
> > I think usinf the logic analyser will not help you on the
> > SCSI bus. You need the logic analyser on the SPIFI chip!!!
> That's not a problem,
> atm we have a 16channels analyser (we can have up to 128 if needed),
> we tried using the HP 2423A SCSI preprocessor, but ours seems b0rken,
> therefore we decided to plug directly onto the scsi board.
>
> So plugging onto SPIFI chip shouldn't be a pb, as long as we have its
>
> pinout,
> so that we can isolate signals we're trying to find.
>
> So if you can provide us with the pin numbers we should plug on,
> that would help a lot ! :)
> >
> > As I already mentioned in another mail, I think, we
> > DO NOT access the real device. As I have mentioned,
> > we only read out 0x0000ff00 at each address and we
> > "write" the SCSI command in an invalid space ! So this
> > is "OK", that the chip do not produce any interrupts !
> >
> > I think, this is a very basic problem of the bus or
> > i/o bus initilization or the Loquix init, or whatever.
> >
> > I do not expect any frame on the SCSI output !
> >
> > Bye
> > Christoph
> >
> >
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-09-18 1:37 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-15 23:25 [parisc-linux] Status SPIFI SCSI Christoph Plattner
2002-09-17 2:25 ` [parisc-linux] " Ryan Bradetich
2002-09-17 3:53 ` Grant Grundler
2002-09-17 18:33 ` Christoph Plattner
2002-09-17 19:56 ` Thibaut VARENE
2002-09-17 21:31 ` Christoph Plattner
2002-09-17 21:43 ` Thibaut VARENE
2002-09-18 1:37 ` Derek Engelhaupt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox