Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp1616091lkv; Wed, 19 May 2021 14:08:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJws1YHBqdMZEVp2G5tJ+sZGwuLKm/Ebk4KUmg4BSUHq/HZy6kXYArs5K4jJ3/SoCi2xFzoS X-Received: by 2002:a02:7702:: with SMTP id g2mr1293192jac.111.1621458506038; Wed, 19 May 2021 14:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621458506; cv=none; d=google.com; s=arc-20160816; b=shSSYqiLt9IaHFzgxfHhWEdO75rmw39eMSgL/gr8iXCj4waVGVDH2Z04yUan1wKUCi AQ10qRIWHQNfBxM+WUdWFhtAiLqItYf0BWXF93IUX0Y/0ZHOZVeyVSnlZbqblvTe51SL a26xmGX3JIGkTiwz2ZIu9LQqjv9KOS9WupV8gr1+AVPOlcnKec2v8bha3qohahjVsim/ w8HhFMSutdAorcAbdz5J3xX72/XrwRObkQbi1w78GgLcddlDyaQOyByrDCz2lc1XRydt sXZIcm3vWCdnK5F8HGuOQ8ja4xjGsVRmcBVfMb4hZLKtNOiN2WbmJwUJyzwts4KuVDJN flXA== 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=OEGLI93HYpE9BcTq84zX8bfuI0rquO7brZtS/6zGpPI=; b=C4ZFIhmceNzII9nciLZw7aN7Um9yN571NqPThdjywpEjdzV0rkw6ELNESP5dk/xSKI fwFsG3ah9YnH+MzY1S/lBcH42NwkKl/ZGLQagDl81z6fqohVo16eJAN6X21SxJNw6xpa hWo0PltTVF/XIcsJAswdxOF1niOGz8hKmnmCeRekK638c1EhH0vQOVQo4DfRi+YQnE1l eYQER0e9/xkqWYRuk//YS1D1DuPl33Xm7V0qNZ2a5jBmdZ7BeTVyC/QTulmmj5jWXtqE jUJNksk24hdjmZG9ftTLLYxqWMHueYKXwYDhjoWRiJRUGY3JCx2/uH7Ar6H4MK5MG9Bk x/MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=VKC+dYHv; dkim=pass header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=sVsAbU1r; 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 n12si550743jat.1.2021.05.19.14.08.13; Wed, 19 May 2021 14:08:26 -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=VKC+dYHv; dkim=pass header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=sVsAbU1r; 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 S1352761AbhERWeK (ORCPT + 99 others); Tue, 18 May 2021 18:34:10 -0400 Received: from pb-smtp20.pobox.com ([173.228.157.52]:59974 "EHLO pb-smtp20.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352762AbhERWeH (ORCPT ); Tue, 18 May 2021 18:34:07 -0400 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 656E513CF92; Tue, 18 May 2021 18:32:48 -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=ABZIIlZFzwAkm+46bzuTdkc+sOxWGI8Mc6xsxa nGp5A=; b=VKC+dYHv/OkOeoBNyC++NlzH7AuKPxwn1idGF0nwFE+Re1+OtAal0E llQl7Oe7HzK8XH6EIgV7TaXY6ob9nPn4M3J0Ol9e6H4nu7NHZPDUOlQpYAhqmwgJ 8Le61jqgKGWNFi76WDmQInJf6ujevsgixOG/N42PDwF5NCJvf4Cjg= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 5E0AD13CF8F; Tue, 18 May 2021 18:32:48 -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=ABZIIlZFzwAkm+46bzuTdkc+sOxWGI8Mc6xsxanGp5A=; b=sVsAbU1r8NKbbuhqgnZnYev1I8QnW5Qp9c92qCGI7UxKKZ6LyScNH+PnjRzWwKw/tqVBESrbd9pe24/SMj7zoxfhqjbaMzK8KJSSclZi9fe0WdVKziMHHP0psmOJElolGCzBQMkkzQYRSMSNFhsUFQELXOdn80nr6IfwmZxePrQ= 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-smtp20.pobox.com (Postfix) with ESMTPSA id 4962613CF8E; Tue, 18 May 2021 18:32:45 -0400 (EDT) (envelope-from nico@fluxnic.net) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTPSA id 208A32DA0092; Tue, 18 May 2021 18:32:43 -0400 (EDT) Date: Tue, 18 May 2021 18:32:43 -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: <8q526rs-853n-5q80-r9pn-87sso759r13@syhkavp.arg> References: <20210518120633.GW12395@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Pobox-Relay-ID: F75C615E-B828-11EB-A988-E43E2BB96649-78420484!pb-smtp20.pobox.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Nicolas