Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp475437lqp; Wed, 22 May 2024 09:48:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVr/RjM9Oq+y+Gxm4QuyhjE+Bkq7EmA84RYAoXaTZ5sXg2mp1FjOQWHUXz5/NmyyM2bznksKuxj+NN/Kt9qUnmB9UbRQbvuuWHfMN4YGw== X-Google-Smtp-Source: AGHT+IFCa5HJ4ujZt+yJ5Ylf7O5MSjTI+fvg/p/WoNCijvdHbkBJgfS+V85R5rTTAEU7dEaJxn9P X-Received: by 2002:a17:906:7f89:b0:a59:aa3a:e6b6 with SMTP id a640c23a62f3a-a62280d4f11mr162581866b.18.1716396516209; Wed, 22 May 2024 09:48:36 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17b21bedsi1595006766b.355.2024.05.22.09.48.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 09:48:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186509-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=Anvz1tSK; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-186509-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186509-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C73991F236AB for ; Wed, 22 May 2024 16:48:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F17031419B5; Wed, 22 May 2024 16:48:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="Anvz1tSK" Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2082.outbound.protection.outlook.com [40.107.243.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 743ED199B0; Wed, 22 May 2024 16:48:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.82 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716396506; cv=fail; b=sECHbPvNRc2r6wg9DGitss0RwLrcPHOOHhZ/qNZkGBipT7Pj0kJx9dvnSRk27EjeXodlIPQj81QeA9wWsaltdlfYkPXKYceceApszZowt6EhcCyqqaNSQYUVZj3n5GG3W5SfY9KtvA3ki0GHT7S0DRNTE2OOq+h8ApbDET98Q6E= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716396506; c=relaxed/simple; bh=EU49AnnWVn8BVyO7/8tqKNhu/JjtyqQWPIZxUXXQANc=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=a8HFSfTQrarBn7eSg4HYR8eGK/oFrxDbtfFLhTAn7ARIzjVLwWqtRhXkekK6ju153x9C30MyUjbE/i/M8GNCKeBbj9Ljd42ypztGN5HYuCv7FmkXTfq2YIo4rZWPSEgbp5/rPkCHuHC1/FQVXSHvkDLOStNR2nD/j3AniqiYeG8= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=Anvz1tSK; arc=fail smtp.client-ip=40.107.243.82 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TNMbztvMedKgJmv4puPY8qdQTcj/3PjM48u+2egatdLiMUL6QN/HTVoRcpginMHstZpJigk5dnuXzhOI5gyiDe/P87vX3ZMBCKWo8sWRg1nnVer5jbGMg5R67QoCGV15UsP2yKT4V+tdjXRBMUkdp/behWXLFID0Fh4sQXc0TNj1zWQRvRYo/DasGuveeXJONH3GSxLAPONTEaep6/OfLgReFqeAwZcCKjqczoibxoBcbZEQPmn+tQFaN8hJIirjnVYuzKiPU8+dwc3exMVF3jMzmmfDA9TrhoipsPF+FOSx7SkFQJfNN3exKltV8v3K5//S23srbD/EbLMpptZr+g== 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=kjYxnXO92hKV5ulLAd5n7xBXvqpCXtz3bzbEpH+N4Bo=; b=fnp8UHufAgdQYJzepXAzORKTU/0R9mr1hgtnCemG53JvhF4AqgW8pIoXG4C9ijlE6XJ3fB/ej/ND0NmKUgUvRSH0CVgFnnvVdh4Wk3Os9nAd2ZmlWl/nsUNUpIw6rOuqrOZ+1eb38qrgxgvajU54SLlLA/ff5HwUDdznzVETVOUsc6trUrWLkgLMAMqxhrZRKyarIrQlX0RlPIuehxsJ+ldIMMCcGEJX7tQGennBXuPQQO6YpFt/wjWpBecUnejb/6KLUN8kzxYyPBSbAPYdVoRIubj8Qeb2UCWWymSuv+Sr906h+oVIUL75rXq/9DlgrglSQPaUdvIic8T8DMmQ6A== 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=kjYxnXO92hKV5ulLAd5n7xBXvqpCXtz3bzbEpH+N4Bo=; b=Anvz1tSKOFPktAPsHHumt38zN3P6HPTUxZGtxYIFm+7wsK0bmUE7drGTXBqm4QHoOIt9MYH84Bod7o+dBE9AkkZiccq+z7KfBzsj/HM+zFtOEUf+xIvGs3MaZ3fcMO9G2706NZMF0BZOFdvuFGhlDdkG9gfAlSZfb12POls3jL2ovp8yYxYWjDO8hqfmmE7YVMw81+tDKBf99rI/BSXoMz1NAGZHK9bX2cvC2aDs0t3rMUvX2ABPSNX6Vvh+RyidZC00yJ8GL1+o2r//OcHh5Rb6fse0WZRPH9QMJlWTrnp+/qjxx7a9EtB93MHKhC5VD6I7Ae6RZzmJBZeE+tKtvQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from DM6PR12MB3849.namprd12.prod.outlook.com (2603:10b6:5:1c7::26) by BY5PR12MB4307.namprd12.prod.outlook.com (2603:10b6:a03:20c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.19; Wed, 22 May 2024 16:48:20 +0000 Received: from DM6PR12MB3849.namprd12.prod.outlook.com ([fe80::c296:774b:a5fc:965e]) by DM6PR12MB3849.namprd12.prod.outlook.com ([fe80::c296:774b:a5fc:965e%4]) with mapi id 15.20.7587.035; Wed, 22 May 2024 16:48:20 +0000 Date: Wed, 22 May 2024 13:48:18 -0300 From: Jason Gunthorpe To: "Tian, Kevin" Cc: Nicolin Chen , "will@kernel.org" , "robin.murphy@arm.com" , "suravee.suthikulpanit@amd.com" , "joro@8bytes.org" , "linux-kernel@vger.kernel.org" , "iommu@lists.linux.dev" , "linux-arm-kernel@lists.infradead.org" , "linux-tegra@vger.kernel.org" , "Liu, Yi L" , "eric.auger@redhat.com" , "vasant.hegde@amd.com" , "jon.grimm@amd.com" , "santosh.shukla@amd.com" , "Dhaval.Giani@amd.com" , "shameerali.kolothum.thodi@huawei.com" Subject: Re: [PATCH RFCv1 00/14] Add Tegra241 (Grace) CMDQV Support (part 2/2) Message-ID: <20240522164818.GB20229@nvidia.com> References: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: BL1PR13CA0386.namprd13.prod.outlook.com (2603:10b6:208:2c0::31) To DM6PR12MB3849.namprd12.prod.outlook.com (2603:10b6:5:1c7::26) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR12MB3849:EE_|BY5PR12MB4307:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b87ef55-fc5c-4afe-ab45-08dc7a7efcde X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|366007|7416005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?rjUsYkWTZ4y/OdKyYV7TIWHwHjOVmyOrfUWcNKZ0vRsO8/rWOysWcyqpzZYU?= =?us-ascii?Q?K5jYl/BNpp9VeZT3DN3aejwDnwNvlbqCQcmxrogQMdEB2bqfP4mKfvFtHvmE?= =?us-ascii?Q?RPuOBnntw/nXhxxMWiKJV1ap9+yQ65rRDn8Ei7+fwY79S/a73ekcc1ZwW96a?= =?us-ascii?Q?7+LBi+6yWNQKUbFQDE249i7QSviP8qoAHd7WZNaLZKYv+q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TWaLAoMXzdxcHmbLiZ/NXYwrpHPdaJEvONWTU0qFnnzvDsNQZ8aj4ygbH8?= =?us-ascii?Q?tRPG+I+WkQS0pz4DI0tFAKysifKlil9NPa57/eSZUUB9P0yHareanCl8JRtH?= =?us-ascii?Q?FygUdKyluo7JSdA5RMW3+tmHT0f5FKPP1D7SDEP+pQCh6s6yP/Z9WnrLXFx+?= =?us-ascii?Q?U/msBKsHBYcHRmj6Qj9NYUq+EmundkHvzJA8oee6zQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB3849.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(366007)(7416005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?xpmic/1U6haKO26vPmwLJFgbnsxdG+dt247By8h2KPOgfimlr1Kkz0Q69Vk1?= =?us-ascii?Q?7r22YK4nzrqjMMTIZENBf53xCMTS0a45wuVmmQEoKAGjvpOGtXOgvZG+milO?= =?us-ascii?Q?5idUfqCzETYUaYcpYTE7SKSVgzG5ggXr3zsmh4B17KWfbVKVSVb6HEaSq3l3?= =?us-ascii?Q?hWtXnNI22+ggbChZ37kbgQS3Y4su19J4NvoVuvBQptbQvjLtqKIUDxYA/sln?= =?us-ascii?Q?sD67GwRSSvKmafGbTIy5py10LJTQfH8yytPanAI6hIDs2hr6isx0Fu1WO1vw?= =?us-ascii?Q?BD0J+5qPJjKC0kdRYVphiqpzgguKuXBKISoL0rb5SkhMKewZuw/f55DrWZaV?= =?us-ascii?Q?dsOTeRSplBCsMf9ovIHpCDVaqUfljmg1f7RdEP16tmxAKY5A3K415lCigyl/?= =?us-ascii?Q?K/WIPOuHVvk7HqoJMUuJugeGOg6mDXOhpz+mG+rwo9YEYuygng0ygSgtwDVL?= =?us-ascii?Q?8RUz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6DIVDDgwDIM+wSdumCh?= =?us-ascii?Q?M8HU6ls5EkbxP+HaKuSEx00ksnjx9t5qwEmuEqLkGu2RkovHQ9S3IRURXpz0?= =?us-ascii?Q?bjfhMbU3zo73hASWEw4maxsJzRbejw7WJN99waAjSzjFcI0Y0oWfsS6rAeIz?= =?us-ascii?Q?80XhV9fJBSQfvq9Q8RHQ0RVmJKYo/9dxqFYwfZhShymmQlW7r2u78x5AUGkc?= =?us-ascii?Q?moZhCjwjmjUv4yYH4zo=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b87ef55-fc5c-4afe-ab45-08dc7a7efcde X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3849.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2024 16:48:20.7954 (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: cK5MTYaGRQ0eoiNmWgDXuPuoyapJasXqX9FAYO9ZgpNJrUWoL5v2Y0A6rQHTt7Eu X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4307 On Wed, May 22, 2024 at 08:40:00AM +0000, Tian, Kevin wrote: > > From: Nicolin Chen > > Sent: Saturday, April 13, 2024 11:47 AM > > > > This is an experimental RFC series for VIOMMU infrastructure, using NVIDIA > > Tegra241 (Grace) CMDQV as a test instance. > > > > VIOMMU obj is used to represent a virtual interface (iommu) backed by an > > underlying IOMMU's HW-accelerated feature for virtualizaion: for example, > > NVIDIA's VINTF (v-interface for CMDQV) and AMD"s vIOMMU. > > > > VQUEUE obj is used to represent a virtual command queue (buffer) backed > > by > > an underlying IOMMU command queue to passthrough for VMs to use > > directly: > > for example, NVIDIA's Virtual Command Queue and AMD's Command Buffer. > > > > is VCMDQ more accurate? AMD also supports fault queue passthrough > then VQUEUE sounds broader than a cmd queue... Is there a reason VQUEUE couldn't handle the fault/etc queues too? The only difference is direction, there is still a doorbell/etc. Jason