Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1697543pxj; Wed, 19 May 2021 11:43:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQLJVbSzr7WnnQcVTo30HlKc85qjaIPG6AntOyrHgTXnRoQS8zcpMF9AbYnddMcX/j5LFc X-Received: by 2002:a17:906:7f8a:: with SMTP id f10mr567673ejr.12.1621449808282; Wed, 19 May 2021 11:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621449808; cv=none; d=google.com; s=arc-20160816; b=Jt9x0/+COAJqXwe0F81ugc6CEgUIIz5zeijhfrG3rPuqxi3CjGB/Da2AThjlWgIdzK zLTEQDqTRSc2BWFCqW5qK8yiX8zf3ZPO4R1UWL98OoBfog+ufm44YpESVoyPWFyYEm5r t/8FVNmp8xgg4wtNcYxu6dXPRuqD08qzy3rc5N6o6i+JYT21juLLYVaBylamPicM17x3 ty9Vzm8kUlzb7Gx1V8ZTKvZt2D2n/94MxvXFGNYlB20UQiB3q9NbdCHIcXqDjN9QEfTv Ak6YFySsH946xQEqJGqmuwHTp0XpG1cQMqpOc3ISZ3uI4jQMiG65ZWfTyX8UUTo9MofI lW1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=Azx94azArb+f4h+fNai79zzkhNmflz1CKPLhDeB4Vqw=; b=tKObce5/+BRRKub/nqPxN3Q0IBq3rBeISaA6fhAimsKRSh8ImsEzfdAqZgxojy2F3F B43Gg0yBkT2ZcsbUxx3MPpRH5MjnLZvqmqK0or9BInAZxWH22CHfvQYj0yd3KWAoN2ib 5aTaP2+BQRrcl6UDDXRpsxXDWUW42AN0n/6neREjNxZdeYP8hh2iv0ENjI+wxMujyR2B n0bEp9HcmLpnH32DEb3ujqfDGhkaPDJj5Pi7OyuZAa4OfltcOcjE8a2A0bJYW0KdGSq4 ipaSthj/ie2QefHuesAUWbqmWSUwYiANLw8aFFt/m1nQcNERpLOWVOT6tFc3RZKnUHmu mXFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b="SBb6K/wM"; dkim=pass header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=Kvi1UQ8j; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si367480ejd.57.2021.05.19.11.43.04; Wed, 19 May 2021 11:43: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; dkim=pass header.i=@pobox.com header.s=sasl header.b="SBb6K/wM"; dkim=pass header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=Kvi1UQ8j; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236690AbhERW2Q (ORCPT + 99 others); Tue, 18 May 2021 18:28:16 -0400 Received: from pb-smtp1.pobox.com ([64.147.108.70]:61547 "EHLO pb-smtp1.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232020AbhERW2P (ORCPT ); Tue, 18 May 2021 18:28:15 -0400 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 4E889C94B9; Tue, 18 May 2021 18:26:56 -0400 (EDT) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=uyX7ogXS6ttXtxFCbmbVJP7Uy1ThRGIHklbWlj 5/1VM=; b=SBb6K/wMjBJmXenq7GziC3+EM1gJaPRLnIzjFL0SSUqdeFGYWAWEsk z5Ngawvv2Mrfvwsisgkw3fk5nD0Fi4nughxecFDIEniVhqMKLI3ibuaOhljzhqiL X5hAV/UUOR3XV7j/mb9zkODMBiJv5Pm1jjIIoI71N1YGkNIL9oNmg= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 44F70C94B8; Tue, 18 May 2021 18:26:56 -0400 (EDT) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=fluxnic.net; h=date:from:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type; s=2016-12.pbsmtp; bh=uyX7ogXS6ttXtxFCbmbVJP7Uy1ThRGIHklbWlj5/1VM=; b=Kvi1UQ8jAmauFX24SwSRCxgrbHf6aHWfv34aYkbuN1wT/6gUjqZUeUxsqqSXETW4XwN7gCPjkUn1MJ2YqlOJKkDDRfqi/eqO4rlfY8CTza9Bsk/xvnm1l77h5dkuwpz4en9er302gBJZg2cLKrYoraznZ4C2tN+ALRtoxZnYHzw= Received: from yoda.home (unknown [96.21.170.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id BD810C94B7; Tue, 18 May 2021 18:26:55 -0400 (EDT) (envelope-from nico@fluxnic.net) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTPSA id C6DEE2DA0092; Tue, 18 May 2021 18:26:54 -0400 (EDT) Date: Tue, 18 May 2021 18:26:54 -0400 (EDT) From: Nicolas Pitre To: Linus Walleij cc: "Russell King (Oracle)" , 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 In-Reply-To: Message-ID: References: <20210518120633.GW12395@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Pobox-Relay-ID: 270766AC-B828-11EB-80B9-D152C8D8090B-78420484!pb-smtp1.pobox.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). Nicolas