From patchwork Thu Jun 8 19:10:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Li X-Patchwork-Id: 9776575 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5EF23601C3 for ; Thu, 8 Jun 2017 21:44:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4ECAD2843B for ; Thu, 8 Jun 2017 21:44:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4271628531; Thu, 8 Jun 2017 21:44:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7FE232843B for ; Thu, 8 Jun 2017 21:44:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0F07A6E43E; Thu, 8 Jun 2017 21:44:24 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org X-Greylist: delayed 7197 seconds by postgrey-1.35 at gabe; Thu, 08 Jun 2017 21:44:22 UTC Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0052.outbound.protection.outlook.com [104.47.34.52]) by gabe.freedesktop.org (Postfix) with ESMTPS id A6BE06E41F; Thu, 8 Jun 2017 21:44:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=bnLaFpJklk/U30LACvxlCaAdag/Nr0s9MPoFdLQXNQw=; b=IoO9yL+rDggjaJXTM8YWeZCYaWFVFpLGngR/FoQIdFXwGV5/g/uIZzFDNkjw7o3CO9yZKKb2eiX5ZcI3ez+Xm4mg3hOnVK5lDXJjeCaJTDYB3Gf5ZlZfd2dHX8hbp+3QRBYy9rLOAcmgbp/TEIVk/UjbkIPLXQNN69ZokUNr5bQ= Received: from SN1PR12CA0005.namprd12.prod.outlook.com (10.162.96.143) by CY1PR12MB0198.namprd12.prod.outlook.com (10.161.174.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Thu, 8 Jun 2017 19:11:02 +0000 Received: from DM3NAM03FT015.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::203) by SN1PR12CA0005.outlook.office365.com (2a01:111:e400:5174::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12 via Frontend Transport; Thu, 8 Jun 2017 19:11:02 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by DM3NAM03FT015.mail.protection.outlook.com (10.152.82.195) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1143.11 via Frontend Transport; Thu, 8 Jun 2017 19:11:02 +0000 Received: from SATLEXDAG04.amd.com (10.181.40.9) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server (TLS) id 14.3.339.0; Thu, 8 Jun 2017 14:11:01 -0500 Received: from leodev.amd.com (10.180.168.240) by satlexdag04.amd.com (10.181.40.9) with Microsoft SMTP Server id 14.3.339.0; Thu, 8 Jun 2017 15:11:00 -0400 From: To: , , Date: Thu, 8 Jun 2017 15:10:33 -0400 Message-ID: <1496949033-8843-1-git-send-email-sunpeng.li@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39410400002)(39400400002)(39850400002)(39450400003)(39840400002)(39860400002)(2980300002)(428002)(189002)(199003)(9170700003)(305945005)(8936002)(38730400002)(8676002)(450100002)(356003)(50226002)(36756003)(6666003)(6636002)(72206003)(2201001)(50986999)(478600001)(53936002)(86152003)(81166006)(101416001)(86362001)(230783001)(48376002)(189998001)(5003940100001)(33646002)(53416004)(77096006)(4326008)(47776003)(105586002)(2906002)(2876002)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0198; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT015; 1:E7BJe0p0cBMVQwPZmL5SHRFSnYFoU4Q2yxYi1gceXS48u//KAx5eHtQiuXsdROIf4YslsoSLKO2vF1MzteXMcf8/RjnH7XvqBpVgYZu85c+k8vSY2HqJ6Gt682UEorq/18WL+fX+/VTqix6+DwAGHhZGtF14saPpBhFgPa3gXdGQ4TKn9tu0T5rbQGRQ2hoYN6jr7IJuvY1xfIEl+a7+eK09ZHV3U2zzaZ3sHHerD3YwB3w4v7BKISG/vUFexDm7DC07YoHNa9lOWJPUX+sSpQ4aBUKDTyXHSf9GG1Fv7dQv21M+yvBO5C+LUWKn/SF7+WiaXkpO0ItIA/ce0S6vl/YovSRqBWfCik7UwTPoiMYSp5BE61GjURg+EsGeGygLJd9EbOnB+UTVG9Ao5fS7CRBDW/0XjepCGlGXJD+kKdEvU/nYuZG7G4Gug3LQ6v/OxlIe6gh62jVNIKKxs+S/il/IZttWBd3u4m8uHJA5qrpfgnPUHaH3XAa+hHSgBOvlina0LXRYJMhf5YSEKzoNnw== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR12MB0198: X-MS-Office365-Filtering-Correlation-Id: 21e7891b-bb66-40ec-9b95-08d4aea21abb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:CY1PR12MB0198; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0198; 3:DA08tCuiuQpRTtItTTE8LN1oUtjBj9aE3FvsyPNXBi469k4Z6RALfjUNE1uT5/080kLLlSxvYzUGeHbaj/DbQ3kzvxkUZX3NDm0T+pqfI1av16LTukSmTj4yj7/SWYvk3wRfeyKzBCbNQx6zx/zj3a1hSR4v8jLc30Ib+wB4REwhW6RGq1YGpsnM3xgSlXmWwA3lCDxYmd8WbNFICzEZYBqjO/+YVKI0AROclxkIluYDNkdJ7TMIb44g7ZxDWERe0qd+PsVglWrXb67xYij4gLxVi7aQkhfaZpz5gzujEzySUW8DQ+FR7d29T/lVx3ajB6dsxhqlCeCFPGRyB2QldVlkVM0/tlcY56yK8wYhYQV7hInJoSWPuWtf037zOyjOiJUHF7gXQUDIbGnD4bK3oHQdPacdMRWG6z4BsIXZdY88GxbWN4SAsjLW/Yk7+6N3jF1QK2bmI0LnWQt++WUn6w== X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0198; 25:GuExd4RxzpgLPuiC98b1b5CwTr1RadvrJ9pTzdRzXb8bSv/cc2DYUxqlplINQljvl8jZrBp2kzLUed2G6+1Ts5uujitYuD8Unlx51vt6rs5NdIQLy1y5z5uJG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cmJpKTfKa1ZU0ZFClTovlVzDvygqygkuX1Jc6hcOkODMbuNGtZ0tB4sdBawSs0WICIy44yzs3rwWpPjy16ynnDaTT4y5rF7ALRQg1uEcsdS9cfTg4NlQ0Ja1E7dvWLGx7QEc/OUUL8GJgO X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93003095)(6055026)(6041248)(20161123560025)(20161123558100)(20161123564025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR12MB0198; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR12MB0198; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR12MB0198; 4:/Ago0Ynk/uyIMUq0qQqSXSyPNQSDHd4REXzwDtkzDX?= =?us-ascii?Q?MStQetOI/0eD3LtFGGsMj+7iKY2Su1CWNe4MSPMLsrcoVuONtcTAGTqnjOHZ?= =?us-ascii?Q?+Dk7HApzEfCoeK44DAFueJ80Lzp1pg4Xm7jpACHdpdXqDBvh9fzM5LpwF937?= =?us-ascii?Q?/6HLl8+hrrC3qSKNQ77yMLctctLT6IZdu7jhMgP4hZUQzfculBs9Bz8LWvCq?= =?us-ascii?Q?IjoEP/7DwX/O4I4/O2YL9cqKxg4UTP/WgcclH1OLYLpZVbhwR/5BuQFoX/R3?= =?us-ascii?Q?NYcy1iOcVbs5C4Gq4vdyI4v9FyRr0tjzPA73Zu3EaYHGYNB1hWNpfe8JjHkc?= =?us-ascii?Q?zQLFByt947T+mYHc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us-ascii?Q?ZQf4Nm/5wOrnHu86I=3D?= X-Forefront-PRVS: 0332AACBC3 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR12MB0198; 23:sbZ5mD2FFzmI1xBXyt0UpfmOWDbN7iikHqNURjys9?= =?us-ascii?Q?h7M/jd5bWZv7FtO3DhC4SlCiufkYYWsV4rqQLNUpifLJi2h03PAw2pIloTfR?= =?us-ascii?Q?H6FPkjMcFvrqPAYiksEvhdBHKP77cdXmDJihi1v93JZrT0DqDkp15bwRWrXj?= =?us-ascii?Q?kvSoCRrSTEszb32h6SyWmig4vpeDei7HF9DGDjdMZKBMrioOEv6hdzdwr77H?= =?us-ascii?Q?T7Db82WgeFsELRYFKcAxz6bi0hHyHO2MlgLSmX2j51jgRY1RT0pC1r2Rh9LB?= =?us-ascii?Q?0l8UHj5feTQHbzHccUuQmwb1FgZfS9u3oKsXjdNXSOMuqDhUhXHfCB0VxF0t?= =?us-ascii?Q?V0KF1Sw1RosoqKn8WZJPDVd4I/es83aDzaO7SYmq0/aALIN58aPov961WFhP?= =?us-ascii?Q?t2Wh80gf91MrXY+9aFaMi/kziOZ9GgvQ7I1psMzC5kszeDUc0zfLoALJ2P++?= =?us-ascii?Q?KNap3iAp4r8zOQAda5hEuc2vrrosEjOnPcsDBwuJ7mxQSCU5kJUeUZqOXS3P?= =?us-ascii?Q?1lGkQ1jy1zBMo/9IGz/C0QavIpOvnyewmPKqFTDzOlhcmBQXhXjrF+TxVJaO?= =?us-ascii?Q?aRkpdsui/yskT7gBv3NmkdNPPY/e5OTwS5k0Q/aCAJu7lZjYRuU5nwVtFnlL?= =?us-ascii?Q?+q03IQ4dNF75dYECTQwJVn+UiTrjH49A0wtmOHdANXwdHTU3xnKmUm7GbNMr?= =?us-ascii?Q?WjphIlqyGt/Vo+baCPGWZTe6kFjYo4tYOR1NWsn7u355rKS98v4mp9y8YXqn?= =?us-ascii?Q?zKmf97uy9qDXUHG/ptcFv3hJTcb2MRm16xXd5cM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lARQP5zTYvAZY+Lx4vd/9DINYPIm9lPkk5aG/Q3arksRTXzJX6u7IwIqXvdC/oI+U97z2x6u0QaudcU2m8UPJ/mShh2C1PiVCSMN+OYN9u/Tf/Ecwb7jrzfVNcepy+NP5jxwhUK4glFUQZr0QmMX6QCxepRA6TGo5 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2017 19:11:02.1113 (UTC) X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0198 Subject: [Intel-gfx] [PATCH i-g-t] tests: Increase value of I915_MAX_PIPES to 6 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: "Leo (Sunpeng) Li" Increasing max pipe count to 6 to support AMD GPU's. Since some tests' behavior depends on this value, small changes are made to remove this dependency: * kms_ccs: Early abort if wanted_pipe is out-of-bounds. * kms_concurrent: Check if pipe is within bounds first. * kms_pipe_color: Prevent skipping of subsequent tests by placing generated tests in a 'igt_subtest_group'. * kms_plane: Move pipe and plane index checking to subtest group level. Signed-off-by: Leo (Sunpeng) Li Acked-by: Alex Deucher --- lib/igt_kms.c | 10 ++++++++-- lib/igt_kms.h | 3 +++ tests/kms_ccs.c | 2 ++ tests/kms_concurrent.c | 2 +- tests/kms_pipe_color.c | 3 ++- tests/kms_plane.c | 8 +++++--- 6 files changed, 21 insertions(+), 7 deletions(-) diff --git a/lib/igt_kms.c b/lib/igt_kms.c index c77716b..1bb62f0 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -319,12 +319,12 @@ const unsigned char* igt_kms_get_alt_edid(void) */ const char *kmstest_pipe_name(enum pipe pipe) { - const char *str[] = { "A", "B", "C" }; + const char *str[] = { "A", "B", "C", "D", "E", "F"}; if (pipe == PIPE_NONE) return "None"; - if (pipe > 2) + if (pipe > 5) return "invalid"; return str[pipe]; @@ -344,6 +344,12 @@ int kmstest_pipe_to_index(char pipe) return 1; else if (pipe == 'C') return 2; + else if (pipe == 'D') + return 3; + else if (pipe == 'E') + return 4; + else if (pipe == 'F') + return 5; else return -EINVAL; } diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 9567a26..8f7c2bb 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -54,6 +54,9 @@ enum pipe { PIPE_A = 0, PIPE_B, PIPE_C, + PIPE_D, + PIPE_E, + PIPE_F, I915_MAX_PIPES }; const char *kmstest_pipe_name(enum pipe pipe); diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c index d829152..0795e3a 100644 --- a/tests/kms_ccs.c +++ b/tests/kms_ccs.c @@ -250,6 +250,8 @@ static void test(data_t *data) int valid_tests = 0; enum pipe wanted_pipe = data->pipe; + igt_skip_on(wanted_pipe >= display->n_pipes); + for_each_pipe_with_valid_output(display, data->pipe, data->output) { if (wanted_pipe != PIPE_NONE && data->pipe != wanted_pipe) continue; diff --git a/tests/kms_concurrent.c b/tests/kms_concurrent.c index b34540b..db06a37 100644 --- a/tests/kms_concurrent.c +++ b/tests/kms_concurrent.c @@ -351,8 +351,8 @@ run_tests_for_pipe(data_t *data, enum pipe pipe) igt_fixture { int valid_tests = 0; - igt_require(data->display.pipes[pipe].n_planes > 0); igt_skip_on(pipe >= data->display.n_pipes); + igt_require(data->display.pipes[pipe].n_planes > 0); for_each_valid_output_on_pipe(&data->display, pipe, output) valid_tests++; diff --git a/tests/kms_pipe_color.c b/tests/kms_pipe_color.c index fd58ac8..da49eb1 100644 --- a/tests/kms_pipe_color.c +++ b/tests/kms_pipe_color.c @@ -1180,7 +1180,8 @@ igt_main } for (int pipe = 0; pipe < I915_MAX_PIPES; pipe++) - run_tests_for_pipe(&data, pipe); + igt_subtest_group + run_tests_for_pipe(&data, pipe); igt_subtest_f("invalid-lut-sizes") invalid_lut_sizes(&data); diff --git a/tests/kms_plane.c b/tests/kms_plane.c index e1bd467..34418ca 100644 --- a/tests/kms_plane.c +++ b/tests/kms_plane.c @@ -354,9 +354,6 @@ test_plane_panning(data_t *data, enum pipe pipe, int plane, igt_output_t *output; int connected_outs = 0; - igt_skip_on(pipe >= data->display.n_pipes); - igt_skip_on(plane >= data->display.pipes[pipe].n_planes); - for_each_valid_output_on_pipe(&data->display, pipe, output) { test_plane_panning_with_output(data, pipe, plane, output, flags); @@ -369,6 +366,11 @@ test_plane_panning(data_t *data, enum pipe pipe, int plane, static void run_tests_for_pipe_plane(data_t *data, enum pipe pipe) { + igt_fixture { + igt_skip_on(pipe >= data->display.n_pipes); + igt_require(data->display.pipes[pipe].n_planes > 0); + } + igt_subtest_f("plane-position-covered-pipe-%s-planes", kmstest_pipe_name(pipe)) { int n_planes = data->display.pipes[pipe].n_planes;