Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30790251rwd; Thu, 6 Jul 2023 10:43:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlE35FPIcuuq/qpRVverxDksBBRQ3oLTnf4xRqHvKDdrp/SZfA7YDSHRnvfLhyRcWrAhz/ab X-Received: by 2002:a05:6a00:4504:b0:67c:db:c2f4 with SMTP id cw4-20020a056a00450400b0067c00dbc2f4mr8840310pfb.4.1688665385340; Thu, 06 Jul 2023 10:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688665385; cv=none; d=google.com; s=arc-20160816; b=Sa3As6nXl/kH8p96UQttEMl+gzhRdqv4rs5wO3mJjV1cB/Q/os3/sJCcDcML9gJxZc kIo9JuMgboCpcWaLEOSgYQ+xsgCk5FbWFEZGYjzYwHAH5gFQY0bI0uZzCcasMaMrRjKk Mdb9hCjTKfLyvUy2nZXjyLTCA0c2PVJuOKd+BUJqSyR4+U6DUOrKhi19R/dNs23LrFuX D0fYrB+ntH3IL4021nDEENkEA21nT00UJnw3RnmHvG6ae0YAfSAAOvs/oHYhNBT7INHW bRIPw2PKrX2FbefMS9cfH/4Z9DkEvbsjALA7ZwwlgRjaxME5zHsrVjzs4jUzAEz8DXRl uZDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=m0o+bmo/z+KUHuCedyvvujwzX784WyikcaRwsI32unA=; fh=Ah3t2oKO+rQyB0Paut39w3m0xxKR4Z5S/dtI/uhSVj4=; b=GCYoqbWwWSEh02y7HwZgFPn/siBr0v6DCCDgIGJPZS5gLv8ZuZ1IvcHqWxS9MBrlnR 5h5WP3slnACYsB9RI4LDCYFB9lhN6U4Yznj4oIP6raLGC8NoEphi4eWB7BSAqlOgAzC8 hyDHL/YisQmfAqktixJGI6SOC9m0aaQSzcSM6tuAAyR5zWUhjfYOMW64oQA2x/7WvcsA EFKqUC8J/Ps6pbendx50j461tl8TYxH32GZ+m5EshvZfqyTOYwsueYy0XTjUaJm1c2TA VW36ehBcgonPr/NeDPrlLCPiOAFMmwHNTv9cnVanIiKpa3rP2DYMGQ5JUSKmwNcNEY0T rWDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=U0WqcxbU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fh12-20020a056a00390c00b006501b3c2009si1885682pfb.58.2023.07.06.10.42.51; Thu, 06 Jul 2023 10:43:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=U0WqcxbU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231929AbjGFRlH (ORCPT + 99 others); Thu, 6 Jul 2023 13:41:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231367AbjGFRlF (ORCPT ); Thu, 6 Jul 2023 13:41:05 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40CF3119 for ; Thu, 6 Jul 2023 10:40:57 -0700 (PDT) Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id DEF103F72E for ; Thu, 6 Jul 2023 17:40:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1688665254; bh=m0o+bmo/z+KUHuCedyvvujwzX784WyikcaRwsI32unA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=U0WqcxbUwYjae6bpsM6cWIqH2gS57q5EHcrrztb0MqgcFBcXrOj4QhGS4DKiF61E1 99LXSXSx/opUmaBx1Ni+9tovZ5BTiR9X2c0uWQpdmbGqWvaDXnvTqWgHS1nvIu3Ur2 pyyYKwT355vI9W5XTf6sn9rhoEvlpFH5yXzkaatW9BysIxfYVE+dZyFufP248E/+QI jrayUCEXGfhImUo9m1s0i8vE39IlJIL6MEMcLrn+8DMhIqI/6vmzPv0WltILm1aDVZ vvkEA8mNoxqIY3DpxkUUaAE5lwoh2E/f5BOLS6yo90ykT9FCZwgKcw2IurHUxKFRPL 7SupNcYYemEBQ== Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-66a634b2cf5so1396633b3a.0 for ; Thu, 06 Jul 2023 10:40:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688665253; x=1691257253; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m0o+bmo/z+KUHuCedyvvujwzX784WyikcaRwsI32unA=; b=G4Gb9dDX2D3EqtBOZ/d+p/Fgfx/BW0So3OWTWnA1fXQFbQyxHIyQRatxvhF3GTTSD0 zAROFKwQK6iIy2O942plnRpI9F8akv7P20G6xFWC0J8XAd/zWd3/O2o1vp8lnPcqb7Nd ztECXUjeQ0Fd1d3zMe+iP+7N3WVDeRFgI21DXMmJTVdzKn563ymPJ/PwijvPQCn4hBqh s7YJARciU8c6DSd4qn83A1++m24Iv6iKiKFVw2c2vllOLyve0vkG5fXAFsbleqKRnE09 kOs7qTNMMWG0Tcmxs8QY5fuHrhtbFeJ6NwPgyP4rzo1kAfwqVeFo51hORCWYk5qQTVup 9jkg== X-Gm-Message-State: ABy/qLYStzGRkrRt7yE2Bzk+cvWrwjb5M/5a1p3OFTyaWB/ETrPKZacH j0Shlr9CHlg89K9LK7PiSeeS4L/I1mHQYAx9LLFLiANJx7Khu+fOffkUyFSXLrNwqjYsFvEBs6A g6L9PPAkAj4uolDJUpy7yOU35We+PbooZQ20lalI4Q8luEfHhKLqHh7x/WQ== X-Received: by 2002:a05:6a00:158a:b0:67f:830f:b809 with SMTP id u10-20020a056a00158a00b0067f830fb809mr4275353pfk.3.1688665252852; Thu, 06 Jul 2023 10:40:52 -0700 (PDT) X-Received: by 2002:a05:6a00:158a:b0:67f:830f:b809 with SMTP id u10-20020a056a00158a00b0067f830fb809mr4275336pfk.3.1688665252541; Thu, 06 Jul 2023 10:40:52 -0700 (PDT) MIME-Version: 1.0 References: <20230703162509.77828-1-koba.ko@canonical.com> <4ec2b7d2-11a5-6ab6-087a-175ed31faca4@web.de> In-Reply-To: From: Koba Ko Date: Fri, 7 Jul 2023 01:40:40 +0800 Message-ID: Subject: Re: [PATCH v2] EDAC/i10nm: shift exponent is negative To: "Zhuo, Qiuxu" Cc: "Luck, Tony" , Kai-Heng Feng , Markus Elfring , "linux-edac@vger.kernel.org" , "kernel-janitors@vger.kernel.org" , Borislav Petkov , James Morse , Mauro Carvalho Chehab , Robert Richter , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Thu, Jul 6, 2023 at 10:12=E2=80=AFPM Zhuo, Qiuxu = wrote: > > > From: Luck, Tony > > Sent: Wednesday, July 5, 2023 11:22 PM > > ... > > Subject: RE: [PATCH v2] EDAC/i10nm: shift exponent is negative > > > > >> # head /proc/cpuinfo > > > > This shows your system is the workstation version of Sapphire rapids. I= don't > > think we did any validation of the EDAC driver against this model. > > No, we didn't do any validation of the EDAC on Sapphires Rapids workstati= ons. > From the link below, we know this is a Sapphire Rapids workstation with o= nly 2 memory controllers. > https://www.intel.com/content/www/us/en/products/sku/233480/intel-xeon-w3= 2435-processor-22-5m-cache-3-10-ghz/specifications.html > > We only did validation on the Sapphire Rapids servers which were with 4 m= emory controllers per socket before. > > > > # dmidecode -t 17 > > > > You have just one 16GB DIMM, and EDAC found that. So despite the messy > > warnings, EDAC should be working for you. > > > > > # lspci > > > > I didn't dig into this. Qiuxu - can you compare this against a server S= apphire > > rapids? > > Maybe it has some clues so the EDAC driver will know not to look for no= n- > > existent memory controllers. > > This Sapphire Rapids workstation had 2 memory controllers but appeared > 4 memory controller PCIe devices from the log: > > 0000:fe:0c.0 1101: 8086:324a > 0000:fe:0d.0 1101: 8086:324a // absent mc fooling the driver, should = not appear > 0000:fe:0e.0 1101: 8086:324a > 0000:fe:0f.0 1101: 8086:324a // absent mc fooling the driver, should = not appear > > By observing that the MMIO registers of these absent > memory controllers consistently hold the value of ~0. > We may identify a memory controller as absent by checking > if its MMIO register "mcmtr" =3D=3D ~0 in all its channels. > > I made a patch below to skip all these absent memory controllers > https://lore.kernel.org/linux-edac/20230706134216.37044-1-qiuxu.zhuo@inte= l.com/T/#u > @Koba Ko, could you please verify the patch from the link above on your w= orkstation? Thanks! Here's dmesg patched(Ref. 1). didn't find the previous message, `EDAC DEBUG: skx_get_dimm_attr: bad ranks =3D 3 (raw=3D0xffffffff)` Ref. 1, https://drive.google.com/drive/folders/1xym9JgZZgaJ3EqtP4ccRcVeQYoJ= KmVlp?usp=3Dsharing > > BTW, > Kai-Heng Feng also found the same issue before: > https://lore.kernel.org/linux-edac/CAAd53p41Ku1m1rapeqb1xtD+kKuk+BaUW=3Dd= umuoF0ZO3GhFjFA@mail.gmail.com/T/#m5de16dce60a8c836ec235868c7c16e3fefad0cc2 > > - Qiuxu