From: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: uma.shankar@intel.com, ramanaidu.naladala@intel.com,
mitulkumar.ajitkumar.golani@intel.com,
ankit.k.nautiyal@intel.com
Subject: [PATCH v3 2/3] tests/kms_vrr: Increase readability of kms_vrr
Date: Fri, 4 Apr 2025 10:07:07 +0530 [thread overview]
Message-ID: <20250404043709.955109-3-mitulkumar.ajitkumar.golani@intel.com> (raw)
In-Reply-To: <20250404043709.955109-1-mitulkumar.ajitkumar.golani@intel.com>
Add converted refresh rate value apart from nanosecond time prints
to increase readability of debug logs.
Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
---
tests/kms_vrr.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c
index ccf32f453..4d308aced 100644
--- a/tests/kms_vrr.c
+++ b/tests/kms_vrr.c
@@ -487,8 +487,10 @@ flip_and_measure(data_t *data, igt_output_t *output, enum pipe pipe,
calculate_tolerance(&threshold_hi[i], &threshold_lo[i], exp_rate_ns);
- igt_info("Requested rate[%d]: %"PRIu64" ns, Expected rate between: %"PRIu64" ns to %"PRIu64" ns\n",
- i, rates_ns[i], threshold_hi[i], threshold_lo[i]);
+ igt_info("Requested rate[%d]: %" PRIu64 " ns (%.2f Hz), Expected rate between: %" PRIu64 " ns (%.2f Hz) to %" PRIu64 " ns (%.2f Hz)\n",
+ i, rates_ns[i], (float)NSECS_PER_SEC / rates_ns[i], threshold_hi[i],
+ (float)NSECS_PER_SEC / threshold_hi[i], threshold_lo[i],
+ (float)NSECS_PER_SEC / threshold_lo[i]);
}
/* Align with the flip completion event to speed up convergence. */
@@ -513,8 +515,9 @@ flip_and_measure(data_t *data, igt_output_t *output, enum pipe pipe,
*/
event_ns = get_kernel_event_ns(data, DRM_EVENT_FLIP_COMPLETE);
- igt_debug("event_ns - last_event_ns: %"PRIu64"\n",
- (event_ns - last_event_ns));
+ igt_debug("event_ns - last_event_ns: %" PRIu64 " (%.2f Hz)\n",
+ event_ns - last_event_ns,
+ (float)NSECS_PER_SEC / (event_ns - last_event_ns));
/*
* Check if the difference between the two flip timestamps
--
2.48.1
next prev parent reply other threads:[~2025-04-04 4:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-04 4:37 [PATCH v3 0/3] Bucketize refresh rate tolerance Mitul Golani
2025-04-04 4:37 ` [PATCH v3 1/3] tests/kms_vrr: " Mitul Golani
2025-04-09 19:22 ` Naladala, Ramanaidu
2025-04-11 4:28 ` Nautiyal, Ankit K
2025-04-04 4:37 ` Mitul Golani [this message]
2025-04-09 10:51 ` [PATCH v3 2/3] tests/kms_vrr: Increase readability of kms_vrr Naladala, Ramanaidu
2025-04-04 4:37 ` [PATCH v3 3/3] HAX patch do not merge Mitul Golani
2025-04-04 5:25 ` ✓ Xe.CI.BAT: success for Bucketize refresh rate tolerance (rev3) Patchwork
2025-04-04 5:37 ` ✗ i915.CI.BAT: failure " Patchwork
2025-04-04 13:46 ` ✗ Xe.CI.Full: " Patchwork
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=20250404043709.955109-3-mitulkumar.ajitkumar.golani@intel.com \
--to=mitulkumar.ajitkumar.golani@intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=ramanaidu.naladala@intel.com \
--cc=uma.shankar@intel.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