From patchwork Mon Nov 27 12:31:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrey Grodzovsky X-Patchwork-Id: 10076785 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 918B6602BC for ; Mon, 27 Nov 2017 12:45:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83C9728E18 for ; Mon, 27 Nov 2017 12:45:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 789B128E1B; Mon, 27 Nov 2017 12:45:57 +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 A8BAC28E18 for ; Mon, 27 Nov 2017 12:45:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BFD3289FFD; Mon, 27 Nov 2017 12:45:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0069.outbound.protection.outlook.com [104.47.38.69]) by gabe.freedesktop.org (Postfix) with ESMTPS id E67E989FFD for ; Mon, 27 Nov 2017 12:45:51 +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=YPF3ISJ1qiBsslbdgteIZScdKqllm6of+8VUJwZmbt0=; b=IilMidavaOaOq+OzHTS+/jMZJhBNTKRo4ra+RAepYhw/Aveo5Lf3FtZlAdWdSkZiza9TK22bAy9SqMP0b7KLWyI7hBTlgFmsWUU27pb1i0SnTsqB2DdPoyIP1Q+1WeG9NkH32/bY0YWuu8nmxB7KlQgFf3BmT+kEhwV+nptGr80= Received: from CY4PR1201CA0014.namprd12.prod.outlook.com (10.172.75.24) by CY4PR12MB1272.namprd12.prod.outlook.com (10.168.167.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Mon, 27 Nov 2017 12:31:41 +0000 Received: from CO1NAM03FT056.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::208) by CY4PR1201CA0014.outlook.office365.com (2603:10b6:910:16::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.260.4 via Frontend Transport; Mon, 27 Nov 2017 12:31:41 +0000 Authentication-Results: spf=temperror (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=temperror action=none header.from=amd.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of amd.com: DNS Timeout) Received: from SATLEXCHOV01.amd.com (165.204.84.17) by CO1NAM03FT056.mail.protection.outlook.com (10.152.81.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.239.4 via Frontend Transport; Mon, 27 Nov 2017 12:31:39 +0000 Received: from ubuntu-1604-test.amd.com (10.34.1.3) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server id 14.3.361.1; Mon, 27 Nov 2017 06:31:37 -0600 From: Andrey Grodzovsky To: Subject: [PATCH libdrm 1/2] amdgpu: Switch amdgpu CS tests enabling to new API. Date: Mon, 27 Nov 2017 07:31:27 -0500 Message-ID: <1511785888-7817-1-git-send-email-andrey.grodzovsky@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)(346002)(39860400002)(376002)(2980300002)(199003)(189002)(86362001)(68736007)(6916009)(8936002)(50466002)(53416004)(7696005)(316002)(51416003)(356003)(36756003)(16586007)(97736004)(48376002)(72206003)(305945005)(478600001)(450100002)(53936002)(101416001)(33646002)(54906003)(50226002)(105586002)(2906002)(106466001)(189998001)(4326008)(47776003)(8676002)(81156014)(77096006)(50986999)(6666003)(81166006)(5660300001)(2351001)(104016004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1272; H:SATLEXCHOV01.amd.com; FPR:; SPF:TempError; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT056; 1:e4oM2sJMy/af/dUxUDCiXLteDpULnojbedaRdn7SaUwO11Ap5DdiQI4oR49LwE+bMWxW0LuKFmYOr1WHBtHwCkbHlMy5rUp4u3jPBozx7IU/fYhbVJ2SqJ70Kj0J4UWH X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7b7426c8-a7d8-49c3-4601-08d53592cee9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603258); SRVR:CY4PR12MB1272; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1272; 3:Dzhad0UXoUdWeuhCaIjGqaWlz1eEssMYEWsDpgGszzaMm7LOAVpVLJziRunjwO9N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wMfyAA9s/PWgTP38VEthmRlM64AiFfGZvkZuUHD47ZMi3uUnp37ZoX/8BqtjtakrfxUM1avyO4Zp7Trvb3KIQtF5Zp4xMmBN6Ykje49ycj0IQNjyzetvqUYfJ+RKa+OzuJEyVJVbauWYBErQ1R5HQwmfvHoWdisUNhMnUYNmDfzBccokaT79QD6/AXbVs4ZrlCH+H2WxaSjnb4Srr9zfUv3hObLRK91+k8Qo0OsR3Cxd2R5QG5kwEda6f/puCCz/eMJgnqJg5964GQQ6grFsx+xNslS6uHmZNBVfBrEE6gk8Sj/crNJ4VypK2LcVufLDd2dt92dZgW/r5crEiZ8wbfAiCg/enQHuyJQW8R0X4S6kJptPgJ0tsyFTKajNUffU5w4yw91ZCjNR7XO0BH+oidZX0/Wppdd X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3231022)(93006095)(93003095)(3002001)(10201501046)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(20161123558100)(20161123555025)(20161123562025)(6072148)(201708071742011); SRVR:CY4PR12MB1272; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR12MB1272; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1272; 4:xGNtye5VRA1hTuSANwKLfSlI7iIY8JctZUE6zIUVvs4PKuTYtZJEVDrdcMTwRc+7JD2n+Ui8zV4i0xe/NH5Dwzb7BjJP1n3nxOuvI7gWl0/pXssxXWxmwwIXBoqrfPIEAtKo1+8uxPMKUoE6LKIsoMDx8qr+gC4VweOir5FmUv3hrll5mhw5nQv+Sl6+b08SrE5dn2AoMRMxPutHkzCO+aMuy3b0nCWAw7tYjnMi2jMdPEMRzRhheECm3403UUffDioFk9znHfVPVD6Hdwjck0Dd5ZTI5iOap7mctWpxPaBCmaV5WUsaRi9S7yBtKDT6 X-Forefront-PRVS: 0504F29D72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR12MB1272; 23:nfho83JWcqgtYpHSdng/VeZCWK9RwnhU7OmTCpzJB?= =?us-ascii?Q?O6E1kYw1iT3FkE0bGKn2+5TDBRg3QsQ4yc+0vVtxYJVgjet8/i8EynHaVpW2?= =?us-ascii?Q?sJ2AZOnvHZ+Ce3yJvRyahoWkv87if6o1GPZAR95QxwBEUmG0oizZdlKBN0hU?= =?us-ascii?Q?PGjQxLXUBdsCzVn+ECHN9hu49CwAdecvu+0XaqbrywCxF3VDLhTUIJne6eG9?= =?us-ascii?Q?9psnWzAvSaf7ja/iPMqOIoY+YttpY9WWI4bxAZFb12GzqPMPKZP1JpalK3Yo?= =?us-ascii?Q?NHujUCAUNJSE4KG5/jGhfdvERNSz6qD+k7R/9m8biGohooiL2NSUCoFKD5A6?= =?us-ascii?Q?QD3kX2K5SZRx7k0IMKTeSSDm5vfjQ9Ly/L4hhMZkSP8p+gzDhtS2H1uFR7b4?= =?us-ascii?Q?1okvmhsMLB2LIxiscGmYgIAoJ46UaosrSzcf+CwTPcNgYNme5NIdS2l7AN6c?= =?us-ascii?Q?Fn95s/xeOOkX/UlQJM+3h2KTk4JHbdvqMpCRXtlVfBUqka+VnYyXz8U5TbHb?= =?us-ascii?Q?MVpq5Rzz1VD6648eKlDxv3p8ohGzkOxc4e+dGlC0vqc/lZ/CX/sMu6sRogE3?= =?us-ascii?Q?8KBsgjVFCONFCuJ+uvsDMXyp1q0w/ILpl2FkKFWkMcudXTLfcJiI0lM5MemY?= =?us-ascii?Q?hah8TUupHAerBXA9wpa8XmJkfKDURciMwG/pb9+axJXq99O1ZB+2foXqHD7G?= =?us-ascii?Q?sTXmPL4DJejLyYGmi1jDH/0WEZ5qmF621Jv0KxI89+W8lLXn2txj5kNGACRO?= =?us-ascii?Q?9esq/cb+39071E+ndMtlREOmZj8DvjIXBaQ3fa8iih+lzkLv1R1ACgFu5lHi?= =?us-ascii?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ly3xpEJrwyvGEf8lkRPcXk5Lx4A9ILswaGtBgAqD70RQFwisRgsnIe+3Wx8JzpIU2KsdGWaVvU/IFBtC7YUh02hYqAJbWciv9XT3S0NbWltDcSPNe1TPX1uB5St29KrA7BwYSAzelf91pifWmvMMCO7TdMpTGl+ANNJCCtTtDiRgh+lS+9eAcqMZ0ajC1VLk2W SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1272; 20:IMqvk2Eb6vW0YuRa2Lnxd6UY+Pe0jXDlLNwDDHCV1j0Dxqtw+gdJrv0KjvJGtPGzHFyjzgpkoJovasXIo6sUvjWJWzW87FkEku1IyTDlNY6NNmR/MSfLZTcsbyjn3NLxpc05Cy0eaAqCDw+IC9DvdqJiGQNUoru+VL4ZVfJ3mBTa9YL5HI/FboYVYP9+sY9BMoNlVMQGME54a5d18dykh4dAbfUOr73RbLs9KRs2Cc8ZFfh7WNSL6vhOcykTTdmf X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2017 12:31:39.1934 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7b7426c8-a7d8-49c3-4601-08d53592cee9 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: CY4PR12MB1272 Cc: amd-gfx@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Andrey Grodzovsky Reviewed-by: Christian König --- tests/amdgpu/amdgpu_test.c | 2 +- tests/amdgpu/amdgpu_test.h | 5 ++++ tests/amdgpu/cs_tests.c | 64 +++++++++++++++++++++++----------------------- 3 files changed, 38 insertions(+), 33 deletions(-) diff --git a/tests/amdgpu/amdgpu_test.c b/tests/amdgpu/amdgpu_test.c index ee64152..e611276 100644 --- a/tests/amdgpu/amdgpu_test.c +++ b/tests/amdgpu/amdgpu_test.c @@ -146,7 +146,7 @@ static Suites_Active_Status suites_active_stat[] = { }, { .pName = CS_TESTS_STR, - .pActive = always_active, + .pActive = suite_cs_tests_enable, }, { .pName = VCE_TESTS_STR, diff --git a/tests/amdgpu/amdgpu_test.h b/tests/amdgpu/amdgpu_test.h index 414fcb8..3238e05 100644 --- a/tests/amdgpu/amdgpu_test.h +++ b/tests/amdgpu/amdgpu_test.h @@ -85,6 +85,11 @@ int suite_cs_tests_init(); int suite_cs_tests_clean(); /** + * Decide if the suite is enabled by default or not. + */ +CU_BOOL suite_cs_tests_enable(void); + +/** * Tests in cs test suite */ extern CU_TestInfo cs_tests[]; diff --git a/tests/amdgpu/cs_tests.c b/tests/amdgpu/cs_tests.c index 3b2f17d..4880b74 100644 --- a/tests/amdgpu/cs_tests.c +++ b/tests/amdgpu/cs_tests.c @@ -66,6 +66,26 @@ CU_TestInfo cs_tests[] = { CU_TEST_INFO_NULL, }; +CU_BOOL suite_cs_tests_enable(void) +{ + if (amdgpu_device_initialize(drm_amdgpu[0], &major_version, + &minor_version, &device_handle)) + return CU_FALSE; + + family_id = device_handle->info.family_id; + + if (amdgpu_device_deinitialize(device_handle)) + return CU_FALSE; + + + if (family_id >= AMDGPU_FAMILY_RV || family_id == AMDGPU_FAMILY_SI) { + printf("\n\nThe ASIC NOT support UVD, suite disabled\n"); + return CU_FALSE; + } + + return CU_TRUE; +} + int suite_cs_tests_init(void) { amdgpu_bo_handle ib_result_handle; @@ -90,11 +110,6 @@ int suite_cs_tests_init(void) chip_rev = device_handle->info.chip_rev; chip_id = device_handle->info.chip_external_rev; - if (family_id >= AMDGPU_FAMILY_RV || family_id == AMDGPU_FAMILY_SI) { - printf("\n\nThe ASIC NOT support UVD, all sub-tests will pass\n"); - return CUE_SUCCESS; - } - r = amdgpu_cs_ctx_create(device_handle, &context_handle); if (r) return CUE_SINIT_FAILED; @@ -119,24 +134,18 @@ int suite_cs_tests_clean(void) { int r; - if (family_id >= AMDGPU_FAMILY_RV || family_id == AMDGPU_FAMILY_SI) { - r = amdgpu_device_deinitialize(device_handle); - if (r) - return CUE_SCLEAN_FAILED; - } else { - r = amdgpu_bo_unmap_and_free(ib_handle, ib_va_handle, - ib_mc_address, IB_SIZE); - if (r) - return CUE_SCLEAN_FAILED; - - r = amdgpu_cs_ctx_free(context_handle); - if (r) - return CUE_SCLEAN_FAILED; - - r = amdgpu_device_deinitialize(device_handle); - if (r) - return CUE_SCLEAN_FAILED; - } + r = amdgpu_bo_unmap_and_free(ib_handle, ib_va_handle, + ib_mc_address, IB_SIZE); + if (r) + return CUE_SCLEAN_FAILED; + + r = amdgpu_cs_ctx_free(context_handle); + if (r) + return CUE_SCLEAN_FAILED; + + r = amdgpu_device_deinitialize(device_handle); + if (r) + return CUE_SCLEAN_FAILED; return CUE_SUCCESS; } @@ -203,9 +212,6 @@ static void amdgpu_cs_uvd_create(void) void *msg; int i, r; - if (family_id >= AMDGPU_FAMILY_RV || family_id == AMDGPU_FAMILY_SI) - return; - req.alloc_size = 4*1024; req.preferred_heap = AMDGPU_GEM_DOMAIN_GTT; @@ -277,9 +283,6 @@ static void amdgpu_cs_uvd_decode(void) uint8_t *ptr; int i, r; - if (family_id >= AMDGPU_FAMILY_RV || family_id == AMDGPU_FAMILY_SI) - return; - req.alloc_size = 4*1024; /* msg */ req.alloc_size += 4*1024; /* fb */ if (family_id >= AMDGPU_FAMILY_VI) @@ -419,9 +422,6 @@ static void amdgpu_cs_uvd_destroy(void) void *msg; int i, r; - if (family_id >= AMDGPU_FAMILY_RV || family_id == AMDGPU_FAMILY_SI) - return; - req.alloc_size = 4*1024; req.preferred_heap = AMDGPU_GEM_DOMAIN_GTT;