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_CR_TRAILER, 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 06BE3C4708C for ; Fri, 28 May 2021 09:58:11 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C0E5A6113E for ; Fri, 28 May 2021 09:58:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C0E5A6113E 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=bombadil.20210309; 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=wihGmaXDNGn4+b3IVeqiE718zca7uT59feH5O2sBjbs=; b=KpK9/RrjUnd+Uu 2BQl9Jand/b1IocmEcR48sUycXoYXRU+stHX1wpSh6RvOP5t6DDCFJPV4LzmVZyv/7ULnTkg8BQEu e/MWGEPBSsfEf7jaufKCKs6C3L9wkwoWHkYHl2rabKhnuRi0+n75rwsTUbemS9LjL7pDkHzfHQpTP +IGU5TsnUhdbvoTtd9tuMvUnuwPiJ9wmC1KVGUrezmvz683LGcFftIpViRvyOPtJF7Ihlk7Z+uvqd gw9V3V3l8WELAUQCph+WTrBV9tefJlbYqPHdUNNnf3TqxiVTYr22D4ZoYJupNaZHibWIBmd1c2y29 NlnPQ/JcdHjKB9cHFcbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmZE6-00E9Bw-2x; Fri, 28 May 2021 09:56:22 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmZE1-00E98k-Uu for linux-arm-kernel@lists.infradead.org; Fri, 28 May 2021 09:56:19 +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=a2uo9vSb+aABBmUmlUH2DE45CphhEqNlicwhzWks7yM=; b=ZjWKoO+erAmoYwbpbAIT3ml63 wqI1VaOI9eHzxA5U3h6obbE6yhtbM/M4o9Qxwal4K+RghNN/cPy8O31/58pZkg1iO/x+fGCfEUTTg OFCKGscvYPWDndPrKrpIGgz/Odt5rrk0tU+e6ywDtgyVSInRyC35bIK/SGqUS82vCUuIXBu1/aqbe s0OK7SE2+FvvxXIuaUEWZFAmAGX1+7sHSmv40yl3H9IFoIpi8RCCfK+cvRpVdS+NVli9y8dXdtKVi gMfCYfy2VgfrpG/vUMf4xkmmJqiymK3cTAGo8jHpyVcN79PnZWqQbeG3DLvAqZFjBEVqSSCjoyHgs h2ZyyI8Zw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:44434) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lmZDn-0008DM-RE; Fri, 28 May 2021 10:56:03 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lmZDi-0004cX-8U; Fri, 28 May 2021 10:55:58 +0100 Date: Fri, 28 May 2021 10:55:58 +0100 From: "Russell King (Oracle)" To: Nicolas Pitre Cc: Linus Walleij , Yanfei Xu , Mike Rapoport , Ard Biesheuvel , Andrew Morton , Hailong liu , Tian Tao , Linux ARM , linux-kernel Subject: Re: [PATCH 3/4] ARM: change vmalloc_min to vmalloc_start Message-ID: <20210528095558.GN30436@shell.armlinux.org.uk> References: <20210518120633.GW12395@shell.armlinux.org.uk> <8q526rs-853n-5q80-r9pn-87sso759r13@syhkavp.arg> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8q526rs-853n-5q80-r9pn-87sso759r13@syhkavp.arg> 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-20210528_025618_170654_9D7F6ABD X-CRM114-Status: GOOD ( 23.65 ) 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 Tue, May 18, 2021 at 06:32:43PM -0400, Nicolas Pitre wrote: > On Tue, 18 May 2021, Nicolas Pitre wrote: > > > On Wed, 19 May 2021, Linus Walleij wrote: > > > > > On Tue, May 18, 2021 at 2:15 PM Russell King (Oracle) > > > wrote: > > > > > > > Change the current vmalloc_min, which is supposed to be the lowest > > > > address of vmalloc space including the VMALLOC_OFFSET, to vmalloc_start > > > > which does not include VMALLOC_OFFSET. > > > > > > > > Signed-off-by: Russell King (Oracle) > > > > > > Reviewed-by: Linus Walleij > > > > > > > +static unsigned long __initdata vmalloc_start = VMALLOC_END - (240 << 20); > > > > > > When I first read this it took me some time to figure out what was > > > going on here, so if you have time, please fold in a comment > > > with some explanation of that (240 << 20) thing, in some blog > > > post I described it as "an interesting way to write 0x0f000000" > > > but I suppose commit 0536bdf33faf chose this way for a > > > specific reason? (Paging Nico if he can explain it.) > > > > That's an alternative (and deprecated) way to write MB(240). > > And it seems that MB() isn't globally defined either. Oh well. I could add a patch on the end of the series changing it to 240 * SZ_1M which will likely be clearer. -- 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