Back to home page

OSCL-LXR

 
 

    


0001 What:           /sys/bus/pci/devices/<BDF>/qat/state
0002 Date:           June 2022
0003 KernelVersion:  5.20
0004 Contact:        qat-linux@intel.com
0005 Description:    (RW) Reports the current state of the QAT device. Write to
0006                 the file to start or stop the device.
0007 
0008                 The values are:
0009 
0010                 * up: the device is up and running
0011                 * down: the device is down
0012 
0013 
0014                 It is possible to transition the device from up to down only
0015                 if the device is up and vice versa.
0016 
0017                 This attribute is only available for qat_4xxx devices.
0018 
0019 What:           /sys/bus/pci/devices/<BDF>/qat/cfg_services
0020 Date:           June 2022
0021 KernelVersion:  5.20
0022 Contact:        qat-linux@intel.com
0023 Description:    (RW) Reports the current configuration of the QAT device.
0024                 Write to the file to change the configured services.
0025 
0026                 The values are:
0027 
0028                 * sym;asym: the device is configured for running crypto
0029                   services
0030                 * dc: the device is configured for running compression services
0031 
0032                 It is possible to set the configuration only if the device
0033                 is in the `down` state (see /sys/bus/pci/devices/<BDF>/qat/state)
0034 
0035                 The following example shows how to change the configuration of
0036                 a device configured for running crypto services in order to
0037                 run data compression::
0038 
0039                         # cat /sys/bus/pci/devices/<BDF>/qat/state
0040                         up
0041                         # cat /sys/bus/pci/devices/<BDF>/qat/cfg_services
0042                         sym;asym
0043                         # echo down > /sys/bus/pci/devices/<BDF>/qat/state
0044                         # echo dc > /sys/bus/pci/devices/<BDF>/qat/cfg_services
0045                         # echo up > /sys/bus/pci/devices/<BDF>/qat/state
0046                         # cat /sys/bus/pci/devices/<BDF>/qat/cfg_services
0047                         dc
0048 
0049                 This attribute is only available for qat_4xxx devices.