Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp178800ybc; Mon, 18 Nov 2019 22:53:04 -0800 (PST) X-Google-Smtp-Source: APXvYqwFRQb531/GW33hz3ZkrpkvhCQ6NAp52X8BTHVXHrZLAiG+YxjhvkfljeCZw9Bx/Ef6z9Sy X-Received: by 2002:a17:906:95c1:: with SMTP id n1mr32535682ejy.158.1574146384248; Mon, 18 Nov 2019 22:53:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574146384; cv=none; d=google.com; s=arc-20160816; b=j1lCTuj3vWQizaAIcNY21Oobah7lK+zHrtaa5COowjkaQZT4wynB6ObBCtTx1DNDnW nfGQrSM109iyVytPsGTFAbl/UdRsGO7Fv4ZgNx5dTZJcoB+BdvUqOOVF82J0NAyLd6WX WycGhAe9b/QN6qb2SNxyieigxzsaxCwPS1as+iwDb3NJGU3Mv8KzRak4FdVRF5U+4q9X seQl0PNaAAmwQ7yFEJp+HM9L9QULNkkflsjNGDU0xuM+dmfW2KmB4O5pU/2U8FK8qOpJ zGnDf4m6FvdRYlRHVfl46MiDFGFNAq1J0qLhHYwl0DwQ+7hteKD4zbX7vpnbYgDS9IXZ wcWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2zxe/xiE0estnFg15d4NmEomAKOoMtpxGITbXC0hiyA=; b=SzWQbFX2QPYu3isyy1XqBea/9r62KhCdONr/UXEMWEYzT2/allsQVU9SE+Ch9OP0VB wR+zwLy2W5UPgIydBGXHaNXOoSmXfQUa2zct38q0G2JgZIE1slUqetiV7EScOwyfbvSN RUyug3Y82/7NNqvZujh7vDTCmkckfWqJEymEHDCugd2VcKEjIe8JtFsJslYJ3kYX+ZCZ IUY1gwytfSwbKi1oWoRWLEATUPmAB8kCUUUSn68/RFGY/PrULCtCvIm5NoLYeAsGmg4A FCwkozlFtAJfPK+CCtMalMvPxOD0CUaIHOn0MFXcGBSLW+KYySUHdCDvv1zDuAhugkEt HWHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tPR8l6KI; 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 k18si15845391edj.94.2019.11.18.22.52.39; Mon, 18 Nov 2019 22:53:04 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=tPR8l6KI; 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 S1732051AbfKSFxo (ORCPT + 99 others); Tue, 19 Nov 2019 00:53:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:51644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727888AbfKSFxl (ORCPT ); Tue, 19 Nov 2019 00:53:41 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 451EF21783; Tue, 19 Nov 2019 05:53:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574142820; bh=UupwU4breSByp96+YTz2uZ3ED3NUHaAkfOoof3kWAeI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tPR8l6KIhQSdak79Qr/RjEVkNj1gw229oW0EJAFYQbuEc3zLfNBpC+8h7qHP7Xzxg 6gAEXypwdJCHH6n4xVv7jFwANYFWvthfATY/FaxHFpmSN2Ipn9eda8IXLMccp5BYqL NdzDkvTYVovAJJs1dxDiSwIHz0IWv7KQ6pD/Hdf8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Justin Ernst , Borislav Petkov , Russ Anderson , Mauro Carvalho Chehab , linux-edac@vger.kernel.org, Sasha Levin Subject: [PATCH 4.14 209/239] EDAC: Raise the maximum number of memory controllers Date: Tue, 19 Nov 2019 06:20:09 +0100 Message-Id: <20191119051337.711593264@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191119051255.850204959@linuxfoundation.org> References: <20191119051255.850204959@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Justin Ernst [ Upstream commit 6b58859419554fb824e09cfdd73151a195473cbc ] We observe an oops in the skx_edac module during boot: EDAC MC0: Giving out device to module skx_edac controller Skylake Socket#0 IMC#0 EDAC MC1: Giving out device to module skx_edac controller Skylake Socket#0 IMC#1 EDAC MC2: Giving out device to module skx_edac controller Skylake Socket#1 IMC#0 ... EDAC MC13: Giving out device to module skx_edac controller Skylake Socket#0 IMC#1 EDAC MC14: Giving out device to module skx_edac controller Skylake Socket#1 IMC#0 EDAC MC15: Giving out device to module skx_edac controller Skylake Socket#1 IMC#1 Too many memory controllers: 16 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). [ bp: This is just a band-aid fix until we've sorted out the whole issue with the bus_type association and handling in EDAC and can get rid of this arbitrary limit. ] Signed-off-by: Justin Ernst Signed-off-by: Borislav Petkov Acked-by: Russ Anderson Cc: Mauro Carvalho Chehab Cc: linux-edac@vger.kernel.org Link: https://lkml.kernel.org/r/20180925143449.284634-1-justin.ernst@hpe.com Signed-off-by: Sasha Levin --- 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 cd75c173fd00b..90f72336aea66 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 @@ -667,6 +668,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.20.1