From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
To: "zheng.dongxiong" <zheng.dongxiong@outlook.com>
Cc: fancer.lancer@gmail.com, vkoul@kernel.org,
dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RESEND 2/2] damengine: dw-edma: Add msi wartermark configuration
Date: Fri, 5 Jul 2024 19:41:01 +0530 [thread overview]
Message-ID: <20240705141101.GA57780@thinkpad> (raw)
In-Reply-To: <SY4P282MB26243F37A69E54C2B469DFB2F9DF2@SY4P282MB2624.AUSP282.PROD.OUTLOOK.COM>
On Fri, Jul 05, 2024 at 06:57:35PM +0800, zheng.dongxiong wrote:
> HDMA trigger wartermark interrupt, When use the RIE flag.
> PCIe RC will trigger AER, If msi wartermark addr is not configuration.
> This patch fix it by add msi wartermark configuration
>
> Signed-off-by: zheng.dongxiong <zheng.dongxiong@outlook.com>
HDMA driver is not at all using watermark interrupts. So we should be disabling
them altogether.
See: https://lore.kernel.org/dmaengine/1720187733-5380-3-git-send-email-quic_msarkar@quicinc.com/
- Mani
> ---
> drivers/dma/dw-edma/dw-hdma-v0-core.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/dma/dw-edma/dw-hdma-v0-core.c b/drivers/dma/dw-edma/dw-hdma-v0-core.c
> index d77051d1e..c4d15a7a7 100644
> --- a/drivers/dma/dw-edma/dw-hdma-v0-core.c
> +++ b/drivers/dma/dw-edma/dw-hdma-v0-core.c
> @@ -280,6 +280,9 @@ static void dw_hdma_v0_core_ch_config(struct dw_edma_chan *chan)
> /* MSI done addr - low, high */
> SET_CH_32(dw, chan->dir, chan->id, msi_stop.lsb, chan->msi.address_lo);
> SET_CH_32(dw, chan->dir, chan->id, msi_stop.msb, chan->msi.address_hi);
> + /* MSI watermark addr - low, high */
> + SET_CH_32(dw, chan->dir, chan->id, msi_watermark.lsb, chan->msi.address_lo);
> + SET_CH_32(dw, chan->dir, chan->id, msi_watermark.msb, chan->msi.address_hi);
> /* MSI abort addr - low, high */
> SET_CH_32(dw, chan->dir, chan->id, msi_abort.lsb, chan->msi.address_lo);
> SET_CH_32(dw, chan->dir, chan->id, msi_abort.msb, chan->msi.address_hi);
> --
> 2.34.1
>
--
மணிவண்ணன் சதாசிவம்
next prev parent reply other threads:[~2024-07-05 14:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1720176660.git.zheng.dongxiong@outlook.com>
2024-07-05 10:57 ` [PATCH RESEND 1/2] dmaengine: dw-edma: Move "Set consumer cycle" into first condition in dw_hdma_v0_core_start() zheng.dongxiong
2024-07-05 14:12 ` Manivannan Sadhasivam
2024-07-06 8:40 ` dongxiong zheng
2024-07-21 8:57 ` Manivannan Sadhasivam
2024-07-05 10:57 ` [PATCH RESEND 2/2] damengine: dw-edma: Add msi wartermark configuration zheng.dongxiong
2024-07-05 14:11 ` Manivannan Sadhasivam [this message]
2024-07-06 7:59 ` dongxiong zheng
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=20240705141101.GA57780@thinkpad \
--to=manivannan.sadhasivam@linaro.org \
--cc=dmaengine@vger.kernel.org \
--cc=fancer.lancer@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vkoul@kernel.org \
--cc=zheng.dongxiong@outlook.com \
/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.