* [PATCH] sata_mv: improve warnings about Highpoint RocketRAID 23xx cards
@ 2007-12-11 17:58 Mark Lord
2007-12-12 8:17 ` Subrata Modak
2007-12-18 1:37 ` Jeff Garzik
0 siblings, 2 replies; 3+ messages in thread
From: Mark Lord @ 2007-12-11 17:58 UTC (permalink / raw)
To: Jeff Garzik, Tejun Heo, hp, Alan Cox, IDE/ATA development list,
Linux Kernel <linux-k>
Improve the existing boot/load time warnings from sata_mv
for Highpoint RocketRAID 23xx cards, based on new knowledge
about where the BIOS likes to overwrite sectors with metadata.
Harmless to us, but very useful for end users.
Signed-off-by: Mark Lord <mlord@pobox.com>
---
This should ideally go upstream for 2.6.24.
--- old/drivers/ata/sata_mv.c 2007-12-10 18:14:09.000000000 -0500
+++ linux/drivers/ata/sata_mv.c 2007-12-11 12:51:51.000000000 -0500
@@ -2506,11 +2506,31 @@
if (pdev->vendor == PCI_VENDOR_ID_TTI &&
(pdev->device == 0x2300 || pdev->device == 0x2310))
{
- printk(KERN_WARNING "sata_mv: Highpoint RocketRAID BIOS"
- " will CORRUPT DATA on attached drives when"
- " configured as \"Legacy\". BEWARE!\n");
- printk(KERN_WARNING "sata_mv: Use BIOS \"JBOD\" volumes"
- " instead for safety.\n");
+ /*
+ * Highpoint RocketRAID PCIe 23xx series cards:
+ *
+ * Unconfigured drives are treated as "Legacy"
+ * by the BIOS, and it overwrites sector 8 with
+ * a "Lgcy" metadata block prior to Linux boot.
+ *
+ * Configured drives (RAID or JBOD) leave sector 8
+ * alone, but instead overwrite a high numbered
+ * sector for the RAID metadata. This sector can
+ * be determined exactly, by truncating the physical
+ * drive capacity to a nice even GB value.
+ *
+ * RAID metadata is at: (dev->n_sectors & ~0xfffff)
+ *
+ * Warn the user, lest they think we're just buggy.
+ */
+ printk(KERN_WARNING DRV_NAME ": Highpoint RocketRAID"
+ " BIOS CORRUPTS DATA on all attached drives,"
+ " regardless of if/how they are configured."
+ " BEWARE!\n");
+ printk(KERN_WARNING DRV_NAME ": For data safety, do not"
+ " use sectors 8-9 on \"Legacy\" drives,"
+ " and avoid the final two gigabytes on"
+ " all RocketRAID BIOS initialized drives.\n");
}
case chip_6042:
hpriv->ops = &mv6xxx_ops;
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] sata_mv: improve warnings about Highpoint RocketRAID 23xx cards
2007-12-11 17:58 [PATCH] sata_mv: improve warnings about Highpoint RocketRAID 23xx cards Mark Lord
@ 2007-12-12 8:17 ` Subrata Modak
2007-12-18 1:37 ` Jeff Garzik
1 sibling, 0 replies; 3+ messages in thread
From: Subrata Modak @ 2007-12-12 8:17 UTC (permalink / raw)
To: Mark Lord; +Cc: Jeff Garzik, Tejun Heo, hp, Alan Cox, IDE/ATA development list
Would you like to submit the Driver Test Cases to LTP ? Or, if you have
your Driver test cases written in C, we can port to LTP and have it
inside the LTP package.
You can also check out the following links for more info, and can always
ping me for anything:
http://ltp.cvs.sourceforge.net/ltp/ltp/testcases/kernel/device-drivers/,
http://ltp.sourceforge.net/documentation/how-to/ltp.php?
Regards--
Subrata
(LTP Maintainer)
On Tue, 2007-12-11 at 12:58 -0500, Mark Lord wrote:
> Improve the existing boot/load time warnings from sata_mv
> for Highpoint RocketRAID 23xx cards, based on new knowledge
> about where the BIOS likes to overwrite sectors with metadata.
>
> Harmless to us, but very useful for end users.
>
> Signed-off-by: Mark Lord <mlord@pobox.com>
> ---
> This should ideally go upstream for 2.6.24.
>
> --- old/drivers/ata/sata_mv.c 2007-12-10 18:14:09.000000000 -0500
> +++ linux/drivers/ata/sata_mv.c 2007-12-11 12:51:51.000000000 -0500
> @@ -2506,11 +2506,31 @@
> if (pdev->vendor == PCI_VENDOR_ID_TTI &&
> (pdev->device == 0x2300 || pdev->device == 0x2310))
> {
> - printk(KERN_WARNING "sata_mv: Highpoint RocketRAID BIOS"
> - " will CORRUPT DATA on attached drives when"
> - " configured as \"Legacy\". BEWARE!\n");
> - printk(KERN_WARNING "sata_mv: Use BIOS \"JBOD\" volumes"
> - " instead for safety.\n");
> + /*
> + * Highpoint RocketRAID PCIe 23xx series cards:
> + *
> + * Unconfigured drives are treated as "Legacy"
> + * by the BIOS, and it overwrites sector 8 with
> + * a "Lgcy" metadata block prior to Linux boot.
> + *
> + * Configured drives (RAID or JBOD) leave sector 8
> + * alone, but instead overwrite a high numbered
> + * sector for the RAID metadata. This sector can
> + * be determined exactly, by truncating the physical
> + * drive capacity to a nice even GB value.
> + *
> + * RAID metadata is at: (dev->n_sectors & ~0xfffff)
> + *
> + * Warn the user, lest they think we're just buggy.
> + */
> + printk(KERN_WARNING DRV_NAME ": Highpoint RocketRAID"
> + " BIOS CORRUPTS DATA on all attached drives,"
> + " regardless of if/how they are configured."
> + " BEWARE!\n");
> + printk(KERN_WARNING DRV_NAME ": For data safety, do not"
> + " use sectors 8-9 on \"Legacy\" drives,"
> + " and avoid the final two gigabytes on"
> + " all RocketRAID BIOS initialized drives.\n");
> }
> case chip_6042:
> hpriv->ops = &mv6xxx_ops;
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] sata_mv: improve warnings about Highpoint RocketRAID 23xx cards
2007-12-11 17:58 [PATCH] sata_mv: improve warnings about Highpoint RocketRAID 23xx cards Mark Lord
2007-12-12 8:17 ` Subrata Modak
@ 2007-12-18 1:37 ` Jeff Garzik
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2007-12-18 1:37 UTC (permalink / raw)
To: Mark Lord; +Cc: Tejun Heo, hp, Alan Cox, IDE/ATA development list, Linux Kernel
Mark Lord wrote:
> Improve the existing boot/load time warnings from sata_mv
> for Highpoint RocketRAID 23xx cards, based on new knowledge
> about where the BIOS likes to overwrite sectors with metadata.
>
> Harmless to us, but very useful for end users.
>
> Signed-off-by: Mark Lord <mlord@pobox.com>
> ---
> This should ideally go upstream for 2.6.24.
applied #upstream-fixes
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-18 1:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-11 17:58 [PATCH] sata_mv: improve warnings about Highpoint RocketRAID 23xx cards Mark Lord
2007-12-12 8:17 ` Subrata Modak
2007-12-18 1:37 ` Jeff Garzik
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).