Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Vinod Koul <vkoul@kernel.org>
To: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Cc: paul@crapouillou.net, linux-mips@vger.kernel.org,
	dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dmaengine: jz4780: set DMA maximum segment size
Date: Wed, 20 Apr 2022 17:13:32 +0530	[thread overview]
Message-ID: <Yl/x5BNqlKjxYgif@matsya> (raw)
In-Reply-To: <20220411153618.49876-1-aidanmacdonald.0x0@gmail.com>

On 11-04-22, 16:36, Aidan MacDonald wrote:
> Set the maximum segment size, since the hardware can do transfers larger
> than the default 64 KiB returned by dma_get_max_seg_size().
> 
> The maximum segment size is limited by the 24-bit transfer count field
> in DMA descriptors. The number of bytes is equal to the transfer count
> times the transfer size unit, which is selected by the driver based on
> the DMA buffer address and length of the transfer. The size unit can be
> as small as 1 byte, so set the maximum segment size to 2^24-1 bytes to
> ensure the transfer count will not overflow regardless of the size unit
> selected by the driver.

Applied, thanks

-- 
~Vinod

      reply	other threads:[~2022-04-20 11:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-11 15:36 [PATCH] dmaengine: jz4780: set DMA maximum segment size Aidan MacDonald
2022-04-20 11:43 ` Vinod Koul [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=Yl/x5BNqlKjxYgif@matsya \
    --to=vkoul@kernel.org \
    --cc=aidanmacdonald.0x0@gmail.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=paul@crapouillou.net \
    /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