public inbox for linux-crypto@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] Add debugfs pm_status for qat driver
@ 2023-09-22 10:15 Lucas Segarra Fernandez
  2023-09-22 10:15 ` [PATCH v5 1/2] crypto: qat - refactor included headers Lucas Segarra Fernandez
  2023-09-22 10:15 ` [PATCH v5 2/2] crypto: qat - add pm_status debugfs file Lucas Segarra Fernandez
  0 siblings, 2 replies; 6+ messages in thread
From: Lucas Segarra Fernandez @ 2023-09-22 10:15 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto, qat-linux, Lucas Segarra Fernandez

Add debugfs pm_status.

Expose power management info by providing the "pm_status" file under
debugfs.

---
v4 -> v5:
- use linux/kernel.h in C files
---
v3 -> v4:
- init variable `len` at adf_gen4_print_pm_status()
---
v2 -> v3:
- Move debugfs Power Management GEN4 specific logic to adf_gen4_pm_debugfs.c,
this fixes error building with CONFIG_DEBUG_FS=n
- increase doc's Date and KernelVersion
---
v1 -> v2:
- Add constant ICP_QAT_NUMBER_OF_PM_EVENTS, rather than ARRAY_SIZE_OF_FIELD()
---

Lucas Segarra Fernandez (2):
  crypto: qat - refactor included headers
  crypto: qat - add pm_status debugfs file

 Documentation/ABI/testing/debugfs-driver-qat  |   9 +
 drivers/crypto/intel/qat/qat_common/Makefile  |   2 +
 .../intel/qat/qat_common/adf_accel_devices.h  |  13 +
 .../crypto/intel/qat/qat_common/adf_admin.c   |  26 ++
 .../intel/qat/qat_common/adf_common_drv.h     |   1 +
 .../crypto/intel/qat/qat_common/adf_dbgfs.c   |   3 +
 .../crypto/intel/qat/qat_common/adf_gen4_pm.c |  26 +-
 .../crypto/intel/qat/qat_common/adf_gen4_pm.h |  50 +++-
 .../qat/qat_common/adf_gen4_pm_debugfs.c      | 255 ++++++++++++++++++
 .../intel/qat/qat_common/adf_pm_dbgfs.c       |  46 ++++
 .../intel/qat/qat_common/adf_pm_dbgfs.h       |  12 +
 .../qat/qat_common/icp_qat_fw_init_admin.h    |  35 +++
 12 files changed, 472 insertions(+), 6 deletions(-)
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_gen4_pm_debugfs.c
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_pm_dbgfs.c
 create mode 100644 drivers/crypto/intel/qat/qat_common/adf_pm_dbgfs.h


base-commit: 6216da1fca75fb3077e51707792be78cb008900f
-- 
2.41.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-10-04 10:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-22 10:15 [PATCH v5 0/2] Add debugfs pm_status for qat driver Lucas Segarra Fernandez
2023-09-22 10:15 ` [PATCH v5 1/2] crypto: qat - refactor included headers Lucas Segarra Fernandez
2023-09-22 10:15 ` [PATCH v5 2/2] crypto: qat - add pm_status debugfs file Lucas Segarra Fernandez
2023-10-01  8:18   ` Herbert Xu
2023-10-02 10:13     ` Lucas Segarra
     [not found]     ` <1488c761ef924df48ff89825ea8571e5@DM4PR11MB8129.namprd11.prod.outlook.com>
2023-10-04 10:03       ` Lucas Segarra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox