Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp833446pxb; Tue, 12 Apr 2022 14:45:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzV4OiskOcFUAGbueNIhH8ihmP5KQT1ZtA3AS/MTy+YIfn4yQe+brsyIG1/+TY0FIEqzKDT X-Received: by 2002:a17:90a:5983:b0:1c9:ee11:76df with SMTP id l3-20020a17090a598300b001c9ee1176dfmr7204329pji.95.1649799942213; Tue, 12 Apr 2022 14:45:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649799942; cv=pass; d=google.com; s=arc-20160816; b=gSqAvHchDl/TYkMVqt50NwE1qFmDGadBoTRcY9VvcpZl4kliaaosvkkWbyOo4qcHvb dz7tE+IGQ0hmOMkq8AOrDM5Ss9HDik0usU2l/d07+zwW5+UjRMbWrgl7DDGw/nL+exn1 yBHwN7YIPpHAvVyRbVeEvBvMlatjrOFKNPZ9y1nJZK51Ea9lJMq51G1fh+tDYJj84u00 TFRktGsUV26Vnu4zv7/sMwIknqrW8q7jgzvLWpzw5ICvWmr0P0kDLbZlJdzPtihZVxIn aOVw6+lEbpDZv7MfKJZkmwTnB/tCarTQXXd3JtdU4HWBmeZvSCs8B0O3UdQ/kkJ2ycAF AWaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6Ar+qnC0dV8EIdrfaq+yPKgotP+IbALzbSIqNjGwFng=; b=CeURWNsB/TD89sfrvKW5pTDdS/sCx32hgewPIq4/qSIt5GyHzsB14r9rLb/R4hf5vp G8Ltn4q3XIkcIXnepbYwge7Y9MpE5Sl/kciu7a0ZcSr0ehEgPyYafa85l8K2BtYQXykq dBmcNXMIPWoobjh/jArbkrJzJm1ivladgPlZjfOumTs9WJUzicpUODx8CFk4tGJkDwXu ZP2kJh7ksIBX6pfLedQXrMnwULTrqkLwuoktfmbWiwUjPcRKOST1s7IGvJJiL6nrbS23 A3UXSrabftfsUvj1vqORiZ9j/Ihr21AA+mFO+Dy3uk/JSs3Sx5MyDUXI0/uJeh9FCqqK KNrA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=qeHNXMyn; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c8-20020a170902724800b00156b8b99c95si11700624pll.610.2022.04.12.14.45.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:45:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=qeHNXMyn; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EACA8139279; Tue, 12 Apr 2022 13:45:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349076AbiDKSLb (ORCPT + 99 others); Mon, 11 Apr 2022 14:11:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349077AbiDKSL3 (ORCPT ); Mon, 11 Apr 2022 14:11:29 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2072.outbound.protection.outlook.com [40.107.243.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8F32283 for ; Mon, 11 Apr 2022 11:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g4YpU9lT7DRW/iBVO8AYGaQpZBtvqLu3yUjKne6YlxzTHjVvoNrerte8BTVVlSoDgt0gH1yY84m2REoXRvU43AfWUbWuD1QW8mCVfCwuvACe9MOKloVPsgz+g4L9rqXGN6+mRRwmAykpowTFRaxlpmtO3UlgE85dr+wtoFiACF04H6/zm2BFd/suMGj2WXrLXsxdq8lF//bEvD/Jkv1TyHgs+iYqqRla5NFsSyp7eUNWrpgRa85S1ivtBCGD0w1ZT003yvHg0ijngsFtKaisS3mEpFn/6QgkhTIJuRZJVgm6N3rOo7ZQuVLpV21Z152vS/legRrSzXvVn4fQ9Uyacg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6Ar+qnC0dV8EIdrfaq+yPKgotP+IbALzbSIqNjGwFng=; b=Mqv/gFM4a/8qpxPfN13o6pnfx1pDqqbR/ajV0v0W3T6B7AMX97gqqOhC/E05DpG4ujeBpummVYs6HcChOeu7pGeozK0s0coOJaduckDuBVcGf1u7XtUSCAJHf2YrIs5NteJ5C9hU4N7IGWeBXoITfMWXlijUDnhPbUaUP9Px0Jbtk5LLFYcQSJliqzTMUg0yf8QFfri4Ob16AwShJTriXW5qKU3GQEHu5DfJceyx5eS8f+3ehb9qJVUdRDBIkx926sLKQZUsxTuqxPUhea7hNg/wToTA2u9wDwsmPBQF4iVd8l16SCKhJ1c3zuQD0H8HECRJCterWpl/fYOi3ogvQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6Ar+qnC0dV8EIdrfaq+yPKgotP+IbALzbSIqNjGwFng=; b=qeHNXMynbAjF7c1qK/KSMf0c6SR0aWaTpPgTq+GYL2d33qHazzGPNlvwQa+URTMQW18UKhoma/KhxSWNJtSaC0fzoiC+ZfesHXYHq9G8Lk2ZjTDq7Ho5Ymw+muWChq45EgLl/OFLGkBLVWvi5EVFrDohUzC3G/hdc256ixeBQP5q/qTsopP9+lH6RjjneSz+E0JnItRi0JlUX2ASLnEeBp/dIzs8+98U3xWD7UfPUB4roQxUa9tb8R9aRysQ8lcHuippl+hC5gQrK5foHAGMszULfSkZCohAJ5XGQptgYiizEl+XIL3jQFMo5LGSskJbOLgUxZuGk1UZ/arbjAjilw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB4192.namprd12.prod.outlook.com (2603:10b6:208:1d5::15) by CH2PR12MB3893.namprd12.prod.outlook.com (2603:10b6:610:21::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Mon, 11 Apr 2022 18:09:12 +0000 Received: from MN2PR12MB4192.namprd12.prod.outlook.com ([fe80::cdfb:f88e:410b:9374]) by MN2PR12MB4192.namprd12.prod.outlook.com ([fe80::cdfb:f88e:410b:9374%6]) with mapi id 15.20.5144.029; Mon, 11 Apr 2022 18:09:11 +0000 Date: Mon, 11 Apr 2022 15:09:10 -0300 From: Jason Gunthorpe To: Christoph Hellwig Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Zhenyu Wang , Zhi Wang , intel-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 22/34] drm/i915/gvt: devirtualize dma_pin_guest_page Message-ID: <20220411180910.GX2120790@nvidia.com> References: <20220411141403.86980-1-hch@lst.de> <20220411141403.86980-23-hch@lst.de> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220411141403.86980-23-hch@lst.de> X-ClientProxiedBy: MN2PR22CA0005.namprd22.prod.outlook.com (2603:10b6:208:238::10) To MN2PR12MB4192.namprd12.prod.outlook.com (2603:10b6:208:1d5::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: af949e3c-f909-4a5f-23b4-08da1be6615d X-MS-TrafficTypeDiagnostic: CH2PR12MB3893:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MM6K5F52tcEmjA5tA5HElv+XAxXceuNiVI7CrJEt7uWcG13PYDNz41NONkMS6913/OlZzVhN6nWTd6A3X5rY6G5a1e3zYms6M2fSB97yPq1yHzN5OW5J8myWs17owYUGdiQl354hr4hEbB0MS4ySdVpOjH5FO/gE3Bg/F1uas5HMF4gjXrH8UVYvIvqbVpBo1EFgPiCGAndvSZxVpdrJL3e3AJakcyZfkbzec0aQnoRUgiX4M9wgP1GSY5T1lCdpUxHppK1DuknI9HEHzk2F1mAsnrK9auYAeeQE6GAXURP0/BAqfS2jePiFb6DW/PDR05Qh16l/mkwtU+9Zzw2buM0gNLDN1rhtYuKbHJ4cT/arxvcrUsnLX+z1TmDWZMgGCX8twEyuumv4+XOLSIe1t6tIqHT/bOElwdxAfdn1Xq6SqEfom20hKFnvJZtm7r5m8h7TR8hAHtMUKk9mzUtYjMA1WQqyGcwVU7RPT2sCYx9P5QzhX5G6eAWDk078SwAtFaorcOFg4v2Hb5Z546gKMD6lu9mFratmTy9iSZtOgY16YVnUcqFVNFld9QghtaF/GLeSfVIJXR3mEOwuII2mDWSxgzKCrxUcPNgKcT6xj9rauaZj0GhJmiF3YTnV8R+Vis9Xbu59rF93HQbrIayC+g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB4192.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(33656002)(8936002)(83380400001)(6486002)(5660300002)(4744005)(7416002)(26005)(186003)(2906002)(36756003)(4326008)(508600001)(316002)(8676002)(86362001)(66946007)(1076003)(6916009)(54906003)(66556008)(66476007)(2616005)(6506007)(6512007)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?RYBVNJIAjgIkNQB8jkB6q8wkczYB4ZXBQlm30qgBjSnBSpRpow/R9yy6zJyH?= =?us-ascii?Q?x3KVoQXz+UhlCn8ADXyueY5kb0iXUBTcFU3z+EhyfXuFUI5SNlJNjMOMwqJS?= =?us-ascii?Q?8VgcttaftE0qsWy6eGbfSjkYlrPRu5JnEZNDW13vivrVw6Eg1VbOpDUC7w07?= =?us-ascii?Q?6Q3peQ2EyOjbl3JiI6dJi1lfiKD/as7v7C6TXXxtsuEihoX61gi4nU2LqbKn?= =?us-ascii?Q?UdIEI1Q0ScM9F005A66sQ0hBUYt+EDOLmopsvHTHKj8ZNwOWf8kLz4HUAcHB?= =?us-ascii?Q?GsTQyAtk2c2n27eIWbokBrYxA7gv6xQzNB5u43G4ZdhiUgeaTwhSpKC+dYL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DxpGq7SzjGz//heonRoycsd2tBrBC3t?= =?us-ascii?Q?jdDBVXc3hthDeTAg2KfMMfUF41DE1tSq18/rVZyD9albF/J6SjUL8KBvCV8H?= =?us-ascii?Q?ZyoctKu6sB64s1GdE+0ptOOIAGxPSGi8b49ZTQEFdCwYoEp+zlzXBpCvejVi?= =?us-ascii?Q?NJ+kuxEms2X/eG8PTELBf78W+BcvCB5oFZ2uWm6nqnxWu+ZInG3/1t/LGz00?= =?us-ascii?Q?JqWnbIgvEMYOqCkuEStKGAJBxlqu/hTenyFKf2/EMLZ+WWscUQlhwV/X2fIl?= =?us-ascii?Q?Bs7Qd46jzt/X9+6q7Mwl2c2wcBbO/1a7IKGKClohdz8BZ4h84r8CcQNKXe5r?= =?us-ascii?Q?wO8aiFt5StrcGuXLZ5WVWJiQHC02/ENGRJXLsyLEKaimeNtsxiPH3nJRiRLk?= =?us-ascii?Q?LcpC2NOun8A//EVAF6V3LOmCGvzAU2ZDoPxYTCP5Qhe6IM7A7Eym7AS1NFmz?= =?us-ascii?Q?gmtGZpaIvri1KbQCNx7/rzHW/JGyc2PsOdiCsbRdyHQLjSYT4v3eJ9wI/k4S?= =?us-ascii?Q?Bwr0IGO4fw=3D=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: af949e3c-f909-4a5f-23b4-08da1be6615d X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4192.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2022 18:09:11.9236 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 28KZymQzn1Eu0USA/5tipk4/PnkQbZyw5ruPzfskw3+hkr5g/pXIqQRaOd6IMS+A X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB3893 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 11, 2022 at 04:13:51PM +0200, Christoph Hellwig wrote: > Just call the function directly and remove a pointless wrapper. > > Signed-off-by: Christoph Hellwig > --- > drivers/gpu/drm/i915/gvt/dmabuf.c | 14 +------------- > drivers/gpu/drm/i915/gvt/gvt.h | 1 + > drivers/gpu/drm/i915/gvt/hypercall.h | 2 -- > drivers/gpu/drm/i915/gvt/kvmgt.c | 4 +--- > drivers/gpu/drm/i915/gvt/mpt.h | 15 --------------- > 5 files changed, 3 insertions(+), 33 deletions(-) Reviewed-by: Jason Gunthorpe Jason