Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp641523rwe; Fri, 26 Aug 2022 11:21:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR7KI1X3R/DhzKq0siPy9nKo7ijjw1nhY5nB4Fnxt1N9WUifobzbamUq6m2TdWG/NHKQrE2A X-Received: by 2002:aa7:cb06:0:b0:446:7668:2969 with SMTP id s6-20020aa7cb06000000b0044676682969mr7657032edt.206.1661538083200; Fri, 26 Aug 2022 11:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661538083; cv=none; d=google.com; s=arc-20160816; b=ViENnGz+jY4xVJj+NlCby2WJTWKD26+9R+d9fDj7o3Y1eFLh68lSph0nYSCOF3I1sF iobClh46T5Un5glGWJ92NtapnzNDfaxTUM52hNwianrCG+64wfN4H6sDUIcMf1vhKayf Ct2SntDRquZuu/5N6XNH6MP81+zvtZoLcoVZSSbwFkTtoZPmu6D+AodjLB9v/nGixyX7 0JpUHUL/+6kXR6bbBH4WSMwdPaac95WU5ccvhc44nO+HZ5SBvCcsmR/cmYhh9ZNge2mF lILbdUkqnVCqRGf71bF1JnbFnA2IBPWSW6N+n8eTYLx0v3BSpSKxx3LpJ2K9gHOpK39R TjYw== 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=iCRg1BZZBWD+TbCyuzPQlX9XHqNXqh9pUPyGuQmJ7bs=; b=UGQtKaL+2Ipp/yNCCaCmL3XFz5vW8txd29lopgiYwNsGwRAvJgFXQS1ygxetPMm13y Ywz5fZeygmDzy4wm6a4REr8EzrPbBoN0frA8A5630hg6aqd2+Y/TCs25uFVuYfdpRX+q lymS4sXV/IGjQjr0fzFfYTKeWbkfgEZrQKIHGfDShhVGgJhm7jMF/LM1iPR3RkX7iws9 0sjSNsUDsJyfJWfbB/6fBXGDcrO65t+HvwNdbkobtj4Mrfkjyu1OWaINBly6dLXHdOLj Y5+WRveMIZzXLERZLmkV2ve0FCHXynBAk52I4Dmekf0i+nTI0dqxZcaT++BaXFjDIXux GcUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=c7+3bNPB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a170906854b00b0073d7d0aaa16si1772353ejy.226.2022.08.26.11.20.57; Fri, 26 Aug 2022 11:21:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=c7+3bNPB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1344790AbiHZSJT (ORCPT + 99 others); Fri, 26 Aug 2022 14:09:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232069AbiHZSJR (ORCPT ); Fri, 26 Aug 2022 14:09:17 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96286B56E0; Fri, 26 Aug 2022 11:09:16 -0700 (PDT) Received: from zn.tnic (p200300ea971b98b8329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:971b:98b8: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 2692D1EC03EA; Fri, 26 Aug 2022 20:09:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1661537351; 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=iCRg1BZZBWD+TbCyuzPQlX9XHqNXqh9pUPyGuQmJ7bs=; b=c7+3bNPB8AcQzOC/SKx4n85TYarfRYJFQTtt3J7mFildxVA2qxwIa/+b6pSaWO7/ZJZ3ta HO1onnhJ2xADFE7ouivOeIxVRLmTE5YPy+ZAHSEFvxQpBDp2bXtJfiNkX/FbUIebi/2IlV NaNV9TNHJf3qgmygBzGERgmO2EQZF+A= Date: Fri, 26 Aug 2022 20:09:06 +0200 From: Borislav Petkov To: Dan Williams Cc: Jane Chu , "tony.luck@intel.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "hch@lst.de" , "nvdimm@lists.linux.dev" Subject: Re: [PATCH v7] x86/mce: retrieve poison range from hardware Message-ID: References: <20220802195053.3882368-1-jane.chu@oracle.com> <630908d7e6937_259e5b29445@dwillia2-xfh.jf.intel.com.notmuch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <630908d7e6937_259e5b29445@dwillia2-xfh.jf.intel.com.notmuch> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Fri, Aug 26, 2022 at 10:54:31AM -0700, Dan Williams wrote: > How about: > > --- > > When memory poison consumption machine checks fire, > mce-notifier-handlers like nfit_handle_mce() record the impacted > physical address range. ... which is reported by the hardware in the MCi_MISC MSR. > The error information includes data about blast > radius, i.e. how many cachelines did the hardware determine are > impacted. Yap, nice. > A recent change, commit 7917f9cdb503 ("acpi/nfit: rely on > mce->misc to determine poison granularity"), updated nfit_handle_mce() > to stop hard coding the blast radius value of 1 cacheline, and instead > rely on the blast radius reported in 'struct mce' which can be up to 4K > (64 cachelines). > > It turns out that apei_mce_report_mem_error() had a similar problem in > that it hard coded a blast radius of 4K rather than checking the blast s/checking/reading/ > radius in the error information. Fix apei_mce_report_mem_error() to s/in/from/ > convey the proper poison granularity. > > --- Yap, that's a lot better. Thanks! -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette