summaryrefslogtreecommitdiffstats
path: root/drivers/dma/dw
diff options
context:
space:
mode:
authorFenghua Yu <fenghua.yu@intel.com>2024-02-15 03:49:31 +0100
committerVinod Koul <vkoul@kernel.org>2024-02-16 13:16:56 +0100
commitecec7c9f29a7114a3e23a14020b1149ea7dffb4f (patch)
tree2c9db22118c096491b09d8d1faa254c7577a71c7 /drivers/dma/dw
parentdmaengine: fsl-edma: correct calculation of 'nbytes' in multi-fifo scenario (diff)
downloadlinux-ecec7c9f29a7114a3e23a14020b1149ea7dffb4f.tar.xz
linux-ecec7c9f29a7114a3e23a14020b1149ea7dffb4f.zip
dmaengine: idxd: Remove shadow Event Log head stored in idxd
head is defined in idxd->evl as a shadow of head in the EVLSTATUS register. There are two issues related to the shadow head: 1. Mismatch between the shadow head and the state of the EVLSTATUS register: If Event Log is supported, upon completion of the Enable Device command, the Event Log head in the variable idxd->evl->head should be cleared to match the state of the EVLSTATUS register. But the variable is not reset currently, leading mismatch between the variable and the register state. The mismatch causes incorrect processing of Event Log entries. 2. Unnecessary shadow head definition: The shadow head is unnecessary as head can be read directly from the EVLSTATUS register. Reading head from the register incurs no additional cost because event log head and tail are always read together and tail is already read directly from the register as required by hardware. Remove the shadow Event Log head stored in idxd->evl to address the mentioned issues. Fixes: 244da66cda35 ("dmaengine: idxd: setup event log configuration") Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/20240215024931.1739621-1-fenghua.yu@intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/dw')
0 files changed, 0 insertions, 0 deletions