Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2677162imw; Wed, 6 Jul 2022 09:52:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vtgWSKig4Zh/+2l+CNL8Y8CSSXuFVPf/Y0w1vCtYGszuc07yr3EDmDfse5NmbYnOnRYDt8 X-Received: by 2002:a05:6a00:179e:b0:518:9e1d:1cbd with SMTP id s30-20020a056a00179e00b005189e1d1cbdmr47789587pfg.12.1657126353402; Wed, 06 Jul 2022 09:52:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657126353; cv=pass; d=google.com; s=arc-20160816; b=Ac7mIrRLi3tAySFsH6MqMBeIHLoiUl+qmOSk0ynj2G0/XiCEwWHRI6DPqio4ddEn2V Hsc/d/3H3cNoMnKXYRhr9xTW8tG73AQ9b5ck/EcFmJ6iQWK71C8dikznYXyOxc0sjtAy BEHaMTv7wpDbMXL6oAtnRpi6JDneMdn+OLKVVyFbgasOVkZkMBsmrdl38PLiFhM+wMQY Q69gTYJ91PxTRowt3TJsWfEbuBH0wCWgtcb6ydWyFcC2OFMsRnsjkQwPvJuweHq8JkGT VMrqQ6dQNpQQHuY7rK6HNf4MSgdcJeFLLl8x19AnGOsF81qM6LuePZhW5FAjn0R4/Ulj ul/g== 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=lPPutliEJ+0V/YhgP5gAbAUE15jlkz3Q7cjOflgbR1w=; b=V+tdE4EdLqN2/7cr+UYn7X2cTTatkerP35WJei9Yx89BDBTIpy2DEDDs7Bnffqcrca Wmd+87+jA335iFNQJAnVZ/zSbrM6CvsDDHlIwRC6CnV+mLWbCvSyYfeTmLIeiLrhWY99 xNJiREX9PQI50y5uwhSjMUwLFwCAth3PeCfN4r0lclwut1ZcjLTgXdJwxvf7HDpxEURl RgJBjTuvMrwKZ1pU+iU4C0BcZhir24KQIoJrjLcfx7g9CtlUGdInB/3g6g76IfHD/3VA MXG1KzIbctecXMfsOdadpUx2r7a9E8tYgIvMpL49tgAARrswdpDkQNiNbDA7f/xsa8KI f7dA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=TkQGzFKW; 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:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g19-20020a63fa53000000b00411f2345f3csi21927116pgk.207.2022.07.06.09.52.21; Wed, 06 Jul 2022 09:52:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=TkQGzFKW; 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233987AbiGFQsh (ORCPT + 99 others); Wed, 6 Jul 2022 12:48:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233312AbiGFQsb (ORCPT ); Wed, 6 Jul 2022 12:48:31 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E01E02982B; Wed, 6 Jul 2022 09:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GgjmwqnoC+iRb73ndm6B34r6hGN6AV4B+wOJ3ILijq22zOVN+xyNg8o+DAxxcrWCz/eGkXULepSLggNBa9JjWW1agHpaR8Heo7jC9EGMA3whC/XinGW92pop78XtHDADAg9NDjywEpcRayRgpidUUHVJyMQa0L605MIL1J8ncKXaspD4pGap2NqS8+ZjBBcYaTeFdDct43sESN21NQANh6QbFmzh7BJuJ+XfZpecVIyCNuinpTiLjoa47TqMiSVYu08GKyxOLLL6bXDNiJRPsBqkYYvJLUTFGL5n2fUOyrQ22vSl/yRvVq1VDVQC53WNR3qjQgbGINBd9j26E0jGmw== 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=lPPutliEJ+0V/YhgP5gAbAUE15jlkz3Q7cjOflgbR1w=; b=fSQfo4ddv9pFYUzeufpJICVc9ec+LIyIcrVXVoLGP+ENhWcogQndY1KEkQ2LJPBj518rrym5exMapwNGyG5iMvW57A4GoS3H+TmX+T9E9nzDSHBNUMLsaInvrC3BjsddI73nTSWmc//N9xYQOXlK1uZb6kTWkjcuGCNZxdy05v7E+B8zasY7W3PByozZnvW+EZIjPcJkRpBSHjrzt1WkG66zDPAW6boouXyp3HVp8+60uUn2BeKnCqjOcQIovJtdMlg6rCUXcBUN9kWTNNZ7HXvR7/z1B6OBRa1MRi3TIG+/+qZh3xEiYc/WipgPdFA4wC+6NZI359VbirXgYba5Sw== 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=lPPutliEJ+0V/YhgP5gAbAUE15jlkz3Q7cjOflgbR1w=; b=TkQGzFKWC+RZCvfdKV1a5IFsy0sNzws8lrUIn1HUEyHuPd13xiFmuQeIHrpxNSSdqP1dGtkyDXPuMQnZyKSYBbLO61jImRrdhERgV1MtcmYsCgA3rjQ8JzPqr1mSubehdmfdUsju3YWfp3zMybt9jdi08gkeMzsV78Flj77+VEQQ6yBUf0aVWlxMLcNfsnF+wY2xb7EnGDv5NcPaWktLMtz2uPIUaB2lrJgJl3/ieaEe2kColbrUQUA3Jaf2XZq66ttw0EQoukZHsSo5s9FsMJhbMtQHuKO8MpQRVirW4/IOFh/yLcBr1Bsjk/bJ0/Sv10rCo0AmwVptytob+iCBZw== 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 BN6PR1201MB0226.namprd12.prod.outlook.com (2603:10b6:405:56::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.15; Wed, 6 Jul 2022 16:48:28 +0000 Received: from MN2PR12MB4192.namprd12.prod.outlook.com ([fe80::ac35:7c4b:3282:abfb]) by MN2PR12MB4192.namprd12.prod.outlook.com ([fe80::ac35:7c4b:3282:abfb%3]) with mapi id 15.20.5395.021; Wed, 6 Jul 2022 16:48:28 +0000 Date: Wed, 6 Jul 2022 13:48:26 -0300 From: Jason Gunthorpe To: Nicolin Chen Cc: kwankhede@nvidia.com, corbet@lwn.net, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, zhenyuw@linux.intel.com, zhi.a.wang@intel.com, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, tvrtko.ursulin@linux.intel.com, airlied@linux.ie, daniel@ffwll.ch, farman@linux.ibm.com, mjrosato@linux.ibm.com, pasic@linux.ibm.com, vneethv@linux.ibm.com, oberpar@linux.ibm.com, freude@linux.ibm.com, akrowiak@linux.ibm.com, jjherne@linux.ibm.com, alex.williamson@redhat.com, cohuck@redhat.com, kevin.tian@intel.com, hch@infradead.org, jchrist@linux.ibm.com, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: Re: [RFT][PATCH v2 2/9] vfio/ap: Pass in physical address of ind to ap_aqic() Message-ID: <20220706164826.GI693670@nvidia.com> References: <20220706062759.24946-1-nicolinc@nvidia.com> <20220706062759.24946-3-nicolinc@nvidia.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220706062759.24946-3-nicolinc@nvidia.com> X-ClientProxiedBy: BL0PR0102CA0034.prod.exchangelabs.com (2603:10b6:207:18::47) 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: 15b60f44-8f5c-453f-ae38-08da5f6f5986 X-MS-TrafficTypeDiagnostic: BN6PR1201MB0226:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: V9n6oBr3mkAUn6cXcmH86R4pgnr99VD7TifDTsxg2LOVLT+3qh8Yc/J1MSL6//rbqDCJA/BEK/8PQp46W99VIS/fQnSb0Vx1X9XrJWeGWVkNsb9lqXwBASI+CHYX6JMeo9D+WZVxJJOUyhBqAXbzvbcpEXDSaU3Jw70XftpSARAkl7UnClyOp84MRklrXhukBysKuDr5lS6hfiKM6uyVc8xQsZH22vWHKW2qN/3c4WWFtrK8bcoQC7CHPcTvGtaU1cAThEku0URCILI0y8jqI6b2vMVNn1xnEf4cq/nbEb35gKy45HNg8B8vNusl9E3sN3eonnNFCgtMHuVp557BszZZLl5D8tLMAV0j9YB7u/C5/Ajs201ho5RvwI8Uh6vgpHX1eAQry2rMoMOq4ubmRmA+IdNukxUJJjLvBaYlzEoHQaPVzG0CKOfkgqnzkaQGg3Q2S15gRXLHeyyvKh0VeDYogTgJnfR1IYpcT3wN8/ARgZd6NsyOr5g+R04GdJk1Gk7a1QExCKZNszovMhYwABxxdKDUSxqVYtYztEeeeOjD0ixjhIet1+l4RMcu8lWNuh/lLXIjYvUIs2dZ8K1I0aDXWJjbfYVvfvPeLwwUVHAxcuRWi9zGyIr4VQRrqKKVWbp1vyvd2r48eCT2b9pcABStoHzsNcR6WxzfsyYyT3b9Hy/TK5+2nYNxSFDjHJkKgnIPqpbV5hcFvBlSqPvEglRE660jtGS/EOiwhoScQ83cQrXrQ8L4ty7LI6vX0hd/rbmGZmhucI2g9ZANwEiy6Tf5b4TC8pT1jCMXGzhlFsiT79+flR6vWQI/60XTtySP 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:(13230016)(4636009)(346002)(136003)(376002)(39860400002)(396003)(366004)(4744005)(7406005)(83380400001)(6486002)(478600001)(2906002)(86362001)(7416002)(1076003)(2616005)(186003)(6506007)(36756003)(26005)(38100700002)(66476007)(66556008)(66946007)(8676002)(6512007)(4326008)(41300700001)(6862004)(33656002)(8936002)(316002)(5660300002)(37006003)(6636002)(27376004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData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N6SdjMYI2887NE6X1lAekLAgOtPn2jKNCh?= =?us-ascii?Q?azRsuyvXWN04FzpI1AeHuwmZ7V+S2cd+6sZFw8v/Tk9QnDhlgxalzwRARDpg?= =?us-ascii?Q?URVeaI0XpCv/c4LG7oiDwkPCi8thPXvbxh1CLdVfNbfy7Ukj8k45AgJ/vFku?= =?us-ascii?Q?PMvswf+Iya1CWRkr9VNWWsleEJx9fAL1UO5B6B0hyrwmbLhiMLqxcJygs0Dl?= =?us-ascii?Q?/Yy4YPIg2tfhnFOgnG1gbl2oxqpI6tWPsSCrWoN3dk59vwOFQIQQxZSJZtVe?= =?us-ascii?Q?/t1tjGSK86/d6x6agxfo6J/91788qVBJoBmPlA1O4mYz9367QOGCJrdsPSyp?= =?us-ascii?Q?GnluSOtCQ1hIzbSGtqx+5+KBKBPeeqbFeJchwbtop3+KXAfp2UO21pAfawDJ?= =?us-ascii?Q?AmRJMtoJeAtg5i6/3Ujy3+nAhHsXCCmBih+66+obmWSPPCGCpWsNa60xDqjq?= =?us-ascii?Q?QzHsNJs59ZHh5S4P+cXkLAr3b7KNRCk2crR8MpiRvVv4PAhDQF1dvgFA0bcq?= =?us-ascii?Q?efjfLTqQ7eM3OdpH0urLoRQvQXLepJM0dpt1H4TjsQ2iML+OHf+VBb1vM9uG?= =?us-ascii?Q?igXDymVqQGNB0ZTI/ES3dU5bs0NXIwVSCLXyCXVInU+e0uRkfPj0DDRSmVzC?= =?us-ascii?Q?Dfiu3s3TxjkMSGs+g7mMsdExCOfKCLgVBjpCHhsZvir4yrxRrVS/sx6HRs7A?= =?us-ascii?Q?LYM9Dn16p/y8FlngDHrm++hql7Eq+MSaMOyiJKoj?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 15b60f44-8f5c-453f-ae38-08da5f6f5986 X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4192.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2022 16:48:28.0615 (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: bGW6N3rIhZO39L15t6TLrAgijjJaea6q1dbARNqAPducAPChX1vJIHp24Eejm8T9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0226 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Tue, Jul 05, 2022 at 11:27:52PM -0700, Nicolin Chen wrote: > The ap_aqic() is called by vfio_ap_irq_enable() where it passes in a > virt value that's casted from a physical address "h_nib". Inside the > ap_aqic(), it does virt_to_phys() again. > > Since ap_aqic() needs a physical address, let's just pass in a pa of > ind directly. So change the "ind" to "pa_ind". > > Reviewed-by: Harald Freudenberger > Signed-off-by: Nicolin Chen > --- > arch/s390/include/asm/ap.h | 6 +++--- > drivers/s390/crypto/ap_queue.c | 2 +- > drivers/s390/crypto/vfio_ap_ops.c | 7 ++++--- > 3 files changed, 8 insertions(+), 7 deletions(-) Reviewed-by: Jason Gunthorpe Jason