public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: jani.nikula@intel.com, petri.latvala@intel.com, martin.peres@intel.com
Subject: [igt-dev] [RFC 2/2] tests/kms_content_protection: Remove pre-existing SRM table before the test
Date: Wed, 27 May 2020 16:35:07 +0530	[thread overview]
Message-ID: <20200527110507.16902-3-ankit.k.nautiyal@intel.com> (raw)
In-Reply-To: <20200527110507.16902-1-ankit.k.nautiyal@intel.com>

This is to check the case with missing SRM, which should be treated as
device with no revoked keys.

Kernel patch fixing such a bug :
https://patchwork.freedesktop.org/patch/361346/?series=75939&rev=2

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 tests/kms_content_protection.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
index a6a64a28..257d3dd8 100644
--- a/tests/kms_content_protection.c
+++ b/tests/kms_content_protection.c
@@ -783,6 +783,10 @@ igt_main
 		data.drm_fd = drm_open_driver_master(DRIVER_ANY);
 
 		igt_display_require(&data.display, data.drm_fd);
+
+		/* Remove pre-existing srm table */
+		igt_assert_f(!remove("/lib/firmware/display_hdcp_srm.bin"),
+			     "Failed to delete previous srm table\n");
 	}
 
 	for (i = 0; i < ARRAY_SIZE(hdcp_protocol); i++) {
-- 
2.17.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2020-05-27 11:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-27 11:05 [igt-dev] [RFC 0/2] tests/kms_content_protection: Enhancements Ankit Nautiyal
2020-05-27 11:05 ` [igt-dev] [RFC 1/2] tests/kms_content_protection: Bifurcate tests into HDCP1.4 & 2.2 Ankit Nautiyal
2020-05-27 11:05 ` Ankit Nautiyal [this message]
2020-05-27 11:40 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_content_protection: Enhancements Patchwork
2020-05-27 13:41 ` [igt-dev] ✓ Fi.CI.IGT: " 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=20200527110507.16902-3-ankit.k.nautiyal@intel.com \
    --to=ankit.k.nautiyal@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    --cc=martin.peres@intel.com \
    --cc=petri.latvala@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