Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5507302pxb; Mon, 28 Mar 2022 13:27:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztHP1xCd4eG3GpnvID4w3Pb13ndQUZ8/5LIR36t5dveFFNE+q2oBLEqx4d74M1ibHHVfbz X-Received: by 2002:a63:af02:0:b0:375:57f0:8af1 with SMTP id w2-20020a63af02000000b0037557f08af1mr11460471pge.188.1648499276069; Mon, 28 Mar 2022 13:27:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1648499276; cv=pass; d=google.com; s=arc-20160816; b=CquKsCrhQDS71byMRwq3L8XB5SVxdcrhcmm6rbnuD4dxGZtWgNzNzYWJ3k5oNSbU/W rlEzfV/J220ByAvz4+RSEai+YIJI5F2czsXhKMTcbcffmCudDNnry4xplKswgd1/Dl4j jYghOzrVZFZG8koo7h7bf32x2cI+d0dcU8TilD5bdkwXVS7kJDSF/nmBDJRk4afRzy6P rCjoZ50lWqGYc+n0+jdafXSWZIYq9rDCMqsSk0JUqcY9xT+O0/ampBiUgTZUyqIEIMmw Pd8xxA8T6YdX3eeC532qQ9Fc+DRQx6L2trfFK2tFTlKr0LunirL4M+CrEm5pO9mBHJd8 K9GA== 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=xLmS5dy+0H1+X6RIilooNHV9HFuH4rTt1EZ715VC4+s=; b=vCSls2jZafyMNhQwkyD595flWnrcBqsnIHyFzLDcD3T3mP1mcVFwxTG5irR9PBXG5H 81Nc78vQtCluHEHhJK0DHi1ztlrw7aWf5/8jh+LAvom/pw5+GoZAi5YHouSaFBv0TGIW YuxjjX3C92/qDB4gL6SiNdAudEBYAQAFs1kl641x+WAVIIvO2ULiGoHS6oSxlhvGi8xa NklqP+bK19xwpMBH9LkdYC+TFncv9pIocmOvPYyMVpFt+/t5GW4EDC2OQD0VDidh9FKE hPVk9lCTbpcnEBS8PA9DLvp5lSu8rok+NG5SGgFyZAs2YkmouZ4kFJFa+JjYLsLLsg4L ZpcA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=oBWz+ZAg; 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 z17-20020a634c11000000b003816043f107si14459491pga.764.2022.03.28.13.27.41; Mon, 28 Mar 2022 13:27:56 -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=oBWz+ZAg; 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 S243541AbiC1N6x (ORCPT + 99 others); Mon, 28 Mar 2022 09:58:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240793AbiC1N6w (ORCPT ); Mon, 28 Mar 2022 09:58:52 -0400 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2043.outbound.protection.outlook.com [40.107.212.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17FD55D678; Mon, 28 Mar 2022 06:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IkUfBiXs8TMoreEb2usYhdeGAEAyXw/EvMse+Q3+bk8ckBsfBdl9hsgUZEJzJZ8zOBACd2BYntH2L9ueTDLTKjl7vHm6HmP6kfrDKBTaK4mbAo/ESdbFhCNb1IPJ0mjtTAOzPl8yrSf3+AJRlp/21styD5+baQNxJfobD+TJNgBBdcqkTEBnuZ/Syv8uU1nTfQJH28qbsMI9NdrM1qU3K84Av+bWo6paK1kDK2+FQVVNZBTcu9gej5i8i9OzmvJxMTjiVFZ0RQtuA401lqkSv/40DAtNv0inNvQtABurNmn0xHENKF4tqvqbvQnYSfSzR4g+hjnGRXY4fSTchoTe1w== 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=xLmS5dy+0H1+X6RIilooNHV9HFuH4rTt1EZ715VC4+s=; b=aYAZ9Weh9yM0AOYhqrinQrIf/KcHvHiAIw7tVloLb4bKyTtYCtP647QIS05H58PQeQYN582kXC084BTkMFheJSuLMAoQG5EIRxkUstdFYg59wMZef1aUsXnVGi6naZ3ABFCOW/tuWP2+UuLY+N8nN4xU5mzK9tZeVf3ywmuGgXIohdxPN0W9Sc4TCzxqO/bS8wKvYxhW7p3Z49HndaGSt4QvxpnRoLpY2AFI/d2Ak6UghBDdamiIJxatVzveyVxvZfM6Zzst5h/3cS4++FdgFGk8a4fqo64o3YVdnVM+RqP6h1JkoJG26UIuPoYezfDTyK9nQZP7XknQWizFvoGpkw== 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=xLmS5dy+0H1+X6RIilooNHV9HFuH4rTt1EZ715VC4+s=; b=oBWz+ZAg772ro2dREgpFMPBotJ0LItgZdyDzeJMISWkETUQ3p6vNs2eTpQBSTnVizE6wn1hO0ZRdahbDaEoK9LsiQVD8VfY9HHxk4bQ1mecqfgIK9LHmJPqNfCu1a09XRVOs/eQ28i0H3OKGZnVNzM4mLF2CF5o84WLT9FvlVKU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BL1PR12MB5874.namprd12.prod.outlook.com (2603:10b6:208:396::17) by MN2PR12MB4846.namprd12.prod.outlook.com (2603:10b6:208:186::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.16; Mon, 28 Mar 2022 13:57:09 +0000 Received: from BL1PR12MB5874.namprd12.prod.outlook.com ([fe80::981c:a9e4:48c:e82f]) by BL1PR12MB5874.namprd12.prod.outlook.com ([fe80::981c:a9e4:48c:e82f%6]) with mapi id 15.20.5102.022; Mon, 28 Mar 2022 13:57:07 +0000 Message-ID: <299368f0-a3f3-c252-ab98-7dd324dbd3c5@amd.com> Date: Mon, 28 Mar 2022 08:57:04 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 0/2] x86/mce: Grade new machine errors for AMD MCEs and include messages for panic cases Content-Language: en-US To: Borislav Petkov 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 References: <20220328134131.736572-1-carlos.bilbao@amd.com> From: Carlos Bilbao In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BL1PR13CA0442.namprd13.prod.outlook.com (2603:10b6:208:2c3::27) To BL1PR12MB5874.namprd12.prod.outlook.com (2603:10b6:208:396::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7ab6c60c-bd9c-438e-d82d-08da10c2d87d X-MS-TrafficTypeDiagnostic: MN2PR12MB4846:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LRVaHWp/faOt0pFwjX2Tm8TGc4CZtvQs57GVWl4UFj0jyusWphsq0E6e9R1C+YLyvgjn0xcMIHUWr6e/CQ8FtrhXEm+Cwf/D20LEKTX0liwprDeI1Y2ZQpvMhRjuTyKafidpd747BtjS9ZuCLjIxfg/7xrAi5qWmbQNVISsb2BxJ3OWZvd/lqz/WNDH/tRgfqVZTkCOkdDCNLgaKnCfNrlP7bA1NR4jWD42Ybb7n8/ORh7J3b39IIxmLhmaYQIAG6+FFMbsDS6EDN/nP/zVr2QLShWVmdPtFbX3w+JoHmapRqgk442OOxRXtUfWJZjDv//c97V/23BuhVoM1w4Bc6L4l1bhkxAJdbFX57iksZ9axVMeXUsqHuXO+pANIsqUt1tdDDC01LcGS9yXO1lY2hdBLqTZKr6SGWlS0gL/S56u2JIzQIN9K4TPsXNxuWdEos0Ph9Y+g3cqsq3iAnoUR4SppIoQf0E+MXxbJMKA+PcRmA99JqLrDH3R2qoVCR9fGbun+hH4bwGQNp5LHCg5Wr+E6h1Q7iRPbPhAVFqfmpL4voJ4/1qfqkb4OeTnJ0kUxdS3IGDzbVfY/I93+iU88mC2qnwEfIafbFk3nM1qNd2Os+S/tsLdZIrD446HZcqitbHir3EWITsb45/k+K50waMPPphGdOtYKQ+qrJftsd5xEGWOKuK06ohkqQY1aN8nkXhurxFntlzOH3X6y+m5lNnAipMpIXqF7H0ihqPnFZ1ygJHJQ/KoN106Ka/0Ey0jbOATQfAZZeZLoAiu6+0uAWtNeaVFd9q5VXiYqctngdi8RqTB1N5hGRCqAR9oXOfWAAEpppLVyrzit2uehHvo2wg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR12MB5874.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(83380400001)(31686004)(26005)(15650500001)(2616005)(186003)(2906002)(38100700002)(66946007)(5660300002)(316002)(6666004)(31696002)(6512007)(6506007)(508600001)(8936002)(4326008)(66476007)(66556008)(44832011)(53546011)(8676002)(6916009)(86362001)(6486002)(36756003)(966005)(45080400002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QW4ydEVDK2g2czNKaXdCeG9hWkpWZ1lLQmRpNjRGaTNFSGlZSk5FS0lmbk9k?= =?utf-8?B?eS9wajE0dzlXNWZJeDgzS29uSDhVQzJtQXQ0dmRySFZPU04vWVpjTEFLVmhT?= =?utf-8?B?dndVMjFQK3VDVXA3K3RGekptK1NLWG1xUnByOE9jTTJGc2lXT3ljMFFYZDlD?= =?utf-8?B?dlJjTHV6MHM5ZzVldC8yTE5zekc1enM5K1lST0l2OSs4ZitNYklJMWR6MFJZ?= =?utf-8?B?TzFvKzIyMlZLdXRieUQ5Y1o3OE5keE8rVXp5TUhycy9xS1ZjL0xlL09tQjJ4?= =?utf-8?B?UUhRK0Q1S2ppSGF3ZU15NGV3UXBTQW92eGFnQmRaY3FUeDVYZk4rUG9JRWIw?= =?utf-8?B?OE1nejRHWnJJYmdObU5zRldMMitVS2JKZmVLRjBCL2s1SGVDak5xQVVWTVQy?= =?utf-8?B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W5TakJRUFRubmFlWFgx?= =?utf-8?B?dTF1TG5RTjU0SEdmOWZLMnIvUmtISjVUVk9nUUttVkxORmNWWUczQ0lhVTNh?= =?utf-8?B?dk8ydnJsTXgwdXZiUnJtaXdIeTJxckVoU0lJSHUvUUlOU3llb3FUUT09?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ab6c60c-bd9c-438e-d82d-08da10c2d87d X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5874.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2022 13:57:06.9578 (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: WL+mdPUHItvSbwP3gNgSBolyl/H/FVLtsQPTt081tx21WKlm04sCd3WMaWn0X6a+Sl7ZEmf9o1/CVGx2kx52vA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4846 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 3/28/2022 8:55 AM, Borislav Petkov wrote: > On Mon, Mar 28, 2022 at 08:41:30AM -0500, Carlos Bilbao wrote: >> This patchset includes grading of new types of machine errors on AMD's MCE >> grading logic mce_severity_amd(), which helps the MCE handler determine >> what actions to take. If the error is graded as a PANIC, the EDAC driver >> will not decode; so we also include new error messages to describe the MCE >> and help debugging critical errors. >> >> Carlos Bilbao (2): >> x86/mce: Extend AMD severity grading function with new types of errors >> x86/mce: Add messages to describe panic machine errors on AMD's MCEs grading >> >> arch/x86/include/asm/mce.h | 6 + >> arch/x86/kernel/cpu/mce/severity.c | 203 ++++++++++++++++++++++++----- >> 2 files changed, 174 insertions(+), 35 deletions(-) > > How is this submission different from > > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fr%2F20220311165114.482074-1-carlos.bilbao%40amd.com&data=04%7C01%7Ccarlos.bilbao%40amd.com%7C7355a7de9b224557d6cf08da10c29e56%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637840725342715892%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=A809HxzZHYiZQ6Arlje0o9KAFt4c77I2Q4vOfCl9%2Fis%3D&reserved=0 > > ? Just fixed a typo in the first patch -I should have included a change log. Thanks, Carlos >