All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luben Tuikov <luben.tuikov@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: Tom StDenis <tom.stdenis@amd.com>,
	"Jinzhou . Su" <Jinzhou.Su@amd.com>,
	Luben Tuikov <luben.tuikov@amd.com>
Subject: [PATCH 1/5] umr: Add support for "--ppt-read"
Date: Sun, 27 Mar 2022 06:42:10 -0400	[thread overview]
Message-ID: <20220327104214.106340-1-luben.tuikov@amd.com> (raw)

Add support for "--ppt-read" to fall in line with the way rest of the
command line options are formatted. The old "--ppt_read" is still
supported.

Cc: Tom StDenis <tom.stdenis@amd.com>
Cc: Jinzhou.Su <Jinzhou.Su@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
---
 src/app/main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/app/main.c b/src/app/main.c
index 2f9d6aadd7ff46..62ea2f42145f60 100644
--- a/src/app/main.c
+++ b/src/app/main.c
@@ -848,7 +848,9 @@ int main(int argc, char **argv)
 			umr_set_clock_performance(asic, "auto");
 			if (umr_check_clock_performance(asic, clockperformance, sizeof(clockperformance)) != 0)
 				printf("power_dpm_force_performance_level: %s", clockperformance);
-		} else if (!strcmp(argv[i], "--ppt_read") || !strcmp(argv[i], "-pptr")) {
+		} else if (!strcmp(argv[i], "--ppt-read") ||
+			   !strcmp(argv[i], "--ppt_read") ||
+			   !strcmp(argv[i], "-pptr")) {
 			if (!asic)
 				asic = get_asic();
 			if (i + 1 < argc) {

base-commit: decd91d8eae42d63eda4f6b7c97159b9cc343c26
-- 
2.35.1.607.gf01e51a7cf


             reply	other threads:[~2022-03-27 10:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-27 10:42 Luben Tuikov [this message]
2022-03-27 10:42 ` [PATCH 2/5] umr: Reorg and print the message on ppt-read Luben Tuikov
2022-03-27 10:42 ` [PATCH 3/5] umr: Add command line support for "--gpu-metrics" Luben Tuikov
2022-03-27 10:42 ` [PATCH 4/5] umr: Document new format command line options Luben Tuikov
2022-03-27 10:42 ` [PATCH 5/5] umr: Completion: update new format options Luben Tuikov
2022-03-28 17:09   ` StDenis, Tom

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=20220327104214.106340-1-luben.tuikov@amd.com \
    --to=luben.tuikov@amd.com \
    --cc=Jinzhou.Su@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=tom.stdenis@amd.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.