Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp874631rdb; Fri, 20 Oct 2023 01:47:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFpz92vR0d2Fa2oOu6sqTMIsqCewUWEAGuU6Yb9RuDb00BJHR0+vKqdIUxuLb+4fnqJzJwL X-Received: by 2002:a17:90b:35c4:b0:27c:f48e:e245 with SMTP id nb4-20020a17090b35c400b0027cf48ee245mr1238591pjb.24.1697791658702; Fri, 20 Oct 2023 01:47:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697791658; cv=none; d=google.com; s=arc-20160816; b=Yvxk0opsy5UCzktsfd0RoJgJ5Mon5hgd23I15AKnR86im2cey/juAV0CiWhu1HJWpO DJLbrTT7EThqE+8GKZFQNDegA5It2KJoC2Zs9BGZeFYBXjeIjEY7AyV6jqmjcWZlfI6X bTKXhfG/rC1yfTUDQFqV+5tF3lBQpwZeIkWuAP7SHAFCNnM2OVl3WhtvaQmkbdGCHDrJ DSn7EHyOr4NcYdyzN/NDtWdQ1WBkiV487bKO6XxtT+NiR7VBEdL8TpzC7LaGFUm1fVAH g1dBt+0jY2TF6nnx5IPXwXKHi8pQMpJI/eiZrbTiXobcNOlpo2wcOh7dsRb3a2LY2qj7 0mwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=Msl3mVmSy6+Gq7AtNX6ffagUflryyN28BFdYCytPHMM=; fh=Zsl26U8LFeFKbqv1+nzVUo9aE2LhE3eG3/Cqve7cbQY=; b=PbKmSGf4bgaIWZnwTiVy4X7jhX7h/guYi9rNc72VsfZYCnmRe86YYKzIhwwPQ4/4mI ZzkybtgTYhNmkkVzdvFNvm/ss8rqhEdpmHh/Z5ty1CcHGBur+CdfG9OvYuqtIKn9sYgQ 0mRUzf0gkjk6nrh9lXvMPgr+87PWTMeJOfMwdSd6TZQBIOzM/reeZp8MGKZKy9txLbpt Gh9wYu9GG8/w2R7lgKO4N/lzf47jUjWVKOWUcqZriAjdpk0l7DS13j7IU5D0wvd1OROb pJEmljrDknqgK2xHapiJEfKva1lMWvbNxfImlnRFAIfU2Qo9CybK5zC00PeB3nP2mGUS kcIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GT3Lpuho; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l24-20020a17090ac59800b0027b0acd55d2si3934476pjt.101.2023.10.20.01.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 01:47:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GT3Lpuho; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 20DCB8048694; Fri, 20 Oct 2023 01:47:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376511AbjJTIqn (ORCPT + 99 others); Fri, 20 Oct 2023 04:46:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376472AbjJTIqk (ORCPT ); Fri, 20 Oct 2023 04:46:40 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4F5FD41 for ; Fri, 20 Oct 2023 01:46:38 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-9be7e3fa1daso86677966b.3 for ; Fri, 20 Oct 2023 01:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697791597; x=1698396397; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=Msl3mVmSy6+Gq7AtNX6ffagUflryyN28BFdYCytPHMM=; b=GT3Lpuho7cl+KurHEO2OAXBZcjEX9WQa4BDAXD+Xbf6Vy6xqqzGzGe/ocj20vH1wpb xhxQJOaJ4GHMGs2YknRDE5709pv2n+Ji3gkQOM5SS89B3DGRX7hAtzd2mLbpdj6WDQW9 OZNUdl03Qf/ezFWrBZb1OhwDBTNVcd4bBKMcjO44XFXIylTjMp0YucKc3pfLzCWgrf5+ 1JOOiOThIhB31Fxqv9Ds4qntVHJPHo6noLhNiMKcUhSt+v2QpFUHuEmyAli1jMfcepK7 9Yo2ZbEdh423f52hb6ZAEzjESnghA4bSzcPa3ujSmxIdpaQ+B8AiFul1MHuAWZWTXcjV nY1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697791597; x=1698396397; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Msl3mVmSy6+Gq7AtNX6ffagUflryyN28BFdYCytPHMM=; b=YBYiY5Itlo1ei1FKNDmd+9MX7GRXFlabpXRjg7abw0YmapXKe5vWpVEqgKqyGiFM0g owF02b1wiUOAmhbwzqyvmRzwB+mw65HVI+1wddmFIeIvgO+bZpBJhUqi03HyVQmKWnPG iVq0Q0oKFwCgNjUry3n49/SHd8yGrGnQ65GvLb4EFwmtTdDMxbmCtbvb9RJaX0dSxRPP 6Ta1VuwvSUSJKX2GGkcswNeBBRLYcbpQFJ/YWz9Py46FlgvES59J5PmN78+qy5H6iMuZ Rz3QZTKwf6chME1hPoM4yEkc+DXVszTfi5mms6iX4ZMdHBq3tJEIOSLphO8jzo1qZdd2 NgKw== X-Gm-Message-State: AOJu0YwTjvGaoP0sDssk8quBbJOO8Awod4lrMZ92RBTsVZpl9z0MqYh4 jkA+Dl9evnLxZdsy5C74mbU= X-Received: by 2002:a17:907:9623:b0:9ae:6da8:1819 with SMTP id gb35-20020a170907962300b009ae6da81819mr789653ejc.48.1697791597177; Fri, 20 Oct 2023 01:46:37 -0700 (PDT) Received: from gmail.com (1F2EF7B2.nat.pool.telekom.hu. [31.46.247.178]) by smtp.gmail.com with ESMTPSA id n27-20020a170906119b00b009ae587ce133sm1043294eja.188.2023.10.20.01.46.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 01:46:36 -0700 (PDT) Sender: Ingo Molnar Date: Fri, 20 Oct 2023 10:46:34 +0200 From: Ingo Molnar To: Qi Zheng Cc: Andrew Morton , Mike Rapoport , David Hildenbrand , Michal Hocko , x86@kernel.org, Andy Lutomirski , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v2] x86/mm: Drop 4MB restriction on minimal NUMA node memory size Message-ID: References: <20231017062215.171670-1-rppt@kernel.org> <605cc166-e731-e7d1-25d7-b6797a802e6f@bytedance.com> <35bd1d51-35ac-3ee6-e068-f50dff7774bf@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35bd1d51-35ac-3ee6-e068-f50dff7774bf@bytedance.com> X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 20 Oct 2023 01:47:01 -0700 (PDT) * Qi Zheng wrote: > Hi Ingo, > > On 2023/10/18 20:44, Ingo Molnar wrote: > > > > * Qi Zheng wrote: > > > > > > While I agree with dropping the limitation, and I agree that > > > > 9391a3f9c7f1 should have provided more of a justification, I believe a > > > > core MM fix is in order as well, for it to not crash. [ If it's fixed > > > > upstream already, please reference the relevant commit ID. ] > > > > > > Agree. I posted a fixed patchset[1] before, maybe we can reconsider it. > > > :) > > > > > > [1]. https://lore.kernel.org/lkml/20230215152412.13368-1-zhengqi.arch@bytedance.com/ > > > > > > For memoryless node, this patchset skip it and fallback to other nodes > > > when build its zonelists. > > > > Mind resubmitting that to the MM folks, with the NULL dereference crash > > mentioned prominently? Feel free to Cc: me. > > OK, I will resend it if no one else objects. :) Thanks, much appreciated - and I see Andrew already applied your two fixes to -mm. With that background I was able to apply the x86 fix as well - which can be backported without the MM changes. The current commit in tip:x86/mm is: a1e2b8b36820 ("x86/mm: Drop the 4 MB restriction on minimal NUMA node memory size") Which should hit v6.7 in about ~1.5 weeks, unless there's unexpected problems. Thanks, Ingo