Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp1115793oof; Tue, 25 Sep 2018 08:27:18 -0700 (PDT) X-Google-Smtp-Source: ACcGV62eR7QMkQ89ExRZJOuE4k8iNleXUPcANaYcefEtWzIioN7LS6jlMswMdGrDQGXps0xmOqcX X-Received: by 2002:a17:902:760e:: with SMTP id k14-v6mr1747193pll.185.1537889238328; Tue, 25 Sep 2018 08:27:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537889238; cv=none; d=google.com; s=arc-20160816; b=jHO1dkkQ89PAtj1SMWrK0RqhQooDc4iB2MF9etzDBlJbvE3U6ZBa5aIWo97+o9CpDF MhTSHyALq0OyrqCoctaAoNSG5fHSI0XGG8uCu14OmR88TstJFahmmxjSz/9MY4NxjIdx G5egf609Vh+ynORin77qJMvIyiYVvJzJ9Otbmml32ghM1KmYrItssCIzqqBQxjVoTvok hTfQqWsmmY5tVe5mMmZlTnfgJqUMmIDgSl1cxyfUxyI2WhcOOAjkfSYRSKyY2IZ87int QZGhw7uWTNjDwkEuxWE+8rSb6lkz1Zg8dCcTVhgEupu8IS+Btkr1A0xcCjFasUo9xYgL SJZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=2Ybbxpq9z5eAit4IB07RPkPIWGXvoCRtwV5q3HAGNBs=; b=cssQHfYZRv9t8uigHFh91LxqtJBwmk6ZGDvyea4czQ1+m90li+qv5MCGmtvbzetImJ OVc+mvT0XNk09JfpSTOLBtHY21s5WnN8roZ+1tWoajbyx0p+WNNiSxbati04Wa08YQqK v06DqRWgcYs3dbNDGOdGvjyUNl6kOjJubeWx4YzGSyjWcZ250RpbgE0UWv5JVBpXykkd WpYx5fd3jcaYifSZsM3S9MxSh16s7bVdxhrwkQQL4Plh+419TUiBBjgVARod4FRnDNio tBX6RaA4pRaSZPOpafQZoCOzerNea/AK45MO2c/NJPsoRirZ6qaZyLqULUPanm4SS/Yo tcJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x61-v6si2755599plb.216.2018.09.25.08.27.03; Tue, 25 Sep 2018 08:27:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729580AbeIYVe6 (ORCPT + 99 others); Tue, 25 Sep 2018 17:34:58 -0400 Received: from mail.skyhub.de ([5.9.137.197]:35716 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729353AbeIYVe5 (ORCPT ); Tue, 25 Sep 2018 17:34:57 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id FACxEkcyvO97; Tue, 25 Sep 2018 17:26:55 +0200 (CEST) Received: from zn.tnic (p200300EC2BC69500329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2bc6:9500:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 74B331EC0322; Tue, 25 Sep 2018 17:26:55 +0200 (CEST) Date: Tue, 25 Sep 2018 17:26:59 +0200 From: Borislav Petkov To: Tony Luck Cc: Justin Ernst , russ.anderson@hpe.com, Mauro Carvalho Chehab , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Raise maximum number of memory controllers Message-ID: <20180925152659.GE23986@zn.tnic> References: <20180925143449.284634-1-justin.ernst@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180925143449.284634-1-justin.ernst@hpe.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 25, 2018 at 09:34:49AM -0500, Justin Ernst wrote: > We observe an oops in the skx_edac module during boot. > Examining /var/log/messages: > [ 3401.985757] EDAC MC0: Giving out device to module skx_edac controller Skylake Socket#0 IMC#0 > [ 3401.985887] EDAC MC1: Giving out device to module skx_edac controller Skylake Socket#0 IMC#1 > [ 3401.986014] EDAC MC2: Giving out device to module skx_edac controller Skylake Socket#1 IMC#0 > ... > [ 3401.987318] EDAC MC13: Giving out device to module skx_edac controller Skylake Socket#0 IMC#1 > [ 3401.987435] EDAC MC14: Giving out device to module skx_edac controller Skylake Socket#1 IMC#0 > [ 3401.987556] EDAC MC15: Giving out device to module skx_edac controller Skylake Socket#1 IMC#1 > [ 3401.987579] Too many memory controllers: 16 > [ 3402.042614] EDAC MC: Removed device 0 for skx_edac Skylake Socket#0 IMC#0 > > We observe there are two memory controllers per socket, with a limit of 16. > Raise the maximum number of memory controllers from 16 to 2 * MAX_NUMNODES (1024). Tony, can we read that out from the hardware instead of having this silly static number? Leaving in the rest. > Cc: Borislav Petkov > Cc: Mauro Carvalho Chehab > Cc: linux-edac@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Acked-by: Russ Anderson > Signed-off-by: Justin Ernst > --- > include/linux/edac.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/include/linux/edac.h b/include/linux/edac.h > index bffb97828ed6..958d69332c1d 100644 > --- a/include/linux/edac.h > +++ b/include/linux/edac.h > @@ -17,6 +17,7 @@ > #include > #include > #include > +#include > > #define EDAC_DEVICE_NAME_LEN 31 > > @@ -670,6 +671,6 @@ struct mem_ctl_info { > /* > * Maximum number of memory controllers in the coherent fabric. > */ > -#define EDAC_MAX_MCS 16 > +#define EDAC_MAX_MCS 2 * MAX_NUMNODES > > #endif > -- > 2.12.3 > -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.