Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3342373iog; Mon, 27 Jun 2022 14:05:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uXA5/a2p+WyzTkmO+SQMxTdi7kr46jl4g9o2odMvpNit0gHQPwWx/uMa9hlKC6HEFmj7AT X-Received: by 2002:a17:906:4b0c:b0:726:41df:5580 with SMTP id y12-20020a1709064b0c00b0072641df5580mr14625684eju.263.1656363941479; Mon, 27 Jun 2022 14:05:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656363941; cv=pass; d=google.com; s=arc-20160816; b=I2/W1Mo+G82GhZAxJ4yjjtiuYyr3Li8DY2D7utSZvFj0pyBWwha5VIZkBdShv3b6OV FJtSWj9eGWyevoRl7L8FMowj28fTrXUJGiCs9kpbj8MCd++s3RG0pKVBgO36JiINsL+P rA7iNoHvhXygzr1blBQleNU4i8YkK0MjLgwCooyBWgHTo/DdyUw0AEj06/QYDjQW2F95 kPHomwuiCOcIY8AkJsO0gSy92n9kefG51rqBexzQdGvM7ErSqjYb1Z28MYDZ1Dzy7hfA MrazKUqpdyrUSGK7ZKb1LJ9XAIven06K9i0vyLUrZaKk+SxIugJmNQfKZ2i/li1Vm3Nc A92w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=1U5mj0HXL0mbmVH436zUNc/RBX8NPbuLeMqbA0nzx40=; b=PMC0WQ6vwmzH45gq3svwoorGVOKGYX9MejYzl6ea0Xyq/KzzeYZ+Yuym+0LOleoLqJ kXYcr7Dge4O0nbT1XFC/B32infISWPQ6gumrqlXKxumvxusb9fyZfii2wuWd2oXl7Au6 3qiJ2XJ5HCYedus2iIaha3uTjIdMO2pumu3FXoyenUf2myzmr1vOWmK2GngZ428SX6oh OPNAxDK6yuAli8q45GfftYMgKSaL0xB1LFNcuD5gXZhTvQZeH7W5EMTxoqW108/FM0hh M+nF/8ldcKXxBlPgiSMy876oHyM4uCwd4eJLfc//k/dG/GMdXXYdobMos0qc4x/pX4i7 xwGA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="zSmIgZ/d"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji2-20020a170907980200b00705852748a0si12236293ejc.8.2022.06.27.14.05.17; Mon, 27 Jun 2022 14:05:41 -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=@amd.com header.s=selector1 header.b="zSmIgZ/d"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229583AbiF0U5u (ORCPT + 99 others); Mon, 27 Jun 2022 16:57:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240021AbiF0U5q (ORCPT ); Mon, 27 Jun 2022 16:57:46 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2088.outbound.protection.outlook.com [40.107.243.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE2E215FFC; Mon, 27 Jun 2022 13:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eHCuxH7HdM0ILM0iujVG5k6iLOYtNqFCTj+c0qS7owu104Ni7PpC1yJgt/6joTAeFoW4czrEGGsgTeMAS7ZC3EqjMXk5YVO8w841ovFbJX/eC/sPIT0dOajA9hp0p2y7rdPGRuLjCPlMzk8V/yXQH6y3t2NJ25R2V4DMJPnAMVcjpmFRD7Watute4GBMioDIo8cLRqXSv5THh2QqPUggeNJzq1JJWUMsNA0JeM2BG2UPteaE5MYzJGLgjADnY5kS580lJ5lZrsEsQHhCdwS+kzALhb5iHDttknKearC4ffiPN/F3eKyXGDe9TNi/lm+e+/RHu2JVWo5Wmf6vJD9vRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1U5mj0HXL0mbmVH436zUNc/RBX8NPbuLeMqbA0nzx40=; b=k0qJvBqdbkeZKFsAY/c8Q2naXSLDHb2ZbNoPnh7JVhPHZbShhHXyyNz3/7J4szYkoDJBFfl889BA8tpneYMOKzokTISbHS8YwoCzJxDKwzVAZYuYXaBRPhtIP1HBknzOsuv3xFYZF+k9CNx/xfHEHSF2NPQ41k0NRBcXgjySrH0wlBmWXoGEd6CCw4hCr9Shs3b9etOqx9f0VMDYkLpKZB18yW2ujfgU6tWDWGJmX3yScM2DE8alj4iVYgpNhnr33B8UtS8JHWVsidy8WK8a9rbvxdYrywtIz/tiOTPM7H0c4+elZsdFXpD7ha03fo+aF6c1XSekx0Cf+Ws4LMwCjg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1U5mj0HXL0mbmVH436zUNc/RBX8NPbuLeMqbA0nzx40=; b=zSmIgZ/dAkpvOl1IY2xInfHohe0Rj23boCKqu8LyITZUaMYcIh7fkIOA86iEwLohVL28YXP/JsRuJaoCVVvwRhsG6m5ajcpaHej3D29JWXtYbBF7OSqWavvg2vXMPILPqH2XkN2GJWWwZGFcbKAefIphPJSBqCh7/m9EVjrR0Zw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BYAPR12MB2869.namprd12.prod.outlook.com (2603:10b6:a03:132::30) by BN6PR1201MB0084.namprd12.prod.outlook.com (2603:10b6:405:57::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.17; Mon, 27 Jun 2022 20:57:43 +0000 Received: from BYAPR12MB2869.namprd12.prod.outlook.com ([fe80::9dbe:b7ea:e0a9:6c08]) by BYAPR12MB2869.namprd12.prod.outlook.com ([fe80::9dbe:b7ea:e0a9:6c08%3]) with mapi id 15.20.5353.021; Mon, 27 Jun 2022 20:57:43 +0000 Message-ID: <02bba339-bf85-f178-c1b6-13d553c4a48c@amd.com> Date: Mon, 27 Jun 2022 13:57:38 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v5] x86/mce: Check for writes ignored in MCA_STATUS register Content-Language: en-US To: Borislav Petkov Cc: x86@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Luck , "H . Peter Anvin" , Yazen Ghannam References: <20220610192515.98540-1-Smita.KoralahalliChannabasappa@amd.com> From: Smita Koralahalli In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MN2PR12CA0019.namprd12.prod.outlook.com (2603:10b6:208:a8::32) To BYAPR12MB2869.namprd12.prod.outlook.com (2603:10b6:a03:132::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e46b2eb1-3953-4606-9f82-08da587fadf5 X-MS-TrafficTypeDiagnostic: BN6PR1201MB0084:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sO4LEcnQ4E4lDyZISBLTIfgIEJrS9sjVZLiIW2FnDDJybT+vZpoML8CLofvip3EKx5KJ89FvdUYXuVwsJW9TW/y+SgV99AfN+4qlGdUQ6YaUQl6Alkj9jg1ENJFOEV0G7zdmgSB8WwYg8ZgRFeHJFbZJnWWjZCJc+I1bcDPZTy1mW8YlfUnkSeUKpmIkZBTm4EkBeWPNCdjNkHPji9Cry0n/RY0NZIVwwHp9efCAMl857iEOyQKSv9vCiSoKu9WEpTK+VkxcjHFPLD1hK3ijgzIUtjkRCs9DkPGFkDt4OEvLCfVjYBJTl/w4dC4l7v64xWeP67SUXoXVOlyAQhbeA91ESnpGfEuCMlTInPG+RfRIAECo0s3CIip9PH0Vn92f+/y9AESF/5NpklPboUwae140JENityWFYqoKYyY2Zio4tfXULptyveYORCrTIv2efPxhwPaoDgSATzRdHBjopU0G26mlScx7mKpc9At0EaU5X1yrMaUJv0+Q8F4lJjfcBqikXQt5/I6MRzH4G2yVzrqLeAkhVoFumkDF3G1uAmM6UjGe/kC5Ik7FBrJBb6g6zlYGDAPf0CqlmB/Qtqa9AFpvNkfVFgeLaf7aGEf2+oNtw4FCYWGMSrxz9irn5rgJhOl5fw4zZetLYkbc02XHQbrRwLFYf+KpTBkw2UxPjyTr+XUstOVLumNhbKgIa0gerlWwUqCyUalZA7UDf+2ETpzc6Q8ul0hB5D3UKhMxhfoeANPchHzvrBBw+qEJQ4haKG6FEaF35JyymmHe7g4o2Yi4LtROEXEs+I3aCM/UhCt/UOTIwmE3PDAZRjb6IpYmem7gU8cRoG6uesPjZAvsVw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR12MB2869.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(376002)(396003)(346002)(366004)(39860400002)(136003)(8676002)(4326008)(66946007)(66476007)(31686004)(186003)(5660300002)(53546011)(66556008)(31696002)(8936002)(38100700002)(316002)(6916009)(26005)(6666004)(36756003)(41300700001)(2616005)(6512007)(4744005)(6486002)(6506007)(54906003)(2906002)(478600001)(86362001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SW1LZlJBMG5sckRLemMxVFpCNGwzd0REUlM4VzRKVHJxRVFqSDJUR2dBQ0JT?= =?utf-8?B?TXAvbVNkTU1IZXNLM0diaGNzK0MyaG00N005bTJUb2pMQW1QY0cvUXVZUElx?= =?utf-8?B?cDIyUGJMZHBPY3dNS1V6MVZJZTlVeTZsT2NyR0YyK2VtUkJtOTZyOVFxZlVW?= =?utf-8?B?aXdLd2hZNmswUzFDWm1XYTlXbEE5blV5UHJGNTFRLytnVHFmNlhkMG50MjJr?= =?utf-8?B?aXp3Z2lFakgzak0ySEV1T1pTZXpuWTdWL3h6Z0xmYk15bzVKZ1NOYjU1Q2xk?= =?utf-8?B?VUg4QlplcG4zVStEeFY1TEJtaGxWZ1lCK3JpYnRrZGZvdWFENU1MN1VMbUVD?= =?utf-8?B?S2RaQldKeXo2bkpaTVhtOTRDaDFGUTFIcFZYblJxeUF0VS9ucE9sUllUSWZp?= =?utf-8?B?UEZiMnM5emRtd1Z5OEVlWkRlZXFyWmpna0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WWpYbWUyWE9GKzg1eFJvTlUxR3NKRThBYnBl?= =?utf-8?B?TjhrQTErN2k0OHFYdWlMTG93T2daWHMxc3hGTE5JQXQ5cDVwN2dhRVMrYTFh?= =?utf-8?B?Tnc3aE9HTDFMWUVSWUpoSGpXODJ0OW81YlNyd1lrS25GK1hPYUFOaHlaTTRL?= =?utf-8?B?cnFYRGtMakR6dVF6ZFpHakIwRDRLZGF4UzIwRE83bnBGaGhndGdWUDJ0YWhn?= =?utf-8?B?aTJYTzhlckVaR1dWZGIxemppSWR6UStKMTNCMmhJQ3gwdUlSTUhIOWk3bkc4?= =?utf-8?B?R3NrWGNGTk02bGFVV0ZVS201VmM1d3lEbG1UR0NneXlNR2dIQ0h4cUFTQzJn?= =?utf-8?B?Vmdud1JudFUwQkVVclJJVWk2ZExpMkFZMmpuMnlUMzNHTEcydmhaRHdsQ1Va?= =?utf-8?B?RGNxNFIveGRuL0xQdm1kZjMrZm5ucktJWDhvWDJiMGdKMTRXMlBlWVFsS0Rx?= =?utf-8?B?aUZRdi9JREdxazlVMUlNR3gwWXA4cjBxejVmWHhkWmJCdUQ0RXEwbXZnbjN3?= =?utf-8?B?WHMzbzlpN3RkRHFZTWRLakNacCtZYWV3cGZkc1hEQXhkdDBUUjVza2wxVkVE?= =?utf-8?B?SzZKdVhPaTgxcDZSVU9GYkFmKzFweG5LcEF2UE9ZV3VRZG1HZUQ3SFVWZEE2?= =?utf-8?B?dE1iMDVoeWl6UFhZSUsyeXNTVGx5WVdtblNaLzh2ZXRUbmtkNklUSnU3VHdV?= =?utf-8?B?TkcxcmJ6ZUtUK1BuKzVhWWRERUluMEtXdGtxRnBoWTBUV1pOKzk4UFdWT0tn?= =?utf-8?Q?It87s8NlTUXDXlrbUOKZ7TA0h?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e46b2eb1-3953-4606-9f82-08da587fadf5 X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB2869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2022 20:57:43.1180 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UjPhNY4U44+NUmYHWvo0XSERpuBgOcRdotfnNF3N8pP/hMOjarEKONvGO2NBJJCDtKyT5CN0ypEGkz8NQwDx/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0084 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 6/25/2022 6:10 AM, Borislav Petkov wrote: > 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. Thanks, I have sent them. >