Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3899361rwa; Tue, 23 Aug 2022 12:07:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR5T74XuAlJtSAcRnYihv4IdI3TkNqgZodm2KhkOYPdaOT1fp9EF3m48DuKpRGnONn3pl+/0 X-Received: by 2002:a65:6892:0:b0:41d:54a2:b0b0 with SMTP id e18-20020a656892000000b0041d54a2b0b0mr21129619pgt.560.1661281667687; Tue, 23 Aug 2022 12:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661281667; cv=none; d=google.com; s=arc-20160816; b=F4mkjAuNXu2S06W8f0XvcOp+ep6MFCDw/v+fBpOSL3n9aIrQNt/grX0JIV9urkb/SZ ukfFV3hIYZpqTZYijR6WJTWO6bnQZzAfvGGowyR1Muc+rA3/5l3p1rldcOZ29mTmtxMF +h1NlpMvKMCUgEMVS/6PKTxvWNGiarOravuWBYj77PTe0gCsFYc4NKU1PVWBzPLbYOKf GtVc4zyZREd3vE6fdE4vNc0hz+WNq7ZxYLMfOTVE6EZ6RPFW9kBE2qE+9iKBBx9q4+2T A2WKLg+VU3KFTrkSL2VbfjgbAaex1tRrnQtu7jArJ/bHwqQwX/2yKDxe6xH6PJvci1MK F2Wg== 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=fpyb/dqy0w041C4ZduhB6mdSn53C2ehshw7ffrOO2as=; b=p5wKOaU2W8HJt79CPz+pEmmHhPc9ApNCO7OsdUnkQHiy9blUXUt1ofWr+0o3XBOSB8 L1FCoRRE2tcW3tUXEiGzUcWHi28FOn9+rZPG5kusUVPAxbQoVnjTVvjGUpzyt6bJg9b1 sztNeRlfej1f6hZMH4w44Kv0E+LsjNjYEoMlygP+Qtle3Q09uaaRyIOcQ5ikulgvGhh4 f8Ewn2q0k/AnQJr29gZgD4M6CvtTkQPBMQDB9W4fK8koJODp9RESaVi66b+6TJSDUH2G Lg1VW1xn/88Ehhn9PsBc2VQ/G53B2AWazuGGa4+w5pw/i+mbQOkzrxHiDSWyy3D7Q6Sd A26Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=NkIR6KJR; 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 z4-20020aa79904000000b00536ee0f5ab4si2923860pff.73.2022.08.23.12.07.36; Tue, 23 Aug 2022 12:07:47 -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=NkIR6KJR; 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 S230378AbiHWScM (ORCPT + 99 others); Tue, 23 Aug 2022 14:32:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231754AbiHWSbv (ORCPT ); Tue, 23 Aug 2022 14:31:51 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A778107DA8; Tue, 23 Aug 2022 09:51:44 -0700 (PDT) Received: from zn.tnic (p200300ea971b9893329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:971b:9893: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 DC0D91EC0681; Tue, 23 Aug 2022 18:51:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1661273498; 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=fpyb/dqy0w041C4ZduhB6mdSn53C2ehshw7ffrOO2as=; b=NkIR6KJRRcOke3KLUC2xQQwZ0MBSIYaHCfJb/hh7Ny2zFmCOzl3kVEY7VwECIcM7F6w9CB XKGpoFkhG0J6xlPhn6gylCWmVMeP3zVs3wloB9yW0fQKTIfrnnPqxvEJDVtugqXiap7eun Y7XRHyiTJ2wsDcxsG8dSG/L6jK1y2Xk= Date: Tue, 23 Aug 2022 18:51:34 +0200 From: Borislav Petkov To: Jane Chu Cc: tony.luck@intel.com, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, linux-edac@vger.kernel.org, dan.j.williams@intel.com, 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220802195053.3882368-1-jane.chu@oracle.com> 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 Tue, Aug 02, 2022 at 01:50:53PM -0600, Jane Chu wrote: > With Commit 7917f9cdb503 ("acpi/nfit: rely on mce->misc to determine > poison granularity") that changed nfit_handle_mce() callback to report > badrange according to 1ULL << MCI_MISC_ADDR_LSB(mce->misc), it's been > discovered that the mce->misc LSB field is 0x1000 bytes, hence injecting > 2 back-to-back poisons and the driver ends up logging 8 badblocks, > because 0x1000 bytes is 8 512-byte. What I'm missing from this text here is, what *is* the mce->misc LSB field in human speak? What does that field denote? What effect does that field have on error injection? And so on. > Dan Williams noticed that apei_mce_report_mem_error() hardcode > the LSB field to PAGE_SHIFT instead of consulting the input > struct cper_sec_mem_err record. So change to rely on hardware whenever > support is available. Rely on hardware? You're changing this to rely on what the firmware reports. That mem_err thing comes from a BIOS table AFAICT. ... Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette