linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marek Szyprowski <m.szyprowski@samsung.com>
To: Hillf Danton <hdanton@sina.com>, Christoph Hellwig <hch@lst.de>
Cc: Kees Cook <keescook@chromium.org>,
	linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org,
	James Bottomley <James.Bottomley@HansenPartnership.com>,
	Matthew Wilcox <willy@infradead.org>
Subject: Re: Is it needed to zero out the dma buffer for DMA_ATTR_NO_KERNEL_MAPPING
Date: Fri, 4 Sep 2020 11:10:46 +0200	[thread overview]
Message-ID: <bee6cbc9-f637-9217-5f1b-086d93295f70@samsung.com> (raw)
In-Reply-To: <20200904022801.15828-1-hdanton@sina.com>

Hi

On 04.09.2020 04:28, Hillf Danton wrote:
> Currently the DMA_ATTR_NO_KERNEL_MAPPING buffer allocated is not
> cleared while dma core always zero it out for coherent allocations.
>
> Is it making sense to do memset for the attr?

If it is not cleared then this is a bug. Please propose a patch fixing 
this issue.

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland


           reply	other threads:[~2020-09-04  9:10 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20200904022801.15828-1-hdanton@sina.com>]

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=bee6cbc9-f637-9217-5f1b-086d93295f70@samsung.com \
    --to=m.szyprowski@samsung.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=hch@lst.de \
    --cc=hdanton@sina.com \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=willy@infradead.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).