All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Fabio Estevam <festevam@gmail.com>
Cc: Christoph Hellwig <hch@lst.de>, Kalle Valo <kvalo@codeaurora.org>,
	ath10k@lists.infradead.org, Ulf Hansson <ulf.hansson@linaro.org>,
	Bough Chen <haibo.chen@nxp.com>,
	linux-mmc <linux-mmc@vger.kernel.org>
Subject: Re: imx7: dev->coherent_dma_mask NULL warning
Date: Wed, 18 Aug 2021 15:28:00 +0200	[thread overview]
Message-ID: <20210818132800.GA6269@lst.de> (raw)
In-Reply-To: <CAOMZO5APotsBKPkN6tFDNnK0C7w7pzJ8zTWKUx6P=Rhd9_81mQ@mail.gmail.com>

On Wed, Aug 18, 2021 at 06:31:19AM -0300, Fabio Estevam wrote:
> Correct, on i.MX7 the ath10k Wifi chip connects via SDIO.
> 
> Is there a way to avoid the WARN_ON_ONCE(!dev->coherent_dma_mask)
> to happen in this case?

The way to avoid it is by stoppind to use dma_alloc_attrs/coherent
on a device that is not DMA capable.

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

WARNING: multiple messages have this Message-ID (diff)
From: Christoph Hellwig <hch@lst.de>
To: Fabio Estevam <festevam@gmail.com>
Cc: Christoph Hellwig <hch@lst.de>, Kalle Valo <kvalo@codeaurora.org>,
	ath10k@lists.infradead.org, Ulf Hansson <ulf.hansson@linaro.org>,
	Bough Chen <haibo.chen@nxp.com>,
	linux-mmc <linux-mmc@vger.kernel.org>
Subject: Re: imx7: dev->coherent_dma_mask NULL warning
Date: Wed, 18 Aug 2021 15:28:00 +0200	[thread overview]
Message-ID: <20210818132800.GA6269@lst.de> (raw)
In-Reply-To: <CAOMZO5APotsBKPkN6tFDNnK0C7w7pzJ8zTWKUx6P=Rhd9_81mQ@mail.gmail.com>

On Wed, Aug 18, 2021 at 06:31:19AM -0300, Fabio Estevam wrote:
> Correct, on i.MX7 the ath10k Wifi chip connects via SDIO.
> 
> Is there a way to avoid the WARN_ON_ONCE(!dev->coherent_dma_mask)
> to happen in this case?

The way to avoid it is by stoppind to use dma_alloc_attrs/coherent
on a device that is not DMA capable.

  reply	other threads:[~2021-08-18 13:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-18  0:23 imx7: dev->coherent_dma_mask NULL warning Fabio Estevam
2021-08-18  0:23 ` Fabio Estevam
2021-08-18  5:11 ` Christoph Hellwig
2021-08-18  5:11   ` Christoph Hellwig
2021-08-18  9:31   ` Fabio Estevam
2021-08-18  9:31     ` Fabio Estevam
2021-08-18 13:28     ` Christoph Hellwig [this message]
2021-08-18 13:28       ` Christoph Hellwig
2021-08-18 13:37       ` Fabio Estevam
2021-08-18 13:37         ` Fabio Estevam
2021-08-18 14:47         ` Fabio Estevam
2021-08-18 14:47           ` Fabio Estevam

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=20210818132800.GA6269@lst.de \
    --to=hch@lst.de \
    --cc=ath10k@lists.infradead.org \
    --cc=festevam@gmail.com \
    --cc=haibo.chen@nxp.com \
    --cc=kvalo@codeaurora.org \
    --cc=linux-mmc@vger.kernel.org \
    --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 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.