linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Tudor Ambarus <tudor.ambarus@linaro.org>
To: Krzysztof Kozlowski <krzk@kernel.org>,
	 Alim Akhtar <alim.akhtar@samsung.com>
Cc: andre.draszik@linaro.org, peter.griffin@linaro.org,
	 willmcvicker@google.com, kernel-team@android.com,
	 linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org,
	 linux-arm-kernel@lists.infradead.org,
	 Tudor Ambarus <tudor.ambarus@linaro.org>
Subject: [PATCH 0/3] firmware: samsung: add ACPM debugfs support
Date: Mon, 24 Feb 2025 08:01:21 +0000	[thread overview]
Message-ID: <20250224-acpm-debugfs-v1-0-2418a3ea1b17@linaro.org> (raw)

The ACPM firmware saves debug information to SRAM. Add debugfs entries
in order to expose the ACPM logs.

acpm_framework/logb_gprio_level controls the ACPM print verbosity to
the SRAM log buffer. It encodes a 64 bit value, 4 bits for each of the
16 Plugin IDs, with verbosity levels from 0xf (log error) to
0x0 (log debug).

acpm_framework/log_level has a maximum value of 2 and controls which
SRAM log buffers are printed.

Finally, acpm_framework/acpm_debug_cmd provides a way to issue
ACPM DEBUG commands to the firmware.

Add ACPM debugfs support with the above capabilities.

Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
---
Tudor Ambarus (3):
      firmware: exynos-acpm: rename exynos-acpm.h to exynos-acpm-xfer.h
      firmware: exynos-acpm: move common structures to exynos-acpm.h
      firmware: samsung: add ACPM debugfs support

 drivers/firmware/samsung/Makefile              |   1 +
 drivers/firmware/samsung/exynos-acpm-debugfs.c | 359 +++++++++++++++++++++++++
 drivers/firmware/samsung/exynos-acpm-pmic.c    |   2 +-
 drivers/firmware/samsung/exynos-acpm-xfer.h    |  23 ++
 drivers/firmware/samsung/exynos-acpm.c         |  61 ++---
 drivers/firmware/samsung/exynos-acpm.h         |  95 ++++++-
 6 files changed, 485 insertions(+), 56 deletions(-)
---
base-commit: f4d315a1f9d8fcaf608f283f01ce4d66160f44a1
change-id: 20250221-acpm-debugfs-d196d08e6462

Best regards,
-- 
Tudor Ambarus <tudor.ambarus@linaro.org>



             reply	other threads:[~2025-02-24  8:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-24  8:01 Tudor Ambarus [this message]
2025-02-24  8:01 ` [PATCH 1/3] firmware: exynos-acpm: rename exynos-acpm.h to exynos-acpm-xfer.h Tudor Ambarus
2025-02-24  8:01 ` [PATCH 2/3] firmware: exynos-acpm: move common structures to exynos-acpm.h Tudor Ambarus
2025-02-24  8:01 ` [PATCH 3/3] firmware: samsung: add ACPM debugfs support Tudor Ambarus
2025-03-05 19:37   ` Krzysztof Kozlowski
2025-03-12  7:11     ` Tudor Ambarus
2025-03-17 14:23       ` Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250224-acpm-debugfs-v1-0-2418a3ea1b17@linaro.org \
    --to=tudor.ambarus@linaro.org \
    --cc=alim.akhtar@samsung.com \
    --cc=andre.draszik@linaro.org \
    --cc=kernel-team@android.com \
    --cc=krzk@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=peter.griffin@linaro.org \
    --cc=willmcvicker@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).