From patchwork Mon Dec 25 06:07:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "He, Hongbo" X-Patchwork-Id: 10132307 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 E0F506037D for ; Mon, 25 Dec 2017 06:07:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6E7728531 for ; Mon, 25 Dec 2017 06:07:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A84B228B88; Mon, 25 Dec 2017 06:07:54 +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 A147928531 for ; Mon, 25 Dec 2017 06:07:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D1CA989B29; Mon, 25 Dec 2017 06:07:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0054.outbound.protection.outlook.com [104.47.34.54]) by gabe.freedesktop.org (Postfix) with ESMTPS id 426C789A08 for ; Mon, 25 Dec 2017 06:07:44 +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=Kr6hnqNlwBfrI2Qc+pJk8I5JeFE8DcPYqdGAIOPMStE=; b=EYbDuedM9PR1Mna3IvffJBBZiURla3Oy89HAIBJAlDfwVaIMz+UGyZXJU66ikIzBQI4QiebbrqpEloE4tQd2LPOAnyPuEOctORAN5JeLFREN8jfoHxtEmxXiwrp0mBAzqv+Oe64XnBuxKda1EtyYlnO7yj/++/CkXSwO6klcr+Q= Received: from CY1PR12CA0055.namprd12.prod.outlook.com (10.163.230.23) by MWHPR1201MB0064.namprd12.prod.outlook.com (10.174.98.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.14; Mon, 25 Dec 2017 06:07:42 +0000 Received: from DM3NAM03FT040.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::204) by CY1PR12CA0055.outlook.office365.com (2a01:111:e400:c42b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.345.14 via Frontend Transport; Mon, 25 Dec 2017 06:07:41 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; shipmail.org; dkim=none (message not signed) header.d=none; shipmail.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 SATLEXCHOV01.amd.com (165.204.84.17) by DM3NAM03FT040.mail.protection.outlook.com (10.152.83.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.345.12 via Frontend Transport; Mon, 25 Dec 2017 06:07:39 +0000 Received: from roger-build-server.amd.com (10.34.1.3) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server id 14.3.361.1; Mon, 25 Dec 2017 00:07:38 -0600 From: Roger He To: Subject: [PATCH 1/3] drm/ttm: use an operation ctx for ttm_tt_bind Date: Mon, 25 Dec 2017 14:07:30 +0800 Message-ID: <1514182052-20798-1-git-send-email-Hongbo.He@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)(396003)(39380400002)(346002)(39850400004)(376002)(2980300002)(428003)(199004)(189003)(47776003)(5660300001)(8936002)(72206003)(4326008)(2351001)(478600001)(53416004)(105586002)(106466001)(6666003)(77096006)(36756003)(16586007)(316002)(81166006)(7696005)(81156014)(6916009)(8676002)(68736007)(51416003)(54906003)(53936002)(50226002)(2906002)(305945005)(86362001)(104016004)(97736004)(356003)(48376002)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR1201MB0064; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT040; 1:W9ma/w9uHPd/Kr7gYXE3rxva+gjM1y3LAf6Vs5wJ5eYsIq4I4ZiQeXxkr/a5aOjr4NhjOupfwNPcW7FgtPMZxSI2bta1j5tZzipRYJfdAL6IIUaeUno6gxG348nl3xIx X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 772cdb34-2ecb-4c43-5ade-08d54b5dce02 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060); SRVR:MWHPR1201MB0064; X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0064; 3:w9ajPADbro0/s2XwEE9LgvWXt5WIn+te6y0aosBAGKw7CygfTQ9yovXgKiGdozkcwTZIueLF65tNaWzRXntpCqlJIlTJU36hMPlY9RQzrKixEdmyErch6MAQJ8pwt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WN23SncqGuBf2DBJ6Q7hji9Vnbspz/ODvaHl8e0/jlc/PtHvWwNeYfz9yspQdAS8rptOX15NemWglPkEvFvY58LE18eZsiUPfXtfB524VMrXgeZiyQXeQQoJnxPdKkpE9QQqjqMDYYi5ye+Z7lRXh+qgAAD3WtdxSDcE57PxyCvmAlwf6SXPlyUpQ/6YnUWhcUQvOCpUlH2vwuS9TIRv8pGWdonQW/+Li5KQEQGksC860q0S3/IDU+mPInf8iFoMt161FzKMMF5L8diNGyHE2ehCsC//rDt5LpqiaT6+q8qCbpVJ//sebyrZzAP4Teqjjv4G X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(93006095)(93003095)(3002001)(10201501046)(3231023)(944501075)(6055026)(6041268)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:MWHPR1201MB0064; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR1201MB0064; X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0064; 4:WhKVAawtPDDHinDg/WfAK8nw0BEATIeaDanXsS5lN5iu2E13Ebk3waGvsOfB6DwAWFdtHL3BX9MWZ5vlULtB4gYCHfVg8amK4ncYBjEe9P3txX+nUiqUxVi7bAS7ul5W5SRZL9vAtoAOuYMbcVkq5X77mmVBxLdABtI8CwPAAz65HRNtE7c/pD8tFvgVFRq+PlXJCZ5v3JSosYPjqVgeBufHZuqncrvB3TklSFiPp7rWcyEYfqOlMnNSGQWoHnDbN2H7NrS2rSNGXXKVnlgk7ez0V5zj1SqXSfBYn6b4Z2WE/Tp33EbgUpi15qaC3n7K X-Forefront-PRVS: 0532BF6DC2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR1201MB0064; 23:FuCgPFVFgry+q5V0P6r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F4St/8CHL9pl SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0064; 20:2pFAia5U4nZ3nS+zKac6V4ZPaH1MlZu2B7kTAHo/KwaHMkPemGPzLTmzP6A2jTz8lVSR4PaA7bA3eZJOIH8zPpa8E0LyhvwIRIhxnNt0InenzWXum0IZrZKHxIygWbEQDFDS/2wuuQzPB8MQq+/Uzt6T5A0Iwi9Ozwbab3JGkDE35in9tofd0ITX/bsOVyuF9L+yhs8gJLvpm20Kgb2Xrrh8mv2Mgc59xLaksjR4tdDwWF9oYVLOAkOu3yktD2Po X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Dec 2017 06:07:39.4814 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 772cdb34-2ecb-4c43-5ade-08d54b5dce02 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: MWHPR1201MB0064 Cc: Roger He , Christian.Koenig@amd.com 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 forward the operation context to ttm_tt_bind as well, and the ultimate goal is swapout enablement for reserved BOs. v2: use common term rather than amd specific Change-Id: I42a7df8c50e1ce3b527ee9cb78809f8e58136f07 Signed-off-by: Roger He Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +- drivers/gpu/drm/nouveau/nouveau_bo.c | 2 +- drivers/gpu/drm/radeon/radeon_ttm.c | 2 +- drivers/gpu/drm/ttm/ttm_bo.c | 2 +- drivers/gpu/drm/ttm/ttm_bo_util.c | 2 +- drivers/gpu/drm/ttm/ttm_tt.c | 9 +++------ include/drm/ttm/ttm_bo_driver.h | 3 ++- 7 files changed, 10 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 044f5b5..e4bb435 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -497,7 +497,7 @@ static int amdgpu_move_vram_ram(struct ttm_buffer_object *bo, bool evict, goto out_cleanup; } - r = ttm_tt_bind(bo->ttm, &tmp_mem); + r = ttm_tt_bind(bo->ttm, &tmp_mem, ctx); if (unlikely(r)) { goto out_cleanup; } diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index b141c27..a83ba6a 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -1218,7 +1218,7 @@ nouveau_bo_move_flipd(struct ttm_buffer_object *bo, bool evict, bool intr, if (ret) return ret; - ret = ttm_tt_bind(bo->ttm, &tmp_reg); + ret = ttm_tt_bind(bo->ttm, &tmp_reg, &ctx); if (ret) goto out; diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c index 9424b81..2b74ba1b 100644 --- a/drivers/gpu/drm/radeon/radeon_ttm.c +++ b/drivers/gpu/drm/radeon/radeon_ttm.c @@ -339,7 +339,7 @@ static int radeon_move_vram_ram(struct ttm_buffer_object *bo, goto out_cleanup; } - r = ttm_tt_bind(bo->ttm, &tmp_mem); + r = ttm_tt_bind(bo->ttm, &tmp_mem, &ctx); if (unlikely(r)) { goto out_cleanup; } diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index c59f572..e7595b4 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -300,7 +300,7 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo, goto out_err; if (mem->mem_type != TTM_PL_SYSTEM) { - ret = ttm_tt_bind(bo->ttm, mem); + ret = ttm_tt_bind(bo->ttm, mem, ctx); if (ret) goto out_err; } diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c index b7eb507..153de1b 100644 --- a/drivers/gpu/drm/ttm/ttm_bo_util.c +++ b/drivers/gpu/drm/ttm/ttm_bo_util.c @@ -73,7 +73,7 @@ int ttm_bo_move_ttm(struct ttm_buffer_object *bo, return ret; if (new_mem->mem_type != TTM_PL_SYSTEM) { - ret = ttm_tt_bind(ttm, new_mem); + ret = ttm_tt_bind(ttm, new_mem, ctx); if (unlikely(ret != 0)) return ret; } diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index b48d7a0..5a046a3 100644 --- a/drivers/gpu/drm/ttm/ttm_tt.c +++ b/drivers/gpu/drm/ttm/ttm_tt.c @@ -261,12 +261,9 @@ void ttm_tt_unbind(struct ttm_tt *ttm) } } -int ttm_tt_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem) +int ttm_tt_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem, + struct ttm_operation_ctx *ctx) { - struct ttm_operation_ctx ctx = { - .interruptible = false, - .no_wait_gpu = false - }; int ret = 0; if (!ttm) @@ -275,7 +272,7 @@ int ttm_tt_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem) if (ttm->state == tt_bound) return 0; - ret = ttm->bdev->driver->ttm_tt_populate(ttm, &ctx); + ret = ttm->bdev->driver->ttm_tt_populate(ttm, ctx); if (ret) return ret; diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 84860ec..94064b1 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h @@ -650,7 +650,8 @@ void ttm_dma_tt_fini(struct ttm_dma_tt *ttm_dma); * * Bind the pages of @ttm to an aperture location identified by @bo_mem */ -int ttm_tt_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem); +int ttm_tt_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem, + struct ttm_operation_ctx *ctx); /** * ttm_ttm_destroy: