Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp780383pxp; Fri, 11 Mar 2022 14:58:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxphEhioPKEQy3HPwT56MURFAA34OTuUAYEf3INF3I/q/IIVsCxG5rUlrv7RgF5gXebwRlU X-Received: by 2002:a05:6a00:ad0:b0:4f7:a357:6899 with SMTP id c16-20020a056a000ad000b004f7a3576899mr1146778pfl.80.1647039530613; Fri, 11 Mar 2022 14:58:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647039530; cv=none; d=google.com; s=arc-20160816; b=gLW6ThCj8IiN0Q43a7gMn8lL7/xaQO+SV64aQCC5iJ4nC2WCL3K1KQAnrLYMPMtpVL gaqc0OCTXOr1CLBjKqONYWpsS83Td2/CJekjIf51dqvaKjoYL+wwewn61WmooAnzWf5C 9CfJzb9tZ2fS9ObE7ziFXyiGrD0EJnxghpZe6mtjwWRAAIdlD9ru+f1Fh62ScACZeUQA FTqRQZo2vKxKcpcWD7SKjWhW8a+vRmJCt7mezSV4Qy9hfa3AYgPGthaG/rdzSrMO+BEK Riq9k/WCUwT3IaN2fWA3E1MPdQDnghrFGfucVHW6CKytCyHj0NUHEwijkAXbrCUPccgR 6rOw== 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=4jApLr5h3MOaJR8HuPKksowRenJ+ECkFPNCumJIL5gg=; b=l9/SGlK+e5GuReLJ2bFi0g2JP70mfvFB0Bu8CsgqniFmz1CVcel1fIQGbjFCSHl8ZU 4hu8ZMM8y/URhGl+535cSVZq5yB4fXYYmPPw9xPkHowIkR83+nNLr53Sb0NOzsQKFUZJ P8nowo++ZtlFjBx4d2rciJrJ/lG1ozH6Jc3MzvFVbISSkPRMgkaGk47eqwe09+ulNpO5 wO7qT6mv/dgMS5NDloWWE82HaJS3wC2Iwi1Xjv1fS7i90a82jAjcS1U9RqhyBCbHqw1m jsWYF4K8R+B3HdXySZTbc1HCWUqeSg6KNMk543myeCPxNsjMvMkBiR3ffhEm/Gq+Bad6 FoXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=fPcC7LKb; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id m1-20020a656a01000000b0034c007d9a43si12391463pgu.400.2022.03.11.14.58.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:58:50 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=fPcC7LKb; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 AFA6D291B8F; Fri, 11 Mar 2022 13:55:56 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344313AbiCJWOu (ORCPT + 99 others); Thu, 10 Mar 2022 17:14:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240292AbiCJWOt (ORCPT ); Thu, 10 Mar 2022 17:14:49 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4747262127; Thu, 10 Mar 2022 14:13:43 -0800 (PST) Received: from zn.tnic (p200300ea97193878e79a34f2fb5add4f.dip0.t-ipconnect.de [IPv6:2003:ea:9719:3878:e79a:34f2:fb5a:dd4f]) (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 75D331EC0432; Thu, 10 Mar 2022 23:13:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1646950417; 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=4jApLr5h3MOaJR8HuPKksowRenJ+ECkFPNCumJIL5gg=; b=fPcC7LKb6FEKoOPPuIoeYnIjVFnCCwhS1hvVH+uji3gXrXfxOxhPleLn+o/VOXs5Nsgqno gFGwF1XE2u0OTG/Mi1kZS6wD8sGPPtdKB5i5QptvgPfh/eQiEc9CfyzjtA31zZUgWgYQNy Qz/ZbBd0RgnhZlFYuWT65edUYAEjJYs= Date: Thu, 10 Mar 2022 23:13:37 +0100 From: Borislav Petkov To: Carlos Bilbao Cc: tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, yazen.ghannam@amd.com, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, bilbao@vt.edu Subject: Re: [PATCH] x86/mce: Cover grading of AMD machine error checks Message-ID: References: <20220309174107.6113-1-carlos.bilbao@amd.com> <4a345de2-6a2c-fe26-c55c-34ce6ea431d4@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4a345de2-6a2c-fe26-c55c-34ce6ea431d4@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 Thu, Mar 10, 2022 at 12:24:08PM -0600, Carlos Bilbao wrote: > We will cover grading of MCEs like deferred memory scrub errors, attempts > to access poisonous data, etc. I could list all new covered cases in the > commit message if you think that'd be positive. So no actual use case - you want to grade error severity for all types of MCEs. > Hope that helps clarify, Yes, it does a bit. It sounds to me like you want to do at least two patches: 1. Extend the severity grading function with the new types of errors 2. Add string descriptions of the error types mce_severity_amd() looks at, so that mce_panic() issues them. I.e., you want to decode the fatal MCEs which panic the machine. In general, what would help is if you think about what you're trying to achieve and write it down first. How to achieve that we can figure out later. What happens now is you send me a patch and I'm trying to decipher from the code why you're doing what you're doing. Which is kinda backwards if you think about it... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette