Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1069231pxj; Thu, 17 Jun 2021 21:52:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTCLf7lSjd9G9iDVW0b8NDQydqC3i62dnzhT7j+hSAhAWRjIkei8ic9JcA/xS1icxKhINL X-Received: by 2002:a17:907:2941:: with SMTP id et1mr960864ejc.394.1623991931992; Thu, 17 Jun 2021 21:52:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623991931; cv=pass; d=google.com; s=arc-20160816; b=MGPcZNK1oHiwAzggzMDPDZM8y9PP5FyOoYqrTNhRMjMYbvMcg/Xy6eiPBFhf5QYM6g skRTGPEgilGyz4UdF5JHVPq6Et3NfbeBcsjzeiZl8+QxJjehl+0sa6eiceEViPvAulE2 Nl3+VKbxwE9zDM3GA8nY1zYfLxn7jUgfPsiu+w8L2v9ZbYkV8aEKfXXh56TgI/sw9ygU fHCpeCB1Tl5ScKYljxMNnKoxp0HVrwPKSFUdAVLo308Cvz/JGMnGd5KuHglmvelJgjLe K6GfBRESs6y1uLiF7lGWAffw4Jz7h8j60Qa1C+TpYCCQZQxEC2lmwWDzG8L98q+geC+L mrcg== 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=57nNh4lj915iJ3BJAgiLrcGLbj4HT74P9lAEQffvS8Y=; b=fQ7kBFIIqEqTAVWisecfA9tH2gFTStnphdceQwGDQmW6OpE/NJXyZ1Ccn/lrDqZsJg LqGiADfkgRI/bzMavDolADc6tAl8Lh2eJvlN6+6RKRa3D4iifVY4+7TVDVhceD1gs1fZ thjx6iz473T707NLFcILV7y37A13u2/4ZDqqMnVI1MrpIaDmISqWW6dGQb/vFADlvep0 ZlyjCiiHp1ubgd2DKeGJpIBTWnct/rL7z2ps6Fut2p2QZxJ+d2zDBKjEwM0D1nfs9NR7 CS7osY/7MGyVgMep85NbrlmdU4exFKy21O1bjmzElEqs6XwwMIqb89oBhiOEWRC7NGRS MzsA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=t6V+qW1E; 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 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m14si7274354edp.172.2021.06.17.21.51.48; Thu, 17 Jun 2021 21:52:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=t6V+qW1E; 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 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232858AbhFQXGu (ORCPT + 99 others); Thu, 17 Jun 2021 19:06:50 -0400 Received: from mail-dm6nam10on2086.outbound.protection.outlook.com ([40.107.93.86]:24832 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232601AbhFQXGt (ORCPT ); Thu, 17 Jun 2021 19:06:49 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TXkS6tPf69kxnM3PqIN5NnQC/N8yi4iVs5+zR/BvftF5t+XaTkfu6YW6qtBZCXy0YyDNdEDoAx+buOoY4S+vjmHbZkogiIrevQxdokbyOz1rWZTbGu7wRFQ+PrK90/8cQvnLn/D7E4X9GFfoSN62FGXsTBwTTy9NeKKBF+Dqz5WTHP1S4+xbPEk54GdUkqiq8nDxDZXSL5CeD3twHL2DoyKlW1jtepNB7rTlAMk5M0KX40uLdf3iewyHvJDc59hziFhrpw5AdRfa2bX+sV7M6HwhJbR8UM0GS7q+P4ZErm0rcCWTuUg3NkEzbIcHxTSDW4V20Wi+VoprJaAbay7/iA== 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-SenderADCheck; bh=57nNh4lj915iJ3BJAgiLrcGLbj4HT74P9lAEQffvS8Y=; b=TEXIc++3xa9IGaCrh2N/QHMJRBV2yp4q+YXoKx/+cR5c7ZypQfVte1yLrHOha99LYriEQvU3nP3BwDgb5bncu3Q9u0BAB/WpkoHDsVPAfv0W7xJBYFSxcDEIqfPRj+TkAbGYD/Fka0TkXaI4mH/LBjGO8XMeZlrb4WflYjMr25zYneSN1wDaHgLKktS4FcMrQODzT7fAfzpwJJC7zlKYfESdL7yIgdnszczKMuQUkLc9+jYMaDHYtbtPqGQuDVUWKtrmSQrrnbrfc0a9P7reeRWVNsHo3mmZMNhWSnV96vSMR2r1uFyGEcipOsSqYa4YkhQaT2Oi0b7xqEgcqnvMhw== 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=57nNh4lj915iJ3BJAgiLrcGLbj4HT74P9lAEQffvS8Y=; b=t6V+qW1Ee863nhNnuiJuWXxmVWCh4Id3NH6G5zeOF5Ti1nG0r5ESAo4DdIzIRDxpl1ZVkaZGcH+VhdX+an795Qnzf09KopcPkQLsiHHGQcvjHCY97QaaETkh1peVFn4E/rZY05pnTw3Ej+M61RNfkMec/dTET2B3oapZcMUO0YT64r7r4AIJR7aJAoJpDzWtIO1LyhAUvKnDnd/nGhzSceDFelbmZC/esn0gjpPenPxrA16csPXA96JfXYdSvzey+2V0icKP85PIjDTabtXivuGlwf3mnSnYobtkfRSA17dR+jNHD4ZVarmUokFoDF2vDNJznTrWubm2q1W2NBn2ew== Authentication-Results: gibson.dropbear.id.au; dkim=none (message not signed) header.d=none;gibson.dropbear.id.au; dmarc=none action=none header.from=nvidia.com; Received: from BL0PR12MB5506.namprd12.prod.outlook.com (2603:10b6:208:1cb::22) by BL1PR12MB5128.namprd12.prod.outlook.com (2603:10b6:208:316::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.15; Thu, 17 Jun 2021 23:04:40 +0000 Received: from BL0PR12MB5506.namprd12.prod.outlook.com ([fe80::3d51:a3b9:8611:684e]) by BL0PR12MB5506.namprd12.prod.outlook.com ([fe80::3d51:a3b9:8611:684e%8]) with mapi id 15.20.4242.021; Thu, 17 Jun 2021 23:04:39 +0000 Date: Thu, 17 Jun 2021 20:04:38 -0300 From: Jason Gunthorpe To: David Gibson Cc: Alex Williamson , Joerg Roedel , "Tian, Kevin" , Jean-Philippe Brucker , Jason Wang , "parav@mellanox.com" , "Enrico Weigelt, metux IT consult" , Paolo Bonzini , Shenming Lu , Eric Auger , Jonathan Corbet , "Raj, Ashok" , "Liu, Yi L" , "Wu, Hao" , "Jiang, Dave" , Jacob Pan , Kirti Wankhede , Robin Murphy , "kvm@vger.kernel.org" , "iommu@lists.linux-foundation.org" , David Woodhouse , LKML , Lu Baolu Subject: Re: Plan for /dev/ioasid RFC v2 Message-ID: <20210617230438.GZ1002214@nvidia.com> References: <20210609123919.GA1002214@nvidia.com> <20210609150009.GE1002214@nvidia.com> <20210609101532.452851eb.alex.williamson@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Originating-IP: [47.55.113.94] X-ClientProxiedBy: BL1PR13CA0407.namprd13.prod.outlook.com (2603:10b6:208:2c2::22) To BL0PR12MB5506.namprd12.prod.outlook.com (2603:10b6:208:1cb::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mlx.ziepe.ca (47.55.113.94) by BL1PR13CA0407.namprd13.prod.outlook.com (2603:10b6:208:2c2::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.9 via Frontend Transport; Thu, 17 Jun 2021 23:04:39 +0000 Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1lu13u-008JqX-9y; Thu, 17 Jun 2021 20:04:38 -0300 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 98b10d07-bd8c-4cdf-8bdd-08d931e448bd X-MS-TrafficTypeDiagnostic: BL1PR12MB5128: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q9Ul3MS7Juckqr1CwU234XkBgPwv3fcJe8nUaNsi9rsFn10v/5RP+e3LWzVNOW9qWrZr08mH69+HIPa646Rgfy7xs+1z4OVyqxm01xGXIDOB8BHu49dJUf65uOmx0Ka2YicemKvMPLAJFgG3q4AzXe5eGHc7dUkzKXq2YU1DPSs+nAmW5xdK9NLYqKGmmKOdHwUlKBKVs88wNCaQjFpqVuPPa3LrT7ArybOPqeYJ99H1F6e6ESInclK4orOhgJes+TN32i6MZJm2c2mVcuwbqxEje++kreLnLyWDqOjRn5n9MFQOfdo8RziC1dSJj5R1dasi/8JyN2zL5W4C1p+KjWbU/SmVL4vxb2x9vKcJppkliwryi9jpL9xDqo8OSx8d0y6ZjDg0jWpCKfN3N3YAc2imGBvBGuiD6slHM0fEeDjJEXoxZzXzL2ffu8SNfgIaWCQZ8LedajRf3beuWBUAMxbvhU/GRqwZDMQzLTvfUd0vbO8+EYMDQUjtiFIIiNN0cwwZni6AuY5hKeXf9VvEByuFWpGDpjgDavegldWu9dKdJ+Ymg6v3e6PHZxQKwERF8oQafRYZu26VeCDPqEzh9je+eDMVlSwGstm+/LYo80U= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR12MB5506.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(396003)(376002)(39860400002)(346002)(366004)(66946007)(66556008)(66476007)(6916009)(186003)(4326008)(7416002)(2906002)(26005)(54906003)(5660300002)(316002)(8936002)(33656002)(38100700002)(478600001)(2616005)(8676002)(86362001)(83380400001)(36756003)(9746002)(9786002)(4744005)(426003)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?XvBb7bUf9LcRp3GZzrVWCmZ3K+QbAlhbEIUmE0zxFZivz4g0mQZOleFyfCwa?= =?us-ascii?Q?rGdVoZKeA3Fzrd0Xx/CMkOYsr1Q/9108ZI7/E4WvtjEifDNsR5gYiRyqI9pO?= =?us-ascii?Q?5iwdEYaYyCfq2Qy6RJNCPqbHoguYJdvq4wkqJU8Pv7ijc7XjRnGrUeTL/wNf?= =?us-ascii?Q?jFDX7ISfLxacwChPGdpPw6yFtXA/g69arWqmmaBVnt4q7mUC0bjQrmHGf4sg?= =?us-ascii?Q?IvUthzacty83c0aASyslobpEIIeXwuIRvPZgTsx6CDaVsHz8btlKta4lxfiS?= =?us-ascii?Q?O4wZRZolxtEevOp7AKtShEpzwyVv8W7ctrKJdaTNuNhMPCucmfIKFBJ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8WHYpuK6yZzMobcesfbrIxGcg6u2CA?= =?us-ascii?Q?98yzbrl0Lh732vieqD/PgYM8mpyoWRmfniaK2Q31gCltc4bKy6ocguqpKSaL?= =?us-ascii?Q?EVnKmSHWPwRg69hnNcx64qYF?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98b10d07-bd8c-4cdf-8bdd-08d931e448bd X-MS-Exchange-CrossTenant-AuthSource: BL0PR12MB5506.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2021 23:04:39.5328 (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: D8XxTH0ANlGnancXx3KoO+OsKn1QvR15aTsF9Ja5TUPzIYzQUMczMYNrinRMHZtI X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5128 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 17, 2021 at 03:02:33PM +1000, David Gibson wrote: > In other words, do we really have use cases where we need to identify > different devices IDs, even though we know they're not isolated. I think when PASID is added in and all the complexity that brings, it does become more important, yes. At the minimum we should scope the complexity. I'm not convinced it is so complicated, really it is just a single bit of information toward userspace: 'all devices in this group must use the same IOASID' Something like qemu consumes this bit and creates the pci/pcie bridge to model this to the guest and so on. Something like dpdk just doesn't care (same as today). Jason