* Another Maxtor drive with broken NCQ
@ 2007-07-06 18:45 Chuck Ebbert
2007-07-06 19:09 ` Jeff Garzik
0 siblings, 1 reply; 5+ messages in thread
From: Chuck Ebbert @ 2007-07-06 18:45 UTC (permalink / raw)
To: IDE/ATA development list
From:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=246352
Looks like this entry is needed in the NCQ blacklist:
{"Maxtor 6B200M0", "BANC1BM0", ATA_HORKAGE_NONCQ }
Or should *all* Maxtor 6B200M0 be blacklisted, since there's already
one of them in the list?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Another Maxtor drive with broken NCQ
2007-07-06 18:45 Another Maxtor drive with broken NCQ Chuck Ebbert
@ 2007-07-06 19:09 ` Jeff Garzik
2007-07-06 19:13 ` Chuck Ebbert
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2007-07-06 19:09 UTC (permalink / raw)
To: Chuck Ebbert; +Cc: IDE/ATA development list
Chuck Ebbert wrote:
> From:
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=246352
>
> Looks like this entry is needed in the NCQ blacklist:
>
> {"Maxtor 6B200M0", "BANC1BM0", ATA_HORKAGE_NONCQ }
>
> Or should *all* Maxtor 6B200M0 be blacklisted, since there's already
> one of them in the list?
Wanna send that as a patch, with attribution and sign-offs? :)
Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Another Maxtor drive with broken NCQ
2007-07-06 19:09 ` Jeff Garzik
@ 2007-07-06 19:13 ` Chuck Ebbert
2007-07-07 14:51 ` Jeff Garzik
0 siblings, 1 reply; 5+ messages in thread
From: Chuck Ebbert @ 2007-07-06 19:13 UTC (permalink / raw)
To: Jeff Garzik; +Cc: IDE/ATA development list
On 07/06/2007 03:09 PM, Jeff Garzik wrote:
>>
>> {"Maxtor 6B200M0", "BANC1BM0", ATA_HORKAGE_NONCQ }
>>
>> Or should *all* Maxtor 6B200M0 be blacklisted, since there's already
>> one of them in the list?
>
> Wanna send that as a patch, with attribution and sign-offs? :)
>
For all revisions, or just that one new one?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Another Maxtor drive with broken NCQ
2007-07-06 19:13 ` Chuck Ebbert
@ 2007-07-07 14:51 ` Jeff Garzik
2007-07-07 20:29 ` Alan Cox
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2007-07-07 14:51 UTC (permalink / raw)
To: Chuck Ebbert; +Cc: IDE/ATA development list
Chuck Ebbert wrote:
> On 07/06/2007 03:09 PM, Jeff Garzik wrote:
>>> {"Maxtor 6B200M0", "BANC1BM0", ATA_HORKAGE_NONCQ }
>>>
>>> Or should *all* Maxtor 6B200M0 be blacklisted, since there's already
>>> one of them in the list?
>> Wanna send that as a patch, with attribution and sign-offs? :)
>>
>
> For all revisions, or just that one new one?
I don't think all 6B200M0 should be blacklisted, but BANC* is probably
bad. I don't think the code can do wildcard matching, so just the one
revision is probably the best we can do at the moment.
Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Another Maxtor drive with broken NCQ
2007-07-07 14:51 ` Jeff Garzik
@ 2007-07-07 20:29 ` Alan Cox
0 siblings, 0 replies; 5+ messages in thread
From: Alan Cox @ 2007-07-07 20:29 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Chuck Ebbert, IDE/ATA development list
On Sat, 07 Jul 2007 10:51:14 -0400
Jeff Garzik <jeff@garzik.org> wrote:
> Chuck Ebbert wrote:
> > On 07/06/2007 03:09 PM, Jeff Garzik wrote:
> >>> {"Maxtor 6B200M0", "BANC1BM0", ATA_HORKAGE_NONCQ }
> >>>
> >>> Or should *all* Maxtor 6B200M0 be blacklisted, since there's already
> >>> one of them in the list?
> >> Wanna send that as a patch, with attribution and sign-offs? :)
> >>
> >
> > For all revisions, or just that one new one?
>
> I don't think all 6B200M0 should be blacklisted, but BANC* is probably
> bad. I don't think the code can do wildcard matching, so just the one
> revision is probably the best we can do at the moment.
Regexp is a bit extreme but a simple "anything starting.." (untested)
would be ok
--- drivers/ata/libata-core.c~ 2007-07-07 21:08:15.560015936 +0100
+++ drivers/ata/libata-core.c 2007-07-07 21:08:15.562015632 +0100
@@ -3869,10 +3869,18 @@
while (ad->model_num) {
if (!strcmp(ad->model_num, model_num)) {
+ unsigned char *tp;
if (ad->model_rev == NULL)
return ad->horkage;
- if (!strcmp(ad->model_rev, model_rev))
- return ad->horkage;
+ t = strchr(ad->model_rev, '*');
+ if (t == NULL) {
+ if (!strcmp(ad->model_rev, model_rev))
+ return ad->horkage;
+ } else {
+ if (!strncmp(ad->model_rev, model_rev,
+ t-model_rev))
+ return ad->horkage;
+ }
}
ad++;
}
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-07-07 20:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-06 18:45 Another Maxtor drive with broken NCQ Chuck Ebbert
2007-07-06 19:09 ` Jeff Garzik
2007-07-06 19:13 ` Chuck Ebbert
2007-07-07 14:51 ` Jeff Garzik
2007-07-07 20:29 ` Alan Cox
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).