* [PATCH]: libata-core: Add support for ATA_HORKAGE_DIAGNOSTIC
@ 2007-03-08 23:18 Alan Cox
2007-03-09 12:48 ` Jeff Garzik
0 siblings, 1 reply; 4+ messages in thread
From: Alan Cox @ 2007-03-08 23:18 UTC (permalink / raw)
To: akpm, linux-ide, jgarzik
If we find the device has broken diagnostics then don't report this if we
expect it to. Needed for the Gigabyte i-RAM.
Signed-off-by: Alan Cox <alan@redhat.com>
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.21-rc3-mm2/drivers/ata/libata-core.c linux-2.6.21-rc3-mm2/drivers/ata/libata-core.c
--- linux.vanilla-2.6.21-rc3-mm2/drivers/ata/libata-core.c 2007-03-08 16:01:10.000000000 +0000
+++ linux-2.6.21-rc3-mm2/drivers/ata/libata-core.c 2007-03-08 16:02:52.000000000 +0000
@@ -1751,7 +1765,7 @@
/* Let the user know. We don't want to disallow opens for
rescue purposes, or in case the vendor is just a blithering
idiot */
- if (print_info) {
+ if (print_info && !(ata_device_blacklisted(dev) & ATA_HORKAGE_DIAGNOSTIC)) {
ata_dev_printk(dev, KERN_WARNING,
"Drive reports diagnostics failure. This may indicate a drive\n");
ata_dev_printk(dev, KERN_WARNING,
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH]: libata-core: Add support for ATA_HORKAGE_DIAGNOSTIC
2007-03-08 23:18 [PATCH]: libata-core: Add support for ATA_HORKAGE_DIAGNOSTIC Alan Cox
@ 2007-03-09 12:48 ` Jeff Garzik
2007-03-09 14:03 ` Alan Cox
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 2007-03-09 12:48 UTC (permalink / raw)
To: Alan Cox; +Cc: Andrew Morton, linux-ide
Alan Cox wrote:
> If we find the device has broken diagnostics then don't report this if we
> expect it to. Needed for the Gigabyte i-RAM.
>
> Signed-off-by: Alan Cox <alan@redhat.com>
>
> diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.21-rc3-mm2/drivers/ata/libata-core.c linux-2.6.21-rc3-mm2/drivers/ata/libata-core.c
> --- linux.vanilla-2.6.21-rc3-mm2/drivers/ata/libata-core.c 2007-03-08 16:01:10.000000000 +0000
> +++ linux-2.6.21-rc3-mm2/drivers/ata/libata-core.c 2007-03-08 16:02:52.000000000 +0000
> @@ -1751,7 +1765,7 @@
> /* Let the user know. We don't want to disallow opens for
> rescue purposes, or in case the vendor is just a blithering
> idiot */
> - if (print_info) {
> + if (print_info && !(ata_device_blacklisted(dev) & ATA_HORKAGE_DIAGNOSTIC)) {
> ata_dev_printk(dev, KERN_WARNING,
> "Drive reports diagnostics failure. This may indicate a drive\n");
> ata_dev_printk(dev, KERN_WARNING,
I don't understand this one at all.
The original point of the message was to poke people so that they poke
their vendors into fixing the firmware, which is indeed non-spec. I
would rather not silence a "your device is operating out-of-spec" warning.
Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH]: libata-core: Add support for ATA_HORKAGE_DIAGNOSTIC
2007-03-09 12:48 ` Jeff Garzik
@ 2007-03-09 14:03 ` Alan Cox
2007-03-09 13:05 ` Jeff Garzik
0 siblings, 1 reply; 4+ messages in thread
From: Alan Cox @ 2007-03-09 14:03 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Andrew Morton, linux-ide
> > - if (print_info) {
> > + if (print_info && !(ata_device_blacklisted(dev) & ATA_HORKAGE_DIAGNOSTIC)) {
> > ata_dev_printk(dev, KERN_WARNING,
> > "Drive reports diagnostics failure. This may indicate a drive\n");
> > ata_dev_printk(dev, KERN_WARNING,
>
> I don't understand this one at all.
>
> The original point of the message was to poke people so that they poke
> their vendors into fixing the firmware, which is indeed non-spec. I
> would rather not silence a "your device is operating out-of-spec" warning.
The moment it goes near a business oriented distribution this becomes a
problem because the flack all lands on either the system vendor or the OS
product vendor both of whom will simply delete the check. At least this
way it stays in for cases that actually matter.
Alan
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH]: libata-core: Add support for ATA_HORKAGE_DIAGNOSTIC
2007-03-09 14:03 ` Alan Cox
@ 2007-03-09 13:05 ` Jeff Garzik
0 siblings, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2007-03-09 13:05 UTC (permalink / raw)
To: Alan Cox; +Cc: Andrew Morton, linux-ide
Alan Cox wrote:
>>> - if (print_info) {
>>> + if (print_info && !(ata_device_blacklisted(dev) & ATA_HORKAGE_DIAGNOSTIC)) {
>>> ata_dev_printk(dev, KERN_WARNING,
>>> "Drive reports diagnostics failure. This may indicate a drive\n");
>>> ata_dev_printk(dev, KERN_WARNING,
>> I don't understand this one at all.
>>
>> The original point of the message was to poke people so that they poke
>> their vendors into fixing the firmware, which is indeed non-spec. I
>> would rather not silence a "your device is operating out-of-spec" warning.
>
> The moment it goes near a business oriented distribution this becomes a
> problem because the flack all lands on either the system vendor or the OS
> product vendor both of whom will simply delete the check. At least this
> way it stays in for cases that actually matter.
Maybe, but it's also possible the vendor and user will know that their
device is operating out-of-spec.
libata will default to the more-information setting, and distros are
free to change it if they wish.
Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-03-09 13:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-08 23:18 [PATCH]: libata-core: Add support for ATA_HORKAGE_DIAGNOSTIC Alan Cox
2007-03-09 12:48 ` Jeff Garzik
2007-03-09 14:03 ` Alan Cox
2007-03-09 13:05 ` 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).