mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
qat_4xxx devices can be configured to allow either crypto or compression operations. At the moment, devices are configured statically according to the following rule: - odd numbered devices assigned to compression services - even numbered devices assigned to crypto services Expose the sysfs attribute /sys/bus/pci/devices/<BDF>/qat/cfg_services to allow to detect the configuration of a device and to change it. The `cfg_service` attribute is only exposed for qat_4xxx devices and it is limited to two configurations: (1) "sym;asym" for crypto services and "dc" for compression services. Signed-off-by: Giovanni Cabiddu <[email protected]> Co-developed-by: Tomasz Kowallik <[email protected]> Signed-off-by: Tomasz Kowallik <[email protected]> Reviewed-by: Adam Guerin <[email protected]> Reviewed-by: Fiona Trahe <[email protected]> Reviewed-by: Wojciech Ziemba <[email protected]> Reviewed-by: Vladis Dronov <[email protected]> Signed-off-by: Herbert Xu <[email protected]>