|
Revision tags: v6.15, v6.15-rc7, v6.15-rc6, v6.15-rc5, v6.15-rc4, v6.15-rc3, v6.15-rc2, v6.15-rc1, v6.14, v6.14-rc7, v6.14-rc6, v6.14-rc5, v6.14-rc4, v6.14-rc3, v6.14-rc2, v6.14-rc1, v6.13, v6.13-rc7, v6.13-rc6, v6.13-rc5, v6.13-rc4, v6.13-rc3, v6.13-rc2, v6.13-rc1, v6.12, v6.12-rc7, v6.12-rc6, v6.12-rc5, v6.12-rc4, v6.12-rc3, v6.12-rc2, v6.12-rc1, v6.11, v6.11-rc7, v6.11-rc6, v6.11-rc5, v6.11-rc4, v6.11-rc3, v6.11-rc2, v6.11-rc1, v6.10, v6.10-rc7, v6.10-rc6 |
|
| #
d26cb4f5 |
| 25-Jun-2024 |
Damian Muszynski <[email protected]> |
Documentation: qat: fix auto_reset attribute details
The auto_reset attribute was introduced in kernel 6.9. Fix version and date in documentation.
Fixes: f5419a4239af ("crypto: qat - add auto reset
Documentation: qat: fix auto_reset attribute details
The auto_reset attribute was introduced in kernel 6.9. Fix version and date in documentation.
Fixes: f5419a4239af ("crypto: qat - add auto reset on error") Signed-off-by: Damian Muszynski <[email protected]> Signed-off-by: Giovanni Cabiddu <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
|
Revision tags: v6.10-rc5, v6.10-rc4, v6.10-rc3, v6.10-rc2, v6.10-rc1, v6.9, v6.9-rc7, v6.9-rc6, v6.9-rc5, v6.9-rc4, v6.9-rc3, v6.9-rc2, v6.9-rc1, v6.8, v6.8-rc7, v6.8-rc6, v6.8-rc5 |
|
| #
2ecd4341 |
| 12-Feb-2024 |
Giovanni Cabiddu <[email protected]> |
Documentation: qat: fix auto_reset section
Remove unneeded colon in the auto_reset section.
This resolves the following errors when building the documentation:
Documentation/ABI/testing/sysfs-
Documentation: qat: fix auto_reset section
Remove unneeded colon in the auto_reset section.
This resolves the following errors when building the documentation:
Documentation/ABI/testing/sysfs-driver-qat:146: ERROR: Unexpected indentation. Documentation/ABI/testing/sysfs-driver-qat:146: WARNING: Block quote ends without a blank line; unexpected unindent.
Fixes: f5419a4239af ("crypto: qat - add auto reset on error") Reported-by: Stephen Rothwell <[email protected]> Closes: https://lore.kernel.org/linux-kernel/[email protected]/T/ Signed-off-by: Giovanni Cabiddu <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
|
Revision tags: v6.8-rc4, v6.8-rc3 |
|
| #
f5419a42 |
| 02-Feb-2024 |
Damian Muszynski <[email protected]> |
crypto: qat - add auto reset on error
Expose the `auto_reset` sysfs attribute to configure the driver to reset the device when a fatal error is detected.
When auto reset is enabled, the driver rese
crypto: qat - add auto reset on error
Expose the `auto_reset` sysfs attribute to configure the driver to reset the device when a fatal error is detected.
When auto reset is enabled, the driver resets the device when it detects either an heartbeat failure or a fatal error through an interrupt.
This patch is based on earlier work done by Shashank Gupta.
Signed-off-by: Damian Muszynski <[email protected]> Reviewed-by: Ahsan Atta <[email protected]> Reviewed-by: Markas Rapoportas <[email protected]> Reviewed-by: Giovanni Cabiddu <[email protected]> Signed-off-by: Mun Chun Yep <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
|
Revision tags: v6.8-rc2, v6.8-rc1, v6.7, v6.7-rc8, v6.7-rc7, v6.7-rc6, v6.7-rc5, v6.7-rc4, v6.7-rc3, v6.7-rc2, v6.7-rc1, v6.6, v6.6-rc7 |
|
| #
71fed09b |
| 20-Oct-2023 |
Ciunas Bennett <[email protected]> |
crypto: qat - add num_rps sysfs attribute
Add the attribute `num_rps` to the `qat` attribute group. This returns the number of ring pairs that a single device has. This allows to know the maximum va
crypto: qat - add num_rps sysfs attribute
Add the attribute `num_rps` to the `qat` attribute group. This returns the number of ring pairs that a single device has. This allows to know the maximum value that can be set to the attribute `rp2svc`.
Signed-off-by: Ciunas Bennett <[email protected]> Reviewed-by: Giovanni Cabiddu <[email protected]> Reviewed-by: Damian Muszynski <[email protected]> Reviewed-by: Tero Kristo <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
| #
dbc8876d |
| 20-Oct-2023 |
Ciunas Bennett <[email protected]> |
crypto: qat - add rp2svc sysfs attribute
Add the attribute `rp2svc` to the `qat` attribute group. This provides a way for a user to query a specific ring pair for the type of service that is current
crypto: qat - add rp2svc sysfs attribute
Add the attribute `rp2svc` to the `qat` attribute group. This provides a way for a user to query a specific ring pair for the type of service that is currently configured for.
When read, the service will be returned for the defined ring pair. When written to this value will be stored as the ring pair to return the service of.
Signed-off-by: Ciunas Bennett <[email protected]> Reviewed-by: Giovanni Cabiddu <[email protected]> Reviewed-by: Damian Muszynski <[email protected]> Reviewed-by: Tero Kristo <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
|
Revision tags: v6.6-rc6, v6.6-rc5, v6.6-rc4, v6.6-rc3, v6.6-rc2 |
|
| #
37b14f2d |
| 14-Sep-2023 |
Adam Guerin <[email protected]> |
crypto: qat - enable dc chaining service
QAT GEN4 devices support chained compression operations. These allow, with a single request to firmware, to hash then compress data.
Extend the configuratio
crypto: qat - enable dc chaining service
QAT GEN4 devices support chained compression operations. These allow, with a single request to firmware, to hash then compress data.
Extend the configuration to enable such mode. The cfg_services operations in sysfs are extended to allow the string "dcc". When selected, the driver downloads to the device both the symmetric crypto and the compression firmware images and sends an admin message to firmware which enables `chained` operations. In addition, it sets the device's capabilities as the combination of compression and symmetric crypto capabilities, while excluding the ICP_ACCEL_CAPABILITIES_CRYPTO_SYMMETRIC bit to indicate that in this mode, symmetric crypto instances are not supported.
When "dcc" is enabled, the device will handle compression requests as if the "dc" configuration is loaded ("dcc" is a variation of "dc") and the driver will register the acomp algorithms.
As for the other extended configurations, "dcc" is only available for qat_4xxx devices and the chaining service will be only accessible from user space.
Signed-off-by: Adam Guerin <[email protected]> Reviewed-by: Giovanni Cabiddu <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
|
Revision tags: v6.6-rc1, v6.5, v6.5-rc7, v6.5-rc6, v6.5-rc5, v6.5-rc4, v6.5-rc3, v6.5-rc2, v6.5-rc1, v6.4, v6.4-rc7, v6.4-rc6 |
|
| #
2382b5ae |
| 09-Jun-2023 |
Lucas Segarra Fernandez <[email protected]> |
crypto: qat - expose pm_idle_enabled through sysfs
Expose 'pm_idle_enabled' sysfs attribute. This attribute controls how idle conditions are handled. If it is set to 1 (idle support enabled) when th
crypto: qat - expose pm_idle_enabled through sysfs
Expose 'pm_idle_enabled' sysfs attribute. This attribute controls how idle conditions are handled. If it is set to 1 (idle support enabled) when the device detects an idle condition, the driver will transition the device to the 'MIN' power configuration.
In order to set the value of this attribute for a device, the device must be in the 'down' state.
This only applies to qat_4xxx generation.
Signed-off-by: Lucas Segarra Fernandez <[email protected]> Reviewed-by: Giovanni Cabiddu <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
| #
50053275 |
| 09-Jun-2023 |
Adam Guerin <[email protected]> |
crypto: qat - extend configuration for 4xxx
A QAT GEN4 device can be currently configured for crypto (sym;asym) or compression (dc).
This patch extends the configuration to support more variations
crypto: qat - extend configuration for 4xxx
A QAT GEN4 device can be currently configured for crypto (sym;asym) or compression (dc).
This patch extends the configuration to support more variations of these services, download the correct FW images on the device and report the correct capabilities on the device based on the configured service.
The device can now be configured with the following services: "sym", "asym", "dc", "sym;asym", "asym;sym", "sym;dc", "dc;sym", "asym;dc", "dc;asym".
With this change, the configuration "sym", "asym", "sym;dc", "dc;sym", "asym;dc", "dc;asym" will be accessible only via userspace, i.e. the driver for those configurations will not register into the crypto framework. Support for such configurations in kernel will be enabled in a later patch.
The pairs "sym;asym" and "asym;sym" result in identical device config. As do "sym;dc", "dc;sym", and "asym;dc", "dc;asym".
Signed-off-by: Adam Guerin <[email protected]> Reviewed-by: Giovanni Cabiddu <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
|
Revision tags: v6.4-rc5, v6.4-rc4, v6.4-rc3, v6.4-rc2, v6.4-rc1, v6.3, v6.3-rc7, v6.3-rc6, v6.3-rc5, v6.3-rc4, v6.3-rc3, v6.3-rc2, v6.3-rc1, v6.2, v6.2-rc8, v6.2-rc7, v6.2-rc6, v6.2-rc5 |
|
| #
1d273983 |
| 19-Jan-2023 |
Meadhbh <[email protected]> |
Documentation: qat: change kernel version
Change kernel version from 5.20 to 6.0, as 5.20 is not a release.
Signed-off-by: Meadhbh Fitzpatrick <[email protected]> Reviewed-by: Giovanni
Documentation: qat: change kernel version
Change kernel version from 5.20 to 6.0, as 5.20 is not a release.
Signed-off-by: Meadhbh Fitzpatrick <[email protected]> Reviewed-by: Giovanni Cabiddu <[email protected]> Reviewed-by: Vladis Dronov <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
|
Revision tags: v6.2-rc4, v6.2-rc3, v6.2-rc2, v6.2-rc1, v6.1, v6.1-rc8, v6.1-rc7, v6.1-rc6, v6.1-rc5, v6.1-rc4, v6.1-rc3, v6.1-rc2, v6.1-rc1, v6.0, v6.0-rc7, v6.0-rc6, v6.0-rc5, v6.0-rc4, v6.0-rc3, v6.0-rc2, v6.0-rc1, v5.19, v5.19-rc8, v5.19-rc7 |
|
| #
1b466b8c |
| 13-Jul-2022 |
Bagas Sanjaya <[email protected]> |
Documentation: qat: rewrite description
The sysfs description contains redundancy on returned and allowed values list, due to the described sysfs is read-write. Rewrite.
Acked-by: Giovanni Cabiddu
Documentation: qat: rewrite description
The sysfs description contains redundancy on returned and allowed values list, due to the described sysfs is read-write. Rewrite.
Acked-by: Giovanni Cabiddu <[email protected]> Cc: Adam Guerin <[email protected]> Cc: Tomasz Kowallik <[email protected]> Cc: Giovanni Cabiddu <[email protected]> Cc: Wojciech Ziemba <[email protected]> Cc: Fiona Trahe <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Bagas Sanjaya <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
| #
19cdbdb7 |
| 13-Jul-2022 |
Bagas Sanjaya <[email protected]> |
Documentation: qat: Use code block for qat sysfs example
kernel test robot and Stephen Rothwell reported htmldocs warning:
Documentation/ABI/testing/sysfs-driver-qat:24: WARNING: Unexpected indenta
Documentation: qat: Use code block for qat sysfs example
kernel test robot and Stephen Rothwell reported htmldocs warning:
Documentation/ABI/testing/sysfs-driver-qat:24: WARNING: Unexpected indentation.
The warning isn't caused by Date: field pointed by the warning, but rather by sysfs example that isn't in literal code block.
Add the code block marker.
Link: https://lore.kernel.org/linux-next/[email protected]/ Link: https://lore.kernel.org/linux-doc/[email protected]/ Reported-by: kernel test robot <[email protected]> Reported-by: Stephen Rothwell <[email protected]> Fixes: d4cfb144f60551 ("crypto: qat - expose device config through sysfs for 4xxx") Acked-by: Giovanni Cabiddu <[email protected]> Cc: Wojciech Ziemba <[email protected]> Cc: Adam Guerin <[email protected]> Cc: Fiona Trahe <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Vladis Dronov <[email protected]> Cc: Tomasz Kowallik <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Bagas Sanjaya <[email protected]> Acked-by: Vladis Dronov <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
show more ...
|
|
Revision tags: v5.19-rc6, v5.19-rc5 |
|
| #
d4cfb144 |
| 27-Jun-2022 |
Giovanni Cabiddu <[email protected]> |
crypto: qat - expose device config through sysfs for 4xxx
qat_4xxx devices can be configured to allow either crypto or compression operations. At the moment, devices are configured statically accord
crypto: qat - expose device config through sysfs for 4xxx
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]>
show more ...
|
| #
5ee52118 |
| 27-Jun-2022 |
Giovanni Cabiddu <[email protected]> |
crypto: qat - expose device state through sysfs for 4xxx
Expose the device state through an attribute in sysfs and allow to change it. This is to stop and shutdown a QAT device in order to change it
crypto: qat - expose device state through sysfs for 4xxx
Expose the device state through an attribute in sysfs and allow to change it. This is to stop and shutdown a QAT device in order to change its configuration.
The state attribute has been added to a newly created `qat` attribute group which will contain all _QAT specific_ attributes.
The logic that implements the sysfs entries is part of a new file, adf_sysfs.c. This exposes an entry point to allow the driver to create attributes.
The function that creates the sysfs attributes is called from the probe function of the driver and not in the state machine init function to allow the change of states even if the device is in the down state.
In order to restore the device configuration between a transition from down to up, the function that configures the devices has been abstracted into the HW data structure.
The `state` attribute is only exposed for qat_4xxx devices.
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]>
show more ...
|