]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: idxd: add support for readonly config mode
authorDave Jiang <dave.jiang@intel.com>
Tue, 20 Apr 2021 18:46:28 +0000 (11:46 -0700)
committerVinod Koul <vkoul@kernel.org>
Fri, 23 Apr 2021 17:38:44 +0000 (23:08 +0530)
commit27daa9990beeb41443b3d72b443fff77d47879c3
tree9fadc8cc3e90063bbe92611152bae3001ace2216
parent7c8f916890e70646edfbfc93cc788109d5ad2b3d
dmaengine: idxd: add support for readonly config mode

The read-only configuration mode is defined by the DSA spec as a mode of
the device WQ configuration. When GENCAP register bit 31 is set to 0,
the device is in RO mode and group configuration and some fields of the
workqueue configuration registers are read-only and reflect the fixed
configuration of the device. Add support for RO mode. The driver will
load the values from the registers directly setup all the internally
cached data structures based on the device configuration.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/161894438847.3202472.6317563824045432727.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/device.c
drivers/dma/idxd/idxd.h
drivers/dma/idxd/init.c
drivers/dma/idxd/sysfs.c