Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1315450iog; Sat, 25 Jun 2022 06:20:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vFFfurn9e7uZnbjkSKZakZacD0qfEwWGSlV6LTvvg56m5U7ye84yn1p8ZNYDjsFObP9X1T X-Received: by 2002:a05:6402:ea7:b0:433:6141:840e with SMTP id h39-20020a0564020ea700b004336141840emr5268668eda.266.1656163206003; Sat, 25 Jun 2022 06:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656163205; cv=none; d=google.com; s=arc-20160816; b=XfJ4f/7AlD8o/rIpoMXuYQ8CkLndB/7RiCJEgUz9qPJ8jU3feASMJXLg7sncOo1PXm LDlmAq3LJPnvh0X/k2zmuKgEpGEyY9XnxviDf1CItRlonyMw556/j366vG4N2tUETDrB aag7JU5gQfXudF4btXV42/wA966YcCVm/TdpZWx6J72e3GSFdX2vzDVTfsFtKiPi+tr+ YyRKi2VDHQZFEBdA1VfpoDcvUQ0IikCZ1HH5j/JCUzEeWEq5BuNiz8ZKAxwH4zpDH4eR eamlqe/bE3Frk5/FTSJ5l7gKCV2VGlPj1alnaYMaHrqfp0zAi0LqenuBfaD1ykNRIAXp +dNw== 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=370Qrppx8dskofbXGy4yS6jqi4CEYDJ1COeJ2ndjgf0=; b=RDd0I7G4+rxzF5XlaM2GhHRckY0d1OrvosHXddVOQ59Xr0kDLYTQ47O2p8NodOASZa dycT53ovhK9XqCJ5+VmLMHg3QEdwjyxGFTZfjG33xZZaTfd3R5ZTfxHa8iLwDUzGWKh0 qKzdXSejPgZqX9XJHISEaAao//EeDODWTuTDR6czMUywpqKSVvYYd98AVBLsmNqksswM SpHLJTeDxx8+2nSDaxRrChqCsWtCLVamBbIe6r30qPR8nYDtvPFgWAnh0Sv4qvObk16U BYzOPBQG14dbqYaIyHeRLrrwEGtM0oIofxvgU2nF+WFtnzGAxMNtSzrnho+V5HQS0paS Eaag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Yra84RmF; 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 t21-20020a05640203d500b0043599261b03si5481122edw.378.2022.06.25.06.19.41; Sat, 25 Jun 2022 06:20:05 -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=Yra84RmF; 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 S233005AbiFYNKN (ORCPT + 99 others); Sat, 25 Jun 2022 09:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231982AbiFYNKM (ORCPT ); Sat, 25 Jun 2022 09:10:12 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D771C5F55; Sat, 25 Jun 2022 06:10:10 -0700 (PDT) Received: from zn.tnic (p200300ea97465768329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9746:5768: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 EEC151EC04DF; Sat, 25 Jun 2022 15:10:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1656162605; 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=370Qrppx8dskofbXGy4yS6jqi4CEYDJ1COeJ2ndjgf0=; b=Yra84RmFjzXKqL6LqAmF4LFDULEf7dL2ikZ4PO/9h9Q2HoVLv8N5EMkC0zWpmBGgQmcb+T RAp4aovPH2cNLOyIHVKPDd/yEu45QzfDc+hAtoJGodnTHfGYECQfBV/MCNk2aBoIUOKMkE B6lzLdv4BrKUPbxcwh83YeTpUzNSr+A= Date: Sat, 25 Jun 2022 15:10:00 +0200 From: Borislav Petkov To: Smita Koralahalli Cc: x86@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Luck , "H . Peter Anvin" , Yazen Ghannam Subject: Re: [PATCH v5] x86/mce: Check for writes ignored in MCA_STATUS register Message-ID: References: <20220610192515.98540-1-Smita.KoralahalliChannabasappa@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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, Jun 24, 2022 at 03:34:42PM -0700, Smita Koralahalli wrote: > The wrmsrl_safe() doesn't throw an error here. > I think we need to read back the written value and check for it whatsoever. > What do you think? Ah, that's the write-ignored thing. Not the #GP-generating thing when McStatusWrEn=0. Sorry, I got confused. Can you pls change that part back to reading the previously written value and send me a tested version? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette