Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1179868rdb; Fri, 9 Feb 2024 12:52:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXpdCYmvYcHZ/AtXH4MOboW+BwruO7rQAeUsFEbYKMKMJYPq67+7YoTngwxcgojS2bSj2JZHb6AL52p9PILJS2vxvaQseDR8SKsgU7qKA== X-Google-Smtp-Source: AGHT+IG47Rl+FsyrfaFq83x5+yT9nSGLSrfe6po+8qVHA7nF0JNogqgZ7nO/nuLL5Ebee1ZNSN4W X-Received: by 2002:aa7:d584:0:b0:561:1b5e:14f0 with SMTP id r4-20020aa7d584000000b005611b5e14f0mr68042edq.8.1707511935423; Fri, 09 Feb 2024 12:52:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707511935; cv=pass; d=google.com; s=arc-20160816; b=stCpOoeck6W4SvGEG3C+KX6LLFXfcTJjWSEjZTimFDGivNqeZN9LKanHI79em4MLEW S+1JAq9DhMeLhkQhotjxhQ+Wi7eJm0tTOdsNepP2IBkiU5mHkTQx7CRmfRtYFWnfB4p4 BDZptcrE089mU0LqjUiekS4LKst86O2nAhwCYAlHCfKwieYhoKjYPhBCMPPuadZZzfrC u2e0eHqqoWB/RQ/bLwyMfoVyt6wS/VKvz7sw+RcUxabCzP4/zCNW9Mexxu5RWs1jkCau XvrgNMs7zwwQSwkSb4WHMwK1uWuwnBGnIjzfzkFpx/2tFEn+yPRapaJFEv1k0LnAiisS EWfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WoEsY6Grt89Wavd7goGgdeie8Ypipy2F5o0F+eDkAQ4=; fh=gOQHG0x+PfoCKMMHzbrosyI4WJwYJpHCqu2d05HXS/o=; b=b6X/ne5dJt9IqXqrXp5+aoppuidUeSNY7UaW787ypUp4hbHd+cjLZBtMd6I9i0IVeu 7dOoZwNqVPASchlT4vh3yfSdc7Ny7pOLwDcpkWMfvcTcQyq7zciYBA6OihlQwgKh36Yd 0L4IRsEYq0cmwHvyVCQJe+j9E/XID3F868WoVCzFzjjyKZszfUDMFF7M1lzf7yv8IynS EKIo1QO5kmtL4FYffdMoGQ7l5LAGZ/5BCON0avkpybc2kpE7mA2MTQ4Olme2IOpwCvQP qFK5q1mVvNs4s4qobaFHBK2tk3xU1sdhudETnwp2Rsaaj+i/MH2tiaQsj6ZnmEzqgsjn gQag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Ey7Qu9Sw; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-59968-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59968-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de X-Forwarded-Encrypted: i=2; AJvYcCWLEl1G0rZTxn1vT++crCyyBxuU60rS9r8E7IV4IP7CFq9rYalR7cT4vpUtr7XizJL7AjMze369XP0nrw7jGSRKE9rNX4zzyKf24e4r0Q== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id c9-20020aa7c749000000b005614ad45532si100865eds.358.2024.02.09.12.52.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 12:52:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59968-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Ey7Qu9Sw; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-59968-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59968-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 845751F2392C for ; Fri, 9 Feb 2024 20:52:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2FCEE10953; Fri, 9 Feb 2024 20:51:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="Ey7Qu9Sw" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5034D11CA1; Fri, 9 Feb 2024 20:51:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707511893; cv=none; b=gQxU0LTafZfX9TGgy32o3zLWpR7MumwYlNf8sjopCGbeWmwCKXXu4h40O+w/+pNJH6OYirByzLWdgZzQzY5VZRB7kqRSt2NFeoJa15Q/1q2/ZdkQIqBQSjIXKWXzlQ5gSyN/28Ct75Va2dOKZivPOsw0MBVgFRjZphfj9SREjJM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707511893; c=relaxed/simple; bh=aUO2tQWoagVu38p7XEo447RN2Jh0AqQIhLQmEataQvE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qHbJ5sJ0GYSaI4SDbbZkVCdo/M0HZrMQ/7VvixHq8lmo9t1addwGAViNyk1iKNWCEgNi/Gix3MyrYSmQ3b4379gl3AIQbPLhKAORjNvvpdbgsAQTlHI/XGOu6I9P4xcgQc8Lzoh4i0TX7Zh8FIo38bhrJ0PwvJ1Si42AMS3uWtc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=Ey7Qu9Sw; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 3B1B840E01F7; Fri, 9 Feb 2024 20:51:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id yfERvYSsb0NL; Fri, 9 Feb 2024 20:51:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1707511885; bh=WoEsY6Grt89Wavd7goGgdeie8Ypipy2F5o0F+eDkAQ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ey7Qu9SwEkjFDyZOwM3kcE9LvtCRKvouzYIvRLyFuG5zhySHvvZ5aZFI6zwwIy+B3 BDt4/3GyUBnUCxDdX+QzFkO8V5qVv3O7cxeZeo4GFsePH/PnmoJYZp3bpVxBNQh2fb soT2cu7+WdkW9lsyywnbU1NSsgcyo3rY9lKBufjZbQo9vuvWtstDp9xRf1JSvOEnV6 wEcxb9y0hqyuzBQ9pQNM5NVCwO8bXgswy0DEcRJBGn8jrjOuSHHQXImhg5F6VnuhzW nkGL4zkFc1Qb6PxQy5RWVxCzXDVvmGM1u3NbU//gS5/7yBB8T6bUPIEzMEe/Y3XPtK 3lG9dznE4N2UOZKwU9WzWVNrCRIQeLBVYTDsLDoJbX7ldjkhx0XjQBSI0XiMLmY5AZ HKiEiTP1hKRn6nbbau5Sf2DPmnGOZwMaTAIFBR3/i4CXvwqSGoHZppTSdRHyLu6YY4 n55+erAW9RoBCkMOiFMxBRZJ5ikKuOO2t7I6oXoYZ9XAz5U7iKU3WffKBmiICo7Y8/ +2FbODMaE+yoq+XEQcTx8Ga/50RnDtikp+fL9mLQ+J5KlAvX18/5K1H8+HAFINKYu9 uIi+WK057N+nZCJB+Jon2x6N96ajkFr2ARRWY57k/7A1KfTsLbBh4LRss6Rla5Nntz Naefn8fCy94bEMq1UTHeXXs4= Received: from zn.tnic (pd953021b.dip0.t-ipconnect.de [217.83.2.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id BBE9040E00B2; Fri, 9 Feb 2024 20:51:17 +0000 (UTC) Date: Fri, 9 Feb 2024 21:51:11 +0100 From: Borislav Petkov To: "Naik, Avadhut" Cc: Sohil Mehta , x86@kernel.org, linux-edac@vger.kernel.org, tony.luck@intel.com, linux-kernel@vger.kernel.org, yazen.ghannam@amd.com, Avadhut Naik Subject: Re: [PATCH 2/2] x86/MCE: Add command line option to extend MCE Records pool Message-ID: <20240209205111.GGZcaQP1gb6C9m0WZB@fat_crate.local> References: <20240207225632.159276-1-avadhut.naik@amd.com> <20240207225632.159276-3-avadhut.naik@amd.com> <8b4f8ec2-7534-4f77-b44f-6728c699ff64@intel.com> <51255499-0b5d-45c6-9c72-f353bae83c0d@amd.com> <20240209200920.GFZcaGcOr757W9O3IG@fat_crate.local> <7a4945b0-322a-444e-a0ca-860a062a49c3@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7a4945b0-322a-444e-a0ca-860a062a49c3@amd.com> On Fri, Feb 09, 2024 at 02:35:12PM -0600, Naik, Avadhut wrote: > IIUC, this is exactly what the first patch in this series is trying to > accomplish. Please correct me if I understood wrong. Yes, you did. I don't mean to extend it - I mean to allocate it from the very beginning to min(4*PAGE_SIZE, num_possible_cpus() * PAGE_SIZE); There's a sane minimum and one page pro logical CPU should be fine on pretty much every configuration... Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette