From: David Miller <davem@davemloft.net>
To: thomas.lendacky@amd.com
Cc: netdev@vger.kernel.org, kim.phillips@arm.com
Subject: Re: [PATCH net] amd-xgbe: Fix DMA API debug warning
Date: Wed, 08 Jul 2015 15:58:12 -0700 (PDT) [thread overview]
Message-ID: <20150708.155812.592764115489966730.davem@davemloft.net> (raw)
In-Reply-To: <20150706165737.2337.95787.stgit@tlendack-t1.amdoffice.net>
From: Tom Lendacky <thomas.lendacky@amd.com>
Date: Mon, 6 Jul 2015 11:57:37 -0500
> When running a kernel configured with CONFIG_DMA_API_DEBUG=y a warning
> is issued:
> DMA-API: device driver tries to sync DMA memory it has not allocated
>
> This warning is the result of mapping the full range of the Rx buffer
> pages allocated and then performing a dma_sync_single_for_cpu against
> a calculated DMA address. The proper thing to do is to use the
> dma_sync_single_range_for_cpu with a base DMA address and an offset.
>
> Reported-by: Kim Phillips <kim.phillips@arm.com>
> Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Applied, thanks Tom.
prev parent reply other threads:[~2015-07-08 22:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-06 16:57 [PATCH net] amd-xgbe: Fix DMA API debug warning Tom Lendacky
2015-07-06 23:30 ` Kim Phillips
2015-07-08 22:58 ` David Miller [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=20150708.155812.592764115489966730.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=kim.phillips@arm.com \
--cc=netdev@vger.kernel.org \
--cc=thomas.lendacky@amd.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;
as well as URLs for NNTP newsgroup(s).