Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39B2AC61DA4 for ; Tue, 14 Feb 2023 13:06:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232591AbjBNNG1 (ORCPT ); Tue, 14 Feb 2023 08:06:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229938AbjBNNGY (ORCPT ); Tue, 14 Feb 2023 08:06:24 -0500 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2060.outbound.protection.outlook.com [40.107.100.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80CBF23C7C for ; Tue, 14 Feb 2023 05:06:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cwvVN6hf05t0oFXd8HFshkYrpsidxc1sv/Hmr3RwELEkwmp7ojDx2/mQLjAEVA4Q0th+gPaHAZt5Zi0LHZOM8F8rlZnVNbGMwP2pprBlPZCpT82/ShdFI5IuFxebt4MmZxzDKJJvSpZH6FzWdJ+BlgaCnkgUMzgqI6N/jTttulYksvXOXSwLjJiP3vzZGdPJhnKDM/ZylF+tl5c5TPO4iRiUo5Zkqfc2ZTQXxqe6Pk7I76G5aOYcQfjIvQxzCAPNki/rVJ0eZhzQXqmaE7oKT7YfCGpMT+gKlO4IVeF0Hn4WVhcGIkqX0q4bEQyxc1kS/g1PtLRYpCfwkvvPR0muAQ== 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=7WxE1VQBQ5HeO79aVP2DekS8/L+qQaCy1jWAL3JmXmw=; b=PgXIN1Q4zo/GFTUWQ6E6Ms2I7YZBMJJInZY36/LWlQ/Cjnid6oCvcnEUmWG2T2coE7WP+fqA+LXAXp0OnL8JSRAPda/vMq56R5jGAU1bN6Yw7N53bekP9q0JDfCoaDnqYHlQ6CSnpPLYjS/nJNBL10BOg8YCd9HgBcbgewbIXkdoQhtU6Gn0MWv80FnX7SkYG2Mg7I2h+SYtrSLy3NZE29SvjlIBJByZ/mjVeoW8vFS9DlA0hn8QczfPS3JoVCkIWGQgGyXgmYxwlCIak47PFAIpwHCLN6gAxuUDATq4XbnFEi/ez/l/WV3n326o2k67tJsZG9+LilAsE6KILAXJ/Q== 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=7WxE1VQBQ5HeO79aVP2DekS8/L+qQaCy1jWAL3JmXmw=; b=KKRBb+hJbjXWHWhkXSMsx6/Mp3yF8n4klD9DiGPQPoSEQms2ANEXh/TVEQregidCEvoc5esBJzkPBqrFhdZsAXmNz/o/y/yjMXh+P3woORjGYSEHAm3sA7ndMSZ3IzlvHOwAeQDRsd9NzkqxXbZ2+izvzQylz9rDYcCT490pfCjgL2fKJn+FFzbqP6ns+Aa+4SPpUDi88d/BzuwunmO7ef4ie08tI8+vUmdX/j2BBqTBRoDKhQYUqVdGr/fO5TLOoQLejxql/AXE05qLFcdoYdp7bDaW6P/nfvjIgLb6Tdz8MFxnWkxVqiAouowWiNxdr7QOAKU9EsF0iwOUvoyDag== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) by SA1PR12MB8721.namprd12.prod.outlook.com (2603:10b6:806:38d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.23; Tue, 14 Feb 2023 13:06:19 +0000 Received: from LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::3cb3:2fce:5c8f:82ee]) by LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::3cb3:2fce:5c8f:82ee%4]) with mapi id 15.20.6086.024; Tue, 14 Feb 2023 13:06:19 +0000 Date: Tue, 14 Feb 2023 09:06:18 -0400 From: Jason Gunthorpe To: Jean-Philippe Brucker Cc: Jacob Pan , LKML , iommu@lists.linux.dev, Lu Baolu , Joerg Roedel , Jean-Philippe Brucker , Robin Murphy , Will Deacon , David Woodhouse , Raj Ashok , "Tian, Kevin" , Yi Liu Subject: Re: [PATCH v2 3/3] iommu: Remove ioasid infrastructure Message-ID: References: <20230214064414.1038058-1-jacob.jun.pan@linux.intel.com> <20230214064414.1038058-4-jacob.jun.pan@linux.intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: MN2PR19CA0006.namprd19.prod.outlook.com (2603:10b6:208:178::19) To LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV2PR12MB5869:EE_|SA1PR12MB8721:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a941801-6f5d-4baf-92a7-08db0e8c438e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5W2PiYNGwOWcKQaQFf9K/WFszudYe0o0gdyJFmaaIgQdWJgu/jN8PQy8yF3EhVueA7z64HRmHK7BVRWqyq+7gcDzL6h9imPUl+y+qxA9TQvjj4Esb2uDPqZpqZ0I88UL4JHS+wxTOPUiBikP8wHFAmDbBKVVeHCF4Wavu0F9UwUyLJcuVwBBF3chsPD3pzmPMgZ/nsqE2Ea8arjOlmtkH+jGrInCwGnC+PUid+kR+e8qpHqRBKmhoQVIav6nBY0mvw1IWi4ojMCBNS9EJGN+x9QPPPtCiLdlqld3hilrIKQ+LsAiEvOrda3YZszqFCR0ETrUkCUVC+ktKAd7WTn3l9WI3BZ0zsAAQkKzu44bZJgm+UOvrcw6LQFVPF1MmUlj6iVeuZjYkPlZiuTqavIBoyVRRRZDwOZ7/7XK2fZ0gmln88Emz4qi9B5DcOjE0N4Ahc36PEPH8DGSKueLxFWow6EOIXlc+HO10sTwTKEdUkKmAdm0ejzc9q4QELWGfhmt84mrM8TVqTCxPBZyBOJhzRNMtjahrfAFK81P4o2G704Fbz9TCR5aZW5Cyw4Az3vPveX1hvq/A4xzaT/6AHvb0QVfG4GoT1YyGmYSb5ReIUjAm1dpsR2P3gN35Hv5QVqb7k6K0xP9V13777Y6NU0f/w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV2PR12MB5869.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(366004)(136003)(346002)(376002)(39860400002)(396003)(451199018)(38100700002)(86362001)(36756003)(6916009)(8676002)(4326008)(2616005)(66946007)(66476007)(316002)(478600001)(6486002)(26005)(6506007)(186003)(54906003)(6512007)(2906002)(66556008)(4744005)(7416002)(41300700001)(8936002)(83380400001)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?rE/totnrezW9kMYC2qESI0gC8ww/EObihMuJFa1lJIPbWG3dTYfcXqAwyV3c?= =?us-ascii?Q?NqnvwGQv7QOUsLHjTqbgnMq75yo4a7sSn5o5dogh7UwntqCc+/Wpt8nDvnaQ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fvSSg146f9gZ2QTyBBVaFmMrjN30i1/exQLjbGo?= =?us-ascii?Q?wwBJ7Mwzorwko3in5Abh5jvxkKnfz6n7u3LR7KAg5pJd8VfXocn6RGl5a2D7?= =?us-ascii?Q?L2+BVSNkpC8bPO3gULBOT6q3+NlNACNRlOt/iV4/ZVy/FgEu8ZBbBDtO8fBn?= =?us-ascii?Q?L0TvvnE/NMVMFEw84YUDpoUMg7q00VC5N5OQ/MnHPDYjPZStrDy7Lv6JbVaj?= =?us-ascii?Q?U1qNIOuv0GDnhaRPNWIY2KtsqoBIIyAhTizXz/7eGLNOwXQi9RagLUFAE3Cp?= =?us-ascii?Q?BoYP0xDGlaGNnNOc/pEsTxyLpq62wWVWijtfUSDf5V6bArG+ozFPhDQwpx9Q?= =?us-ascii?Q?xqtogu9JKBMi5OvMFNbpavznQbu3sJkB8ijPlgvrSfeIzRPlf1nutnu2GJzF?= =?us-ascii?Q?XKqFIIVXQvOy1057gaFsgn7vJTi6InwMkkyBuUcWHJihpADFiiIxvph/7iPe?= =?us-ascii?Q?NBFYqOxssSlwU/Eu+ujcbo7yooPp0uAWFt3aH41pDmiH9gHuoT/GOfEgWdqS?= =?us-ascii?Q?7MnE9OIglAlDTo1FgB00gpNyk/3Jew54wHqL3vEabhi+LBaSF0hwF16Nt0ej?= =?us-ascii?Q?xEtj+3Pwjawlpt7dRuf2U2cvzM01pEnT/qHW8cyF?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a941801-6f5d-4baf-92a7-08db0e8c438e X-MS-Exchange-CrossTenant-AuthSource: LV2PR12MB5869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Feb 2023 13:06:19.5621 (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: m6XWxfUXXIVSBWZeefoxAq4IEYDdkJixHAoQ3rTk1YyEzvIf66Zzb1y42Y2Q1zQR X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB8721 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 14, 2023 at 09:32:33AM +0000, Jean-Philippe Brucker wrote: > > diff --git a/include/uapi/linux/iommu.h b/include/uapi/linux/iommu.h > > index 65d8b0234f69..a95f07f0c98c 100644 > > --- a/include/uapi/linux/iommu.h > > +++ b/include/uapi/linux/iommu.h > > @@ -157,5 +157,6 @@ struct iommu_page_response { > > __u32 grpid; > > __u32 code; > > }; > > +#define IOMMU_PASID_INVALID (-1U) > > Why change UAPI? There is no uapi, this whole file needs to be deleted too JAson