From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6F9FC433ED for ; Thu, 20 May 2021 09:03:09 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5CE58610CB for ; Thu, 20 May 2021 09:03:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5CE58610CB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Ch7RtZlZrdMNwcrUuS0dCH5LcLikpzv1NYAS/2egRGE=; b=QEpeSlu1dq/HVh4J85+3JozHe 231ipasmc2446bldxkC+qeMaMNr2VfJSH+Kw5VTBowFcPXscUmXsbN6KEqf6FjLu+blNYRtb89pJ6 vuM+U+q2CIB6N67ZnOxz85m4qygxarEsR+Ow5V7rd6gOZjYfnoBgjvv1Dx1GE3k5c6aa1h/OR8QNF n7CrnQwdCStFsjYA5Ytuo7Le82UiFHnf5AaHHxDjybOum1fa/0cfamW9OFDZl/Z7x4Svh6D59/DWX sQzfKKz2MyZ0hXhuUa4zv69eFvggcZHBNqiEjesdl+CWWB6xQQPXf0jTJPa91SK3mKEIoWcQxlU4O gi2N14BLg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ljeXz-006HBD-AC; Thu, 20 May 2021 09:00:51 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljeXp-006HAd-Cg for linux-arm-kernel@desiato.infradead.org; Thu, 20 May 2021 09:00:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=QxCMxE1n0M4ZbNqcViyD9VUzdesR+E/xXz2vVnw5Oo4=; b=E6q9bdl1XRBik8JYC3RSgBynFX UbREOJ8WLiCl0oYUXEZLUWhcsQVUHOJnfWadoPaDxjNGn7X7YuzxeOk3y0eICSYEHvCAo4tUERGtq T67F+glIJGBIQfV6I7tuarltt3W5U6XK63JB3F2rN1JqGD4M6ccd6wXuAypLNrtYKp1kowyBQesyp u8wxXWOpgCeLcMcruHggo1cTSw3RaJ9u4u20NKza2X3DNESjbdrpNaxrc5hseJXIkjbtOuLqmSE0f QDO2fgYTkGFOuj1JdG2SuC9oaMzjvPryrQr3seZ/A5pQd1QVOFoLr3UIF7ZWBNzLBLLPkEVqP4wKX ZjIX48oA==; Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljeXm-00G5Mj-Eq for linux-arm-kernel@lists.infradead.org; Thu, 20 May 2021 09:00:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QxCMxE1n0M4ZbNqcViyD9VUzdesR+E/xXz2vVnw5Oo4=; b=rkJL9VYH4aDBo17PfMVNpMeIY Hgfb3zm8SkopgsMf/pdV595J1DXPSaX3H52luHdo+JdTTLz7H2zujErLm0R5b5qENKA90sW3xRG8H Bb1LeBSYII74ViGKmBVqmdWXCEOUwqmkX7c/CO+nDxWj32sjua+Nz76K3bBBDrGOr8VHPZzXq012c A1TiTTL0PQwJsUjqbgztoYsdtXvkF244frq6GACd328KdKt6vphIlPD9dnee0Et3o5pMUJHD9e6Dr gj1W3KVD43WQVcWn2qHEhb1ZgNGWtwFS+9mxXMtfmr8KDomEvtipCgsdLDtZL80zDwsPapoQhDZpa v/cD/FC2g==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:44212) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ljeXc-0006jj-My; Thu, 20 May 2021 10:00:28 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1ljeXY-0005KF-LR; Thu, 20 May 2021 10:00:24 +0100 Date: Thu, 20 May 2021 10:00:24 +0100 From: "Russell King (Oracle)" To: "Xu, Yanfei" Cc: rppt@kernel.org, ardb@kernel.org, linus.walleij@linaro.org, akpm@linux-foundation.org, carver4lio@163.com, tiantao6@hisilicon.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] ARM: change vmalloc_min to vmalloc_start Message-ID: <20210520090024.GB30436@shell.armlinux.org.uk> References: <20210518120633.GW12395@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210520_020038_516625_9FBB4669 X-CRM114-Status: GOOD ( 15.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, May 19, 2021 at 12:41:10PM +0800, Xu, Yanfei wrote: > On 5/18/21 8:15 PM, Russell King (Oracle) wrote: > > -static unsigned long __initdata vmalloc_min = > > - VMALLOC_END - (240 << 20) - VMALLOC_OFFSET; > > +static unsigned long __initdata vmalloc_start = VMALLOC_END - (240 << 20); > > > > /* > > * vmalloc=size forces the vmalloc area to be exactly 'size' > > @@ -1169,7 +1168,8 @@ void __init adjust_lowmem_bounds(void) > > * and may itself be outside the valid range for which phys_addr_t > > * and therefore __pa() is defined. > > */ > > - vmalloc_limit = (u64)vmalloc_min - PAGE_OFFSET + PHYS_OFFSET; > > + vmalloc_limit = (u64)vmalloc_start - > > + (PAGE_OFFSET + PHYS_OFFSET + VMALLOC_OFFSET); > > > Here is bug, it should be > > vmalloc_limit = (u64)vmalloc_start - > (PAGE_OFFSET + VMALLOC_OFFSET) + PHYS_OFFSET; Yes, you're absolutely right, thanks for catching that! -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel