Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: <george.zhang@amd.com>
To: <igt-dev@lists.freedesktop.org>
Cc: <sunpeng.li@amd.com>, <chiahsuan.chung@amd.com>,
	<alex.hung@amd.com>, George Zhang <george.zhang@amd.com>
Subject: [PATCH] tests/amdgpl/amd_abm: Fixed test to only test one output per pipe
Date: Mon, 4 Nov 2024 14:06:03 -0500	[thread overview]
Message-ID: <20241104190603.134982-1-george.zhang@amd.com> (raw)

From: George Zhang <george.zhang@amd.com>

This test only needs to run on one output per pipe, instead of all
pipes. Additionally, fixed the test not changing the abm level.

Change-Id: I401f0592d31db89b8ec1691e10ee041ca6e39e0a
---
 tests/amdgpu/amd_abm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/amdgpu/amd_abm.c b/tests/amdgpu/amd_abm.c
index a85f444c4..07d1520d1 100644
--- a/tests/amdgpu/amd_abm.c
+++ b/tests/amdgpu/amd_abm.c
@@ -291,7 +291,7 @@ static void backlight_monotonic_abm(data_t *data)
 	enum pipe pipe;
 	igt_output_t *output;
 
-	for_each_pipe_with_valid_output(&data->display, pipe, output) {
+	for_each_valid_output_on_pipe(&data->display, pipe, output) {
 		if (output->config.connector->connector_type != DRM_MODE_CONNECTOR_eDP)
 			continue;
 		ret = backlight_read_max_brightness(&max_brightness);
@@ -299,7 +299,7 @@ static void backlight_monotonic_abm(data_t *data)
 
 		brightness_step = max_brightness / 10;
 		for (i = 1; i < 5; i++) {
-			set_abm_level(data, output, 0);
+			set_abm_level(data, output, i);
 			backlight_write_brightness(max_brightness);
 			usleep(100000);
 			prev_pwm = read_target_backlight_pwm(data->drm_fd, output->name);
-- 
2.34.1


             reply	other threads:[~2024-11-04 19:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-04 19:06 george.zhang [this message]
2024-11-04 20:56 ` ✓ Fi.CI.BAT: success for tests/amdgpl/amd_abm: Fixed test to only test one output per pipe Patchwork
2024-11-04 21:20 ` ✓ CI.xeBAT: " Patchwork
2024-11-05 12:18 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-11-05 15:49 ` ✗ CI.xeFULL: " 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=20241104190603.134982-1-george.zhang@amd.com \
    --to=george.zhang@amd.com \
    --cc=alex.hung@amd.com \
    --cc=chiahsuan.chung@amd.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=sunpeng.li@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox