linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Adrian Hunter <adrian.hunter@intel.com>
To: linux-arm-kernel@lists.infradead.org,
	linux-mmc <linux-mmc@vger.kernel.org>
Cc: "Arnd Bergmann" <arnd@arndb.de>,
	"Jisheng Zhang" <jszhang@marvell.com>,
	"Ulf Hansson" <ulf.hansson@linaro.org>,
	"Russell King - ARM Linux" <linux@arm.linux.org.uk>,
	"Shawn Guo" <shawnguo@kernel.org>,
	"Haojian Zhuang" <haojian.zhuang@gmail.com>,
	"Alexandre Courbot" <acourbot@nvidia.com>,
	"Sascha Hauer" <kernel@pengutronix.de>,
	"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
	"Eric Miao" <eric.y.miao@gmail.com>,
	"Alexander Kurz" <akurz@blala.de>,
	"Jaehoon Chung" <jh80.chung@samsung.com>,
	"Ludovic Desroches" <ludovic.desroches@atmel.com>,
	"Al Cooper" <alcooperx@gmail.com>,
	"Shawn Lin" <shawn.lin@rock-chips.com>,
	"Michal Simek" <michal.simek@xilinx.com>,
	"Dong Aisheng" <dongas86@gmail.com>
Subject: Re: Potential issue with SDHCI DMA
Date: Fri, 29 Apr 2016 11:59:39 +0300	[thread overview]
Message-ID: <5723227B.9070006@intel.com> (raw)
In-Reply-To: <57232233.1030702@intel.com>

+ linux-mmc

On 29/04/16 11:58, Adrian Hunter wrote:
> On 18/04/16 17:33, Arnd Bergmann wrote:
>> On Monday 18 April 2016 09:58:04 Adrian Hunter wrote:
>>>
>>> Thanks for looking.
>>>
>>> It looked to me like sdhci-pxav3 devices created by mmp2_add_sdhost() might
>>> also be candidates.
>>>
>>
>> Oh, you are right, I missed that.
>>
>> I remember looking at sdhci-pxav2 and not finding any machine defining one,
>> but I must have skipped over sdhci-pxav3 failing to realize that this is
>> a different one.
>>
>> 	Arnd
>>
> 
> OK, so my plan to email sdhci driver maintainers ran into a snag.  It turned
> out to be too hard to dig up email addresses.  I have grabbed a few names
> and cc'ed them to this email anyway.
> 
> For those people, the issue is this:
> 
> An unexpected side-effect of commit 7b91369b4655 ("mmc: sdhci: Set DMA mask
> when adding host") is that SDHCI devices that do not define a DMA mask may
> find that DMA no longer works.  That was the case for a sdhci-esdhc-imx
> device, but that has been fixed - refer commit fc26fe9c3869 ("ARM: mach-imx:
> sdhci-esdhc-imx: initialize DMA mask").
> 
> DeviceTree, ACPI and PCI always set up a DMA mask for devices that they
> enumerate, so only hard-coded platform devices are expected to be affected.
> 
> We found only one other candidate: sdhci-pxav3 devices created by
> mmp2_add_sdhost().  Not sure if anyone has looked at that though.
> 
> Obviously, if you are unsure if your devices are affected, you can test and
> if there is a problem you will see the warning messages "mmcX: Failed to set
> 32-bit DMA mask" and "mmcX: No suitable DMA available - falling back to PIO".
> 
> Regards
> Adrian
> 
> 


       reply	other threads:[~2016-04-29  9:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1460362846-2906-1-git-send-email-akurz@blala.de>
     [not found] ` <6297512.2KmasKu6UN@wuerfel>
     [not found]   ` <5714857C.9070002@intel.com>
     [not found]     ` <7893683.FFM02uuNdT@wuerfel>
     [not found]       ` <57232233.1030702@intel.com>
2016-04-29  8:59         ` Adrian Hunter [this message]
2016-04-29  9:19           ` Potential issue with SDHCI DMA Jisheng Zhang

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=5723227B.9070006@intel.com \
    --to=adrian.hunter@intel.com \
    --cc=acourbot@nvidia.com \
    --cc=akurz@blala.de \
    --cc=alcooperx@gmail.com \
    --cc=arnd@arndb.de \
    --cc=dongas86@gmail.com \
    --cc=eric.y.miao@gmail.com \
    --cc=haojian.zhuang@gmail.com \
    --cc=jh80.chung@samsung.com \
    --cc=jszhang@marvell.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=ludovic.desroches@atmel.com \
    --cc=michal.simek@xilinx.com \
    --cc=shawn.lin@rock-chips.com \
    --cc=shawnguo@kernel.org \
    --cc=u.kleine-koenig@pengutronix.de \
    --cc=ulf.hansson@linaro.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;
as well as URLs for NNTP newsgroup(s).