]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
dmaengine: dw-edma: Fix scatter-gather address calculation
authorGustavo Pimentel <Gustavo.Pimentel@synopsys.com>
Thu, 13 Aug 2020 14:14:04 +0000 (16:14 +0200)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Thu, 17 Sep 2020 06:47:08 +0000 (00:47 -0600)
commit7f81889565aae7bc95041a75e00103b49c342f55
tree2f7221182aa96a7c33cb0460f5d2ff68da013c41
parent0d4953f6ffe69f94e689c9caffa4fb83828ed7d1
dmaengine: dw-edma: Fix scatter-gather address calculation

BugLink: https://bugs.launchpad.net/bugs/1895880
commit 05655541c9503bfd01af4e6cbd7f5a29ac748e6c upstream.

Fix the source and destination physical address calculation of a
peripheral device on scatter-gather implementation.

This issue manifested during tests using a 64 bits architecture system.
The abnormal behavior wasn't visible before due to all previous tests
were done using 32 bits architecture system, that masked his effect.

Fixes: e63d79d1ffcd ("dmaengine: Add Synopsys eDMA IP core driver")
Cc: stable@vger.kernel.org
Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Link: https://lore.kernel.org/r/8d3ab7e2ba96563fe3495b32f60077fffb85307d.1597327623.git.gustavo.pimentel@synopsys.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/dma/dw-edma/dw-edma-core.c