Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp234656pxy; Wed, 5 May 2021 00:29:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9xsDDHhZ52QbuhJsayzAJDLE0y+/SofwlUmPHM1p0sWfWqEaOHM4jEkIxwLrwGjQCSoxZ X-Received: by 2002:a17:906:79c8:: with SMTP id m8mr20350443ejo.260.1620199746272; Wed, 05 May 2021 00:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620199746; cv=none; d=google.com; s=arc-20160816; b=PTLCjFA8zjgy8yttV72MIJDchl6Nsc0yelayxZeUN8PNvYP+bid1ubRCgX3/K2GBu6 OmdAeHE46yDmEUKRI5mCiSs35apBz2rYd7/TBTkevVtw2WbZx4ue3oUaxwO5/h33GoS7 c2W+AkPvUKYmSoEe4cGZx9Gf9lxPHHBWu8Hrm6++W3ql+kQsaqOwdwSNHFAKqTqgNVmm 36A0fNtLwHmC+bplKpsIjvYPQdHyl2tEBj9Tgkxq2UvEWfAMoQS+FEdjWjatHianqDNR Ft1tZBj+0S03og7Upmw2Z08IHkVUoViVt+kKYhrGD7XmIUfZvKYB7zl+XYsqkX38m/Ef /lAA== 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=1HKBlpaCyJzd9arklB7EU/tOaG5LupW4wg4un2llmUs=; b=RyouIn9rDlrBJC10bp6wikO8aCVFTCIPOb4qUx/I/J98Zq+bS/ZtzdgMeiIEOqBowL NhudsMoWoNptxaayVI28yT+mcfoJWcXQX3yVBqCw97LUHG/TgyM1RgCZEuti2/Bpkpt1 LXrSr67+9kOk9urTEjH9cy2bgzFei4pzPdYYtfH0CjR+mYvRPghYvp+Kke7DzdPr/NGu 5ICs5xH4G41Zdz+ds46t8lNBW2yhl6I2XJGnZ+iYyNukwg6qU7JnyRmjl2yi8c+qJoff 7SIiSD4A69gnlLIEZw5bJcv8JSGE577dS7V+7Hc+CpuENsTfIG/f4AgVUNgbwayUpEoQ eHiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mcr1f1QL; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si4798019ejb.173.2021.05.05.00.28.43; Wed, 05 May 2021 00:29:06 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mcr1f1QL; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231633AbhEEG2f (ORCPT + 99 others); Wed, 5 May 2021 02:28:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231706AbhEEG2b (ORCPT ); Wed, 5 May 2021 02:28:31 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E25DAC061574; Tue, 4 May 2021 23:27:34 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id d10so1053676pgf.12; Tue, 04 May 2021 23:27:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=1HKBlpaCyJzd9arklB7EU/tOaG5LupW4wg4un2llmUs=; b=mcr1f1QLoVbjojRQsaDAal09mAV3oCfe3iVNmQC9+y+ZD4YM7+Da1q3GubyPQi+YTB lIzJ/eQm26rFXKUFZUvEbcBB0lvglkSYiaPh0FReYd/Ji0q9FjCzUy3XgrJ5dU43Dh1v p9wb7psQEjueQgdIPIzHN3TM2LXblLcQ+jJq3mrsAENDUrTiL8dHRkycvlXfkQ/ksC0O KvFEAMnC5CkxPp+vjMRxBIfpLXW4ByDtfqd3yGKHCpbQTrKwuprrqZHgPeTOgmsm8e7u 6cn7gZ85b/1oJfZEQuUdYACTGz6UtN1/wxLFvEqqOSbac/PJDeKv/td6xmODQlkFtXTa 1DFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1HKBlpaCyJzd9arklB7EU/tOaG5LupW4wg4un2llmUs=; b=FVBQ00KJMHkw7HIlXnOyj+yGALStUzF170uqnm2nzhh4e3DZRNGqXJGkox1zln2QTj +KsEBBQdVmx/7+VNtsx5NDEOhvN1/hiwwXPUjxlTlVDLLqG1c7StQjeNZoVFJztJ8oT6 UY0+qnc+1cwedMR0QdlETx/e/BLMtVW6N3HiFlRl7Exhhe9GanvpN8nhix5grFTWUAqZ TBS/W3sPI5aCI4iqWdN7Mti5akkVSiJ3oX+fhsMyAepNlB9v3X02fkyf8x/dNROPrCFo Ko/exI++IOh+D62T6BMcfLLLs6DpzLIrHVv1+XZTWIz1ORieIsTfWagrZkZGlmB76dYf Rhcg== X-Gm-Message-State: AOAM531TQqVufOxtpGytylau8jaWxDRvlyU6HojoiATK+qIOt9+wX4L4 c33yVaBtUJal1E6U+YxW/Es= X-Received: by 2002:aa7:814c:0:b029:250:13db:3c6e with SMTP id d12-20020aa7814c0000b029025013db3c6emr27493810pfn.65.1620196054408; Tue, 04 May 2021 23:27:34 -0700 (PDT) Received: from localhost (g17.222-224-135.ppp.wakwak.ne.jp. [222.224.135.17]) by smtp.gmail.com with ESMTPSA id c134sm9652932pfb.135.2021.05.04.23.27.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 23:27:33 -0700 (PDT) Date: Wed, 5 May 2021 15:27:31 +0900 From: Stafford Horne To: Anshuman Khandual Cc: linux-mm@kvack.org, akpm@linux-foundation.org, Richard Henderson , Vineet Gupta , Catalin Marinas , Will Deacon , Guo Ren , Brian Cain , Geert Uytterhoeven , Michal Simek , Thomas Bogendoerfer , Ley Foon Tan , Jonas Bonn , Stefan Kristiansson , "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: <20210505062731.GS3288043@lianli.shorne-pla.net> 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> 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 > --- > This applies on v5.12-rc7 and has been boot tested on arm64 platform. > But has been cross compiled on multiple other platforms. > > Changes in V2: > > - Dropped ARCH_HAS_FIRST_USER_ADDRESS construct > > Changes in V1: > > https://patchwork.kernel.org/project/linux-mm/patch/1618368899-20311-1-git-send-email-anshuman.khandual@arm.com/ > > arch/alpha/include/asm/pgtable.h | 1 - > arch/arc/include/asm/pgtable.h | 6 ------ > arch/arm64/include/asm/pgtable.h | 2 -- > arch/csky/include/asm/pgtable.h | 1 - > arch/hexagon/include/asm/pgtable.h | 3 --- > arch/ia64/include/asm/pgtable.h | 1 - > arch/m68k/include/asm/pgtable_mm.h | 1 - > arch/microblaze/include/asm/pgtable.h | 2 -- > arch/mips/include/asm/pgtable-32.h | 1 - > arch/mips/include/asm/pgtable-64.h | 1 - > arch/nios2/include/asm/pgtable.h | 2 -- > arch/openrisc/include/asm/pgtable.h | 1 - Acked-by: Stafford Horne > arch/parisc/include/asm/pgtable.h | 2 -- > arch/powerpc/include/asm/book3s/pgtable.h | 1 - > arch/powerpc/include/asm/nohash/32/pgtable.h | 1 - > arch/powerpc/include/asm/nohash/64/pgtable.h | 2 -- > arch/riscv/include/asm/pgtable.h | 2 -- > arch/s390/include/asm/pgtable.h | 2 -- > arch/sh/include/asm/pgtable.h | 2 -- > arch/sparc/include/asm/pgtable_32.h | 1 - > arch/sparc/include/asm/pgtable_64.h | 3 --- > arch/um/include/asm/pgtable-2level.h | 1 - > arch/um/include/asm/pgtable-3level.h | 1 - > arch/x86/include/asm/pgtable_types.h | 2 -- > arch/xtensa/include/asm/pgtable.h | 1 - > include/linux/pgtable.h | 9 +++++++++ > 26 files changed, 9 insertions(+), 43 deletions(-) This all looks fine to me, will this be merged via the arm tree? I guess you have a means for that. -Stafford