linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver
@ 2014-04-01 21:02 Ondrej Zary
  0 siblings, 0 replies; 5+ messages in thread
From: Ondrej Zary @ 2014-04-01 21:02 UTC (permalink / raw)
  To: linux-scsi; +Cc: Kernel development list

Hello,
this is a new driver for Western Digital WD7193, WD7197 and WD7296 PCI SCSI
controllers based on WD33C296A chip. These nice cards never worked good with
Linux.

It's based on old and ugly wd719x driver written back in 2.0 days, then hacked 
to 2.2 and finally to 2.4 kernels. Most of the code is rewritten: from ~4100 
lines to ~1200.

I've tested the driver on a WD7193 card with some hard drives and CD-ROMs:
QUANTUM  LP240S GM240S01X 4.6
IBM      0663L12          e g
IBM      DORS-32160       WA0A
SONY     CD-ROM CDU-55S   1.0t
SONY     CD-ROM CDU-415   1.1g

The card supports TCQ and linked commands (for cmd_per_lun > 1?) but I don't 
know how it should be implemented in a driver.

Device/bus/host resets seem to work fine when tested by sg_reset.
But don't know how to test command abort.

The card requires firmware that can be cut out of the Windows NT driver that 
can be downloaded from WD at: 
http://support.wdc.com/product/download.asp?groupid=801&sid=27&lang=en
There is no license anywhere in the file or on the page - so I guess that the 
firmware cannot be added to linux-firmware.

This script downloads and extracts the firmware:

#!/bin/sh
wget http://support.wdc.com/download/archive/pciscsi.exe
lha xi pciscsi.exe pci-scsi.exe
lha xi pci-scsi.exe nt/wd7296a.sys
rm pci-scsi.exe
dd if=wd7296a.sys of=wd719x-risc.bin bs=1 skip=5760 count=14336
dd if=wd7296a.sys of=wd719x-wcs.bin bs=1 skip=20096 count=514
rm wd7296a.sys


-- 
Ondrej Zary

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 0/2] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver
@ 2014-09-26 18:56 Ondrej Zary
  2014-10-01 18:19 ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: Ondrej Zary @ 2014-09-26 18:56 UTC (permalink / raw)
  To: linux-scsi; +Cc: Christoph Hellwig, Kernel development list


Hello,
this is a new driver for Western Digital WD7193, WD7197 and WD7296 PCI SCSI
controllers based on WD33C296A chip. These nice cards never worked good with
Linux.

It's based on old and ugly wd719x driver written back in 2.0 days, then hacked 
to 2.2 and finally to 2.4 kernels. Most of the code is rewritten: from ~4100 
lines to ~1200.

I've tested the driver on a WD7193 card with some hard drives and CD-ROMs:
QUANTUM  LP240S GM240S01X 4.6
IBM      0663L12          e g
IBM      DORS-32160       WA0A
SONY     CD-ROM CDU-55S   1.0t
SONY     CD-ROM CDU-415   1.1g

The card supports TCQ and linked commands (for cmd_per_lun > 1?) but I don't 
know how it should be implemented in a driver.

Device/bus/host resets seem to work fine when tested by sg_reset.
But don't know how to test command abort.

The card requires firmware that can be cut out of the Windows NT driver that 
can be downloaded from WD at: 
http://support.wdc.com/product/download.asp?groupid=801&sid=27&lang=en
There is no license anywhere in the file or on the page - so I guess that the 
firmware cannot be added to linux-firmware.

This script downloads and extracts the firmware:

#!/bin/sh
wget http://support.wdc.com/download/archive/pciscsi.exe
lha xi pciscsi.exe pci-scsi.exe
lha xi pci-scsi.exe nt/wd7296a.sys
rm pci-scsi.exe
dd if=wd7296a.sys of=wd719x-risc.bin bs=1 skip=5760 count=14336
dd if=wd7296a.sys of=wd719x-wcs.bin bs=1 skip=20096 count=514
rm wd7296a.sys

-- 
Ondrej Zary

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver
  2014-09-26 18:56 Ondrej Zary
