]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: idxd: Fix clobbering of SWERR overflow bit on writeback
authorDave Jiang <dave.jiang@intel.com>
Wed, 17 Feb 2021 00:13:42 +0000 (17:13 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 12 Apr 2021 07:56:03 +0000 (13:26 +0530)
commitea7edf2530795e4f2f0f01eefcd88b66dad5dc43
treeeee850638b0e6ecda1c6b3057bd390398f9971bb
parent1fa0b8bfc4ca1d54ced3dc6c0c432024c7d009e6
dmaengine: idxd: Fix clobbering of SWERR overflow bit on writeback

Current code blindly writes over the SWERR and the OVERFLOW bits. Write
back the bits actually read instead so the driver avoids clobbering the
OVERFLOW bit that comes after the register is read.

Fixes: 3b93ca7a124d ("dmaengine: idxd: Init and probe for Intel data accelerators")
Reported-by: Sanjay Kumar <sanjay.k.kumar@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/161352082229.3511254.1002151220537623503.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/irq.c