Linux MultiMedia Card development
 help / color / mirror / Atom feed
From: "Jyan Chou [周芷安]" <jyanchou@realtek.com>
To: Shawn Lin <shawn.lin@rock-chips.com>
Cc: linux-mmc <linux-mmc@vger.kernel.org>,
	Adrian Hunter <adrian.hunter@intel.com>
Subject: RE: Question about EMMC CMDQ HOST CONTROLLER INTERFACE (CQHCI) DRIVER
Date: Tue, 8 Nov 2022 08:35:52 +0000	[thread overview]
Message-ID: <d0f6fbc4351748e0bd6f02baef1785ab@realtek.com> (raw)
In-Reply-To: <0f8f0d91-9e1f-c71e-86a6-25a6bdb4f6b1@rock-chips.com>

Hello,

But we found that this commit b85c997d2cfefe7d1f706b85ae46e35a50e3131c ("mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation")
is supported for sdhci host driver, not for eMMC driver

-----Original Message-----
From: Shawn Lin <shawn.lin@rock-chips.com> 
Sent: Tuesday, November 8, 2022 4:28 PM
To: Jyan Chou [周芷安] <jyanchou@realtek.com>
Cc: shawn.lin@rock-chips.com; linux-mmc <linux-mmc@vger.kernel.org>; Adrian Hunter <adrian.hunter@intel.com>
Subject: Re: Question about EMMC CMDQ HOST CONTROLLER INTERFACE (CQHCI) DRIVER

On 2022/11/8 16:20, Adrian Hunter wrote:
> On 8/11/22 09:25, Jyan Chou [周芷安] wrote:
>> Hello Adrian Hunter,
>>
>> We are now using the upstream code of EMMC CMDQ HOST CONTROLLER INTERFACE (CQHCI) DRIVER, but we found that the existing driver cannot support the limitation of Synopsys IP.
>>
>> Synopsys IP has a description on their data book " While using DMA, the host memory data buffer size and start address must not exceed 128 MB".

Synopsys-based SDHCI IP does have a limitation of 128MB boundary. But it has already been solved by upstream driver.

FYI:

commit b85c997d2cfefe7d1f706b85ae46e35a50e3131c ("mmc: sdhci-of-dwcmshc: 
solve 128MB DMA boundary limitation")





>>
>> I am wondering whether there is a method or patch that can fix this boundary limitation.
>> Thanks.
>> Best Regards,
>> Jyan Chou
> 
> Hello Jyan Chou
> 
> I am not clear on what the exact limitation is.  The driver never uses buffers as big as 128 MB.
> To restrict DMA to low memory addresses a DMA mask can be used.
> 
> But perhaps you mean not to cross a 128 MB boundary?
> 
> Please cc your questions to the linux kernel mmc mailing list: 
> linux-mmc@vger.kernel.org because others can answer too.
> 
> Regards
> Adrian

------Please consider the environment before printing this e-mail.

  parent reply	other threads:[~2022-11-08  8:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5842d536cb0d4086a225ea0fa2d42e72@realtek.com>
2022-11-08  8:20 ` Question about EMMC CMDQ HOST CONTROLLER INTERFACE (CQHCI) DRIVER Adrian Hunter
2022-11-08  8:28   ` Shawn Lin
2022-11-08  8:34     ` Adrian Hunter
2022-11-08  9:14       ` Shawn Lin
2022-11-08  9:19         ` Jyan Chou [周芷安]
2022-11-09  3:45           ` Shawn Lin
2022-11-10  2:11             ` Jyan Chou [周芷安]
2022-11-10  8:11               ` Adrian Hunter
2022-11-08  8:35     ` Jyan Chou [周芷安] [this message]
     [not found] <6d989a63463b4d1e8c1f468754f4f424@realtek.com>
2023-06-20  6:46 ` Adrian Hunter

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=d0f6fbc4351748e0bd6f02baef1785ab@realtek.com \
    --to=jyanchou@realtek.com \
    --cc=adrian.hunter@intel.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=shawn.lin@rock-chips.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox