From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: Kirill Smelkov <kirr@mns.spb.ru>,
linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,
kirr@landau.phys.spbu.ru, Dmitry Gryazin <gdu@mns.spb.ru>
Subject: Re: [PATCH] ide: motherboard-info based blacklist for ide-dma
Date: Mon, 05 Jan 2009 00:13:18 +0300 [thread overview]
Message-ID: <4961266E.9000505@ru.mvista.com> (raw)
In-Reply-To: <49611CF4.9030103@ru.mvista.com>
Hello, I wrote:
>>>> drive->hwif->dma_ops->dma_host_set(drive, 1);
>>>> }
>>>>
>>>> +static int __ide_dma_bad_adaptor(ide_drive_t *drive)
>>>> +{
>>>> + const struct board_blacklist_entry *table = board_blacklist;
>>>> +
>>>> + const char *board_vendor = dmi_get_system_info(DMI_BOARD_VENDOR);
>>>> + const char *board_name = dmi_get_system_info(DMI_BOARD_NAME);
>>>> +
>>>> + if (!board_vendor || !board_name)
>>>> + return 0;
>>>> +
>>>> + for ( ; table->board_name ; table++)
>>>> + if ((!strcmp(board_vendor, table->board_vendor)) &&
>>>> + (!strcmp(board_name, table->board_name)) &&
>>>> + (!strcmp(drive->name, table->drive_name))) {
>>>> + printk(KERN_WARNING "%s: Disabling (U)DMA for %s "
>>>> + "(Board %s %s is blacklisted)\n", drive->name,
>>>> + (char *)&drive->id[ATA_ID_PROD], board_vendor,
>>>> + board_name);
>>>> + return 1;
>>>> + }
>>>> +
>>>> + return 0;
>>>> +}
>>>> +
>>>>
>>> This code doesn't anyhow discriminate the case of on-board CF
>>> and say
> @@ -207,6 +222,30 @@ void ide_dma_on(ide_drive_t *drive)
>
> Hm, previously I failed to notice that the patch tries to
> discriminate this case based on applying the workaround only to the
> drive with certain name ("hdc"). However, it still seems wrong to
> place this workaround in __ide_dma_bad_drive() as it's not actually
> connected to the deficiency of a specific drive but to the definciency
> of the CF slot itself. Moreover, depending on the PCI cards plugged,
> the drive's name may change...
Oh, and the master/slave mode of the CF drive is selectable by
on-board switch -- via the -CSEL signal I guess. :-)
MBR, Sergei
next prev parent reply other threads:[~2009-01-04 21:13 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-30 15:33 [PATCH] ide: motherboard-info based blacklist for ide-dma Kirill Smelkov
2008-12-30 16:30 ` Sergei Shtylyov
2008-12-31 19:12 ` Bartlomiej Zolnierkiewicz
2009-01-04 20:32 ` Sergei Shtylyov
2009-01-04 21:13 ` Sergei Shtylyov [this message]
2009-01-04 23:34 ` Sergei Shtylyov
2009-01-15 11:48 ` Dmitry Gryazin
2009-01-16 12:35 ` Sergei Shtylyov
2009-01-22 12:43 ` Dmitry Gryazin
2009-01-22 13:43 ` Sergei Shtylyov
2009-01-22 13:54 ` Sergei Shtylyov
2009-01-22 13:58 ` Sergei Shtylyov
2009-01-22 14:27 ` Dmitry Gryazin
2009-01-22 15:35 ` Sergei Shtylyov
2009-01-22 17:10 ` Sergei Shtylyov
2009-01-22 14:58 ` Dmitry Gryazin
2009-01-22 15:51 ` Sergei Shtylyov
2009-01-26 23:34 ` Sergei Shtylyov
2009-01-27 7:50 ` Dmitry Gryazin
2009-01-27 10:30 ` Sergei Shtylyov
2009-01-22 15:01 ` Bartlomiej Zolnierkiewicz
2009-01-22 15:53 ` Sergei Shtylyov
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=4961266E.9000505@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=bzolnier@gmail.com \
--cc=gdu@mns.spb.ru \
--cc=kirr@landau.phys.spbu.ru \
--cc=kirr@mns.spb.ru \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@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 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).