From patchwork Thu Dec 28 03:35:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "He, Hongbo" X-Patchwork-Id: 10134375 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 6293D605B4 for ; Thu, 28 Dec 2017 03:36:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FD972C827 for ; Thu, 28 Dec 2017 03:36:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 418192D462; Thu, 28 Dec 2017 03:36:10 +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 736912C827 for ; Thu, 28 Dec 2017 03:36:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8025D89230; Thu, 28 Dec 2017 03:36:04 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0088.outbound.protection.outlook.com [104.47.41.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id A911189230 for ; Thu, 28 Dec 2017 03:36:03 +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=/XNN+2D6NbfFOIOzClblEaoiLsm6q2AmThne8/C+j3c=; b=EdE/nJHUfczCRYmkZDeae9wwKTb+BZDnwfFlAPz68g9qiheu9NEgOuV40kKzA8ga617vuYG8h7o4uGTFhZkI0Ab5hsS/B58/pxcrUMsZRqi5d95yAj60iipDvIdQQgunh7whqwQ7pNRNSxVlNyR+93qKljo6zwW/En3LFEyDUgs= Received: from MWHPR1201CA0003.namprd12.prod.outlook.com (10.174.253.13) by MWHPR1201MB0062.namprd12.prod.outlook.com (10.174.98.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.366.8; Thu, 28 Dec 2017 03:36:00 +0000 Received: from BY2NAM03FT005.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::205) by MWHPR1201CA0003.outlook.office365.com (2603:10b6:301:4a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.366.8 via Frontend Transport; Thu, 28 Dec 2017 03:36:00 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; linuxfoundation.org; dkim=none (message not signed) header.d=none;linuxfoundation.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 SATLEXCHOV02.amd.com (165.204.84.17) by BY2NAM03FT005.mail.protection.outlook.com (10.152.84.94) 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; Thu, 28 Dec 2017 03:36:00 +0000 Received: from roger-build-server.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.361.1; Wed, 27 Dec 2017 21:35:59 -0600 From: Roger He To: Subject: [PATCH] staging: vboxvideo adapt to new TTM interface Date: Thu, 28 Dec 2017 11:35:54 +0800 Message-ID: <1514432154-9833-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)(376002)(396003)(39860400002)(39380400002)(346002)(2980300002)(428003)(189003)(199004)(4326008)(53416004)(72206003)(105586002)(68736007)(16586007)(54906003)(86362001)(2351001)(106466001)(77096006)(97736004)(316002)(7696005)(47776003)(6916009)(51416003)(6666003)(5660300001)(2906002)(50466002)(53936002)(36756003)(48376002)(81156014)(8676002)(50226002)(81166006)(478600001)(356003)(104016004)(8936002)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR1201MB0062; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2NAM03FT005; 1:8X6EKf35ntaj0GDXg67FnotUzUrq/UzxB3ZLUVyOe0gdvyVaHb26kVfW/oJm33qUyNE/oAMTizUzI0Bzo8oGBMQLiROny8TG4EKb89Idf2wL/7OlR/CDXHlql2RSulkR X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0f6c7f44-98e4-478a-5ee1-08d54da41d9f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060); SRVR:MWHPR1201MB0062; X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0062; 3:fvHZ2VeNl/cWvnvXAqHG5mcRYGDhFTd39jcQtcY5P0TAENfbDe+xsMXrVr6/7N9oXwg6JYnYT0iph9tIqGIrYYNHs+rFgDgvQokHTHC41n/XQvdOdMoxDkFafzwclpEJCuYI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bVwqJnq2cp8Pb+NhDcEouXXMHBPmyBUjs/2I8e5rINRfe+YBLQeGFKfPVBjx3mRv0jCXS52qcGJ/HHq5Y9AEyKoxEpg2Ds+bKWSfLc9aDJm7nN5QR4NwIbyixYoexshzhsjDyoEJ8QCCIkWTx8AySsE5EKCb6ogmySv+k9t4XpWcemR5SGWOQD1F87hlZR13MYj1STE87bHmJ4piCvIpOdvM3dpdpYL+3G0uW2AVXcItSms3JCQ4rXOwTXKM5p88vXRMPqidRL7zOfxxGrp5rPVhkNN2H0U/P5by77T3VxhN71fEovpQk5+WXEkxUc3qcthXL 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)(3231023)(944501075)(93006095)(93003095)(10201501046)(3002001)(6055026)(6041268)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:MWHPR1201MB0062; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR1201MB0062; X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0062; 4:1yTDfyQoXGZ62YRJW0cLSJWg9cs9qj1g65oxs+XlSaRc1ab3IydBDJpY0aLOmdR+8EAEDigNMLfamP79kuVEAmGUU+p2QGSF0EoQjbCtmMC/+/kA1VT94sIiYf2eBsP19ow6v2UFk2Lj1tNpUe19SMt22HYpHCLNKdY299nJbih+Vcx0gJWaicM274yNI4bitiujANPSHLEgKRfn4iia5r/4EBQnVe/SUVLR0PUhGthzTTIy0O+sjReK0F4Ctixt822P/wt85tc3yE2lUFY7xQmiQmhsa2tAuK0SDNqdAKQ3Y8WFRcCqUdPojD8RmCZZ X-Forefront-PRVS: 05352A48BE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR1201MB0062; 23:EQfA3sFc26lFsaby2aFUW3Y+19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xLrUTwEB SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0062; 20:Xu6U20naoldcrCIbR2vYq4j4d+0Zqfqx0NFe2FHEYaNwRySFn3Ut2lGZ1CvqhwyLSgn6yvmHJgZ5s7tv6jBlWGO3w0bV9Mn3YaXKBQUNUWne+r/DrI++m7AS8jQc7/09EUuJpQtJWLuT72eAbsMGfZakI5wQuhTJKjQ/CAmNuaDen+A48B2rFjhGQpPOyMGpkx4wY35Znd8cinWrFbvyjy9yv7nC+q9sAKnYozqynJS6IsTxMk9JiV1v8uzhTyXN X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Dec 2017 03:36:00.8189 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0f6c7f44-98e4-478a-5ee1-08d54da41d9f 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=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB0062 Cc: hdegoede@redhat.com, Roger He , Christian.Koenig@amd.com, gregkh@linuxfoundation.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 Fixes interface change done in the following commit: eb86c98 drm/ttm: use an operation ctx for ttm_tt_populate in ttm_bo_driver i missed this driver because it is in staging dir. Signed-off-by: Roger He Reviewed-by: Chunming Zhou Reviewed-by: Chunming Zhou Reviewed-by: Chunming Zhou --- drivers/staging/vboxvideo/vbox_ttm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vboxvideo/vbox_ttm.c b/drivers/staging/vboxvideo/vbox_ttm.c index 231c89e..55f14c9 100644 --- a/drivers/staging/vboxvideo/vbox_ttm.c +++ b/drivers/staging/vboxvideo/vbox_ttm.c @@ -213,9 +213,10 @@ static struct ttm_tt *vbox_ttm_tt_create(struct ttm_bo_device *bdev, return tt; } -static int vbox_ttm_tt_populate(struct ttm_tt *ttm) +static int vbox_ttm_tt_populate(struct ttm_tt *ttm, + struct ttm_operation_ctx *ctx) { - return ttm_pool_populate(ttm); + return ttm_pool_populate(ttm, ctx); } static void vbox_ttm_tt_unpopulate(struct ttm_tt *ttm)