From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: Naladala Ramanaidu <ramanaidu.naladala@intel.com>,
<igt-dev@lists.freedesktop.org>
Cc: <kunal1.joshi@intel.com>
Subject: Re: [PATCH i-g-t 3/5] tests/kms_plane_scaling: Improvise the planes scaling BW issues
Date: Tue, 16 Jul 2024 10:02:15 +0530 [thread overview]
Message-ID: <b2a7614d-2df2-4df3-8034-7a09ee2bee2b@intel.com> (raw)
In-Reply-To: <20240715154628.583682-4-ramanaidu.naladala@intel.com>
On 7/15/2024 9:16 PM, Naladala Ramanaidu wrote:
> Anticipating bandwidth issues, we expect many tests to fail. To
> address these failures, we will switch to the next lowest display
> modes. Some higher display modes will be identified as insufficient
> for downscaling operations on multi-plane scaling. As a solution,
> we will implement a fix: when bandwidth is inadequate for current
> modes, the system will automatically attempt the next lower
> display mode.
>
> Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala@intel.com>
> ---
> tests/kms_plane_scaling.c | 72 +++++++++++++++++++++------------------
> 1 file changed, 39 insertions(+), 33 deletions(-)
>
> diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
> index 0048e6e51..1702ec8c8 100644
> --- a/tests/kms_plane_scaling.c
> +++ b/tests/kms_plane_scaling.c
> @@ -865,43 +865,49 @@ __test_planes_scaling_combo(data_t *d, double sf_plane1,
> int ret;
> int w1, h1, w2, h2;
>
> - mode = igt_output_get_mode(output);
> - w1 = get_width(mode, sf_plane1);
> - h1 = get_height(mode, sf_plane1);
> - w2 = get_width(mode, sf_plane2);
> - h2 = get_height(mode, sf_plane2);
> -
> - igt_plane_set_fb(p1, fb1);
> - igt_plane_set_fb(p2, fb2);
> + for_each_connector_mode(output) {
> + mode = &output->config.connector->modes[j__];
> + w1 = get_width(mode, sf_plane1);
> + h1 = get_height(mode, sf_plane1);
> + w2 = get_width(mode, sf_plane2);
> + h2 = get_height(mode, sf_plane2);
> +
> + igt_plane_set_fb(p1, fb1);
> + igt_plane_set_fb(p2, fb2);
> +
> + switch (test_type) {
> + case TEST_PLANES_UPSCALE:
> + igt_plane_set_size(p1, mode->hdisplay, mode->vdisplay);
> + igt_plane_set_size(p2, mode->hdisplay - 20, mode->vdisplay - 20);
> + break;
> + case TEST_PLANES_DOWNSCALE:
> + igt_plane_set_size(p1, w1, h1);
> + igt_plane_set_size(p2, w2, h2);
> + break;
> + case TEST_PLANES_UPSCALE_DOWNSCALE:
> + igt_plane_set_size(p1, mode->hdisplay, mode->vdisplay);
> + igt_plane_set_size(p2, w2, h2);
> + break;
> + case TEST_PLANES_DOWNSCALE_UPSCALE:
> + igt_plane_set_size(p1, w1, h1);
> + igt_plane_set_size(p2, mode->hdisplay, mode->vdisplay);
> + break;
> + default:
> + igt_assert(0);
> + }
>
> - switch (test_type) {
> - case TEST_PLANES_UPSCALE:
> - igt_plane_set_size(p1, mode->hdisplay, mode->vdisplay);
> - igt_plane_set_size(p2, mode->hdisplay - 20, mode->vdisplay - 20);
> - break;
> - case TEST_PLANES_DOWNSCALE:
> - igt_plane_set_size(p1, w1, h1);
> - igt_plane_set_size(p2, w2, h2);
> - break;
> - case TEST_PLANES_UPSCALE_DOWNSCALE:
> - igt_plane_set_size(p1, mode->hdisplay, mode->vdisplay);
> - igt_plane_set_size(p2, w2, h2);
> - break;
> - case TEST_PLANES_DOWNSCALE_UPSCALE:
> - igt_plane_set_size(p1, w1, h1);
> - igt_plane_set_size(p2, mode->hdisplay, mode->vdisplay);
> - break;
> - default:
> - igt_assert(0);
> + ret = igt_display_try_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET,
> + NULL);
This can be in the same line or else align with the parenthesis.
> + if (ret == 0)
> + break;
> }
> -
> - ret = igt_display_try_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
> -
> igt_plane_set_fb(p1, NULL);
> igt_plane_set_fb(p2, NULL);
> -
> - igt_skip_on_f(ret == -EINVAL || ret == -ERANGE,
> - "Scaling op not supported by driver\n");
I think we can retain the older message, new one is not giving any
further information.
Otherwise looks good to me.
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> + igt_plane_set_position(p1, 0, 0);
> + igt_plane_set_position(p2, 0, 0);
> + cleanup_fbs(d);
> + igt_skip_on_f(ret == -ERANGE || ret == -EINVAL,
> + "Unsupported scaling factor\n");
> igt_assert_eq(ret, 0);
> }
>
next prev parent reply other threads:[~2024-07-16 4:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-15 15:46 [PATCH i-g-t 0/5] tests/kms_plane_scaling: Improvise the scaling BW issues Naladala Ramanaidu
2024-07-15 15:46 ` [PATCH i-g-t 1/5] tests/kms_plane_scaling: Update the single plane scaling function arguments Naladala Ramanaidu
2024-07-16 4:11 ` Nautiyal, Ankit K
2024-07-15 15:46 ` [PATCH i-g-t 2/5] tests/kms_plane_scaling: Update the multi " Naladala Ramanaidu
2024-07-16 4:19 ` Nautiyal, Ankit K
2024-07-15 15:46 ` [PATCH i-g-t 3/5] tests/kms_plane_scaling: Improvise the planes scaling BW issues Naladala Ramanaidu
2024-07-16 4:32 ` Nautiyal, Ankit K [this message]
2024-07-17 14:53 ` Kamil Konieczny
2024-07-15 15:46 ` [PATCH i-g-t 4/5] tests/kms_plane_scaling: Improvise the plane " Naladala Ramanaidu
2024-07-16 4:39 ` Nautiyal, Ankit K
2024-07-17 15:00 ` Kamil Konieczny
2024-07-15 15:46 ` [PATCH i-g-t 5/5] HAX patch do not merge Naladala Ramanaidu
2024-07-15 16:12 ` ✗ CI.xeBAT: failure for tests/kms_plane_scaling: Improvise the scaling BW issues. (rev4) Patchwork
2024-07-15 16:18 ` ✗ Fi.CI.BAT: " Patchwork
2024-07-15 17:03 ` ✗ CI.xeFULL: " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2024-07-17 15:03 [PATCH i-g-t 0/5] tests/kms_plane_scaling: Improvise the scaling BW issues Naladala Ramanaidu
2024-07-17 15:03 ` [PATCH i-g-t 3/5] tests/kms_plane_scaling: Improvise the planes " Naladala Ramanaidu
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=b2a7614d-2df2-4df3-8034-7a09ee2bee2b@intel.com \
--to=ankit.k.nautiyal@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kunal1.joshi@intel.com \
--cc=ramanaidu.naladala@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