From patchwork Wed Dec 20 10:34:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "He, Hongbo" X-Patchwork-Id: 10125421 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 C580B6019C for ; Wed, 20 Dec 2017 10:36:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF9E629612 for ; Wed, 20 Dec 2017 10:36:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A47F1296CA; Wed, 20 Dec 2017 10:36:31 +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 36EE929612 for ; Wed, 20 Dec 2017 10:36:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B53046E3BF; Wed, 20 Dec 2017 10:36:30 +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-bl2nam02on0062.outbound.protection.outlook.com [104.47.38.62]) by gabe.freedesktop.org (Postfix) with ESMTPS id A1F5089BAF; Wed, 20 Dec 2017 10:36:28 +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=s8FlEUHNgnKKeEKuE533uW8jNa8GgHVRSsBgbgEw6LA=; b=hRKj+bgkz78tL3BBlHLFt4BnwgRbNe2EVLiJlUjEOKOvlgM2/ltyI3nXhfYRTBPrpE0rubISFBV1e+Ux1s1OsJr/PCaaaV9a3wvxk1uWrQ3pbc6CjvIdMNuAirg66YELeaGRvZLdcdBDUtTRNQqe5I7bYsje+uyYZ3bNG2QSAek= Received: from MWHPR1201CA0020.namprd12.prod.outlook.com (10.174.253.30) by DM5PR12MB1451.namprd12.prod.outlook.com (10.172.38.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.323.15; Wed, 20 Dec 2017 10:36:26 +0000 Received: from CO1NAM03FT058.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::205) by MWHPR1201CA0020.outlook.office365.com (2603:10b6:301:4a::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.323.15 via Frontend Transport; Wed, 20 Dec 2017 10:36:26 +0000 Authentication-Results: spf=none (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=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 CO1NAM03FT058.mail.protection.outlook.com (10.152.81.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.302.6 via Frontend Transport; Wed, 20 Dec 2017 10:36:25 +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; Wed, 20 Dec 2017 04:36:24 -0600 From: Roger He To: , Subject: [PATCH 5/7] drm/ttm: use an operation ctx for ttm_tt_bind Date: Wed, 20 Dec 2017 18:34:59 +0800 Message-ID: <1513766101-15993-5-git-send-email-Hongbo.He@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513766101-15993-1-git-send-email-Hongbo.He@amd.com> References: <1513766101-15993-1-git-send-email-Hongbo.He@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)(39380400002)(346002)(376002)(396003)(39860400002)(2980300002)(428003)(189003)(199004)(106466001)(316002)(16586007)(53416004)(110136005)(6666003)(5660300001)(2950100002)(47776003)(105586002)(81166006)(81156014)(36756003)(104016004)(8676002)(4326008)(450100002)(2906002)(53936002)(77096006)(68736007)(50226002)(8936002)(356003)(305945005)(478600001)(72206003)(50466002)(51416003)(7696005)(76176011)(97736004)(48376002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1451; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT058; 1:6Z5LzPaLRCOxwu0GW12c7bJ4vcHtqair7rUI2lyzVY+aDAy7A3xt47fMvEfxRWWFrAp3sOus3ycn64FB2UIMG63x6tfdN8t0eGpxdNGGHjbCWX8Jtum4zn8v39wXoaSr X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 773a8b41-7176-4c12-5710-08d54795856b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060); SRVR:DM5PR12MB1451; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1451; 3:Hjhs0RhW2yvWh+jY5dGWql0l6a0qPyr4V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lgJvVpJM1LelmVw024nY447cPVm+o1aGR0O8zImTmGflmZCGxvjc0bAmQ7rc8CXEx84yEI1hlZAQepBvi72KAUX3+xKi+u/um+eHvlkhxV31SiIXYpQSbFOpLrNJRtL3Yhxe4j8I8vEdT6dR3Agyne8McOqVyK2qGJrDRDSR7Ktjn6RLamO77CeeGVmmGqb+jsifo1AlF94vYf0g4KZmLthuFiMBcaMptgh79KMYvzlaf3QvnASIYdZy7CerAGxsulxIYdJrtQFtdj8ieD3gu7gSyAb26IGVLjiAsAZOMjURQGTO4bloGV5OBdF4AuJ/NyDSAC5PHeZt/37bNX+8NTsmFYHe0GQ+twU7rCehHeSXWPCk6Ddin3Y7OoJmzF3GW7h/bfImYMO47/DTiCk5SgffY00FjFlTeQVydCq1mO0p5FuKcUeS8yF X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(10201501046)(3231023)(93006095)(93003095)(3002001)(6055026)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011); SRVR:DM5PR12MB1451; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DM5PR12MB1451; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1451; 4:ecOrqLK5pQqN6gMLvNuSGK4mBHVx8Lbrdwt8uov8uxSxZpnJiJBboEdHHRuGOjD7sxts8n89lFoLHwwFizfEA9iMLD+xSjK8qflmPDIBZ/EGbBJBDHW0OGi7wbHM0kAoO9HdFDlvBG2zLSy1i9lXzxm+oZ++fnBewD1QWleMJ/oFwXC3qNfsVT8iR7JMxIZFG14NCSMf/NH39p0GZqo+29hA4Gz4mH4EoXcENdNosNRm+J9WxrN1xiH8VzqoEkmsPvBaaJ7Xl6kD7R6Ftf0BqyLUuZxXnzf8zhQY+C2EY+ynmxNUT3SrBqcbb3cdsYVC X-Forefront-PRVS: 0527DFA348 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB1451; 23:uQRP4PesA/ucjTaTt/r9885/KZqNm8Hon+VFr74oF?= =?us-ascii?Q?G7HzcXtOiYFsAceh/vGc6NOzyAFE3kWXinnS+guWiL6Ql7msNEhNiJoYt6r2?= =?us-ascii?Q?J8ER4H7wxw8XV37W5F7Q5dTZVdMwx05dj6lxGnUgfr5nHglb+6DlPIaQYghg?= =?us-ascii?Q?HVeYTA/TBILNnlFRKsPgz1G+d+SpQvnVmXV5OtvL0i1L7Po0vuTgPif+fK4Q?= =?us-ascii?Q?08DKMNJukCTAUJR9V412H/sxRdIheSCRme8RW+rFNwO4kJDnRki2akOiuwUW?= =?us-ascii?Q?RNOE/phQHjaqv+Pn59WXCKMia9WJiQ8qPcvJt4ywcR8aFu3IGhRZn3wwjaiu?= =?us-ascii?Q?ebRh+iEQNyuRAleH7FgVicXyGdSIrEWntWNywW3ozvRTM6XhOvH0pi8m9VY/?= =?us-ascii?Q?Np0VonufFaYx8kcjWSuv79tVtdvRqKoHSfKbys8bPIjZrQp9yyRVP20dhgeD?= =?us-ascii?Q?JqDOS0CElfX60/7ds8xgGk7IoPVA6o46MHmq7MlSezW2Q0kyM7vzAEfKRFkl?= =?us-ascii?Q?Ha6GSfSsBYEORZGrF1VrC88VPvvKjaa84AyhOhFkEKiiyQ/L5dq36l6RgrEf?= =?us-ascii?Q?Jk/N+IqKk+ZoIY5RfmGRWI3r27g1H3O3oqqVCfXOCgeQ+GyTOk2wS6V7QU0K?= =?us-ascii?Q?6WK9BXGL8cfvYV77D6CyexMxw6INqLIx2zGh35OreFqsFmkijieU6uR5s/Ir?= =?us-ascii?Q?+BJXeaP7D4hLuVeK0T5r90vlQumkmYBDEtIH0GRAdWXbO45BC7OFm9QudYkR?= =?us-ascii?Q?Jx83pxpaXFGztujTD95Q9GkklF3TjbihA/Va37XMToMAanw9RAf0RrPRTDPV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MbMbO6BwP0GLbJ62tyoRvc6onV1pgalcVMlNgDPbQ6JfY38m54rMK32fIxEVzF9ps1VpPn8l01bQwf3EWXrS0LOSgr0DyOW0JGxv5BLEVJa2SGYkBqj/BtiUL+YbReSDBnNUboGfj3ymqpAogFH0ayQvNJYcu9uG2Sp+CUdeC SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1451; 20:fC46cWZTUlbzoHJ0FKSTgU2M2fxFeEliQyv2sLBarlDqAVzspXdo2ADPnSM30KEh8pK16PHqDVoATwz7gF6iQuKStRn6lqq1RjvezQRf2qR8R6gNcDd/ZAdGQj5edOfj12yl9HyGZRbnQKdxSryJcUNpqB1d5DMBFi5NcQaZbY76VeNoxLsHEM56cYm76U6aXxB1gMScHqhLB1OSHfgpEXOhj+UqWWsExdxoxfp5J2Kh/LjX1YOFNGMVvgTdGx5O X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2017 10:36:25.5021 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 773a8b41-7176-4c12-5710-08d54795856b 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: DM5PR12MB1451 Cc: Roger He 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 Change-Id: I42a7df8c50e1ce3b527ee9cb78809f8e58136f07 Signed-off-by: Roger He --- 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 52aab9d..ed235b7 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 634fc6f..0f6fdc2 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: