diff options
author | Ludovic Desroches <[email protected]> | 2016-03-10 10:17:55 +0100 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2016-03-10 16:32:36 +0530 |
commit | 25c5e9626ca4d40928dc9c44f009ce2ed0a739e7 (patch) | |
tree | cc9425cd553b187bfee1495b89483fed5fd1910f /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
parent | a9af316c83e3d81e26985193ffafdf143b327c07 (diff) |
dmaengine: at_xdmac: fix residue computation
When computing the residue we need two pieces of information: the current
descriptor and the remaining data of the current descriptor. To get
that information, we need to read consecutively two registers but we
can't do it in an atomic way. For that reason, we have to check manually
that current descriptor has not changed.
Signed-off-by: Ludovic Desroches <[email protected]>
Suggested-by: Cyrille Pitchen <[email protected]>
Reported-by: David Engraf <[email protected]>
Tested-by: David Engraf <[email protected]>
Fixes: e1f7c9eee707 ("dmaengine: at_xdmac: creation of the atmel
eXtended DMA Controller driver")
Cc: [email protected] #4.1 and later
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions