Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5752436rwb; Wed, 21 Sep 2022 11:55:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4K6opiRc+ZRm0v0nSGfXJ4LjzGkoh/prA0dZbBNEYqztPrnJCoKz8K8yon+nbncDcU+Ieo X-Received: by 2002:a63:fb0e:0:b0:434:efad:10c8 with SMTP id o14-20020a63fb0e000000b00434efad10c8mr26397060pgh.316.1663786503645; Wed, 21 Sep 2022 11:55:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663786503; cv=pass; d=google.com; s=arc-20160816; b=wUHnfzoNYQBVxXk7nkRf2M2VdbDrigJsF3HPeeFY5w8y1730wWZ9vlkvN5el9u5DUM uv1To13TPU/sC++t2mCmObJrcujFdP5SqoIoNoKEU/Apc3tKJQHsz3d/4qnX7zmcxemG 1QhKxlIYTJTv1Fh5rZue190Wb9THUCTpiPvbTIA4XEY4SRro6jPVD+77rHuJ0me63TjB 2iKW1GUVt4o1sxi+A3rYNZNVEvzxi6iPyJKgPHoUVj9b2OeQS1oda3JCnI5mCAGfglWS 922usMF1MVHdaWDDwjz5oYuJFRl4HjTd5UI74jT8mUScWwEDi8sgF16XApVHloiePgvK udAw== 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=h0dDmc/pxwLq/3xwXOFsEPRTZSudHD88fwWfl+qBdqU=; b=T+bIKhqUaOzQaXZIdX1a8qyO972xSGRoSO/xaS+QwnFQgDYcCxgPFF5v0w0aOzh7mL TXQX9vxDMa33hfpbSpBmoG7cEhU7C+p2bRd3a2zvoOYTFk0Po7Q3un5tml/ShrbibeWP 0+iltPTrGRulEbxCftJ/7zzayY7CT4MbPjeJeFxvQwWzuur1qkJgkbdT+wF0eYPfAkRa K/082uEPKwXMgEc8U2VXiLWfGaZGIfziH6VgejryBG9rXVOf09M7KqoqUwh/ABwRTk9l bAzduFeUOjDKm3JcqW8Zhv5JHOeFir9gbiKW6zsUliDgoFFd4KjXORU2aMOAEPrzBiQg V5Lw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=ZsNUB3hB; 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 n27-20020a635c5b000000b0043abd68507esi3777920pgm.392.2022.09.21.11.54.51; Wed, 21 Sep 2022 11:55:03 -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=ZsNUB3hB; 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 S230527AbiIUSMH (ORCPT + 99 others); Wed, 21 Sep 2022 14:12:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231150AbiIUSL6 (ORCPT ); Wed, 21 Sep 2022 14:11:58 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2043.outbound.protection.outlook.com [40.107.100.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15225A347A for ; Wed, 21 Sep 2022 11:11:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HCfYWtjCQGLOEW9YaDbA98azEw15M9Sexyva2WazyUT6sQIa3tcfyP1rDeZRWzsHvNVKS7NBhZM/1vBjQo1v/yB23fwt6pALU628JOG3P/v+oAG/d5MIYk6u4Ttg4xp3lEZs2arUg1DFzMxM2DmpYQ8Zx4wkVANd5lLcKkA0qdZUoWDSgsbJu+gOjOLrUnl9CmHm7L+p+UYfpvDAHrHrzXyrLda65VNbjMiVv26B7T8gQUPeSdekLVHUv90479JU8tNA9EO9JvEwqHKCEnl8snZp8+OzgQg/pwK2UIW0xKl+BRH0hLstY8AO9y06Ij0UmAvu28rWfuQGUylh6SKWOw== 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=h0dDmc/pxwLq/3xwXOFsEPRTZSudHD88fwWfl+qBdqU=; b=KdQJtVJJmHf2dulQp9xirtCjFk/PPv9idxqzCnX8bZ2JLEr3YgivTGQQjB9bY4UQb5X4lpdfHA3U36wgJW3vX4Cos8AbuxO3Df6tsxuB9sHUlT3BLyjlw//kuPkwPQbLv+NBvY+5dz8k9vGMxJvdB8Boyu8xnkgf9t+VKi8XMyRrPNlcCRyYa8PP4VRlL57ApfTUqCF1kojJ8Q2g9fJi7ZaQ/TA1aeZ/RRoS0gtKsC07gH9Nqc/Y+Z4VhvH9I5Iemw3+vhDoJFyHS4QFcTZWfOL+nNrhIE6bt0jRaBQNdOK88F0Ho+aqZqVWglCoAf2zBqNAWUrM7glUSOUCAzKmjg== 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=h0dDmc/pxwLq/3xwXOFsEPRTZSudHD88fwWfl+qBdqU=; b=ZsNUB3hB/0gMbRcSnkgN3jqNCkNeSpF4BYowHY4pxIIFJavA/HTPJRdNhX4o91+tgNBRDMHsMw0iC8KxkjrOO75hzUPO7N8SwOiwY1dlbcb6qHevoWIaA2C69t4gA4YzeYSUF3HN9haDg5Dm0+vxZBRoX2oIKex9FSltmg3zNOZILAuZZDVpqVFZAxmNAhBZU7vxkuWI1GQk1uK0vrQpPfZV8WNDZlPq5b8vefZ/IEKqvL5FV9sUoOdyJnM6VY77vo2yYJoQwhSPX5V7rX3RUV/ajRrstvwNLqkn82AoIk2Nff23ZBHnlT9MzccN6elSiOYRXFieYy4Ns/ZU/G+dSA== 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 MN2PR12MB4424.namprd12.prod.outlook.com (2603:10b6:208:26a::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.21; Wed, 21 Sep 2022 18:11:36 +0000 Received: from MN2PR12MB4192.namprd12.prod.outlook.com ([fe80::462:7fe:f04f:d0d5]) by MN2PR12MB4192.namprd12.prod.outlook.com ([fe80::462:7fe:f04f:d0d5%7]) with mapi id 15.20.5654.016; Wed, 21 Sep 2022 18:11:35 +0000 Date: Wed, 21 Sep 2022 15:11:34 -0300 From: Jason Gunthorpe To: Dave Hansen Cc: Ashok Raj , "Kirill A. Shutemov" , Jacob Pan , "Kirill A. Shutemov" , Ashok Raj , Dave Hansen , Andy Lutomirski , Peter Zijlstra , x86@kernel.org, Kostya Serebryany , Andrey Ryabinin , Andrey Konovalov , Alexander Potapenko , Taras Madan , Dmitry Vyukov , "H . J . Lu" , Andi Kleen , Rick Edgecombe , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Joerg Roedel Subject: Re: [PATCHv8 00/11] Linear Address Masking enabling Message-ID: References: <20220914151818.uupzpyd333qnnmlt@box.shutemov.name> <20220914154532.mmxfsr7eadgnxt3s@box.shutemov.name> <20220914165116.24f82d74@jacob-builder> <20220915090135.fpeokbokkdljv7rw@box.shutemov.name> <20220915172858.pl62a5w3m5binxrk@box.shutemov.name> <562dec4d-a39f-b517-58a3-45f691a2d10a@intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: MN2PR16CA0042.namprd16.prod.outlook.com (2603:10b6:208:234::11) To MN2PR12MB4192.namprd12.prod.outlook.com (2603:10b6:208:1d5::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB4192:EE_|MN2PR12MB4424:EE_ X-MS-Office365-Filtering-Correlation-Id: f2dcfbad-f027-44b2-13f8-08da9bfcb899 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5fAvxKE00O6IG4HH/XIBpGDvMRpG1ntKG8RqTqgySMZCCg0qzwEeD/PpN2i/Fy7xLLd4y/Z3wpE57NmHQazZpJc3OsC8rH6PSXVB6vhxmsCSdBk1nhz/oOlC2JsmQGhyF8UXWDzdRmcdRvdICQM6BAdxdjwqbzFDOw9Cx7hEAF2QnaqSVh8SET4Fqog3L38VzyAHc61A7/b3N4P0OsP/Ms1H5skMvpTXM5OhGA74Xh1h8NMEpT/iokV1HC1zoU8S/S3ApQtvfvJkDJD4RswYZ28jixMIyY6bZu0uaECeYl+FaviD1UCS+KX13udmLGe4ZgVBSVjBFy9ChUOnXNNfviKTPvKhFZYL7L0vOBcCzjJ0ghPabXMQLPHR9NERAvAEFxtB1R6ZgcH6vxBue4sFNqMRfk6tDVrXnQH2Japr7SlpdsgIgNaHgfYzs7ZixjnxZ0G/gNh8Bo7RxNo5aSbaL6Me2Cgm/oLYaM/5C/BJOifyUHGgEQqLMO6SwUL/Ti4FCfW53RaDapm5QYG8V3VZNwbmfHus7S7/LZOXalgj12sK1rm+OyisMu5p6qKdFLPOTaL0fnOQnP27k8zxIIrmbHYIDM0gxMy/BndiehKIQYhT9tvU5diplJdL8Xsup78qP2MK2tnY1nkJPBmVuPpwc22fOvBt3aDUyHpFa0uFdAoekVecLWE8IJcWy+4/nfDfo/OilaULKT8LgV5t5ZIHQQ== 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:(13230022)(4636009)(366004)(39860400002)(346002)(376002)(136003)(396003)(451199015)(2616005)(54906003)(2906002)(41300700001)(8676002)(4744005)(4326008)(6506007)(83380400001)(6916009)(66556008)(66476007)(316002)(6486002)(66946007)(478600001)(86362001)(186003)(36756003)(5660300002)(8936002)(7416002)(6512007)(38100700002)(26005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?QVEXgAevpqT9hspaN3TfyQUbgq0Fu9nNZUdQ05vReOisS1wDtB0CCAbTyGhQ?= =?us-ascii?Q?ECT8aESdzo85ju2jrwZ0yocGozw8J9kJXfK8i8QXLZyiU/HjpRrnL450QmED?= =?us-ascii?Q?WJKWfzjRZdCHpIo+6POe1Np8f+Jsd+sh0YwfymbPghlkPJBGclRUeLgifVxk?= =?us-ascii?Q?74BM3PlZz/ZST4KVwsE51xZlH0BfmLkgdESDhqtaxEl/7JXCFkwAf36ehMFP?=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jGpCGoY1IX4L0zraCXjj344cXzoGEwoKx?= =?us-ascii?Q?KBBjzz5YmOsF9ZgGAPEiN9kVFfg59whKo9ismyfD5X2gKAKwxUEZtTUT1Ly6?= =?us-ascii?Q?/z3uKvxYL5+biRPEJio5cApuTE9cQ5J4iIib9y6CV98NEoZiqHylFmjfWsJ4?= =?us-ascii?Q?rmDRrNzfrRNzwlcDg6BRK0+/xTGDP4V28lXivQssg17ljH2l3i6YtR7dRpHf?= =?us-ascii?Q?CAm/c2WKGbpcGLNPouqqo1eDMkFDNbjd+yUs+VPxHah0Na07h4hdLDXBy9h6?= =?us-ascii?Q?QkMIfse5oyB04xBN6AfbgZtEZ2E9YLXQUVdKSKl0Z+TbS9PWu3TDEnYhModT?= =?us-ascii?Q?SLfI8Lp8cL6KkrywIJXtWKgf2v5wa19+czeMSVlMohl4aXetW+mNTwBuOAux?= =?us-ascii?Q?I+Fi1VnydZl9VLWIy7d2Yx7qKOkP324Fz20LrgpCudA6HsN9l1vjPYOjjcld?= =?us-ascii?Q?q7YDX1yO3LXwqHShBHRvkhihLGjFTbBpk0eIG48k?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: f2dcfbad-f027-44b2-13f8-08da9bfcb899 X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4192.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2022 18:11:35.8700 (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: yX5OKgCCwb4a18pIadI0HpB56cw+Gc9E3N8iTANNPd5SsFqXVRxFAiadpd0A+L2e X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4424 X-Spam-Status: No, score=-1.1 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 autolearn=no 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 Wed, Sep 21, 2022 at 10:11:46AM -0700, Dave Hansen wrote: > Are you saying that any device compatibility with an mm is solely > determined by the IOMMU in play, so the IOMMU code should host the mm > compatibility checks? Yes, exactly. Only the HW entity that walks the page tables needs to understand their parsing rules and in this case that is only the IOMMU block. Jason