Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1042835iob; Fri, 13 May 2022 20:48:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8d056uX2yhcTTjO/MtRt0xnwQ+IFrPAkESZtHDXl/32zbZw89fmVz5Q+4xsf5Au6XNJNz X-Received: by 2002:a5d:4344:0:b0:20c:cad4:9e9b with SMTP id u4-20020a5d4344000000b0020ccad49e9bmr6075381wrr.187.1652500122505; Fri, 13 May 2022 20:48:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652500122; cv=none; d=google.com; s=arc-20160816; b=pAoypyQ3jnogJZg+zNJixPQQgPzq61286YiAG+Etmo/7OVd3WO7mO8I4H4WzKcH6Qn I5WXGlV/THTSf28ECNUk+H1XZpRVVjYQJa2d41DOE54D/HSr3nRZFTOfNf2LclOHfamT ScM1MeufH299y5wDVAQIPPY7L9MMuRrA2aIpK+soawgA33KnseU9ggXK9f9co5/ngtcE 6P8DTjuwXuBERw/wQCZCrxsEf2JDA145oPvfTEDINKtf2QofgV67OlG6N2dc00yUP0Nx T7s5hyZzYLxigKOnwUKTA0jXwIDtWDdwkelr+rlIfLr2SqDeCpBbajm2mwmCN1XQTlzm dG0Q== 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=qZU+VowKBrdGf3U5Q1GiT7jwO9RXiaZ1Fk4oM0FeUKk=; b=GMP2ak8YLc9Rp0riydVRZSSnmNB+BmGzcnrNTrsFeFBweb3Jkzv1Ix/lNZw/FeTgLj 5h4HyA+dlq7EDl7VuUughJfV05ZSOJAtuT6meXXDs+xHOhRPm7cdjHzDjbTXDoE1++vU WIw2Jz7GkT31hKQGtgyOfuOYJ/OswBzSKTOvmgcox15jLiqTm+W7wfnJ29hUMjDAsYYQ jcZcvaf83eCzx1QwMgqfJ3C4jw8Oi0N1T//ySecG4cHtYxSMO0tPgJKfpG61SqKN9vWE rcXMSlwwElumvjAiFmtX67eoiRmV6wyhhLSK91cT4569/rWf6Vh1twUvSm/omOmNd2jK W4Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=WlWppcm8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w1-20020adfde81000000b0020c60f907d5si3518886wrl.279.2022.05.13.20.48.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:48:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=WlWppcm8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DDBAD47116A; Fri, 13 May 2022 17:22:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379233AbiEMJ4Q (ORCPT + 99 others); Fri, 13 May 2022 05:56:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355353AbiEMJ4O (ORCPT ); Fri, 13 May 2022 05:56:14 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49D5C1402C; Fri, 13 May 2022 02:56:12 -0700 (PDT) Received: from zn.tnic (p5de8eeb4.dip0.t-ipconnect.de [93.232.238.180]) (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 C6FDC1EC069A; Fri, 13 May 2022 11:56:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1652435766; 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=qZU+VowKBrdGf3U5Q1GiT7jwO9RXiaZ1Fk4oM0FeUKk=; b=WlWppcm86nod9C3ir0FTP3z78QRW/KpU7UHINYTa+cp6idwyvSqu4+vvcCY1i6q3etuV/8 zVAS2BbTXLELLnPrtM5wXQ5+CSYrfiAXG3e0wck2uSb9gCg88OyZhHdX0ItNXV3eGk3n3D QkY9X5XWzlKLKtDDjAAWN/1aM6ZPD80= Date: Fri, 13 May 2022 11:56:08 +0200 From: Borislav Petkov To: Yazen Ghannam Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Smita.KoralahalliChannabasappa@amd.com, muralidhara.mk@amd.com, naveenkrishna.chatradhi@amd.com Subject: Re: [PATCH 04/18] EDAC/amd64: Remove PCI Function 0 Message-ID: References: <20220509145534.44912-1-yazen.ghannam@amd.com> <20220509145534.44912-5-yazen.ghannam@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, May 12, 2022 at 02:34:29PM +0000, Yazen Ghannam wrote: > Also, there are five function pointers that are created in this patchset and > called from hw_info_get(). I think those pointers can be dropped and the > helper functions called from hw_info_get(). So I think it'd be good to make > hw_info_get() into a function pointer which gets set to a functoin that calls > the right collection of legacy, modern, and GPU helper functions. How does > that sound? Makes sense. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette