Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp778818pxb; Wed, 8 Sep 2021 12:07:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0mp2YF9+XAGHzMnSupnE/qTUBk8cIqKHP8ZEMumjqakdqIwQ7wlQBmZDlaVS/wwNSvkpj X-Received: by 2002:a17:907:1b06:: with SMTP id mp6mr1448321ejc.188.1631128062025; Wed, 08 Sep 2021 12:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631128062; cv=none; d=google.com; s=arc-20160816; b=W30qO3h44/RN0J9N5HykvjuAtVe/jZCn0CkQV7bDYEJ1E6vex/Z6joSZrjSjBFfOJh TWJns/It4FPjkXnnpTDr4GoFoQQ+DLoByUtoqTi75lANy82C2C1rmgpm0ZRkBSOhBTPR Ew4EzdUYwO8uaFuSj+QkPBhEPHcL4JIGjOHljFMlF5I6FPdXYLkgrAzhoYwYtJCnwUum ooAk3tjKU15RumnFrV45A52V3ythHR30x+ErDfZ8yvwvvi5YVUoR8iQ+9Hm0P7eCoFva 4SexMtJWyylM10S2ByTG7IyIoNeDhckCa55u22w2UeVJPV1HUXV2c1yS6s3IcwpL7Ik5 aXMw== 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:dkim-signature; bh=64mwiSa3Im6pBZVjlFClUkt/HUK4jUzSI5qR9jC8njI=; b=tJ/QCImOFuT22I3zUhzpc+zYiSbRVPLlp5AkjEvwxUf1nKUQ91Z08vJx9EUV78au/E FQeFoHwaV4Vorii/SXCo425n/luauGlO+pVT8mfr1jKyZtXxkrUbNGGM4mrs72cNLTeG aiEdnuNgS4OuggjcSClMJZLKEv0XeCaKPOE0ScibkKJNYVBo4R4ob1ooqqPajvABO4Hs wHy2QhmSSZAmZ5gMXEFA9IbbERODr6ODXoxbX103ezrQ02jzN8gRU7O8BsO3n27S1G6g zyw92z5xRmZWnX3MDOOsFHa8lqScOPCsWpRNoABogPq1LqB3HTqFsIrJeUmLbc3GJhT6 2NCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="Zw/Gh9j4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a16si3818050ejk.287.2021.09.08.12.07.10; Wed, 08 Sep 2021 12:07:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="Zw/Gh9j4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347939AbhIHSnI (ORCPT + 99 others); Wed, 8 Sep 2021 14:43:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235775AbhIHSnI (ORCPT ); Wed, 8 Sep 2021 14:43:08 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4825C061575; Wed, 8 Sep 2021 11:41:59 -0700 (PDT) Received: from zn.tnic (p200300ec2f0efc00b7f29acf52797616.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:fc00:b7f2:9acf:5279:7616]) (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 2CA691EC04E0; Wed, 8 Sep 2021 20:41:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1631126514; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=64mwiSa3Im6pBZVjlFClUkt/HUK4jUzSI5qR9jC8njI=; b=Zw/Gh9j4SodIEppnc9OJzKReT966ru5la4OsRZAvOgWj2XhJ0I7tE+FTPHPSoYFwgkpjqG 09WCQ7joRx3Cfbg/G6lSMmEHHCTBssLTPPNEUs+iGffumQhkM9/45hDv1AzV58lQ1snchS RitveNpqOwlNPyhMFdkFXhWQvO9Tw30= Date: Wed, 8 Sep 2021 20:41:46 +0200 From: Borislav Petkov To: Yazen Ghannam Cc: Naveen Krishna Chatradhi , linux-edac@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, mchehab@kernel.org, Muralidhara M K Subject: Re: [PATCH v3 3/3] EDAC/amd64: Enumerate memory on noncpu nodes Message-ID: References: <20210806074350.114614-4-nchatrad@amd.com> <20210823185437.94417-1-nchatrad@amd.com> <20210823185437.94417-4-nchatrad@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 01, 2021 at 06:42:26PM +0000, Yazen Ghannam wrote: > err.channel still needs to be used in error_address_to_page_and_offset() > below. I think you mean __log_ecc_error(). > This is a good idea. But we have a global *fam_type, so this should be moved > into struct amd64_pvt, if possible. Then each node can have its own fam_type. per_family_init() does assign stuff to pvt members so yes, we're saying the same thing, practically. > Fair point. I like the idea of having unique names though. Is this possible > with the current EDAC framework? Or is it not worth it? We don't have unique names for the CPU nodes: [ 25.637486] EDAC MC0: Giving out device to module amd64_edac controller F17h_M30h: DEV 0000:00:18.3 (INTERRUPT) [ 25.799554] EDAC MC1: Giving out device to module amd64_edac controller F17h_M30h: DEV 0000:00:19.3 (INTERRUPT) why does it matter to have unique names for the accelerators? If you wanna differentiate them, you can dump the PCI devs like above. Just to make it clear - I'm not against it per-se - I'd just need a stronger justification for doing this than just "I like the idea". -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette