Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2829794pxb; Sat, 30 Jan 2021 16:41:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJya3+ZHbpcIbfOlafwC9oznnokwQf8yGZsSggpzpOvMnSNseKuM0ri5ldt+4hmFXVNEGuD3 X-Received: by 2002:aa7:c682:: with SMTP id n2mr12372629edq.27.1612053701704; Sat, 30 Jan 2021 16:41:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612053701; cv=none; d=google.com; s=arc-20160816; b=jNuFtX+bjicoOqYuZKzjiGvy643OtnGZrdTodU2jRuwDX9Ys1acsRd3Nr0ZufHM4Jj CORsl926GAx6XOpOx1dTOuvZsP7Io8xYq6M0HNdGbP7z5sIROK4ryFllxDcwJzjUSUOB i5Qg5UVHe/a5JY1McKVSKV+yPAdT81A+9osY7mPTjVw8aFVtQbifrOWHfL68ZYnM3pT6 Iry2IabyxyjG+gd5/VSEh9D3J4Qz4e7qE7ulEpWBvymYyFhyJ4o6goO55/Im8L6jk/hV ow1PcF3aJ6ZWEhRE7TH3CBLHxkhIkgJiuVY8XviJ/VHPyd0IGHeg0595MDL74k2InDqA oxrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=DD6WrpWIFpx8OEBcyiuO6A2SCACjFJeGyauo7ybABPI=; b=BfIOkFTj+0SS/IektB/R+UkIGw8JeNiZglGQ0KnprSmely4bPucEirm6jT65yElMVj ZG5Ec0MjiTPzxgtuN+xGa5hUUnE9lvV2dquw3yqYzCBadwA2uOLAMB8eKr5Z7UlLPOJR ylMytoRO0Vq73MULQy12CNXtVTp8HffmaXFujIX+FC53+HAT46NZMBw3emWmqQtsF1/3 lK//Yg9MP9kw8Wa1NDl8uwhpHAYnRdcRZjCm92NmO4eX5sPyCPQTU3l/RZlpg/IjH4iF P4i7xanEbGcPV03snlQRAHD6r4ZaTnZXs2W6hntgTbdDywqsUcKK+vWJiE+qOSOvHPhQ jY6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ed5CVkLy; 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 i27si7446866ejk.580.2021.01.30.16.40.54; Sat, 30 Jan 2021 16:41:41 -0800 (PST) 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=@linux-foundation.org header.s=google header.b=ed5CVkLy; 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 S232435AbhAaAi5 (ORCPT + 99 others); Sat, 30 Jan 2021 19:38:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230360AbhAaAiz (ORCPT ); Sat, 30 Jan 2021 19:38:55 -0500 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1E9DC061756 for ; Sat, 30 Jan 2021 16:38:14 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id f19so15051597ljn.5 for ; Sat, 30 Jan 2021 16:38:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DD6WrpWIFpx8OEBcyiuO6A2SCACjFJeGyauo7ybABPI=; b=ed5CVkLyOKnKHx2gOTRhmFxU2q6FKrW0udikjcX7cpa463TD+QKnWktODVSFA6jFSs bVmfFtQ0V5LVryuIy+tzPrvF8xQCaThasnQECTTtFo+FSJLo2Q6KNKIVtQC6ATrvDjF1 q4Owka2JEFQ+CCivfQ0SQ8QO0QcFVbvhsbmlU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DD6WrpWIFpx8OEBcyiuO6A2SCACjFJeGyauo7ybABPI=; b=i8rfYraGdNyns2CL+qXhA6nROUxsJ0teTMM/lXHWuLDuc6nqXKBbXY+rnmCi5ReMCm Z+iAg9KtZiij8VK9oS5qNfiSJnpc8By2dxkIRCXoGbNSS/tyyamOI7z3vzqtxRk4hXmp PzAlyXWceKapVXlrgmLndQM3F8/FJJVOCc9LP6SfiDaLEMLgy+4vQC/LXi2LNNGqp4r5 7peukp8R4Q8vyVtlfp2+kUhvjhIPwQVIsSci1I5nLeyyYlAEE/Izn6nyIl8jVcsHsXxy V6GjWAzVlJRYaJq1ue3jogSWhNkqhp4NPB7wYsu1KVh/VvqFV+jQBaWBbJ4QtX+ceTuu SThA== X-Gm-Message-State: AOAM533LpAOnsGPPeaCwWQuy17kvry+e/rPlRpMz6fxyRoqbfU1USRTH 1VkjayrBrNX0eTtwbhxf+FeG54ebfSgDsw== X-Received: by 2002:a05:651c:489:: with SMTP id s9mr6317135ljc.188.1612053492711; Sat, 30 Jan 2021 16:38:12 -0800 (PST) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com. [209.85.208.178]) by smtp.gmail.com with ESMTPSA id n4sm470576ljg.101.2021.01.30.16.38.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Jan 2021 16:38:11 -0800 (PST) Received: by mail-lj1-f178.google.com with SMTP id f2so15035298ljp.11 for ; Sat, 30 Jan 2021 16:38:10 -0800 (PST) X-Received: by 2002:a2e:8116:: with SMTP id d22mr6026940ljg.48.1612053490367; Sat, 30 Jan 2021 16:38:10 -0800 (PST) MIME-Version: 1.0 References: <20210130221035.4169-1-rppt@kernel.org> <20210130221035.4169-2-rppt@kernel.org> In-Reply-To: <20210130221035.4169-2-rppt@kernel.org> From: Linus Torvalds Date: Sat, 30 Jan 2021 16:37:54 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 1/2] x86/setup: always add the beginning of RAM as memblock.memory To: Mike Rapoport Cc: Andrew Morton , Andrea Arcangeli , Baoquan He , Borislav Petkov , Chris Wilson , David Hildenbrand , "H. Peter Anvin" , Ingo Molnar , =?UTF-8?Q?=C5=81ukasz_Majczak?= , Mel Gorman , Michal Hocko , Mike Rapoport , Qian Cai , "Sarvela, Tomi P" , Thomas Gleixner , Vlastimil Babka , Linux Kernel Mailing List , Linux-MM , stable , "the arch/x86 maintainers" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 30, 2021 at 2:10 PM Mike Rapoport wrote: > > In either case, e820__memblock_setup() won't add the range 0x0000 - 0x1000 > to memblock.memory and later during memory map initialization this range is > left outside any zone. Honestly, this just sounds like memblock being stupid in the first place. Why aren't these zones padded to sane alignments? This patch smells like working around the memblock code being fragile rather than a real fix. That's *particularly* true when the very line above it did a "memblock_reserve()" of the exact same range that the memblock_add() "adds". Linus