From patchwork Mon Jun 5 18:43:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harry Wentland X-Patchwork-Id: 9767201 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 6418460353 for ; Mon, 5 Jun 2017 18:43:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 580E327CF9 for ; Mon, 5 Jun 2017 18:43:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AFD1283C0; Mon, 5 Jun 2017 18:43:36 +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 B4F9527CF9 for ; Mon, 5 Jun 2017 18:43:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3E02D89C98; Mon, 5 Jun 2017 18:43:31 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0058.outbound.protection.outlook.com [104.47.42.58]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1230489C98; Mon, 5 Jun 2017 18:43:30 +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=wgLe+FS3xP+n0wa712f++McfifCMWqkAFDwFeK6VLdI=; b=qE902mUkaSsoYMVy6EjGeygI6OObhl0sJ/bQspaZCCpRgh2/BqWo1JHLgcdUOQA33GxIGOKeSKXZO596zRSbJsVEw2Zb03MNBfzCnONc+0AN2YZqjTSrZKd8w+j2cfjkUhHBgcC9Wn8xWKuzvYE0feLpysikHyBRzX7keWTwMdM= Received: from BN6PR1201CA0015.namprd12.prod.outlook.com (10.174.238.25) by SN1PR12MB0208.namprd12.prod.outlook.com (10.162.3.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Mon, 5 Jun 2017 18:43:25 +0000 Received: from BY2NAM03FT054.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::203) by BN6PR1201CA0015.outlook.office365.com (2603:10b6:405:4c::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10 via Frontend Transport; Mon, 5 Jun 2017 18:43:24 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; ffwll.ch; dkim=none (message not signed) header.d=none; ffwll.ch; 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 BY2NAM03FT054.mail.protection.outlook.com (10.152.85.30) 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; Mon, 5 Jun 2017 18:43:23 +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; Mon, 5 Jun 2017 13:43:23 -0500 Received: from localhost.localdomain (10.180.168.240) by satlexdag04.amd.com (10.181.40.9) with Microsoft SMTP Server id 14.3.339.0; Mon, 5 Jun 2017 14:43:22 -0400 From: Harry Wentland To: , , , , , Date: Mon, 5 Jun 2017 14:43:19 -0400 Message-ID: <20170605184319.16543-1-harry.wentland@amd.com> X-Mailer: git-send-email 2.11.0 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)(39850400002)(39450400003)(39400400002)(39410400002)(39860400002)(39840400002)(2980300002)(428002)(189002)(199003)(9170700003)(4326008)(33646002)(5003940100001)(8936002)(50226002)(101416001)(106466001)(53936002)(50466002)(305945005)(48376002)(2906002)(36756003)(47776003)(105586002)(6666003)(38730400002)(575784001)(77096006)(189998001)(50986999)(86362001)(5660300001)(49486002)(2201001)(478600001)(356003)(8676002)(81166006)(230783001)(1076002)(72206003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0208; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2NAM03FT054; 1:TRmllvrJ2zk/dI3TGXQ77MRdhyxWOYdC+iYPqtTz6ufMXMATA1hl8NC6JyAa5yua1Xiu5MtU67iJt+dlNdvWQeGaNP8QOmeg6Gxjio3xSz+J3LStoetKhSg6x6e79FH6SRXnZd/bVLEOqzs0OSM6XODSCTdD200lVKoIMiGW20+f9HFQwmk3y7WnV5ZmwgPiK2V03GHeRfSseb30nmhrqCHPvG/Ot9COqaW0UJBW+UsH7NbWGPfy24Jl5hZG7TZUDBtbGwnbdZisJIHjertfFsRyLv0ypoCDtan7kIh9zZVSiuwQWwn1hK1fqtNfbneMbwQwqLdYqLyajzK0oOFtbHnMI+WHsi+tOr6Wx8NuvRFQXkzyiXkdaOKssCRrP+AJyWoJ39OD9+pP/uQ3hM9Cm++PwTMAjY4l40hSPj2eTEPYYLa16JidQPAPTWPJi7nE4ORF3BbjziVSprvagsdyOhEuFSoHrqFLKWpNgB1IatAptG43VeFE4zAthvVkfc4UYYHyGGzZPHABZNWpESl7RzvrzenaYbW4q8q+0fhirtDqu341BQuZVlmP1epKReJY X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PR12MB0208: X-MS-Office365-Filtering-Correlation-Id: 28f3f5b6-507b-4cea-400e-08d4ac42bf32 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:SN1PR12MB0208; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0208; 3:F0IeJjcjVHc4orvauKj3j0Agd/OhXIg6POuqwIxkW0bJ/+NJl/Yity334ozVJFFDqYErYLk9ZEY8y6Mmp095uqdOS2gOhgBxvXVl3ZPOMucZkGxI0i44EJXuPKssvbQeHZbR174k1aa16o5YvESdULmBwNJke5ZmUT1uIUNAxckRsImudYwWOYjCk06XcK8cMrj3ml0ijI6WjUvi5I1826C5fuOo/Mn050SHtGU83K9Vo+468CREru5Y3rErb6lAgtQ3+zflI4cip9NmhghGDJOi4jxGfjJFPhwCmm4sjdwxLqYBwXw6BWUNB6/yA4B7GaQtHQEdMMmC7ThaTzue5bZH09gx50szaM4BRFIkVQDFlTAjbJKVlhoeTpceog9TyKRW6JZipaiptoMTSBYjl4If1QiW8T794yhwYSOJDUsAwwL8v3acnhnrjNpWjcVs+WaJqtdBtbrADEFFIthslTwq+dtuLxHyI7/C/HqroIOxWyrpaU4r1F3fdwUgksGd X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0208; 25:aTLMlAjU4K9SbyahTUsZM7by2YkxXcgm0jB+WmRaiXJ++i56RdBEvjUNE6eL/a5rwGNTh5pzOXrrS1In/KQ6MmflRyGzIkjMEJZj2fzgatCqElBmp6qoHCi/O18dSBY/SWa77eP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DumEsC942rO3MfIBgtJC26YVJXYilYsbbbgygUZ60T3toOxMY4bsHdHu1r9AOKtREZjjA+renvdqbCWDXJeyA7NFJEZrTYKmqSfz8Ji4Q2q7nEpl4c8jYIdu 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)(5005006)(8121501046)(13018025)(13016025)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93003095)(6055026)(6041248)(20161123558100)(20161123564025)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN1PR12MB0208; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN1PR12MB0208; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR12MB0208; 4:gNWDxzjtm+S35NGbVAUzCwk9HDy8FIfva/QuQrayOM?= =?us-ascii?Q?2wV2VBmrQvCWIs6lnynLxkqysp1dJKIs4XXdCQ4jGH4PrhvXQzXqnF926VOu?= =?us-ascii?Q?ScljFiv5A/HGw/P/0H5W5GrVkPiFDu7zjj1K+MMQqEbC/3l+6bqFiI3QQzE1?= =?us-ascii?Q?rJSuDHuretb2Jj0e4lMUZxFrFYZDt2hYD6vqZaZkE6Lzn3ym0YZyuz6uC6gz?= =?us-ascii?Q?9O0tWlJr6DabCKW4ly2Bj4TGekMvFrdZwHOxErSih5MgC8rz0/Ln0MNwZGfp?= =?us-ascii?Q?bm+g7YLpYir8ezmVNDxy5b39zhHEgR/eT5pw/REUsynsG+AgeiE3MZrCY1bL?= =?us-ascii?Q?3xoOZOP3babQF+nKpY9tbN7HxI8GNgttZ8Ji/NVjGyhcWh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rt0=3D?= X-Forefront-PRVS: 0329B15C8A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR12MB0208; 23:dm8AKr7OuExs1u3S8LOK0Gu0UVgAAyL5e+YuVev6v?= =?us-ascii?Q?5SjRaoDpdZkJOrkMDAa9K3ecu4MXJOZWNmU97inkdpYfrxKZm1BpArqsStRj?= =?us-ascii?Q?qQi1B5UzU7My+FxvC4n1j9tzepPIAsCncQGGyMG0Kcep+uKmnKLJc0SGhuTL?= =?us-ascii?Q?RAAx7tp757La1vUI49L2z4juETcMi8/+90XPvG0vX90YAfxNEzO2GhS6igeI?= =?us-ascii?Q?tEt96TINJQK4pKmKSUB9gq2HpqoIloUvUvKr5cxyGJtmg0JvIosTI5gYEIg8?= =?us-ascii?Q?+IG8zs7a9lqtjTfghPYZq+ableIjxeCOlvPVeYrDYyoF1ZgEXuNcvjh2IqPy?= =?us-ascii?Q?M+zIMiM1EYHpNV49N5GUFELYCaWYnNmOPPtbTeiElHs4oil/dC/+8VgJgCK2?= =?us-ascii?Q?PJKW5cX7EMDJdaFuloibTn77uvmtloYxfCnglcbFRG4V52fwUTbTYTdTsTGC?= =?us-ascii?Q?Z+1WxWtNgOh6Nbd7fy1PimFgY1iy4Ks85Cm1hH6Tr30Jrk2vs2JqDDDh9seD?= =?us-ascii?Q?Q+ABIcdJS8htmC+VlKcjxdUN5/4povzt6qUf+3aeFRlzgUHlbxVCVhU04X3V?= =?us-ascii?Q?BMO7y8tckqUGQ8seMYkk+g9o2ibGM3zGYd6g3o5ujAxHdO1xoie2EgqRDthE?= =?us-ascii?Q?/VyOhC3fOXb7GSKKfTjNLX6kYyyV0IAp/hfM2tpcoonLOZgFGexSoN2/HwqY?= =?us-ascii?Q?5rWWLtZQVMkfciflSHnjZTd32MMc4lGNpO3c2xwZ995LNFAqtZTnbhzAr9lU?= =?us-ascii?Q?CApqbiA9SqDyo4TKZNkBNFPe+XvmoFLVZZkrwfuWl7oMXlI+vO3HZIa2z8FG?= =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UKWcayCy1MzNMiGTvFVn2iuIUogl3mnBlJMLtCEMDC2bQffWOinKWHN5eI/rz17JIb5U2DvrckUS3a6IKe2mzmal4CYgIuimKbvQAEXYl4BNP0DhoI4SGAge/QN3AQtOlhL2HL5/UvF/pFhYXGzSx8bp X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2017 18:43:23.9767 (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: SN1PR12MB0208 Cc: Harry Wentland Subject: [Intel-gfx] [PATCH i-g-t] tests/kms_setmode: Dynamic crtc/connector combinations 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 Create crtc/connector combinations based on actual adapter information obtained from drmModeRes. Also set MAX_CRTCs to 6 for AMD GPUs. Signed-off-by: Harry Wentland Acked-by: Alex Deucher --- tests/kms_setmode.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c index 430568a1c24e..a7a48de44b0e 100644 --- a/tests/kms_setmode.c +++ b/tests/kms_setmode.c @@ -31,15 +31,13 @@ #include #include #include - +#include #include "intel_bufmgr.h" #define MAX_CONNECTORS 10 -#define MAX_CRTCS 3 +#define MAX_CRTCS 6 /* max combinations with repetitions */ -#define MAX_COMBINATION_COUNT \ - (MAX_CONNECTORS * MAX_CONNECTORS * MAX_CONNECTORS) #define MAX_COMBINATION_ELEMS MAX_CRTCS static int drm_fd; @@ -702,7 +700,8 @@ struct combination { struct combination_set { int count; - struct combination items[MAX_COMBINATION_COUNT]; + int capacity; + struct combination *items; }; /* @@ -716,7 +715,7 @@ static void iterate_combinations(int n, int k, bool allow_repetitions, int v; if (!k) { - igt_assert(set->count < ARRAY_SIZE(set->items)); + igt_assert(set->count < set->capacity); set->items[set->count++] = *comb; return; } @@ -751,6 +750,16 @@ static void test_combinations(const struct test_config *tconf, if (connector_count > 2 && (tconf->flags & TEST_STEALING)) return; + igt_assert(tconf->resources); + + connector_combs.capacity = pow(tconf->resources->count_connectors, + tconf->resources->count_crtcs + 1); + crtc_combs.capacity = pow(tconf->resources->count_crtcs, + tconf->resources->count_crtcs + 1); + + connector_combs.items = malloc(connector_combs.capacity * sizeof(struct combination)); + crtc_combs.items = malloc(crtc_combs.capacity * sizeof(struct combination)); + get_combinations(tconf->resources->count_connectors, connector_count, false, &connector_combs); get_combinations(tconf->resources->count_crtcs, connector_count, @@ -787,6 +796,9 @@ static void test_combinations(const struct test_config *tconf, free_cconfs: free(cconfs); } + + free(connector_combs.items); + free(crtc_combs.items); } static void run_test(const struct test_config *tconf)