From: Tom Rini Date: Fri, 1 Nov 2019 09:31:05 -0400 Subject: [U-Boot] [PATCH] nvme: flush dcache on both r/w, and the prp list In-Reply-To: <20191016212250.GA33184@nox.fritz.box> References: <20191014111140.GB22994@nox.fritz.box> <20191016153500.GA3532@ryzen.blueri.se> <20191016212250.GA33184@nox.fritz.box> Message-ID: <20191101133105.GK11173@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Oct 16, 2019 at 11:22:50PM +0200, Patrick Wildt wrote: > It's possible that the data cache for the buffer still holds data > to be flushed to memory, since the buffer was probably used as stack > before. Thus we need to make sure to flush it also on reads, since > it's possible that the cache is automatically flused to memory after > the NVMe DMA transfer happened, thus overwriting the NVMe transfer's > data. Also add a missing dcache flush for the prp list. > > Signed-off-by: Patrick Wildt > Reviewed-by: Bin Meng Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: