]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
dmaengine: idxd: check GENCAP config support for gencfg register
authorDave Jiang <dave.jiang@intel.com>
Tue, 12 Oct 2021 18:01:59 +0000 (11:01 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:39:20 +0000 (14:39 +0200)
commitaa3105f4ac6fda30be9876307b7a4cadf48c565e
tree232d6c4e5b5e3ea7672dd88e0f46ae5fec9ced05
parentb98de5d3ef46e1b384bf0391cc323d6336b682bc
dmaengine: idxd: check GENCAP config support for gencfg register

BugLink: https://bugs.launchpad.net/bugs/1969110
[ Upstream commit 79c4c3db7d86b9bec94562275efc82e58f3d0132 ]

DSA spec 1.2 has moved the GENCFG register under the GENCAP configuration
support with respect to writability. Add check in driver before writing to
GENCFG register.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/163406171896.1303830.11217958011385656998.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit e509584b079a26ee57de1f47293e3ae0adfe0fd4)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/dma/idxd/device.c