From patchwork Tue Jun 5 17:02:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrey Grodzovsky X-Patchwork-Id: 10448683 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 A1B0060284 for ; Tue, 5 Jun 2018 17:03:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9202328358 for ; Tue, 5 Jun 2018 17:03:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86A44284CE; Tue, 5 Jun 2018 17:03:30 +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=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 238B928358 for ; Tue, 5 Jun 2018 17:03:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E86DF6EE9E; Tue, 5 Jun 2018 17:03:28 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0059.outbound.protection.outlook.com [104.47.32.59]) by gabe.freedesktop.org (Postfix) with ESMTPS id ED2CE6EE9C; Tue, 5 Jun 2018 17:03:26 +0000 (UTC) Received: from BN6PR1201CA0022.namprd12.prod.outlook.com (2603:10b6:405:4c::32) by BL0PR12MB2419.namprd12.prod.outlook.com (2603:10b6:207:4d::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.11; Tue, 5 Jun 2018 17:03:24 +0000 Received: from DM3NAM03FT016.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::201) by BN6PR1201CA0022.outlook.office365.com (2603:10b6:405:4c::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.841.14 via Frontend Transport; Tue, 5 Jun 2018 17:03:24 +0000 Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV01.amd.com (165.204.84.17) by DM3NAM03FT016.mail.protection.outlook.com (10.152.82.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.841.10 via Frontend Transport; Tue, 5 Jun 2018 17:03:23 +0000 Received: from agrodzovsky-All-Series.amd.com (10.34.1.3) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server id 14.3.382.0; Tue, 5 Jun 2018 12:03:23 -0500 From: Andrey Grodzovsky To: , Subject: [PATCH 2/2] drm/amdgpu: Rename entity cleanup finctions. Date: Tue, 5 Jun 2018 13:02:35 -0400 Message-ID: <1528218155-11638-2-git-send-email-andrey.grodzovsky@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528218155-11638-1-git-send-email-andrey.grodzovsky@amd.com> References: <1528218155-11638-1-git-send-email-andrey.grodzovsky@amd.com> 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)(39860400002)(39380400002)(376002)(396003)(346002)(2980300002)(428003)(199004)(189003)(104016004)(110136005)(50466002)(356003)(6666003)(316002)(4326008)(446003)(426003)(2616005)(72206003)(476003)(8936002)(81166006)(478600001)(11346002)(8676002)(86362001)(44832011)(81156014)(36756003)(336012)(575784001)(2870700001)(50226002)(105586002)(97736004)(77096007)(106466001)(126002)(47776003)(53936002)(59450400001)(26005)(186003)(23676004)(53416004)(76176011)(7696005)(5660300001)(54906003)(68736007)(5820100001)(2906002)(305945005)(486006); DIR:OUT; SFP:1101; SCL:1; SRVR:BL0PR12MB2419; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT016; 1:y2PE6phN7OOsx9U6wbReHeaHQxpJwjIBCKnrT8w6ED9Nia4ZWuSGwVTKa/sxpK2XxlIgOt68HN18f+Fz/K6EYpD50YyeohThxXlgZg3Zkh79lOlO6vvjZ6BGsYQLrgxa X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:BL0PR12MB2419; X-Microsoft-Exchange-Diagnostics: 1; BL0PR12MB2419; 3:vMGHadhHC1i6Kaf6sS/433a5ev77e/XUXVP2kBHhexGwkgW3CpXu3jecV8UXiMc3fuQkuoSXWCxpT3EMvCXC/iVrpsLVQPb6yyC2vQZygJucdPTQVrtQcoLEvdYy5xINOUnNNlWPwzZ/HV89cVpRrsgk7L7WHwh7F/nazB008IE2b5dwSTRlLrBJwFCjE/2rJ8KgDMimT+T3b2uY8M9O6dYKDkKqDJvNu8FCO0cmVDtmxfTHhd9v8Uwur22TydW3wMcn6ewLtdBZKx/bnNXqgjMc5IcQ7weSg4o1L+Jf+WX1sxmnzXD7vsmchu2Zr+vLPXsHbeCCwW7+PXdJwa8p0O0ZVAXpnFpUVS+LT2ahx9M=; 25:AL2YsoKvl+wTfHsV88UdTLeJhNDgtMZADSg9MHBV24fv/ZRUCaNuqviL5V/SlDeWJU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0OmQHFR50hPom7cpQKHHlL+ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(93003095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:BL0PR12MB2419; BCL:0; PCL:0; RULEID:; SRVR:BL0PR12MB2419; X-Microsoft-Exchange-Diagnostics: 1; BL0PR12MB2419; 4:9ypU19KWY0tyi2rDlJZ0pnlOU90fYCDaKaAOF38BjKgh09x5bglYC3MFvbHO21dj1TXLNbtvgELbyQ2utbgbB2Ah5AnN2XVZlDm+nzMIwyEj3tseVqq9WWS5v+tQWDvaxKT/uqcNAHjGEvYlklQYz4z19hgw4TeiEpJ4cS1rqHQ2BZKTtJUBmqepCBBOV/UxY2Q6miv5fJxeVvvOPV55NxFCL3yFh9Tz3GVL1ipwMZRfzrfScNMbrr9MOghQ42baOmgqM9uMttdzBblGg55RKQ+74jW5xYH60W177zAM5V7QPPwfqRzvOAYD0D/SF+uZ X-Forefront-PRVS: 0694C54398 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTDBQUjEyTUIyNDE5OzIzOmZHS24zUWQ0K0xXZllBcm5BVTBmcG10YmNH?= =?utf-8?B?clZ5L2VMa2pIUldYSmJNY0t4USszdE1FQURHNy9QSlpIcWpMNG5vS01KUTNM?= =?utf-8?B?c3E2Q3psN2ZuKzhSb1hKZUg5MFRJMzBaTnh4QkZzdjZ4cEZ2aDZ6ZXU0VUdM?= =?utf-8?B?a2g5L3pCaTJxaG1nL1RjbGVSMGNzQjhWYlBIWjd5UnpRQy9jSGNEMFBiWjE5?= =?utf-8?B?N2NqLy8wYWtx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IQzWO5HqCB2+3C37TVP6wWeOhOb0sbAMydQZpOH+Hl5y4VndTM1rsqOaUUATnSJeUBgiurDg4tKsYw/JPECa3oREEpr+05eMsREyRElanWZ9s4+0w9Z1r7d0DV61E+ibHqP X-MS-Office365-Filtering-Correlation-Id: 2282890d-47fb-4432-bf60-08d5cb063fa2 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2018 17:03:23.8322 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2282890d-47fb-4432-bf60-08d5cb063fa2 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: BL0PR12MB2419 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christian.Koenig@amd.com, etnaviv@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Everything in the flush code path (i.e. waiting for SW queue to become empty) names with *_flush() and everything in the release code path names *_fini() Signed-off-by: Andrey Grodzovsky Suggested-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 6 +++--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index e8c6cc1..93279ee 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -683,8 +683,8 @@ int amdgpu_ctx_ioctl(struct drm_device *dev, void *data, int amdgpu_ctx_wait_prev_fence(struct amdgpu_ctx *ctx, unsigned ring_id); void amdgpu_ctx_mgr_init(struct amdgpu_ctx_mgr *mgr); -void amdgpu_ctx_mgr_entity_cleanup(struct amdgpu_ctx_mgr *mgr); void amdgpu_ctx_mgr_entity_fini(struct amdgpu_ctx_mgr *mgr); +void amdgpu_ctx_mgr_entity_flush(struct amdgpu_ctx_mgr *mgr); void amdgpu_ctx_mgr_fini(struct amdgpu_ctx_mgr *mgr); diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c index c0f06c0..0120b24 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c @@ -444,7 +444,7 @@ void amdgpu_ctx_mgr_init(struct amdgpu_ctx_mgr *mgr) idr_init(&mgr->ctx_handles); } -void amdgpu_ctx_mgr_entity_fini(struct amdgpu_ctx_mgr *mgr) +void amdgpu_ctx_mgr_entity_flush(struct amdgpu_ctx_mgr *mgr) { struct amdgpu_ctx *ctx; struct idr *idp; @@ -473,7 +473,7 @@ void amdgpu_ctx_mgr_entity_fini(struct amdgpu_ctx_mgr *mgr) mutex_unlock(&mgr->lock); } -void amdgpu_ctx_mgr_entity_cleanup(struct amdgpu_ctx_mgr *mgr) +void amdgpu_ctx_mgr_entity_fini(struct amdgpu_ctx_mgr *mgr) { struct amdgpu_ctx *ctx; struct idr *idp; @@ -506,7 +506,7 @@ void amdgpu_ctx_mgr_fini(struct amdgpu_ctx_mgr *mgr) struct idr *idp; uint32_t id; - amdgpu_ctx_mgr_entity_cleanup(mgr); + amdgpu_ctx_mgr_entity_fini(mgr); idp = &mgr->ctx_handles; diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index a549483..6841497 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -860,7 +860,7 @@ static int amdgpu_flush(struct file *f, fl_owner_t id) struct drm_file *file_priv = f->private_data; struct amdgpu_fpriv *fpriv = file_priv->driver_priv; - amdgpu_ctx_mgr_entity_fini(&fpriv->ctx_mgr); + amdgpu_ctx_mgr_entity_flush(&fpriv->ctx_mgr); return 0; }