sysfs-driver-qat 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. What: /sys/bus/pci/devices/<BDF>/qat/state
  2. Date: June 2022
  3. KernelVersion: 5.20
  4. Contact: [email protected]
  5. Description: (RW) Reports the current state of the QAT device. Write to
  6. the file to start or stop the device.
  7. The values are:
  8. * up: the device is up and running
  9. * down: the device is down
  10. It is possible to transition the device from up to down only
  11. if the device is up and vice versa.
  12. This attribute is only available for qat_4xxx devices.
  13. What: /sys/bus/pci/devices/<BDF>/qat/cfg_services
  14. Date: June 2022
  15. KernelVersion: 5.20
  16. Contact: [email protected]
  17. Description: (RW) Reports the current configuration of the QAT device.
  18. Write to the file to change the configured services.
  19. The values are:
  20. * sym;asym: the device is configured for running crypto
  21. services
  22. * dc: the device is configured for running compression services
  23. It is possible to set the configuration only if the device
  24. is in the `down` state (see /sys/bus/pci/devices/<BDF>/qat/state)
  25. The following example shows how to change the configuration of
  26. a device configured for running crypto services in order to
  27. run data compression::
  28. # cat /sys/bus/pci/devices/<BDF>/qat/state
  29. up
  30. # cat /sys/bus/pci/devices/<BDF>/qat/cfg_services
  31. sym;asym
  32. # echo down > /sys/bus/pci/devices/<BDF>/qat/state
  33. # echo dc > /sys/bus/pci/devices/<BDF>/qat/cfg_services
  34. # echo up > /sys/bus/pci/devices/<BDF>/qat/state
  35. # cat /sys/bus/pci/devices/<BDF>/qat/cfg_services
  36. dc
  37. This attribute is only available for qat_4xxx devices.