From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2060.outbound.protection.outlook.com [40.107.223.60]) by gabe.freedesktop.org (Postfix) with ESMTPS id B4C596E44A for ; Fri, 1 Oct 2021 08:53:37 +0000 (UTC) From: Stylon Wang Date: Fri, 1 Oct 2021 16:53:19 +0800 Message-ID: <20211001085319.789392-1-stylon.wang@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Subject: [igt-dev] [PATCH i-g-t] tests/kms_hdr: Fix failure to read output_bpc on AMD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: nicholas.choi@amd.com, rodrigo.siqueira@amd.com, Stylon Wang List-ID: The first commit with TEST_ONLY flag in bpc-switch subtests could in some cases cause reading of output_bpc on connectors to fail on AMD hardware. Use ALLOW_MODESET to prevent this from happening. Signed-off-by: Stylon Wang --- tests/kms_hdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_hdr.c b/tests/kms_hdr.c index 5b8529c8..a4983b9a 100644 --- a/tests/kms_hdr.c +++ b/tests/kms_hdr.c @@ -217,7 +217,7 @@ static void test_bpc_switch_on_output(data_t *data, igt_output_t *output, igt_plane_set_fb(data->primary, &afb); igt_plane_set_size(data->primary, data->w, data->h); igt_output_set_prop_value(data->output, IGT_CONNECTOR_MAX_BPC, 8); - ret = igt_display_try_commit_atomic(display, DRM_MODE_ATOMIC_TEST_ONLY, NULL); + ret = igt_display_try_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL); if (!ret) { data->w = afb.width; data->h = afb.height; -- 2.32.0