From: Sergei Shtylylov <sshtylyov@ru.mvista.com>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: alan@lxorguk.ukuu.org.uk, linux-ide@vger.kernel.org
Subject: Re: + fix-ide-dma-resource-managment.patch added to -mm tree
Date: Mon, 27 Mar 2006 16:57:24 +0400 [thread overview]
Message-ID: <4427E134.5040802@ru.mvista.com> (raw)
In-Reply-To: <58cb370e0603270433q4f23f08andfc39b3f85ab4d5e@mail.gmail.com>
Hello.
Bartlomiej Zolnierkiewicz wrote:
>>>On 3/27/06, Sergei Shtylylov <sshtylyov@ru.mvista.com> wrote:
[skipped]
>>>>>>- release the same number of DMA I/O ports that was requested by a driver
>>>>>please fix trm290.c to use ->mmio == 2 instead
>>>> It's a _really_ old chipset (pre SFF-8038i) and has _no_ memory mapped
>>>>regs AFAIK...
>>>->mmio == 2 means _only_ that host driver is responsible
>>>for reserving/releasing resources - it doesn't mean that host driver
>>>is using MMIO (a bit confusing but this is what the current code does)
>> So, your point is that ide_setup_dma() should _never_ do anything for the
>>(mmio == 2) case? Maybe it shouldn't even be called? I guess we surely need
> No, my point is that for ->mmio == 2 core code may not try to manage
> IO or MMIO resources, only that.
Note that I didn't try to. :-)
Your 1st NAK was because I moved ide_release_dma_engine() above that
(mmio == 2) check in ide_release_dma() -- which as we've now concluded is
perfectly correct, isn't it?
> ide_setup_dma() call is still needed for calling ide_allocate_dma_engine()
Er, looking at sgiioc4.c, I somewhat doubt it -- since that driver
allocates DMA engine of the _different_ size all by itself...
However, the driver cleanup function might be called just before releasing
the engine in ide-dma.c, so this approach sounds reasonable. :-)
> and setting up ->dma_* / ->ide_dma_* fields.
Yeah, it seems I've forgotten about them a bit... :-)
[skipped]
Another question: ide_setup_dma() is not supposed to be called by non-PCI
driver, yes?
It's just I know one (not in the community yet) that does... :-/
> Bartlomiej
WBR, Sergei
next prev parent reply other threads:[~2006-03-27 12:59 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200603212323.k2LNNSnJ006228@shell0.pdx.osdl.net>
[not found] ` <58cb370e0603261309p126fdc64j1140bbf437ffe06e@mail.gmail.com>
2006-03-27 10:54 ` + fix-ide-dma-resource-managment.patch added to -mm tree Sergei Shtylylov
2006-03-27 11:38 ` Sergei Shtylylov
2006-03-27 12:21 ` Bartlomiej Zolnierkiewicz
2006-03-27 12:39 ` Sergei Shtylylov
2006-03-27 12:58 ` Bartlomiej Zolnierkiewicz
2006-03-27 13:03 ` Sergei Shtylylov
2006-03-28 13:12 ` Sergei Shtylylov
2006-03-28 14:11 ` Bartlomiej Zolnierkiewicz
2006-03-28 14:20 ` Sergei Shtylylov
2006-03-28 16:21 ` Sergei Shtylylov
2006-03-28 19:26 ` Alan Cox
2006-03-28 19:19 ` Sergei Shtylylov
2006-03-27 12:07 ` Bartlomiej Zolnierkiewicz
2006-03-27 12:21 ` Sergei Shtylylov
2006-03-27 12:33 ` Bartlomiej Zolnierkiewicz
2006-03-27 12:57 ` Sergei Shtylylov [this message]
2006-03-27 13:08 ` 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=4427E134.5040802@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=bzolnier@gmail.com \
--cc=linux-ide@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.