Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3775272pxj; Tue, 15 Jun 2021 08:22:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHbtdtTt4ikEOxiIzeWNsiAIkoNKI/RblApBAuEko9QZjGGSiXJGXXEqw3BjFRUghkgmN3 X-Received: by 2002:a17:907:2d0b:: with SMTP id gs11mr40372ejc.117.1623770565235; Tue, 15 Jun 2021 08:22:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623770565; cv=none; d=google.com; s=arc-20160816; b=jpdporWcQm+W9KufYvo7nWf/1VvgCdaXz3E44s7LsXPWfXqvZiPo96nkg5soj6tuhM 4unVkYpLUHTZ3jR8yu+RrqmP3Gbt8qkp0zCDGOMK66t8WNlTrNLax4F/6rt5vqsCW+NZ of2ttj9mN9wdzxLDTMXkhPORkLmjdEdj2Jd8T8YLXE+GUuBuJ1MFVsEjKpCP1tTS0Vwo vGdCgwcHkUizSjlZWcBC1M9nPrEZyjQWKMiaoFUR4uBa1yVV9tPobBrgVta/3dj/DXiU NAoM/ZfnZPRSeiQkc8AUg5IlWOrZabcV5M6CZUJxc2Nks6tIOvgVTHP9ew/AxiTU410n vvRQ== 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=vuI1AvOE74lmRhMGsswqDGbG80VLscdMnetSm7TxXIc=; b=twmb9W8+Xgn4OkW9RK6thjdi2OTKv1H61Yc5kqmr87cOitMpHwb4fGEeBktAB2cbWs VJeyDIWXV8ZL8WXoyChpQVM14svAIasyv4n34CWCZYG/dJEm0KkiAypolaDX1fS7d8Mi tZIAB5dJsYVdkLhgIEhUnnqbNJqd8RZsNlkL1Ly1aexalufA8J3Gl0+l6uBc+H7F6VsN 8uclXN7iiYZRtUJ7Ji2oc1DPPelRpiGK56CYJ07Qmsa6k0BdEOcV0rzBqboHfhls/aDt pw7ihLb0O9HWJ59a6jwHFiOUfyCGymBjZtsHVHi6p9BN0qrqnrMcTkpw2/hFIziOKJYh D2UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="A9G/igUv"; 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 t15si13453442edd.446.2021.06.15.08.22.01; Tue, 15 Jun 2021 08:22:45 -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="A9G/igUv"; 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 S231181AbhFOPVH (ORCPT + 99 others); Tue, 15 Jun 2021 11:21:07 -0400 Received: from mail.skyhub.de ([5.9.137.197]:36798 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230452AbhFOPVG (ORCPT ); Tue, 15 Jun 2021 11:21:06 -0400 Received: from zn.tnic (p200300ec2f0f27007132ab63e0ed4371.dip0.t-ipconnect.de [IPv6:2003:ec:2f0f:2700:7132:ab63:e0ed:4371]) (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 5F1811EC04CC; Tue, 15 Jun 2021 17:19:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1623770340; 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=vuI1AvOE74lmRhMGsswqDGbG80VLscdMnetSm7TxXIc=; b=A9G/igUvX9ZJKQIFp8bIeK5wtgSLxAIsgSUAWVvhnvBMAqBVrHyYNs6bOE89p7YO0mdpkO xJeVyvlGyNMeeU2kkGStxNDufRo7GsKKZyXoG5AjC88xSq70E5c5cei8SFQdx3C4bA+mg9 roq4jyisXXnTaGq4s5TR6H5HBm1gYs0= Date: Tue, 15 Jun 2021 17:18:50 +0200 From: Borislav Petkov To: Yazen Ghannam Cc: "Luck, Tony" , Smita Koralahalli , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-edac@vger.kernel.org" , Mauro Carvalho Chehab , James Morse , Robert Richter Subject: Re: [PATCH] EDAC/mce_amd: Reduce unnecessary spew in dmesg if SMCA feature bit is not exposed Message-ID: References: <20210614212129.227698-1-Smita.KoralahalliChannabasappa@amd.com> <16a34b6834f94f139444c2ff172645e9@intel.com> <20210615150846.GA409@aus-x-yghannam.amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210615150846.GA409@aus-x-yghannam.amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 15, 2021 at 11:08:46AM -0400, Yazen Ghannam wrote: > How about adding the the SMCA feature to the amd64_cpuids[] table in > amd64_edac.c? > > We can use X86_MATCH_VENDOR_FEATURE to match on AMD (and Hygon) systems > with SMCA. And we can remove the X86_MATCH_VENDOR_FAM entries for > families 17h-19h. Sure. That'll alleviate the need to add new families which support SMCA too. > I'm assuming the issue is that amd64_edac_mod is autoloading due to the > family-based device table, and this will load edac_mce_amd as a > dependency. Is it? We have early_initcall(mce_amd_init); in mce_amd.c which attempts to load this thing unconditionally. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette