Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4990525rdb; Tue, 12 Dec 2023 15:56:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEuB5EWnQzLFCFT09NLWmM7ksUNitTgypgLvA2UFmVS9kFLouJiVDBF6HZS5v8msnb/L/od X-Received: by 2002:a05:6808:2f15:b0:3b9:f621:b1f7 with SMTP id gu21-20020a0568082f1500b003b9f621b1f7mr11165887oib.98.1702425386815; Tue, 12 Dec 2023 15:56:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702425386; cv=none; d=google.com; s=arc-20160816; b=IHmDrVh9R88xmhXa+vIy+REStY0YT2VSRUWnRRwMUC38dULhHUPOvg8RILccRzsZqk MnysB8Q4tk6CGwA0b5L0VqwsvxonD0UyKqyBYXm4UhtQZBeukmosVFjw5pN1Bv2BHTZX Xbh/Ap0gv5Ne5eLAHV1F6NoAioPUVvQymt/2BFqD5Oh3qQsIayULK+sw6kMr69XCScr5 ndy8BoJ9KJ6JAefhxrsgwASgCR3QA2ET2FBHNHOskNcQoGYEoAFIA/PWVxRLQrPNZNOS qpH7sSfTTYuh5vehvtaoyID4Y/1aDmF3gcENLxGKpezhAx4XIQrUH5OavvxzcKoIgk+s CGWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kvcZNEP58ugqv20Pm1mONv8BuiUHlOHp24bA+swL/RE=; fh=FDPE7RNGzDNJ+RRhO5kunR7J5no/VTkOYnlxh9gYc3M=; b=eHRO18F3g6H004nmIV/IFWQCmRU2/peRh2sLHDQXzxa3/ECn1MCpW5YDpd2iEPDCN7 L8X5Cx0Vx54S6SuZNF/tgLWz8oPbFbCIBw7ulZ1yXCQj09vgWNk33jhHF6kttItlVHv1 ifHPTna1vLKcKKgYw7suxCySpsuS7Td6QnUCbIJY0rtvXuyEj1uWhe2j+fI8eKgHFFaj IfICwdxAwrR3HtBOdftugMDj8u0d2+BruraJpdv6t2YgemnHoac0duEmqLp2vipWqhTm iFt10ZpiedaHDkqGwawlCvjegYN+jlhwzaPpCSE9BXf3wsCURk4vEVBAfuYCfTHdgm2t hUDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=CnIU0dTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bq15-20020a056a000e0f00b006cef66f8c03si6124826pfb.53.2023.12.12.15.56.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 15:56:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=CnIU0dTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A8D3C8083B11; Tue, 12 Dec 2023 15:56:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377467AbjLLXzi (ORCPT + 99 others); Tue, 12 Dec 2023 18:55:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232512AbjLLXzh (ORCPT ); Tue, 12 Dec 2023 18:55:37 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E14A892; Tue, 12 Dec 2023 15:55:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=kvcZNEP58ugqv20Pm1mONv8BuiUHlOHp24bA+swL/RE=; b=CnIU0dTwkYZLeCDDAl7dUkETmw mXDyZZWZ0erdOyMV6hr212MWbfRA8D/Qk7N02Vf6D96nE0J3QoKq/qsrwU967k+WgcKliYYmsG0ZV o7h6bOsx1UNX+Vf98XwJv9VYPg9P6YpbgxRvkokaCgysiGlOWrCejBj2QyUrV/nCxcKCWV5KZArBh i8u4SkGvNIu3Hv4Qok7wd8zUuh0j0RCB1xU30xinXmmkZPv/ugtQxqqYArOgowwgJu70W8GHmxcOh PnaJlj8kyd3Fmix9b5MmMOy1ajiK8vYij+CLHyA8Kkl9o06R4Hfd3rjwyXm3pGZ2XwJ8mq8w7Lh6D SHLgpM7w==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rDCbG-00D5YC-1v; Tue, 12 Dec 2023 23:55:42 +0000 Message-ID: Date: Tue, 12 Dec 2023 15:55:41 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] parse_phat: Add support for ACPI PHAT Table parsing Content-Language: en-US To: Avadhut Naik , linux-acpi@vger.kernel.org, linux-edac@vger.kernel.org Cc: linux-kernel@vger.kernel.org, yazen.ghannam@amd.com, avadnaik@amd.com References: <20231212195219.2348858-1-avadhut.naik@amd.com> <20231212195219.2348858-2-avadhut.naik@amd.com> From: Randy Dunlap In-Reply-To: <20231212195219.2348858-2-avadhut.naik@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 12 Dec 2023 15:56:06 -0800 (PST) Hi-- On 12/12/23 11:52, Avadhut Naik wrote: > ACPI Platform Health Assessment Table (PHAT) enables a platform to expose > an extensible set of platform health-related telemetry. The telemetry is > exposed through Firmware Version and Firmware Health Data Records which > provide version data and health-related information of their associated > components respectively. > > Additionally, the platform also provides Reset Reason Health Record > in the table highlighting the cause of the last system reset in case > of expected and unexpected events. Vendor-specific data capturing the > underlying state of the system during reset can also be optionally > provided through the record.[1] > > Introduce support for parsing, decoding, and logging the PHAT table, if > supported by the system. By default, the table will be logged to stdout. > The same, however, can be changed through the "-o" command line parameter. > Additionally, the tool also provides a hexdump of the entire table, if > needed, through the "-x" parameter. > > Signed-off-by: Avadhut Naik > --- > Makefile | 12 ++ > parse_phat.c | 516 +++++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 528 insertions(+) > create mode 100644 Makefile > create mode 100644 parse_phat.c > Does acpidump not parse the PHAT table? Could it? Should it? thanks. -- #Randy https://people.kernel.org/tglx/notes-about-netiquette https://subspace.kernel.org/etiquette.html