pata: "I do not think it means, what you think it means."
PATCH 3/3 pata: "I do not think it means, what you think it means."
From: Alan Cox <[email protected]>
When masking mask out the modes that are unsupported not the ones that are supported. This makes life happier.
---
drivers/ata/pata_hpt366.c | 6 +++--- drivers/ata/pata_hpt37x.c | 6 +++--- drivers/ata/pata_serverworks.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-)
drivers/ata/pata_hpt366.c renamed from drivers/ata/pata_hpt366.c~pata-i-do-not-think-it-means-what-you-think-it-means +3 -3
@@ -27,7 +27,7 @@#include <linux/libata.h> #define DRV_NAME "pata_hpt366" -#define DRV_VERSION "0.6.1" +#define DRV_VERSION "0.6.2"struct hpt_clock {u8 xfer_speed;
@@ -180,9 +180,9 @@ static unsigned long hpt366_filter(strucif (hpt_dma_blacklisted (adev,"UDMA" , bad_ata33)) mask &= ~ATA_MASK_UDMA ;if (hpt_dma_blacklisted (adev,"UDMA3" , bad_ata66_3)) - mask &= ~(0x07 <<ATA_SHIFT_UDMA ); + mask &= ~(0xF8 <<ATA_SHIFT_UDMA );if (hpt_dma_blacklisted (adev,"UDMA4" , bad_ata66_4)) - mask &= ~(0x0F <<ATA_SHIFT_UDMA ); + mask &= ~(0xF0 <<ATA_SHIFT_UDMA ); }return ata_pci_default_filter (adev, mask); }
drivers/ata/pata_hpt37x.c renamed from drivers/ata/pata_hpt37x.c~pata-i-do-not-think-it-means-what-you-think-it-means +3 -3
@@ -24,7 +24,7 @@#include <linux/libata.h> #define DRV_NAME "pata_hpt37x" -#define DRV_VERSION "0.6.9" +#define DRV_VERSION "0.6.11"struct hpt_clock {u8 xfer_speed;
@@ -281,7 +281,7 @@ static unsigned long hpt370_filter(strucif (hpt_dma_blacklisted (adev,"UDMA" , bad_ata33)) mask &= ~ATA_MASK_UDMA ;if (hpt_dma_blacklisted (adev,"UDMA100" , bad_ata100_5)) - mask &= ~(0x1F <<ATA_SHIFT_UDMA ); + mask &= ~(0xE0 <<ATA_SHIFT_UDMA ); }return ata_pci_default_filter (adev, mask); }
@@ -297,7 +297,7 @@ static unsigned long hpt370a_filter(stru {if (adev->class ==ATA_DEV_ATA ) {if (hpt_dma_blacklisted (adev,"UDMA100" , bad_ata100_5)) - mask &= ~ (0x1F <<ATA_SHIFT_UDMA ); + mask &= ~(0xE0 <<ATA_SHIFT_UDMA ); }return ata_pci_default_filter (adev, mask); }
drivers/ata/pata_serverworks.c renamed from drivers/ata/pata_serverworks.c~pata-i-do-not-think-it-means-what-you-think-it-means +1 -1
@@ -226,7 +226,7 @@ static unsigned long serverworks_csb_filfor (i =0 ; (p = csb_bad_ata100[i]) !=NULL ; i++) {if (!strcmp (p, model_num)) - mask &= ~(0x1F <<ATA_SHIFT_UDMA ); + mask &= ~(0xE0 <<ATA_SHIFT_UDMA ); }return ata_pci_default_filter (adev, mask); }
_
Jeff,
Could we get this merged ASAP (it was first posted on 26th February)?
This patch fixes data corruption for libata PATA ServerWorks and HPT drivers.
[ IDE users are already leaving happy life since they are not affected
(modes masking has always worked correctly in the original drivers)...
Can we make life happy also for libata PATA users? :) ]
Quoted 82 lines · On Wednesday 05 March 2008, [email protected] wrote:
From: Alan Cox <[email protected]>
When masking mask out the modes that are unsupported not the ones that are supported. This makes life happier.
[[email protected]: coding-style fixes]Signed-off-by Alan Cox <[email protected]>Cc Jeff Garzik <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
drivers/ata/pata_hpt366.c | 6 +++--- drivers/ata/pata_hpt37x.c | 6 +++--- drivers/ata/pata_serverworks.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-)diff -puN
drivers/ata/pata_hpt366.c~pata-i-do-not-think-it-means-what-you-think-it-meansdrivers/ata/pata_hpt366.cdrivers/ata/pata_hpt366.c renamed from drivers/ata/pata_hpt366.c~pata-i-do-not-think-it-means-what-you-think-it-means +3
-3@@ -27,7 +27,7 @@#include <linux/libata.h> #define DRV_NAME "pata_hpt366" -#define DRV_VERSION "0.6.1" +#define DRV_VERSION "0.6.2"struct hpt_clock {u8 xfer_speed;@@ -180,9 +180,9 @@ static unsigned long hpt366_filter(strucif (hpt_dma_blacklisted (adev,"UDMA" , bad_ata33)) mask &= ~ATA_MASK_UDMA ;if (hpt_dma_blacklisted (adev,"UDMA3" , bad_ata66_3)) - mask &= ~(0x07 <<ATA_SHIFT_UDMA ); + mask &= ~(0xF8 <<ATA_SHIFT_UDMA );if (hpt_dma_blacklisted (adev,"UDMA4" , bad_ata66_4)) - mask &= ~(0x0F <<ATA_SHIFT_UDMA ); + mask &= ~(0xF0 <<ATA_SHIFT_UDMA ); }return ata_pci_default_filter (adev, mask); }diff -puN
drivers/ata/pata_hpt37x.c~pata-i-do-not-think-it-means-what-you-think-it-meansdrivers/ata/pata_hpt37x.cdrivers/ata/pata_hpt37x.c renamed from drivers/ata/pata_hpt37x.c~pata-i-do-not-think-it-means-what-you-think-it-means +3
-3@@ -24,7 +24,7 @@#include <linux/libata.h> #define DRV_NAME "pata_hpt37x" -#define DRV_VERSION "0.6.9" +#define DRV_VERSION "0.6.11"struct hpt_clock {u8 xfer_speed;@@ -281,7 +281,7 @@ static unsigned long hpt370_filter(strucif (hpt_dma_blacklisted (adev,"UDMA" , bad_ata33)) mask &= ~ATA_MASK_UDMA ;if (hpt_dma_blacklisted (adev,"UDMA100" , bad_ata100_5)) - mask &= ~(0x1F <<ATA_SHIFT_UDMA ); + mask &= ~(0xE0 <<ATA_SHIFT_UDMA ); }return ata_pci_default_filter (adev, mask); }@@ -297,7 +297,7 @@ static unsigned long hpt370a_filter(stru {if (adev->class ==ATA_DEV_ATA ) {if (hpt_dma_blacklisted (adev,"UDMA100" , bad_ata100_5)) - mask &= ~ (0x1F <<ATA_SHIFT_UDMA ); + mask &= ~(0xE0 <<ATA_SHIFT_UDMA ); }return ata_pci_default_filter (adev, mask); }diff -puN
drivers/ata/pata_serverworks.c~pata-i-do-not-think-it-means-what-you-think-it-meansdrivers/ata/pata_serverworks.cdrivers/ata/pata_serverworks.c renamed from drivers/ata/pata_serverworks.c~pata-i-do-not-think-it-means-what-you-think-it-means +1
-1@@ -226,7 +226,7 @@ static unsigned long serverworks_csb_filfor (i =0 ; (p = csb_bad_ata100[i]) !=NULL ; i++) {if (!strcmp (p, model_num)) - mask &= ~(0x1F <<ATA_SHIFT_UDMA ); + mask &= ~(0xE0 <<ATA_SHIFT_UDMA ); }return ata_pci_default_filter (adev, mask); }
Quoted 9 lines · On Wed, 5 Mar 2008 02:34:40 +0100 Bartlomiej Zolnierkiewicz…
Quoted 5 lines · On Wednesday 05 March 2008, [email protected] wrote:
From: Alan Cox <[email protected]>
When masking mask out the modes that are unsupported not the ones that are supported. This makes life happier.
Jeff,
Quoted 9 lines
Could we get this merged ASAP (it was first posted on 26th February)?
This patch fixes data corruption for libata PATA ServerWorks and HPT drivers.
[ IDE users are already leaving happy life since they are not affected
(modes masking has always worked correctly in the original drivers)...Can we make life happy also for libata PATA users? :) ]
(edited to undo top-posting damage)
I didn't know any of that. The changelog might have been kinda fun, but given that it failed to tell us that the patch fixes data-corruption errors, the changelog was excrutiatingly bad.
Do we need this fix in 2.6.24.x as well?
Quoted 22 lines · Andrew Morton
Quoted 9 lines · On Wed, 5 Mar 2008 02:34:40 +0100 Bartlomiej Zolnierkiewicz…
Quoted 5 lines · On Wednesday 05 March 2008, [email protected] wrote:
From: Alan Cox <[email protected]>
When masking mask out the modes that are unsupported not the ones that are supported. This makes life happier.
Jeff,
Quoted 9 lines
Could we get this merged ASAP (it was first posted on 26th February)?
This patch fixes data corruption for libata PATA ServerWorks and HPT drivers.
[ IDE users are already leaving happy life since they are not affected
(modes masking has always worked correctly in the original drivers)...Can we make life happy also for libata PATA users? :) ]
Quoted 7 lines
(edited to undo top-posting damage)
I didn't know any of that. The changelog might have been kinda fun, but given that it failed to tell us that the patch fixes data-corruption errors, the changelog was excrutiatingly bad.
Do we need this fix in 2.6.24.x as well?
Let me quote Alan's opinion on this:
"I think that would be wise ;)"
nothing needs to be added here ;)
Quoted 4 lines
I didn't know any of that. The changelog might have been kinda fun, but given that it failed to tell us that the patch fixes data-corruption errors, the changelog was excrutiatingly bad.
I have no reason/evidence to believe it fixes data corruption errors of any kind. For the specific combinations of device it should simply avoid a long pause, complaints and a switch to lower speeds.
The ATA disk case with serverworks (which is a potential corruptor) was always correctly handled.
Quoted 8 lines · Alan Cox
Quoted 4 lines
I didn't know any of that. The changelog might have been kinda fun, but given that it failed to tell us that the patch fixes data-corruption errors, the changelog was excrutiatingly bad.
I have no reason/evidence to believe it fixes data corruption errors of any kind. For the specific combinations of device it should simply avoid a long pause, complaints and a switch to lower speeds.
http://www.mail-archive.com/[email protected]/msg16599.html
There is strange coincidence with being on the blacklist and FIFO corruption.
https://bugzilla.redhat.com/show_bug.cgi?id=433557
Bugzilla Bug 433557: Data corrupion with Fedora8 on HPT370 disk controller (Abit BX133 mobo)
IBM-DTLA-307030 is on the blacklist....
[ there can be more libata problems involved, anyway FC6 w/IDE works fine ]
Quoted 2 lines
The ATA disk case with serverworks (which is a potential corruptor) was always correctly handled.
for OSB4 yes but...
/* Seagate Barracuda ATA IV Family drives in UDMA mode 5
* can overrun their FIFOs when used with the CSB5 */
static const char *csb_bad_ata100[] = {
Thanks,
Bart
Quoted 7 lines
There is strange coincidence with being on the blacklist and FIFO corruption.
https://bugzilla.redhat.com/show_bug.cgi?id=433557
Bugzilla Bug 433557: Data corrupion with Fedora8 on HPT370 disk controller (Abit BX133 mobo)
IBM-DTLA-307030 is on the blacklist....
I wish it was more than a co-incidence but the trace shows it dropped speed as expected.
Quoted 4 lines
for OSB4 yes but...
/* Seagate Barracuda ATA IV Family drives in UDMA mode 5
* can overrun their FIFOs when used with the CSB5 */
Which gives you a CRC error according to my notes
Alan
Quoted 10 lines · Alan Cox
Quoted 7 lines
There is strange coincidence with being on the blacklist and FIFO corruption.
https://bugzilla.redhat.com/show_bug.cgi?id=433557
Bugzilla Bug 433557: Data corrupion with Fedora8 on HPT370 disk controller (Abit BX133 mobo)
IBM-DTLA-307030 is on the blacklist....
I wish it was more than a co-incidence but the trace shows it dropped speed as expected.
the trace shows only ST380011A (ata1) dropping speed...
I would suggest that you ask Wojciech to test the patch (unless it has already happend).
Quoted 6 lines
Quoted 4 lines
for OSB4 yes but...
/* Seagate Barracuda ATA IV Family drives in UDMA mode 5
* can overrun their FIFOs when used with the CSB5 */Which gives you a CRC error according to my notes
I have no documentation / errata for ServerWorks chipsets (everything is NDA-ed) or the hardware in question so I'll trust your opinion on this.
Thanks,
Bart
Quoted 1 line · Bartlomiej Zolnierkiewicz
IBM-DTLA-307030 is on the blacklist....
Any still in use? Surpised.
Signature · 1 line
Krzysztof Halasa
Quoted 5 lines · Krzysztof Halasa
Quoted 1 line · Bartlomiej Zolnierkiewicz
IBM-DTLA-307030 is on the blacklist....
Any still in use? Surpised.
https://bugzilla.redhat.com/show_bug.cgi?id=433557
the bug was opened two weeks ago so I assume that the drive is still in use
[ Actually, I'm not surprised as we are getting patches/reports for much
older/buggier hardware... After all we are doing Linux not some other OS whose every release obsoletes the old hardware. ;-) ]
Quoted 3 lines · Bartlomiej Zolnierkiewicz
[ Actually, I'm not surprised as we are getting patches/reports for much
older/buggier hardware... After all we are doing Linux not some other OS whose every release obsoletes the old hardware. ;-) ]
It isn't just about old/buggy hardware (personally I'm using much older items). The DTLA disks had "rather" short MTBF, with something like 30% returns in the first year after purchase, according to a friendly distributor. Despite firmware upgrades, they were unfixable.
Signature · 1 line
Krzysztof Halasa
Quoted 11 lines · Krzysztof Halasa
Quoted 3 lines · Bartlomiej Zolnierkiewicz
[ Actually, I'm not surprised as we are getting patches/reports for much
older/buggier hardware... After all we are doing Linux not some other OS whose every release obsoletes the old hardware. ;-) ]It isn't just about old/buggy hardware (personally I'm using much older items). The DTLA disks had "rather" short MTBF, with something like 30% returns in the first year after purchase, according to a friendly distributor. Despite firmware upgrades, they were unfixable.
Ah, you meant that it was a DeathStar drive... well, a lucky survivor...
Quoted 8 lines · Bartlomiej Zolnierkiewicz
Quoted 7 lines · Krzysztof Halasa
Quoted 3 lines · Bartlomiej Zolnierkiewicz
[ Actually, I'm not surprised as we are getting patches/reports for much
older/buggier hardware... After all we are doing Linux not some other OS whose every release obsoletes the old hardware. ;-) ]
Quoted 6 lines
Quoted 4 lines
It isn't just about old/buggy hardware (personally I'm using much older items). The DTLA disks had "rather" short MTBF, with something like 30% returns in the first year after purchase, according to a friendly distributor. Despite firmware upgrades, they were unfixable.
Ah, you meant that it was a DeathStar drive... well, a lucky survivor...
In my experience what they needed was proper cooling. I have a 3ware RAID-5 array of 4 120 GB DeskStar drives still working. In a nice RAID enclosure with fans, not tucked next to an overclocked video card and the power supply.
Signature · 1 line
Zan Lynx <[email protected]>
Quoted 2 lines · Zan Lynx
In my experience what they needed was proper cooling. I have a 3ware RAID-5 array of 4 120 GB DeskStar drives still working.
I think the largest "deathstars" (75GXP?) were 75 GB.
Signature · 1 line
Krzysztof Halasa
Quoted 6 lines · Krzysztof Halasa
Quoted 2 lines · Zan Lynx
In my experience what they needed was proper cooling. I have a 3ware RAID-5 array of 4 120 GB DeskStar drives still working.
I think the largest "deathstars" (75GXP?) were 75 GB.
AFAIK there were basically two series of deathstars. The original DTLA<something> and the more recent IC35<something>. The IC35 series were bigger (120GB is the most common size I've seen for those). Proper cooling and firmware upgrade usually fixed the deathstarness on both series. I still have some of both, not in active use for a year or two but still working. As a strange coincidence I was just pulling out some old data from them yesterday.
Signature · 3 lines
Ville Syrjälä [email protected] http://www.sci.fi/~syrjala/
Quoted 7 lines · Ville Syrjälä
Quoted 5 lines · Krzysztof Halasa
Quoted 2 lines · Zan Lynx
In my experience what they needed was proper cooling. I have a 3ware RAID-5 array of 4 120 GB DeskStar drives still working.
I think the largest "deathstars" (75GXP?) were 75 GB.
Quoted 7 lines
AFAIK there were basically two series of deathstars. The original DTLA<something> and the more recent IC35<something>. The IC35 series were bigger (120GB is the most common size I've seen for those). Proper cooling and firmware upgrade usually fixed the deathstarness on both series. I still have some of both, not in active use for a year or two but still working. As a strange coincidence I was just pulling out some old data from them yesterday.
..
The original Deathstar ailment had nothing to do with firmware or cooling. But rather, a bad batch of chips that IBM had the misfortune to use a lot of.
The chips would grow tiny internal whiskers over a period of 2+ years, and eventually short circuit themselves.
My last one died here just a few weeks ago, after sitting on the shelf for nearly all of it's life. Never more than perhaps 40 power-on hours total, and never enough to get very warm.
Cheers
Quoted 6 lines · Mark Lord
The original Deathstar ailment had nothing to do with firmware or cooling. But rather, a bad batch of chips that IBM had the misfortune to use a lot of.
The chips would grow tiny internal whiskers over a period of 2+ years, and eventually short circuit themselves.
...
Oddly enough, the Wikipedia entry doesn't include this information, but does talk about other failure modes of the 75GXP series.
Cheers
Quoted 6 lines · Mark Lord
The original Deathstar ailment had nothing to do with firmware or cooling. But rather, a bad batch of chips that IBM had the misfortune to use a lot of.
The chips would grow tiny internal whiskers over a period of 2+ years, and eventually short circuit themselves.
...
Oddly enough, the Wikipedia entry doesn't include this information, but does talk about other failure modes of the 75GXP series.
Cheers
Quoted 2 lines · Ville Syrjälä
AFAIK there were basically two series of deathstars. The original DTLA<something> and the more recent IC35<something>.
Said friendly distributor recognizes only one deathstar line. Personally I lost only two such drives, 45 GB I think. My only IC35 (still) produces some strange noises but it was like this from the beginning and I guess it's normal. IC25 (?, 2.5") still working, too - noises are a bit different than on IC35.
Quoted 2 lines
Proper cooling and firmware upgrade usually fixed the deathstarness on both series.
Nope, DTLAs were not field-fixable, I think it was some problem with drive electronics. Anyway replacements from IBM were dying the same death, firmware upgrades or not, brand new or repaired, temperature or not.
Perhaps there were other problems with them (switching while writing to medium IIRC) - a different story.
Signature · 1 line
Krzysztof Halasa