162306a36Sopenharmony_ciWhat: /sys/bus/pci/devices/<BDF>/qat/state 262306a36Sopenharmony_ciDate: June 2022 362306a36Sopenharmony_ciKernelVersion: 6.0 462306a36Sopenharmony_ciContact: qat-linux@intel.com 562306a36Sopenharmony_ciDescription: (RW) Reports the current state of the QAT device. Write to 662306a36Sopenharmony_ci the file to start or stop the device. 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci The values are: 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci * up: the device is up and running 1162306a36Sopenharmony_ci * down: the device is down 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci It is possible to transition the device from up to down only 1562306a36Sopenharmony_ci if the device is up and vice versa. 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci This attribute is only available for qat_4xxx devices. 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ciWhat: /sys/bus/pci/devices/<BDF>/qat/cfg_services 2062306a36Sopenharmony_ciDate: June 2022 2162306a36Sopenharmony_ciKernelVersion: 6.0 2262306a36Sopenharmony_ciContact: qat-linux@intel.com 2362306a36Sopenharmony_ciDescription: (RW) Reports the current configuration of the QAT device. 2462306a36Sopenharmony_ci Write to the file to change the configured services. 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci The values are: 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci * sym;asym: the device is configured for running crypto 2962306a36Sopenharmony_ci services 3062306a36Sopenharmony_ci * asym;sym: identical to sym;asym 3162306a36Sopenharmony_ci * dc: the device is configured for running compression services 3262306a36Sopenharmony_ci * dcc: identical to dc but enables the dc chaining feature, 3362306a36Sopenharmony_ci hash then compression. If this is not required chose dc 3462306a36Sopenharmony_ci * sym: the device is configured for running symmetric crypto 3562306a36Sopenharmony_ci services 3662306a36Sopenharmony_ci * asym: the device is configured for running asymmetric crypto 3762306a36Sopenharmony_ci services 3862306a36Sopenharmony_ci * asym;dc: the device is configured for running asymmetric 3962306a36Sopenharmony_ci crypto services and compression services 4062306a36Sopenharmony_ci * dc;asym: identical to asym;dc 4162306a36Sopenharmony_ci * sym;dc: the device is configured for running symmetric crypto 4262306a36Sopenharmony_ci services and compression services 4362306a36Sopenharmony_ci * dc;sym: identical to sym;dc 4462306a36Sopenharmony_ci 4562306a36Sopenharmony_ci It is possible to set the configuration only if the device 4662306a36Sopenharmony_ci is in the `down` state (see /sys/bus/pci/devices/<BDF>/qat/state) 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ci The following example shows how to change the configuration of 4962306a36Sopenharmony_ci a device configured for running crypto services in order to 5062306a36Sopenharmony_ci run data compression:: 5162306a36Sopenharmony_ci 5262306a36Sopenharmony_ci # cat /sys/bus/pci/devices/<BDF>/qat/state 5362306a36Sopenharmony_ci up 5462306a36Sopenharmony_ci # cat /sys/bus/pci/devices/<BDF>/qat/cfg_services 5562306a36Sopenharmony_ci sym;asym 5662306a36Sopenharmony_ci # echo down > /sys/bus/pci/devices/<BDF>/qat/state 5762306a36Sopenharmony_ci # echo dc > /sys/bus/pci/devices/<BDF>/qat/cfg_services 5862306a36Sopenharmony_ci # echo up > /sys/bus/pci/devices/<BDF>/qat/state 5962306a36Sopenharmony_ci # cat /sys/bus/pci/devices/<BDF>/qat/cfg_services 6062306a36Sopenharmony_ci dc 6162306a36Sopenharmony_ci 6262306a36Sopenharmony_ci This attribute is only available for qat_4xxx devices. 6362306a36Sopenharmony_ci 6462306a36Sopenharmony_ciWhat: /sys/bus/pci/devices/<BDF>/qat/pm_idle_enabled 6562306a36Sopenharmony_ciDate: June 2023 6662306a36Sopenharmony_ciKernelVersion: 6.5 6762306a36Sopenharmony_ciContact: qat-linux@intel.com 6862306a36Sopenharmony_ciDescription: (RW) This configuration option provides a way to force the device into remaining in 6962306a36Sopenharmony_ci the MAX power state. 7062306a36Sopenharmony_ci If idle support is enabled the device will transition to the `MIN` power state when 7162306a36Sopenharmony_ci idle, otherwise will stay in the MAX power state. 7262306a36Sopenharmony_ci Write to the file to enable or disable idle support. 7362306a36Sopenharmony_ci 7462306a36Sopenharmony_ci The values are: 7562306a36Sopenharmony_ci 7662306a36Sopenharmony_ci * 0: idle support is disabled 7762306a36Sopenharmony_ci * 1: idle support is enabled 7862306a36Sopenharmony_ci 7962306a36Sopenharmony_ci Default value is 1. 8062306a36Sopenharmony_ci 8162306a36Sopenharmony_ci It is possible to set the pm_idle_enabled value only if the device 8262306a36Sopenharmony_ci is in the `down` state (see /sys/bus/pci/devices/<BDF>/qat/state) 8362306a36Sopenharmony_ci 8462306a36Sopenharmony_ci The following example shows how to change the pm_idle_enabled of 8562306a36Sopenharmony_ci a device:: 8662306a36Sopenharmony_ci 8762306a36Sopenharmony_ci # cat /sys/bus/pci/devices/<BDF>/qat/state 8862306a36Sopenharmony_ci up 8962306a36Sopenharmony_ci # cat /sys/bus/pci/devices/<BDF>/qat/pm_idle_enabled 9062306a36Sopenharmony_ci 1 9162306a36Sopenharmony_ci # echo down > /sys/bus/pci/devices/<BDF>/qat/state 9262306a36Sopenharmony_ci # echo 0 > /sys/bus/pci/devices/<BDF>/qat/pm_idle_enabled 9362306a36Sopenharmony_ci # echo up > /sys/bus/pci/devices/<BDF>/qat/state 9462306a36Sopenharmony_ci # cat /sys/bus/pci/devices/<BDF>/qat/pm_idle_enabled 9562306a36Sopenharmony_ci 0 9662306a36Sopenharmony_ci 9762306a36Sopenharmony_ci This attribute is only available for qat_4xxx devices. 98