linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: Andrew Morton <akpm@osdl.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>,
	Christoph Hellwig <hch@lst.de>, Jens Axboe <axboe@suse.de>,
	erich <erich@areca.com.tw>,
	billion.wu@areca.com.tw, linux-scsi@vger.kernel.org
Subject: Re: areca RAID driver
Date: Wed, 19 Apr 2006 21:04:25 -0600	[thread overview]
Message-ID: <20060420030425.GN24104@parisc-linux.org> (raw)
In-Reply-To: <20060419155300.321c352e.akpm@osdl.org>

On Wed, Apr 19, 2006 at 03:53:00PM -0700, Andrew Morton wrote:
> 
> Gents, Erich thinks that the Areca driver is pretty much ready to go.
> 
> We still have the weird read-past-EOF problem if MAX_XFER_SECTORS=4096, but
> this version of the driver has it set to 512, which makes the problem go
> away.  I've suggested that we can set that problem aside for now.
> 
> I've put a copy of the latest diff at
> http://www.zip.com.au/~akpm/linux/patches/stuff/areca-raid-linux-scsi-driver.patch.
>  Could you please take a look sometime, decide how we should proceed?

1.

+static int arcmsr_initialize(struct AdapterControlBlock *pACB, struct pci_dev *pdev)
[...]
+       pci_read_config_byte(pdev, PCI_COMMAND, &pcicmd);
+       pci_write_config_byte(pdev, PCI_COMMAND,
+               pcicmd | PCI_COMMAND_INVALIDATE | PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY);

It's already calling pci_enable_device() and pci_set_master().  To set
PCI_COMMAND_INVALIDATE, it should also be calling pci_set_mwi().

2. arcmsr_attr_host_pci_info() is just weird.  I can't imagine why
anyone would need that information -- you can get it all from sysfs
already.

3. arcmsr_transport_functions are declared extern ... and never used.

4. There's a *lot* of unnecessarily long lines.  Often in documentation,
even!
+**             on the internal bus. Some time later, a PCI master attempts a Memory Read with the same address

5. The other sysfs files don't exactly conform to 'one value per file'
either.

6. It seems weird to split the driver into three files -- one with the
sysfs attributes in it, one with everything else, and a header file.
I don't see why it shouldn't *all* be in drivers/scsi/arcmsr.c

7. The 'linux bug' workaround in queue_command looks decidedly dodgy to
me, but I'd like someone more experienced to comment on it.

  reply	other threads:[~2006-04-20  3:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-19 22:53 areca RAID driver Andrew Morton
2006-04-20  3:04 ` Matthew Wilcox [this message]
2006-04-20  4:39   ` erich
2006-04-20  6:44 ` Jens Axboe
2006-04-20 19:48 ` Christoph Hellwig
2006-04-20 20:07   ` Andrew Morton
2006-04-20 20:36     ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060420030425.GN24104@parisc-linux.org \
    --to=matthew@wil.cx \
    --cc=James.Bottomley@steeleye.com \
    --cc=akpm@osdl.org \
    --cc=axboe@suse.de \
    --cc=billion.wu@areca.com.tw \
    --cc=erich@areca.com.tw \
    --cc=hch@lst.de \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).