From: Dan Williams <dan.j.williams@intel.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH v6] dmaengine: sh: Add Support SuperH DMA Engine driver
Date: Sat, 05 Sep 2009 19:29:07 +0000 [thread overview]
Message-ID: <4AA2BC03.8030205@intel.com> (raw)
In-Reply-To: <4AA0CD9E.3030908@renesas.com>
Nobuhiro Iwamatsu wrote:
> Hi, Dan.
>
> Nobuhiro Iwamatsu wrote:
>> Hi, Dan.
>>
>> Thank you for your check.
>>
>> Dan Williams wrote:
>>> Nobuhiro Iwamatsu wrote:
>>>> This supported all DMA channels, and it was tested in SH7722,
>>>> SH7780 and SH7763.
>>>> This can not use with SH DMA API.
>>>>
>>>> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
>>>> Reviewed-by: Matt Fleming <matt@console-pimps.org>
>>>> Reviewed-by: Dan Williams <dan.j.williams@intel.com>
>>>> Acked-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
>>>> ---
>>>> v5: Fix some bug.
>>>> Add Cyclic extention API (got hint from dw_dmac.c)
>>> Have you run this with CONFIG_PROVE_LOCKING=y? I suspect it will find
>>> some issues. It looks like desc_lock in the interrupt handler is only
>>> protecting updates to the CHCR register. In other places desc_lock is
>>> protecting descriptor chain updates. And the code varies from spin_lock
>>> to spin_lock_bh? If you can't move all register manipulations to bh or
>>> process context then you will most likely need a separate register_lock
>>> which can be taken with spin_lock_irq... see what CONFIG_PROVE_LOCKING
>>> reports.
>> OK, I check this point, and send report.
> I checked this.
> Work fine.
>
> I send update patch.
>
Yes, the locking looks better in this version. Can you respin this
patch against async_tx.git/next [1]? The 'tx_list' field of struct
dma_async_tx_descriptor is set to be removed in 2.6.32, so you need to
define it locally in struct sh_desc. Once that is done and you get an
ack from Paul I will add this to the queue for 2.6.32.
Thanks,
Dan
[1]:
git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx.git next
prev parent reply other threads:[~2009-09-05 19:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-04 8:19 [PATCH v6] dmaengine: sh: Add Support SuperH DMA Engine driver Nobuhiro Iwamatsu
2009-09-05 19:29 ` Dan Williams [this message]
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=4AA2BC03.8030205@intel.com \
--to=dan.j.williams@intel.com \
--cc=linux-sh@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