@ 2014-10-01 18:19 ` Christoph Hellwig
  2014-10-01 20:22   ` Ondrej Zary
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2014-10-01 18:19 UTC (permalink / raw)
  To: Ondrej Zary; +Cc: linux-scsi, Christoph Hellwig, Kernel development list

On Fri, Sep 26, 2014 at 08:56:46PM +0200, Ondrej Zary wrote:
> The card requires firmware that can be cut out of the Windows NT driver that 
> can be downloaded from WD at: 
> http://support.wdc.com/product/download.asp?groupid=801&sid=27&lang=en
> There is no license anywhere in the file or on the page - so I guess that the 
> firmware cannot be added to linux-firmware.
> 
> This script downloads and extracts the firmware:
> 
> #!/bin/sh
> wget http://support.wdc.com/download/archive/pciscsi.exe
> lha xi pciscsi.exe pci-scsi.exe
> lha xi pci-scsi.exe nt/wd7296a.sys
> rm pci-scsi.exe
> dd if=wd7296a.sys of=wd719x-risc.bin bs=1 skip=5760 count=14336
> dd if=wd7296a.sys of=wd719x-wcs.bin bs=1 skip=20096 count=514
> rm wd7296a.sys

Might be worth to add this script to the tree somewhere.

I'd be happy to merge the driver, but I'd love to get a second review
for it first.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver
  2014-10-01 18:19 ` Christoph Hellwig
@ 2014-10-01 20:22   ` Ondrej Zary
  2014-10-01 21:13     ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: Ondrej Zary @ 2014-10-01 20:22 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-scsi, Kernel development list

On Wednesday 01 October 2014 20:19:07 Christoph Hellwig wrote:
> On Fri, Sep 26, 2014 at 08:56:46PM +0200, Ondrej Zary wrote:
> > The card requires firmware that can be cut out of the Windows NT driver
> > that can be downloaded from WD at:
> > http://support.wdc.com/product/download.asp?groupid=801&sid=27&lang=en
> > There is no license anywhere in the file or on the page - so I guess that
> > the firmware cannot be added to linux-firmware.
> >
> > This script downloads and extracts the firmware:
> >
> > #!/bin/sh
> > wget http://support.wdc.com/download/archive/pciscsi.exe
> > lha xi pciscsi.exe pci-scsi.exe
> > lha xi pci-scsi.exe nt/wd7296a.sys
> > rm pci-scsi.exe
> > dd if=wd7296a.sys of=wd719x-risc.bin bs=1 skip=5760 count=14336
> > dd if=wd7296a.sys of=wd719x-wcs.bin bs=1 skip=20096 count=514
> > rm wd7296a.sys
>
> Might be worth to add this script to the tree somewhere.

Maybe somewhere in Documentation?

Unfortunately, there is no single place to collect scripts like this.
DVB has nice script at Documentation/dvb/get_dvb_firmware.
But e.g. b43 requires an extrnal tool called b43-fwcutter.

> I'd be happy to merge the driver, but I'd love to get a second review
> for it first.
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Ondrej Zary

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver
  2014-10-01 20:22   ` Ondrej Zary
@ 2014-10-01 21:13     ` Christoph Hellwig
  0 siblings, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2014-10-01 21:13 UTC (permalink / raw)
  To: Ondrej Zary; +Cc: Christoph Hellwig, linux-scsi, Kernel development list

On Wed, Oct 01, 2014 at 10:22:13PM +0200, Ondrej Zary wrote:
> Maybe somewhere in Documentation?
> 
> Unfortunately, there is no single place to collect scripts like this.
> DVB has nice script at Documentation/dvb/get_dvb_firmware.
> But e.g. b43 requires an extrnal tool called b43-fwcutter.

Documentation/ or scripts/ is fine with me, as would be a comment in the
source file.  Just make sure people can find it easily.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-01 21:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01 21:02 [PATCH 0/2] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver Ondrej Zary
  -- strict thread matches above, loose matches on Subject: below --
2014-09-26 18:56 Ondrej Zary
2014-10-01 18:19 ` Christoph Hellwig
2014-10-01 20:22   ` Ondrej Zary
2014-10-01 21:13     ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).