Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp365249iob; Wed, 18 May 2022 04:03:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwT/9ip5tC6o8Y0G8KA06lTy3sjgtqONQRClfwOu9qhJx52hy9jlAZzaZu92CG7eYMxXrxq X-Received: by 2002:a05:6a00:23ca:b0:50e:827:9253 with SMTP id g10-20020a056a0023ca00b0050e08279253mr27198404pfc.20.1652871793552; Wed, 18 May 2022 04:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652871793; cv=none; d=google.com; s=arc-20160816; b=n8vROVq71CxqS4d9GnP9woxMhFcEonilV3gbJMcNHyNX2Fp3mWn/L6f4QS5OzAS+NV X9W54n1Pu2sbr0kmicy4G3EC9CuQgFu3dHeSNxoBaFLqP2KszSJCQWA0LCpP+Elv4rk/ MScxpn6tz9NCIvYjWyHt7eFYuu9UaqNvjk+9eMdCYo4mZKetfMlhWUVShkD+PmBI31z9 fDl0cm76Lyon5QLqLWcH0GmToP3MNxclSDhtbk2MCEjYg/zWwTK2sAcqN1H3c/UDa7Zi B2YkTVEoTm1VURoevolZLuSjcfuajSWyH1+gU92fH7W6OQfug8IpeQQVouIqHmrih4Nr eK8Q== 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=3KZplAhi7nPL7UxT3WtozJ9AVTOwoLDcqlHiNy8Et8I=; b=IHWh9XM0VWPO5zqK0jgnfkJh6dxgaZ5C7U/afiv/338vDqhK2w6btsuakknb0+0UJd 8aYoE8KIlITE/fj2XnU6LkHwSKoq4ZmCI3Un5cmJxYzWx/Yh7OtvUzBotWG1jCPvrcfH aBeRaaOTa36gN2OGZfdvawYHTToxknCGutGb7beevIfECeTTlaUufhyKYPxb1UPG0Qz6 r/MCctUMnZ38vOHj3BkHcpE3d6POuch/0+FbzOKQIQ5wf240UxPN97sl+XN7Yz2ZiRxP 12VQa7K+RqjyEPL8F6Xz0/x8o25nz1TmA2Za/1mOCIqHhayzU9vFjVqpO4eFFRyiPhoB C2Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=SLGBz714; 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 w16-20020a170902e89000b00153b2d164f4si2788363plg.252.2022.05.18.04.03.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 04:03:13 -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=SLGBz714; 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 6889B16ABD4; Wed, 18 May 2022 04:02:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235297AbiERLCb (ORCPT + 99 others); Wed, 18 May 2022 07:02:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235271AbiERLC2 (ORCPT ); Wed, 18 May 2022 07:02:28 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DED91668A5; Wed, 18 May 2022 04:02:24 -0700 (PDT) Received: from zn.tnic (p200300ea974657d0329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9746:57d0: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 6EC811EC0622; Wed, 18 May 2022 13:02:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1652871738; 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=3KZplAhi7nPL7UxT3WtozJ9AVTOwoLDcqlHiNy8Et8I=; b=SLGBz714A+zFjmiQKQHnOoWGuLqxTYj4vzgEuNsPIxgJ3GEzpCl0Ib8BLUWgf5R1Zgtn24 iOj7CFzKLvh4o2ZF/rVSIeQqIQBNCYqJGo0oeEIITIpO6GG+Dq7grQMi6omW4rRMwqpVHE XQMqfmHZ8osvN5vDJ//8WIN980urIqg= Date: Wed, 18 May 2022 13:02:13 +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 10/18] EDAC/amd64: Add read_mc_regs() into pvt->ops Message-ID: References: <20220509145534.44912-1-yazen.ghannam@amd.com> <20220509145534.44912-11-yazen.ghannam@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220509145534.44912-11-yazen.ghannam@amd.com> 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 Mon, May 09, 2022 at 02:55:26PM +0000, Yazen Ghannam wrote: > @@ -3766,6 +3751,7 @@ static struct low_ops umc_ops = { > .read_base_mask = umc_read_base_mask, > .determine_memory_type = umc_determine_memory_type, > .determine_ecc_sym_sz = umc_determine_ecc_sym_sz, > + .read_mc_regs = umc_read_mc_regs, > }; > > /* Use Family 16h versions for defaults and adjust as needed below. */ > @@ -3777,6 +3763,7 @@ static struct low_ops dct_ops = { > .read_base_mask = dct_read_base_mask, > .determine_memory_type = dct_determine_memory_type, > .determine_ecc_sym_sz = dct_determine_ecc_sym_sz, > + .read_mc_regs = dct_read_mc_regs, Aha, good, here you do that split I mentioned earlier. > static int per_family_init(struct amd64_pvt *pvt) > @@ -3938,7 +3925,15 @@ static int hw_info_get(struct amd64_pvt *pvt) > if (ret) > return ret; > > - read_mc_regs(pvt); > + pvt->ops->read_mc_regs(pvt); > + > + pvt->ops->prep_chip_selects(pvt); > + > + pvt->ops->read_base_mask(pvt); > + > + pvt->ops->determine_memory_type(pvt); > + > + pvt->ops->determine_ecc_sym_sz(pvt); > Yeah, no need for the spaces. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette