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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Apr 2021 11:00:50 +0000 (13:00 +0200)
commita5ad12d5d69c63af289a37f05187a0c6fe93553d
tree5e1a168cddeeacee5695c47a9fada43de83c8a53
parentf567fde02baa8f3d9fe5699f202faf125f96bd0f
dmaengine: idxd: Fix clobbering of SWERR overflow bit on writeback

[ Upstream commit ea941ac294d75d0ace50797aebf0056f6f8f7a7f ]

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: bfe1d56091c1 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/idxd/irq.c