From patchwork Wed May 31 20:22:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harry Wentland X-Patchwork-Id: 9758047 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 97B1B602BF for ; Wed, 31 May 2017 20:22:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B1D528445 for ; Wed, 31 May 2017 20:22:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F6FC2845E; Wed, 31 May 2017 20:22:29 +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 01E3D28445 for ; Wed, 31 May 2017 20:22:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5B9A26E1D8; Wed, 31 May 2017 20:22:26 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org X-Greylist: delayed 82131 seconds by postgrey-1.35 at gabe; Wed, 31 May 2017 20:22:24 UTC Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0078.outbound.protection.outlook.com [104.47.38.78]) by gabe.freedesktop.org (Postfix) with ESMTPS id EAA786E1D0; Wed, 31 May 2017 20:22:24 +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=1K9QJ6cUvr4g9kJnh9OxEILhIzvN8qvRduLiFB6rrOY=; b=FtzdcpsUBCvuAejI+bL6IrwAi04w5xKM6wfttTgfxak+aBPXhxfFasFCJ0oG1oO7LYyaTlDWeyApflkJ64hY+604WvBDX6FF9CaBI/LzSjK/2N8enMKRzRS6ZK01vHWZCjC8CNcZOPhI/6Fa00uRC4WKil3AzVKoeSEB11ftycs= Received: from SN1PR12CA0012.namprd12.prod.outlook.com (10.162.96.150) by SN1PR12MB0144.namprd12.prod.outlook.com (10.162.3.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Wed, 31 May 2017 20:22:22 +0000 Received: from CO1NAM03FT060.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::208) by SN1PR12CA0012.outlook.office365.com (2a01:111:e400:5174::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Wed, 31 May 2017 20:22:22 +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 SATLEXCHOV01.amd.com (165.204.84.17) by CO1NAM03FT060.mail.protection.outlook.com (10.152.81.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12 via Frontend Transport; Wed, 31 May 2017 20:22:21 +0000 Received: from SATLEXDAG04.amd.com (10.181.40.9) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server (TLS) id 14.3.339.0; Wed, 31 May 2017 15:22:20 -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; Wed, 31 May 2017 16:22:20 -0400 From: Harry Wentland To: , , , , Date: Wed, 31 May 2017 16:22:12 -0400 Message-ID: <20170531202212.25244-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)(6009001)(39450400003)(39400400002)(39850400002)(39860400002)(39840400002)(39410400002)(2980300002)(428002)(9170700003)(189998001)(106466001)(53936002)(8936002)(50466002)(50226002)(48376002)(4326008)(105586002)(49486002)(2201001)(47776003)(86362001)(77096006)(6666003)(5003940100001)(5660300001)(50986999)(1076002)(305945005)(8676002)(81166006)(478600001)(72206003)(101416001)(356003)(38730400002)(2906002)(33646002)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0144; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT060; 1:iZwsYcj/4AEx54asxx+LD2hXJcuYJAtiLr6QYPCK2Z9q+twCiYjd7zI1V6BSgAbDAzLAJgablBm+ZPdfYXRd2xBpPMrObTDvL9O5VXUbRnlChXHqTaZytFkRNc4wGDZUg8hYj3negi0C1agWe7u56YCIMOZ4MBHpaLrhc3EDiKb+2i3auId8zVpOlU81x7qv31u/aoErdOU31CHefrtWmV4mBCqpcNcMrrn0Nbs8mblpuXK6I49Nt8zlf7jp7wy1MycNMPGZY9Q3vTFc4NtD8F0GxWxGtl5123uJIik8Y19EbfsaAUI6gdQbDf5gJM0lkyT9hFbsuCSoNyFxxIqU0x2mpbRvNfOypcE+9k34y+CMvwkS52zs08iKDxVv/DWRs+oQ2CA+6Aq8TKLVENHvoa/e9o/x3rpcfK0gSISc7wJCMfdxt9RYx9STreNfYqLDdzTlLrQhsVx+89iIu2DnFsYGeUzvqGZ3ok7ECz35PQasTJgvq2h3ZRgSi7HnG9O6fmSDwmWk9Zn81c+5qx3TGkm3jDXYSsdQ7zfTzYxgaKBl6E0amM0wguwOuhoLKxrx X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PR12MB0144: X-MS-Office365-Filtering-Correlation-Id: 8ee0c7b8-2677-4251-0d45-08d4a862be4f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:SN1PR12MB0144; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0144; 3:nDy/goxhWYKSYcA9KdJjP+mlxoGj87FZPjLCDpQq74Yw/+SBNTXaYnfGicfJcofsyvHzdk3/oaVMXXddwZgunnes9rc4pID4eChDcbkp2oQ8Q0uHJTjRVzivXf4nD10uF8JMwL0AS/cKrEESnbzzQ9AQM/JGWj8PJgQGUwyoSGZ2uShPZM8Yl7ICAdEofb13D69DDZXhKaXD5VycQRYZ5zQ+lZbFAAukLnMr0KUyDDWL0/fTbXxb+m7YU4ehpKhMHxkWr0IXtAmdi599EALDDQZxQD9WcufTuKKiqQSVE6jNsvMa7YH4zhI9X9od1GzbUYDhPQoLm5Aub9HdLKi1j32+pLHtQS/BXNdVByN9Y/aO7nuTsoSAkpFdRPmF6rFCsCBMqB6EaHoahvOrJTRrOfRD8IjXc0bNhL2dh6eTDIGvYZ35ApH8HTdp+3yTEhSI8nSwcV311n09S9WK8jzEF7cd3bZrTBvbp81Btf0g77SDCV9vfSIsXayy+vucsnUK X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0144; 25:H+xYvslprgn5RVrk5F8bGlrBfGA71D8ELPPkbcy3VWJyzpHxvi+ogPF40HG19JXR5mvdq/sUhTff5v7MVQ2sKnufeMMFPI/9+p35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OuJdSqzZNaFpA6xquLmrDinxJ4T0wQEug8nAN7vN2ASsWq+lZeGx5azstWdANMqS8opuJPppW4OITNdwckpCprp8+SDtm9gf1HY1DonVhkBy1az4cGqeUUDiHEtvCndr3ZxO1H X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700073)(100105000095)(100000701073)(100105300095)(100000702073)(100105100095)(6040450)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(93006095)(93003095)(100000703073)(100105400095)(10201501046)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123560025)(20161123555025)(20161123564025)(6072148)(100000704073)(100105200095)(100000705073)(100105500095); SRVR:SN1PR12MB0144; BCL:0; PCL:0; RULEID:(100000800073)(100110000095)(100000801073)(100110300095)(100000802073)(100110100095)(100000803073)(100110400095)(100000804073)(100110200095)(100000805073)(100110500095); SRVR:SN1PR12MB0144; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR12MB0144; 4:vDeNdZYzS9BqC/dl6H0flLZRNnowRoz+AKeRLQ9PWY?= =?us-ascii?Q?eNFf/16vUgT8XfuBMNXj/1CpXu6SX9HJzFLymhphB13wGNepZGIf7NyMHxEW?= =?us-ascii?Q?9RBHEWL1wN57ApACI3Dmv7ZIeghpzc8Tj7Q0e4aaYsYW2y4G9slaeX+Pn8aR?= =?us-ascii?Q?LixoPVt+zaltVNst+qnaRcLq16ZXdMeGcXQjEh8fM1avKUd1JDTY61JxXaO3?= =?us-ascii?Q?5zy7JuRcsr2X5pphMNGJfC31HWhqzBbMfJd6/wCSPGm7X8AAykuFghV+CxNj?= =?us-ascii?Q?LNS4injO6nPGgU4nuGcobrt1PFbGseW0zEBywxKXLJDi1V9cq2gnxfzqtgTm?= =?us-ascii?Q?G1YeLBy/5+yQMYdpFNDI9GQfDBmMjIfMGr4P5g4/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EyIMa1X66n3g=3D?= X-Forefront-PRVS: 0324C2C0E2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR12MB0144; 23:kSIr0L44eI2VO2oatk6Gba9WlR5EDUv8l5/c4hY16?= =?us-ascii?Q?mESujQvdrfxMnHV9MqdJzycfo5suhWaJmBWRBSTqfAS1bqgiFiQHZa6Oxzfk?= =?us-ascii?Q?PmIlhx9+m9MRbIrxBtsCJetX9AZ7YuuAAmyA2Y2h3GfwnWzv9QWv618OdHBi?= =?us-ascii?Q?peCWT3+dGETdcDj8Ae3foAYIOg12XKqPrsaL9CTBZCM7o8oDHIRD7FUlme3i?= =?us-ascii?Q?mjK+7K+hPYQwy4wZiSrYlZQpUb59ZYM8+Z6PSPVynGAokUHiRpE/6dOpPnHj?= =?us-ascii?Q?KQC8obkQFrx+7xeoK05LbHWnqtCEpe43bsaQ6O11NLLrRYPu0ARf59HFODwl?= =?us-ascii?Q?ahtJi3QYuBD3w+pgr2Y6j6JbmQ6ugAnqZK1qrX2/QFaLQiLaVvNk5nPsqgA4?= =?us-ascii?Q?jAk0OjElt3vBeX7xZIq5EtqkGes+xLTrpqChv1LfrCoVeS/HN5dULGWjD5a3?= =?us-ascii?Q?lM9VXwrfJ62VMknPkxmhesZZCcYUhS3jHOzSKbJ7YNHsBAut2h/D/Uki9ul0?= =?us-ascii?Q?nbLCPH5zH7wHlmBMQPGf6w0wyd2FytI7V15gARkCiC9PxG95HjGSMhwCImO7?= =?us-ascii?Q?1/fV3uRdWeI7a5uqwpTs8bA1SNuhMHJDyXjKMcPQkLODnMffYkrwvGiY60zZ?= =?us-ascii?Q?QnlcdiePhXonkNO0dDz5cu++RTVoZXE4D5hNGJceNsxKw/TUVuIm3vDybJLz?= =?us-ascii?Q?6Y93lgXvxHOygnntZsKVMI+oS4YyO1cvx0KybGhL0LpCuNGEafDv8EFd4gwN?= =?us-ascii?Q?2SzVAHgDgbWI7Gj1jnvD89UQPO2Uhc/FlKp7/7WhH4fq8BFl8y4ahbs0igpG?= =?us-ascii?Q?JhZItb61ipQ1/+AGIMvJNlm5A31WlS7CS6K5TI4o57McwgzI1PQ+Z4/1x8U4?= =?us-ascii?Q?kXSq7d2GZ0M89ayUxeEsEITW1kQQxpzcq5wbfhVLDR+D7YizDYlqBqupEyKp?= =?us-ascii?Q?o1eyzdT1p538XTUR+QZadfavK/gOcQEwChbsybB+wSRdGZzESS4JZ18/+PM0?= =?us-ascii?Q?vZqNITIiqn93VpkuXcIFiLCWJS/arKyb46aQv43J6xR/A=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0144; 6:gOxzwTCTfctVZinUfiP6df5qUUalCxVu+X/V2g27wgP0eeL37fIOfcbxnG3Sg12tTWzi31fLxqxYDgLR0Molrop8e1uRW3HPjCFqm/LiOVWigL7EksSCRHJIxv+4MCSmN8LtKv/TbSwcTC0Aw1U16EBJsUQfYl66EBNxPPTJQXmh7gnNxQjE896xcwd9s1HgYRL5xjEqkogO+uvr678lo+YSMcx+zXd/f5xhWdBaH3jv9SL02c+0puBM8jBcAFGWdlUMHo68giDIMwMnJwWuecd/UwVA842NGyDF331amYnDWkY4BBzFiWCLbZB9+ksHTQtmomm+Mk69qwQbLwoUd4kCneXXkIHiDnly+HE4ajPtm0berLHCHqSuBzuYotzHV//KYzhPPpNmvwqGblqGZiRfEwyVpIWQqXP7NxeT28yYZ1+8lOqE69kVFHIy4WNgjZRpc0Y/8PHy25XmRLlbXUq2XYKo/rx6NQZBK0HuW7Ge+QN/XwALwd3BexHlrELqAzzYs492gSEmI0qqOcWMGS+SKh+Fl4CwNtbyanrNPUg= X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0144; 5:+1/LK0JZokJ2EabUBAXn2F+ovvL2H53kECyjC5JrcNHUFPv95TU5RJB6YVcOWny6Nx7m0IQUzAUz969i26AuPZ50lcqM8RS2ijK6sFPKoL6eWVi31LU9HKkXoP/ZFac2URK+S0LV9ZjZR1h57h7ir2s8HgT3RIq6D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Bv4KcDgHWZV49fm6vKf2QlX5s7PXe1OSWjBiDYHkJR4T2HK0LXZp88K/2Xp63 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 20:22:21.6851 (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=[SATLEXCHOV01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0144 Cc: Harry Wentland Subject: [Intel-gfx] [PATCH] 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 --- tests/kms_setmode.c | 52 ++++++++++++++++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 20 deletions(-) diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c index 430568a1c24e..3673cfb58951 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; } @@ -741,61 +740,74 @@ static void get_combinations(int n, int k, bool allow_repetitions, } static void test_combinations(const struct test_config *tconf, - int connector_count) + int crtc_num) { struct combination_set connector_combs; struct combination_set crtc_combs; struct connector_config *cconfs; int i; - if (connector_count > 2 && (tconf->flags & TEST_STEALING)) + if (crtc_num > 2 && (tconf->flags & TEST_STEALING)) return; - get_combinations(tconf->resources->count_connectors, connector_count, + 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, crtc_num, false, &connector_combs); - get_combinations(tconf->resources->count_crtcs, connector_count, + get_combinations(tconf->resources->count_crtcs, crtc_num, true, &crtc_combs); igt_info("Testing: %s %d connector combinations\n", tconf->name, - connector_count); + crtc_num); for (i = 0; i < connector_combs.count; i++) { int *connector_idxs; int ret; int j; - cconfs = malloc(sizeof(*cconfs) * connector_count); + cconfs = malloc(sizeof(*cconfs) * crtc_num); igt_assert(cconfs); connector_idxs = &connector_combs.items[i].elems[0]; ret = get_connectors(tconf->resources, connector_idxs, - connector_count, cconfs); + crtc_num, cconfs); if (ret < 0) goto free_cconfs; for (j = 0; j < crtc_combs.count; j++) { int *crtc_idxs = &crtc_combs.items[j].elems[0]; ret = assign_crtc_to_connectors(tconf, crtc_idxs, - connector_count, + crtc_num, cconfs); if (ret < 0) continue; - test_one_combination(tconf, cconfs, connector_count); + test_one_combination(tconf, cconfs, crtc_num); } - free_connectors(cconfs, connector_count); + free_connectors(cconfs, crtc_num); free_cconfs: free(cconfs); } + + free(connector_combs.items); + free(crtc_combs.items); } static void run_test(const struct test_config *tconf) { - int connector_num; + int crtc_num; - connector_num = tconf->flags & TEST_CLONE ? 2 : 1; - for (; connector_num <= tconf->resources->count_crtcs; connector_num++) - test_combinations(tconf, connector_num); + crtc_num = tconf->flags & TEST_CLONE ? 2 : 1; + for (; crtc_num <= tconf->resources->count_crtcs; crtc_num++) + test_combinations(tconf, crtc_num); } static int opt_handler(int opt, int opt_index, void *data)