All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: linux-ide@vger.kernel.org, jgarzik@pobox.com
Subject: Re: Success(?) with SiI + Seagate pessimistic fix disabled.
Date: Fri, 9 Jan 2004 01:00:03 -0800	[thread overview]
Message-ID: <20040109090003.GA3032@Mayonaise> (raw)
In-Reply-To: <20040109054800.GA32112@Mayonaise>

Eric Wong <normalperson@yhbt.net> wrote:
<snip success story>

I'm not feeling any more pessimistic than usual at the moment, so I
might as well start a one item whitelist.  It works for me, but more
testing is always a good thing.

On a related note, I couldn't find a way to get the firmware revision
from hdparm or dmesg when using libata.

--- a/drivers/scsi/sata_sil.c
+++ b/drivers/scsi/sata_sil.c
@@ -65,6 +65,15 @@ static struct pci_device_id sil_pci_tbl[
 	{ }	/* terminate list */
 };
 
+
+/* TODO firmware versions should be added - eric */
+struct sil_drivelist {
+	char * product;
+} sil_whitelist [] = {
+	{ "ST3160023AS" }, /* firmware 3.05 */
+	{ 0 }
+};
+
 static struct pci_driver sil_pci_driver = {
 	.name			= DRV_NAME,
 	.id_table		= sil_pci_tbl,
@@ -184,6 +194,7 @@ static void sil_scr_write (struct ata_po
  */
 static void sil_dev_config(struct ata_port *ap, struct ata_device *dev)
 {
+	int n;
 	const char *s = &dev->product[0];
 	unsigned int len = strnlen(s, sizeof(dev->product));
 
@@ -191,6 +202,12 @@ static void sil_dev_config(struct ata_po
 	while ((len > 0) && (s[len - 1] == ' '))
 		len--;
 
+	/* check against whitelist */
+	for (n = 0; sil_whitelist[n].product; n++)
+		if ( (len == strlen(sil_whitelist[n].product))
+		&& !strncmp(sil_whitelist[n].product,s,len) )
+			return;
+
 	/* limit to udma5 */
 	if (!memcmp(s, "Maxtor ", 7)) {
 		printk(KERN_INFO "ata%u(%u): applying pessimistic Maxtor errata fix\n",

-- 
Eric Wong

  reply	other threads:[~2004-01-09  9:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-09  5:48 Success(?) with SiI + Seagate pessimistic fix disabled Eric Wong
2004-01-09  9:00 ` Eric Wong [this message]
2004-01-11  8:14   ` Jeff Garzik
2004-01-12 16:14     ` Eric Wong
2004-01-14 23:20       ` Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2004-01-08 23:21 Eric Wong

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=20040109090003.GA3032@Mayonaise \
    --to=normalperson@yhbt.net \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.