Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3193078pxy; Sun, 25 Apr 2021 17:07:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXCUliyhlqdwur2Mw68k9nca+QaWszQF017YP0xLVUkv4o5wB3ELdEag1dT9/GAMQuhcCK X-Received: by 2002:a05:6402:cb3:: with SMTP id cn19mr17966771edb.206.1619395639542; Sun, 25 Apr 2021 17:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619395639; cv=none; d=google.com; s=arc-20160816; b=E5/LiwbHWGTHgqNTRlfEbiAMYZ45JCxGU8WHVGHF/+O8hR6TGuZh+STHCfGhuZmdoF EIu4y+ncu196l2O85VYZx+HLGixe6CoMIi9umznfQZwo3SUEHRu9amrg0mE/CE/8nlCE vByzoQUoj5Opq3pmxkvGa5JQ6I4IxzVsyQlvkKXtPThYiLFVNBrXrP7K9dz3nNiRVS8W ZLGqt2pX0QG5kGmGe0gHvucDLPRNeWPjpSY+TIbqFMBIf+nJeu+ORwsxKdN99GKbP1VP JLSZns31MMAQeGKgudIdTGPbUcbtYYQ9ogSyHIuDuq04bnu2BXhJYEJImf97jJf/LRge 2ezQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=s4iICXXXbIZMlZbIYwz9g2kCe0GO8Inx4nUaSMmP1Ho=; b=09v5JD3S5REcG/WmKL1qf+RBFWRxuEgqMwbged7hgpn48kygKPGA8hv66vUHgaL6tM D0/2WuLzPyeJburIwwKyji5vY312SdAOfvkMal2te2Dt1yRmU9g9NdVHbll4hsRJtP+/ +lH020M57LOoUvyxZXiozkJB4qaBRbsiDk0mXLaKYFbM0kGU0kx15KIZKs5aLiIeRFeS 9Fld/o1BARrDOueqrKCIJ0FM9hAY606UpJBqAtTA65WgPEV0ytmYvs0kKIWYhTInBfbD 6BozixKMTfIMzDjErAyxv8VOqjVMfNWQAvlYfGmcIL0WAscD21gFOK3kPvqrFC6dCU1T koVQ== 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 i12si2755826edv.297.2021.04.25.17.06.56; Sun, 25 Apr 2021 17:07:19 -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 S231411AbhDZAGn (ORCPT + 99 others); Sun, 25 Apr 2021 20:06:43 -0400 Received: from foss.arm.com ([217.140.110.172]:52834 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231330AbhDZAGm (ORCPT ); Sun, 25 Apr 2021 20:06:42 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 331261FB; Sun, 25 Apr 2021 17:06:01 -0700 (PDT) Received: from [192.168.0.130] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 880533F73B; Sun, 25 Apr 2021 17:05:53 -0700 (PDT) Subject: Re: [PATCH V2] mm: Define default value for FIRST_USER_ADDRESS To: linux-mm@kvack.org, akpm@linux-foundation.org Cc: 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 , 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 References: <1618550254-14511-1-git-send-email-anshuman.khandual@arm.com> From: Anshuman Khandual Message-ID: <830eec08-fc78-c0f4-5d7a-6cad0c0ec978@arm.com> Date: Mon, 26 Apr 2021 05:36:46 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1618550254-14511-1-git-send-email-anshuman.khandual@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/16/21 10:47 AM, 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 Gentle ping. Any updates on this ? - Anshuman