Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp261510rwb; Thu, 22 Sep 2022 17:50:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6cf3gA0+upGS0J48QBqDrmJzRVvoqdZBntGOY9SoKc8j7XFzL0Ch0aUt6fmTaLftdffpP3 X-Received: by 2002:a05:6402:430a:b0:451:d8ed:b87e with SMTP id m10-20020a056402430a00b00451d8edb87emr5896162edc.246.1663894217968; Thu, 22 Sep 2022 17:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663894217; cv=none; d=google.com; s=arc-20160816; b=wB7c8n1c8Z9hM2OSGAy7u+qXCbbDDaFKjlz/OER5DYcbIosai8Bp9LZ3Ve+UMw54Ze fYMHIMJvVcci3cKMNPxG4nKt6p50zbGGqlIWzXHKn1duGAOejR5AQ9S56N9IfDmVIxHm a4Ev+CXHlVnp9e+7ZCXtSd/YT/d0DB3ZQhZaBnjEk5DRs1blG7NuHqQD6NF4NyojUZFI nrzG792XFZ05ke5ABb7oE++FwkIgs5rYRC0PSK7IQqdn+xaYiy7PPos29gLhPzyjWqc3 8R6GhOZ0SbLwAFx6pfHiSGVKyYA9RCKty8gm7mEMMD294Y1Ha8+2mjAphHgqJjXNpktd 358A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YMM6vybL4603DsqHTGVygicqjZkeKtO1Ri/6cJnkpvk=; b=jfTIJjeNXLL6R7bHPgexkv8oUFXom7Tzjxpd9hCrS1weE0zGrdlfLc4ezRVrYJ/ixZ FeqA34J0Yzsnq96gIDHz2mTiDFWvSvqWDZjysgZdCCBBEWkgTmreQIqfUcSZxyc9QcdQ vP1zaMJybG7ShLxBEJRsCOo6PDES5ztCdFqXTy7Kz3RdqdOYPRbUtPJo7KQbbzP2ZHDH 1t+PDwnXxpG4xibvEea0iBQyt6p66oD2LAV01ua+6o9pbc03Q/bv+bgliAQX6t9El4lX ZzMp+aSBYPxB4dCIzSboj71Lzfhl+7t2AD/Jd8+gEqzN1XLCvBYVAsY9oYEEAL6kL/jq qwMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=l5Hq5x5v; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb11-20020a1709077e8b00b0078257dd927bsi2421932ejc.124.2022.09.22.17.49.52; Thu, 22 Sep 2022 17:50:17 -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=@intel.com header.s=Intel header.b=l5Hq5x5v; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230389AbiIWAmu (ORCPT + 99 others); Thu, 22 Sep 2022 20:42:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbiIWAmr (ORCPT ); Thu, 22 Sep 2022 20:42:47 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CB3610D66B for ; Thu, 22 Sep 2022 17:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663893767; x=1695429767; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=JPr5lgzjsIUArFY+Xndl+vflTPFS3DcvwMPckr4tPVQ=; b=l5Hq5x5v1KFk3jRijDQYOVrvbrvlfMkQBBRk9QsSI2v/x6pXBLAcCYaA zXdyacjVplhKo8I0ZTmlch65qXKMfgTxz6oHHm1jYLkVzkOBaaYnhV1Ue ls4FxFcpTY3qjOmjCv6zKw0LswtdaNohx4Ab6zBppRR6ohbhCs76EjkoH Cq9zSBlmo2ALpzcCMQsYzHZlHnZLddXqsb4IRIOeLVxR9N/0Ahmoaugss tjM6Lonz0XWxJj0fpqxjLE2e7CqaiL3yPv/AkklMcseC6RQMFMD6tPatD i9SLY/znj8N6LKMvzqEzHdfN79ZGZagOudH7Gp10ctCLSGWM1AYEif6Jl A==; X-IronPort-AV: E=McAfee;i="6500,9779,10478"; a="301351635" X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="301351635" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 17:42:46 -0700 X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="682462250" Received: from dnessim-mobl1.ger.corp.intel.com (HELO box.shutemov.name) ([10.252.60.183]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 17:42:42 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id 617501044E2; Fri, 23 Sep 2022 03:42:39 +0300 (+03) Date: Fri, 23 Sep 2022 03:42:39 +0300 From: "Kirill A. Shutemov" To: Jason Gunthorpe Cc: Dave Hansen , Ashok Raj , 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: <20220923004239.ma2gfrmoezsff4ro@box.shutemov.name> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 03:11:34PM -0300, Jason Gunthorpe wrote: > 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. But device has to know what bits of the virtual address are significant to handle device TLB lookup/store correctly, no? -- Kiryl Shutsemau / Kirill A. Shutemov