From: "Reddy Guddati, Santhosh" <santhosh.reddy.guddati@intel.com>
To: "Kandpal, Suraj" <suraj.kandpal@intel.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Cc: "B S, Karthik" <karthik.b.s@intel.com>,
"Thasleem, Mohammed" <mohammed.thasleem@intel.com>,
"Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
Subject: Re: [PATCH i-g-t v1] tests/kms_content_protection: check sink capability after modeset
Date: Mon, 9 Mar 2026 11:37:37 +0530 [thread overview]
Message-ID: <6103cf07-7e83-4395-b646-36e2adfbdc7c@intel.com> (raw)
In-Reply-To: <DM3PPF208195D8DDE1FA1963B0F504861F8E37EA@DM3PPF208195D8D.namprd11.prod.outlook.com>
On 02-03-2026 08:24, Kandpal, Suraj wrote:
>
>> Subject: [PATCH i-g-t v1] tests/kms_content_protection: check sink capability
>> after modeset
>>
>> The loop checks HDCP sink capability too early, this makes test skips on multi
>> display panels with "Sink has no HDCP support"
>> on valid connectors.
>>
>> Fix this by validating output/crtc combo, do modeset and then check for sink
>> capability.
>>
>> Fixes: a85208a45759 ("tests/kms: Use igt_crtc_t instead of enum pipe, part
>> 4")
>> Signed-off-by: Santhosh Reddy Guddati <santhosh.reddy.guddati@intel.com>
>> ---
>> tests/kms_content_protection.c | 13 +++++++------
>> 1 file changed, 7 insertions(+), 6 deletions(-)
>>
>> diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
>> index 2c2ffa150..1f1f45fe6 100644
>> --- a/tests/kms_content_protection.c
>> +++ b/tests/kms_content_protection.c
>> @@ -725,21 +725,22 @@ test_content_protection(enum igt_commit_style
>> commit_style, int content_type)
>>
>> for_each_connected_output(display, output) {
>> for_each_crtc(display, crtc) {
>> - if (!output_hdcp_capable(output, content_type))
>
> This is weird that after a modeset that the sink starts showing HDCP capable.
> Does output_hdcp_capable belong in the outer loop instead of the inner loop
> Which iterates over crtc. Why keep checking output_hdcp_capable for each crtc if the
> Output remains same.
> I think optimization in that line could fix this issue with lot less code movement
My Bad! There are two issues here.
1. After rechecking I observed that the regression is not because of the
mentioned Fixes, but it is because of the (86971fa4d531
"tests/kms_content_protection: Check for HDCP before setting displays" )
2. As you mentioned, will move the checks to outer loop, This will avoid
printing log messages repeatedly for unsupported outputs per crtc but
this wont fix the current issue.
I will work on this and float a new revision.
Thanks,
Santhosh
>
> Regards,
> Suraj Kandpal
>
>> + igt_display_reset(display);
>> + igt_output_set_crtc(output, crtc);
>> + if (!intel_pipe_output_combo_valid(display))
>> continue;
>> +
>> + modeset_with_fb(output, commit_style);
>> +
>> if (is_output_hdcp_test_exempt(output)) {
>> igt_info("Skipping HDCP test on %s, as the
>> panel is blocklisted\n",
>> output->name);
>> continue;
>> }
>>
>> - igt_display_reset(display);
>> - igt_output_set_crtc(output,
>> - crtc);
>> - if (!intel_pipe_output_combo_valid(display))
>> + if (!output_hdcp_capable(output, content_type))
>> continue;
>>
>> - modeset_with_fb(output, commit_style);
>> if (data.is_force_hdcp14)
>> set_i915_force_hdcp14(output);
>>
>> --
>> 2.34.1
>
next prev parent reply other threads:[~2026-03-09 6:07 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-26 16:47 [PATCH i-g-t v1] tests/kms_content_protection: check sink capability after modeset Santhosh Reddy Guddati
2026-02-27 0:23 ` ✓ i915.CI.BAT: success for " Patchwork
2026-02-27 1:02 ` ✓ Xe.CI.BAT: " Patchwork
2026-02-27 7:39 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-03-02 2:54 ` [PATCH i-g-t v1] " Kandpal, Suraj
2026-03-09 6:07 ` Reddy Guddati, Santhosh [this message]
2026-03-16 4:04 ` [PATCH i-g-t v2] tests/kms_content_protection: Get hdcp capable outputs before modeset Santhosh Reddy Guddati
2026-03-16 4:26 ` Kandpal, Suraj
2026-03-16 5:13 ` [PATCH i-g-t v3] tests/kms_content_protection: Get HDCP " Santhosh Reddy Guddati
2026-03-16 14:24 ` S, Sowmiya
2026-03-16 5:43 ` ✓ Xe.CI.BAT: success for tests/kms_content_protection: check sink capability after modeset (rev2) Patchwork
2026-03-16 5:56 ` ✓ i915.CI.BAT: " Patchwork
2026-03-16 6:42 ` ✓ Xe.CI.BAT: success for tests/kms_content_protection: check sink capability after modeset (rev3) Patchwork
2026-03-16 6:45 ` ✓ i915.CI.BAT: " Patchwork
2026-03-16 8:59 ` ✗ Xe.CI.FULL: failure for tests/kms_content_protection: check sink capability after modeset (rev2) Patchwork
2026-03-16 12:31 ` ✗ i915.CI.Full: " Patchwork
2026-03-17 3:42 ` [PATCH i-g-t v4] tests/kms_content_protection: Get HDCP capable outputs before modeset Santhosh Reddy Guddati
2026-03-17 3:54 ` S, Sowmiya
2026-03-17 13:53 ` ✓ Xe.CI.BAT: success for tests/kms_content_protection: check sink capability after modeset (rev4) Patchwork
2026-03-17 15:05 ` ✓ i915.CI.BAT: " Patchwork
2026-03-18 16:56 ` ✗ i915.CI.Full: failure " Patchwork
2026-03-18 22:13 ` ✗ Xe.CI.FULL: " Patchwork
2026-03-19 6:41 ` [PATCH i-g-t v5 0/2] Get HDCP capable outputs before modeset Santhosh Reddy Guddati
2026-03-19 6:41 ` [PATCH i-g-t v5 1/2] tests/kms_content_protection: " Santhosh Reddy Guddati
2026-03-19 6:41 ` [PATCH i-g-t v5 2/2] tests/kms_content_protection: Handle EDID lookup failures Santhosh Reddy Guddati
2026-03-19 10:50 ` Kandpal, Suraj
2026-03-23 2:57 ` Reddy Guddati, Santhosh
2026-03-19 8:55 ` ✓ Xe.CI.BAT: success for tests/kms_content_protection: check sink capability after modeset (rev5) Patchwork
2026-03-19 9:13 ` ✓ i915.CI.BAT: " Patchwork
2026-03-20 2:01 ` ✗ i915.CI.Full: failure " Patchwork
2026-03-20 10:01 ` ✗ 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=6103cf07-7e83-4395-b646-36e2adfbdc7c@intel.com \
--to=santhosh.reddy.guddati@intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=karthik.b.s@intel.com \
--cc=mohammed.thasleem@intel.com \
--cc=suraj.kandpal@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