Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1284112pxy; Thu, 6 May 2021 04:56:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc1RU/RpUpvsE/XddwlCNy4sxePioOwfL/iLscDUeBsE/3rUgW3IGDl4OhrANEDy4FAhJK X-Received: by 2002:a17:90a:c087:: with SMTP id o7mr4287715pjs.65.1620302188049; Thu, 06 May 2021 04:56:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620302188; cv=none; d=google.com; s=arc-20160816; b=hXRB0/Y65o9qqBKSnaP3BReF/UUzLwCTbyhtg58mUGP4Vr9oKgVoc1Y/VlMU5LQjFw 2+ErY5VZWLreRhIaaX8Sy/W+r1GqXJIVF2n3RSz+BBPHq8B1zZiuyIe442Tj2kwrE6uI RoCSz2Zb7rpnqVqdDkpGmorIf3OCKnce/+3xrMC28kMbO6rCn+NX2n8gh2AvxVh1J3Ic mRxDOad9mDbbzuh0aWuBwXVavKP9QggzNYkhyxoaa/+ZrfKBi+lfCrDsdDqqPrO7/l5F i2i04YilGZG3/if0ItPQM2nTDgvpn5U3KhvMi0jvvVcfoq5kchX/BwlLaVmW3dMtbq38 N84A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=pRPB6+x0hTCgIUO5SXZrUHRm7PzQz3ZBSp7xLcUdYtU=; b=rAEKKGx6dZMd6ADY/YlPjG4PxnSkikO+eG1DSUT5hydjPj9riY/akaXVaOGxntC/Xt GQQCfojqtVlNJaaIKHjajzfkl3W9Pg1in7hgs5veNBMbwRFjF/uT8Ucv5NO0Dfo5qcmX YSympt0MbI1GNPf1xjJxnD0uJvI8vwdcGfZQGhfsrj9H3uZsC5b2wL/X6jogQvmtHHPU sKxeBgtRxq7QEHSGmne2r3az8DeMGNjr5ba3cFAfAT7qcVroatiBesp4h0WJsfdslgYp env/7aEZGq/HKgLUUs3T9ffcbkQWjx1Ja+iNYZsshbSk0fbsSJyCxcT6PP3y2ab9/Lmj PFQQ== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m3si2727073pfk.182.2021.05.06.04.56.14; Thu, 06 May 2021 04:56:28 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234375AbhEFK2m (ORCPT + 99 others); Thu, 6 May 2021 06:28:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:42404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231863AbhEFK2l (ORCPT ); Thu, 6 May 2021 06:28:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 32EBE611AC; Thu, 6 May 2021 10:27:39 +0000 (UTC) Date: Thu, 6 May 2021 11:27:36 +0100 From: Catalin Marinas To: Anshuman Khandual Cc: linux-mm@kvack.org, akpm@linux-foundation.org, Richard Henderson , Vineet Gupta , Will Deacon , Guo Ren , Brian Cain , Geert Uytterhoeven , Michal Simek , Thomas Bogendoerfer , Ley Foon Tan , Jonas Bonn , Stefan Kristiansson , Stafford Horne , "James E.J. Bottomley" , Michael Ellerman , Christophe Leroy , Paul Walmsley , Palmer Dabbelt , Heiko Carstens , Yoshinori Sato , "David S. Miller" , Jeff Dike , Thomas Gleixner , Chris Zankel , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2] mm: Define default value for FIRST_USER_ADDRESS Message-ID: <20210506102736.GB22164@arm.com> References: <1618550254-14511-1-git-send-email-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1618550254-14511-1-git-send-email-anshuman.khandual@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 16, 2021 at 10:47:34AM +0530, Anshuman Khandual wrote: > Currently most platforms define FIRST_USER_ADDRESS as 0UL duplication the > same code all over. Instead just define a generic default value (i.e 0UL) > for FIRST_USER_ADDRESS and let the platforms override when required. This > makes it much cleaner with reduced code. > > The default FIRST_USER_ADDRESS here would be skipped in > when the given platform overrides its value via . > > Cc: Richard Henderson > Cc: Vineet Gupta > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Guo Ren > Cc: Brian Cain > Cc: Geert Uytterhoeven > Cc: Michal Simek > Cc: Thomas Bogendoerfer > Cc: Ley Foon Tan > Cc: Jonas Bonn > Cc: Stefan Kristiansson > Cc: Stafford Horne > Cc: "James E.J. Bottomley" > Cc: Michael Ellerman > Cc: Christophe Leroy > Cc: Paul Walmsley > Cc: Palmer Dabbelt > Cc: Heiko Carstens > Cc: Yoshinori Sato > Cc: "David S. Miller" > Cc: Jeff Dike > Cc: Thomas Gleixner > Cc: Chris Zankel > Cc: Andrew Morton > Cc: linux-arch@vger.kernel.org > Cc: linux-mm@kvack.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Anshuman Khandual [...] > diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h > index 47027796c2f9..f6ab8b64967e 100644 > --- a/arch/arm64/include/asm/pgtable.h > +++ b/arch/arm64/include/asm/pgtable.h > @@ -26,8 +26,6 @@ > > #define vmemmap ((struct page *)VMEMMAP_START - (memstart_addr >> PAGE_SHIFT)) > > -#define FIRST_USER_ADDRESS 0UL > - > #ifndef __ASSEMBLY__ > > #include For arm64: Acked-by: Catalin Marinas