Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4088923pxj; Tue, 8 Jun 2021 06:17:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRXLIzvVq5X5TS3Cuw/1pU7c1FuFxwUiNI+UkXSLXfWf5wGrpOeyWV3skYSKrATluozFI4 X-Received: by 2002:a17:907:20ee:: with SMTP id rh14mr15468793ejb.461.1623158220252; Tue, 08 Jun 2021 06:17:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623158220; cv=pass; d=google.com; s=arc-20160816; b=OnzZdYQQWzfvzfeRGNT9M7yByAyMJZ2LtNhnIF6FosDpz8k6PQVw0Tr5bSZqUK+Zw5 XVnrBCIQmrLKobcmFLhhybOK+liMHsLZSiTzNLTiRj7UyAG0E0mOoy5WE9E5UwJ+upqr 5PA6iRBjhBnMojBY2tNkPmqmUF/trSn5wqLj7TVyWDLPtLf6udKBd1JM+ifXuLCiqSsY rsDLF4DOKOoxI7fnHlli9VlazMo01EZEcaiqoTHdLzE+V8MB1B9b8HOg/LLJUMIeDG+w fOzPFEGDFlGrsSa4k984W6+tERBVaYsqe9+TuaD6OuTP+RGGtBefR59RKneUl7dnvuh9 dDXw== 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=Cf9vr+faZoa8pYDHkzodOthjyWV/67iurkrgTfswTHs=; b=kAbUQIsYKftJ0u8Tmluu+42XMr4xxHRuWNnxOsKHeqaBVt8+co4KSJcF85J3XLlUxF 1cIp0/kdyWwzjQdAkkfwoYOwNpBWFrQQ9qfJAxOUEWObsrCtLur8+GnzMfM05Q/Lo1eF dBIHV4ptgU5+rnMYr0v6wabk2J55/LSF6ibXMqP+ocb/b8+ZieDpmUdAVJxDiWMwCMta GVxkfwfVaxXidv9IaqaNqQL3yWM7cccE/hBlwlFBj5WJAakHgSGgPwvsqwg8ttJAM1+p 8eUwLv6Qc/bEZtqbxpjhR9MAxB4gmdKMOwpJTKE6DZHBTsLRb/dNYQ2Cl9lxCU2RNmZG qV0g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=MUt+dJav; 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 y3si15180441edo.435.2021.06.08.06.16.34; Tue, 08 Jun 2021 06:17:00 -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=MUt+dJav; 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 S232889AbhFHNNw (ORCPT + 99 others); Tue, 8 Jun 2021 09:13:52 -0400 Received: from mail-dm3nam07on2045.outbound.protection.outlook.com ([40.107.95.45]:53423 "EHLO NAM02-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232730AbhFHNNi (ORCPT ); Tue, 8 Jun 2021 09:13:38 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AZa3h9kqJD4qcYhcdvzrJDaiWzuFEN9hP+MWoIP5F7Ui2TXLoq9t6iOhDRivIJVpParQQlabgRo+1sCRHvIJ2tE1ZQixmLLSb9IAnAiJ5aDvAnG0jTCDFW3exw8LGQSNVjERsu1vrPdYCnk9h7cXmdrbDzk4fzUM87WOylweoQpaLjwAKsfozzlvVg2FuMgbhI7Ae6BRxHlNPXJcYv2Kk/VVWOJbgD0nEaI/JpDjoMBb3goFOnI9SEgyUSMOrnl0UCcb+y3eK+hVFMM9xWPcja8aNU++IlF3EGPfNhlb8gEGfcH27EpH8pPmXlrCbUNdJZBv3j2CDUpIKWZfs7qo2A== 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=Cf9vr+faZoa8pYDHkzodOthjyWV/67iurkrgTfswTHs=; b=UAXPgh1VHR1IzDcw+sQiNU3ChTAN1p+fGOwd6JvptNMB4acwxnqZs95ng8z5ZONgJNslba5beKHijUjtbJld/guNYgmNCiIGttFMEo7Hr/edCvg6npZcULJRvv+4vZPzb9P1nGetbAmY6T+Es9vN3T4vltebyp0rr1QWqy3dd3/LiFZv0Ln3gMNpXSn3hA/qS+AfWlD5rr6HTex8io4O+uPwv9HsaZp9xu3tOAfNeaOhTIyQijMLSn8GTTFsrYUIivLMoZWFZm3SUJRIB4fMJ9GCXDPcVqqbdkqIRF8gM7flWWtWeQEiP/461NAUXDElUnxRzL4SA1jnnwhQUixCDQ== 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=Cf9vr+faZoa8pYDHkzodOthjyWV/67iurkrgTfswTHs=; b=MUt+dJavtayhQGgWwRqYezPiEhZQxY1kRw1ETlXOf8Zrn2fu9I7FV7udXxLLYwCBfPM8SOzxxyUQ5FWgBt76tiGIqw/voVivI6H/qqOSXzL1BxTJhvPjjwllSLK28y4wlSDkVrUs80q7GoqInoAVK9RC7hfNnOEypkrJqFkp4lWoH47OcH/VeTiEdYHOS7tzFr4frx2JeXm8HONGEj3+XlwGozdcrZhsPpr1oh3oM4HgO1+svpSVl/WaNw7aiOfFpU4DbgQxufuoyNDaipRg7m95qnPQROvGtLbVpqMfxL2LlnIV0+O7GCe96yJI01dexvhotDd2ZTiGGlwLEqyQ0w== Authentication-Results: metux.net; dkim=none (message not signed) header.d=none;metux.net; dmarc=none action=none header.from=nvidia.com; Received: from BL0PR12MB5506.namprd12.prod.outlook.com (2603:10b6:208:1cb::22) by BL1PR12MB5253.namprd12.prod.outlook.com (2603:10b6:208:30b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Tue, 8 Jun 2021 13:11:43 +0000 Received: from BL0PR12MB5506.namprd12.prod.outlook.com ([fe80::3d51:a3b9:8611:684e]) by BL0PR12MB5506.namprd12.prod.outlook.com ([fe80::3d51:a3b9:8611:684e%7]) with mapi id 15.20.4219.021; Tue, 8 Jun 2021 13:11:43 +0000 Date: Tue, 8 Jun 2021 10:11:42 -0300 From: Jason Gunthorpe To: "Enrico Weigelt, metux IT consult" Cc: "Tian, Kevin" , LKML , Joerg Roedel , Lu Baolu , David Woodhouse , "iommu@lists.linux-foundation.org" , "kvm@vger.kernel.org" , "Alex Williamson (alex.williamson@redhat.com)" , Jason Wang , Eric Auger , Jonathan Corbet , "Raj, Ashok" , "Liu, Yi L" , "Wu, Hao" , "Jiang, Dave" , Jacob Pan , Jean-Philippe Brucker , David Gibson , Kirti Wankhede , Robin Murphy Subject: Re: [RFC] /dev/ioasid uAPI proposal Message-ID: <20210608131142.GD1002214@nvidia.com> References: <20210602172424.GD1002214@nvidia.com> <20210604123054.GL1002214@nvidia.com> <329fcd72-605a-fc10-1a8d-c3f2ac3be9a1@metux.net> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <329fcd72-605a-fc10-1a8d-c3f2ac3be9a1@metux.net> X-Originating-IP: [47.55.113.94] X-ClientProxiedBy: MN2PR05CA0015.namprd05.prod.outlook.com (2603:10b6:208:c0::28) 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 MN2PR05CA0015.namprd05.prod.outlook.com (2603:10b6:208:c0::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.9 via Frontend Transport; Tue, 8 Jun 2021 13:11:43 +0000 Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1lqbWA-003qT5-B4; Tue, 08 Jun 2021 10:11:42 -0300 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5c05f2d4-6fb5-46bf-fc11-08d92a7ef62a X-MS-TrafficTypeDiagnostic: BL1PR12MB5253: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3276; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: by3fwjAgMVg155cKlHa54BqHROuch0rTm6tns+xUN/W/3f46PXO48am0R1KR/Juno72+MbKQqYPwOJAkX8vWP02JvM7yIPkWiRjbOfPLDiEwUSQeGPzUUJdBI28Dzycq6xFVMdYMhT4w03Gtjk+w30OsF/MaBCGDsiVA/LXH2spT8oYfTn1B36iOHGuD4qLXbcRtitcERGwqzxYc5OU9Wg3U2lqFVQ4lug3p8zHfxUZ4b/UsdLn97sBrHpIaoFiiPxims0/USHMm3u+WWqZX4FXZIaSxWgaaVFhWHt4+vdyMdvp4KOgw1DtNHELT7zq4Hgbwjfycn1qWT0b7wdLuJ2U/HaMzoGWlJ7bxLOrioxETejhtqTXaxRA5hedU6rqCOv+xmmXlFsJX5NUCTwiZPEJ1sMp/aPhPTqV1QqZJOW4da/e4TbxEQPju52rmCdRvAvD5euL226uo74LmpUO4B8dkald9JRKxq90+DuNzKLXLCoLFqOQ3JvuAS2BHB+kwnvNVybCi2rBD/s2SiDVf7W9wYECccu0UnrufMPBjto7kJnFX9B6IwvL+p26RE/gFT3gW/gh/VjEuqOq2x9MMN4KluevJnAA+/p4QI096NFM= 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)(366004)(396003)(376002)(136003)(39860400002)(346002)(26005)(33656002)(8936002)(1076003)(38100700002)(54906003)(2906002)(558084003)(5660300002)(36756003)(186003)(66476007)(66946007)(66556008)(9786002)(316002)(83380400001)(6916009)(7416002)(4326008)(2616005)(86362001)(8676002)(478600001)(426003)(9746002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?7G2n+w7SXraZEuZCCsMTx2dKJRBksyD6kIij5TxBWuuQjV5mpmuRcR4NeyYz?= =?us-ascii?Q?vEr2o4YTL4QU3JoHrbjU7qCvke/Zh5xUf3Xay0ICxLGXSdSExl3b/stLcOX6?= =?us-ascii?Q?U42kgzxxCIka86uujU/fIOJWPy36xEXqeMFdpf+BonI9gw35qSIcJE8OE0IU?= =?us-ascii?Q?sGQAn1jVEYlqT8f2WY/0wUiTMTItvI1n1/VK+3S+sjLLB1LZNTR/hvGLn3d/?= =?us-ascii?Q?yq4qoDskJR8AVGsHop/+qGXLoNamL8K/I3TMjoKPWHX5WbbamcItFvygmo9P?= =?us-ascii?Q?NmZoAlT7cQmTfWaOMC6y3DK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Q?+2T4p4TkIpTcPDgSUe+zTygGuLQNYyErzl/T3UCEGaJrOOBGOQW2/m7O2KNC?= =?us-ascii?Q?uyMVXxvdWt/Fje3AcUT2jvxc3gT9mRkV7sFVfQ96bcxF7Kl2RFa3Bo4rpa9d?= =?us-ascii?Q?Zp+0BiTzyfB8NnLGRKsEcxx3?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c05f2d4-6fb5-46bf-fc11-08d92a7ef62a X-MS-Exchange-CrossTenant-AuthSource: BL0PR12MB5506.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2021 13:11:43.5795 (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: zymKk1/7hR9vSdeWRHUQ6vOoCAjrUWb4uv0XrrNx4edlcVo0ZQjYVFXqMvg6vTfp X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5253 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 08, 2021 at 12:43:38PM +0200, Enrico Weigelt, metux IT consult wrote: > > It is two devices, thus two files. > > Two separate real (hardware) devices or just two logical device nodes ? A real PCI device and a real IOMMU block integrated into the CPU Jason