From: Junio C Hamano <junkio@cox.net>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
Linux Kernel <linux-kernel@vger.kernel.org>,
linux-ide@vger.kernel.org, Dave Jones <davej@redhat.com>
Subject: Re: [PATCH 3/3] Make ide dma blacklist handling a bit saner.
Date: Mon, 28 May 2007 16:03:29 -0700 [thread overview]
Message-ID: <7vfy5ga6v2.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <200705282141.42507.bzolnier@gmail.com> (Bartlomiej Zolnierkiewicz's message of "Mon, 28 May 2007 21:41:42 +0200")
Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> writes:
> The change itself looks good but IMO it is worth doing it before patch #2/3
> (it would also make it possible for me to merge this patch immediately).
Yes, I should have considered that the earlier #2/3 needs
coordination between you and Jeff.
> When it comes to patch #2 - Alan's comment may be a bit harsh but he seems
> to be right - there should be a common library-like file (ata-blacklist.c
> or ata-quirks.c or whatever name you like) containing ata_device_blacklist[].
>
> This would require slight modification of ide_in_drive_list() to teach
> it about ATA_HORKAGE_DMA ... Please also note that <linux/ata.h> is used by both
> IDE and libata so it should be a good place to put struct ata_blacklist_entry
> and ATA_HORKAGE_* macros.
Thanks for the hint. Alan is correct to point out that I
cheated. ;-) If I understand correctly, the change would
involve:
- create a new file that has ata_device_blacklist[] whose type
is "struct ata_blacklist_entry" (i.e. matches libata-core),
by separating the table out of ata/libata-core.c.
Q1. should that file go to drivers/ata/ or drivers/ide/?
- make that file depended on when either libata and/or IDE is
selected.
Q2. Kconfig dependency rule is needed for this, perhaps. How
should that look like?
- some out-of-tree drivers might be using ide_in_drive_list()
and relying on it to take "struct drive_list_entry"; create a
new function, ide_in_device_list(), that takes "struct
ata_blacklist_entry" as its parameter.
Q3. Is the 'out-of-tree drivers' a real issue, and if so, is
the above a reasonable avenue to take?
- convert in-tree callers to use ide_in_device_list() instead,
feeding it ata_device_blacklist[], and remove drive_blacklist[]
from drivers/ide/ide-dma.c.
Q4. What would you like to do for drive_whitelist[]?
> Care to respin both patches?
Before the questions are answered I cannot respin the earlier
#2/3, but I can certainly respin #3/3.
next prev parent reply other threads:[~2007-05-28 23:03 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-21 14:50 Add Seagate STT20000A to DMA blacklist Dave Jones
2007-05-21 16:15 ` Alan Cox
2007-05-21 17:27 ` Dave Jones
2007-05-22 5:01 ` [PATCH] Match DMA blacklist entries between ide-dma.c and libata-core.c Junio C Hamano
2007-05-22 5:06 ` [PATCH 2/3] Unify dma blacklist in " Junio C Hamano
2007-05-26 16:39 ` Bill Davidsen
2007-05-26 16:59 ` Alan Cox
2007-05-22 5:08 ` [PATCH 3/3] Make ide dma blacklist handling a bit saner Junio C Hamano
2007-05-28 19:41 ` Bartlomiej Zolnierkiewicz
2007-05-28 23:03 ` Junio C Hamano [this message]
2007-05-30 22:36 ` Bartlomiej Zolnierkiewicz
2007-05-28 23:10 ` [PATCH 1/3] ide_in_drive_list(): accept NULL as the wildcard for firmware revision Junio C Hamano
2007-05-30 20:43 ` Bartlomiej Zolnierkiewicz
2007-05-28 23:10 ` [PATCH 2/3] mips au1xxx_ide.h: use NULL as firmware-revision wildcard Junio C Hamano
2007-05-30 20:45 ` Bartlomiej Zolnierkiewicz
2007-05-28 23:11 ` [PATCH 3/3] ide_in_drive_list(): "ALL" is not a wildcard anymore Junio C Hamano
2007-05-30 20:47 ` Bartlomiej Zolnierkiewicz
2007-05-24 0:19 ` [PATCH] Match DMA blacklist entries between ide-dma.c and libata-core.c Bartlomiej Zolnierkiewicz
2007-05-24 0:33 ` Add Seagate STT20000A to DMA blacklist Bartlomiej Zolnierkiewicz
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=7vfy5ga6v2.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=bzolnier@gmail.com \
--cc=davej@redhat.com \
--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
all inboxes | Powered by JetHome®