Received: by 10.213.65.68 with SMTP id h4csp18500imn; Thu, 15 Mar 2018 08:18:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELsPDwgUVXy6PpJ4C/vL9KxPy9xqaDKxm4qiUffuk9Rd1ILZ8HhcBf+j7Z1SqU/BzM0VZ/Ie X-Received: by 2002:a17:902:6b4c:: with SMTP id g12-v6mr8362925plt.363.1521127097812; Thu, 15 Mar 2018 08:18:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521127097; cv=none; d=google.com; s=arc-20160816; b=r8l6TmHPSJkqxnHTMKlae8onF+mLFrVv1ILmzd8FGZcV43mTPZn0VC2GGxSuEkXUGj pQGDbicYEcIVvGSV95GccL9EDCw+cYOtoqAc0Oq4x+xlwY3bn4WIQy+8CLyeex6pe3pi f/VKg+Gy5ApAYynEKQBoc20qY1pVQ/xgDZw0owMHagAbsr1sLOqwsqY6wtqfvt2JEr0C lkxFsH1cwG1TKK1xz5WvnWUS/3WJyjknzEfGn8FKgvorcEgQ3ikpetb8gBYCpXTS8kc7 x+oWU9YLipaaWKPxg5g03PpUTUDIxBZib3I/jbuSShdvUyNNSov+eE6iQ5l8wbTrpLwm g94A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=o7ovj11H8aNDWMomcoVi1NabrXd3z3N9H6WaxCKJuro=; b=k4Eg8ELU1oiXtFtlsLvWE2B34Zbf3hzSw6V+OVOScw5pJtLxpSTiE94sqMh30D697w S4RwHWYVWOdG3BP6LylLMLq9qSOmLVKVhxEr+o0pAxKZ4nQYvPpRUadF3RF3MB3voz+n XBCYhcVAa7rQf5lUKWy//uJ2vlc0YpXR9YlWtJr01zpxYILXJUXxy/MOilPP6ngyMif6 7fbpfyKtD+3LXLPa67uXv5jr4RRsRTm0JXwoslFih345Z+Y5tewalYPfULqL08+X1qgK VJYIkps//ZwFbAM5wi8OYwm6nVIKSmCHd6lIUq7jOvbNpSM2FDWqK8GFT7TdzCj+CVrg YM1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t64si3505439pgd.620.2018.03.15.08.18.02; Thu, 15 Mar 2018 08:18:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932331AbeCOPQz (ORCPT + 99 others); Thu, 15 Mar 2018 11:16:55 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:41014 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751903AbeCOPQy (ORCPT ); Thu, 15 Mar 2018 11:16:54 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 454221435; Thu, 15 Mar 2018 08:16:54 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 97C253F487; Thu, 15 Mar 2018 08:16:51 -0700 (PDT) Date: Thu, 15 Mar 2018 15:16:45 +0000 From: Mark Rutland To: Chintan Pandya Cc: catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de, ard.biesheuvel@linaro.org, marc.zyngier@arm.com, james.morse@arm.com, kristina.martsenko@arm.com, takahiro.akashi@linaro.org, gregkh@linuxfoundation.org, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, akpm@linux-foundation.org, toshi.kani@hpe.com Subject: Re: [PATCH v2 2/4] ioremap: Implement TLB_INV before huge mapping Message-ID: <20180315151645.fsgcywyawvtiwx52@lakrids.cambridge.arm.com> References: <1521117906-20107-1-git-send-email-cpandya@codeaurora.org> <1521117906-20107-3-git-send-email-cpandya@codeaurora.org> <20180315131316.fd5ftqwgdb5bf5we@lakrids.cambridge.arm.com> <839387ee-e1c2-cc71-c06a-7bc2d0eda73d@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <839387ee-e1c2-cc71-c06a-7bc2d0eda73d@codeaurora.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 06:55:32PM +0530, Chintan Pandya wrote: > On 3/15/2018 6:43 PM, Mark Rutland wrote: > > On Thu, Mar 15, 2018 at 06:15:04PM +0530, Chintan Pandya wrote: > > > Huge mapping changes PMD/PUD which could have > > > valid previous entries. This requires proper > > > TLB maintanance on some architectures, like > > > ARM64. > > > > Just to check, I take it that you mean we could have a valid table > > entry, but all the entries in that next level table must be invalid, > > right? > > That was my assumption but my assumption can be wrong if any VA gets > block mapping for 1G directly (instead of the 2M cases we discussed > so far), then this would go for a toss. Ok. Just considering the 4K -> 2M case, is that an assumption, or a guarantee? Thanks, Mark.