[U-Boot] [PATCH] ahci: flush dcache before issuing command

From: Tang Yuantian Yuantian.Tang@nxp.com
Ensure data the following sata command used is flushed out of dcache and written to physical memory or timeout error may happen.
Signed-off-by: Tang Yuantian yuantian.tang@nxp.com --- drivers/block/ahci.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c index d29642b..e3e783a 100644 --- a/drivers/block/ahci.c +++ b/drivers/block/ahci.c @@ -1061,6 +1061,7 @@ static int ata_io_flush(u8 port)
memcpy((unsigned char *)pp->cmd_tbl, fis, 20); ahci_fill_cmd_slot(pp, cmd_fis_len); + ahci_dcache_flush_sata_cmd(pp); writel_with_flush(1, port_mmio + PORT_CMD_ISSUE);
if (waiting_for_cmd_completed(port_mmio + PORT_CMD_ISSUE,

On 14 April 2016 at 02:21, yuantian.tang@nxp.com wrote:
From: Tang Yuantian Yuantian.Tang@nxp.com
Ensure data the following sata command used is flushed out of dcache and written to physical memory or timeout error may happen.
Signed-off-by: Tang Yuantian yuantian.tang@nxp.com
drivers/block/ahci.c | 1 + 1 file changed, 1 insertion(+)
Reviewed-by: Simon Glass sjg@chromium.org

On Thu, Apr 14, 2016 at 04:21:00PM +0800, yuantian.tang@nxp.com wrote:
From: Tang Yuantian Yuantian.Tang@nxp.com
Ensure data the following sata command used is flushed out of dcache and written to physical memory or timeout error may happen.
Signed-off-by: Tang Yuantian yuantian.tang@nxp.com
Applied to u-boot/master, thanks!

On Thu, Apr 14, 2016 at 04:21:00PM +0800, yuantian.tang@nxp.com wrote:
From: Tang Yuantian Yuantian.Tang@nxp.com
Ensure data the following sata command used is flushed out of dcache and written to physical memory or timeout error may happen.
Signed-off-by: Tang Yuantian yuantian.tang@nxp.com
Applied to u-boot/master, thanks!
participants (3)
-
Simon Glass
-
Tom Rini
-
yuantian.tang@nxp.com