From: "Limonciello, Mario" <mario.limonciello@amd.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Avadhut Naik <avadnaik@amd.com>,
"Wilczynski, Michal" <michal.wilczynski@intel.com>,
Avadhut Naik <avadhut.naik@amd.com>,
lenb@kernel.org, linux-acpi@vger.kernel.org,
yazen.ghannam@amd.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ACPI: PHAT: Add Platform Health Assessment Table support
Date: Mon, 21 Aug 2023 12:17:46 -0500 [thread overview]
Message-ID: <6bc15195-aa26-4e29-b625-74fca84f7a6f@amd.com> (raw)
In-Reply-To: <CAJZ5v0iPRCJLH5bkKyhjUq_tmjmR6R73fhUm3JnKptcm1cn9fQ@mail.gmail.com>
On 8/21/2023 12:12 PM, Rafael J. Wysocki wrote:
<snip>
>> I was just talking to some colleagues about PHAT recently as well.
>>
>> The use case that jumps out is "system randomly rebooted while I was
>> doing XYZ". You don't know what happened, but you keep using your
>> system. Then it happens again.
>>
>> If the reason for the random reboot is captured to dmesg you can cross
>> reference your journal from the next boot after any random reboot and
>> get the reason for it. If a user reports this to a Gitlab issue tracker
>> or Bugzilla it can be helpful in establishing a pattern.
>>
>>>> The below location may be appropriate in that case:
>>>> /sys/firmware/acpi/
>>>
>>> Yes, it may. >
>>>> We already have FPDT and BGRT being exported from there.
>>>
>>> In fact, all of the ACPI tables can be retrieved verbatim from
>>> /sys/firmware/acpi/tables/ already, so why exactly do you want the
>>> kernel to parse PHAT in particular?
>>>
>>
>> It's not to say that /sys/firmware/acpi/PHAT isn't useful, but having
>> something internal to the kernel "automatically" parsing it and saving
>> information to a place like the kernel log that is already captured by
>> existing userspace tools I think is "more" useful.
>
> What existing user space tools do you mean? Is there anything already
> making use of the kernel's PHAT output?
>
I was meaning things like systemd already capture the kernel long
ringbuffer. If you save stuff like this into the kernel log, it's going
to be indexed and easier to grep for boots that had it.
> And why can't user space simply parse PHAT by itself?
> > There are multiple ACPI tables that could be dumped into the kernel
> log, but they aren't. Guess why.
Right; there's not reason it can't be done by userspace directly.
Another way to approach this problem could be to modify tools that
excavate records from a reboot to also get PHAT. For example
systemd-pstore will get any kernel panics from the previous boot from
the EFI pstore and put them into /var/lib/systemd/pstore.
No reason that couldn't be done automatically for PHAT too.
next prev parent reply other threads:[~2023-08-21 17:17 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-10 23:48 [PATCH] ACPI: PHAT: Add Platform Health Assessment Table support Avadhut Naik
2023-08-11 22:52 ` Avadhut Naik
2023-08-16 11:35 ` Wilczynski, Michal
2023-08-17 20:42 ` Avadhut Naik
2023-08-18 7:49 ` Rafael J. Wysocki
2023-08-21 17:06 ` Limonciello, Mario
2023-08-21 17:12 ` Rafael J. Wysocki
2023-08-21 17:17 ` Limonciello, Mario [this message]
2023-08-21 17:29 ` Rafael J. Wysocki
2023-08-21 17:35 ` Limonciello, Mario
2023-08-21 17:52 ` Rafael J. Wysocki
2023-08-21 18:00 ` Limonciello, Mario
2023-08-21 18:04 ` Rafael J. Wysocki
2023-08-21 18:01 ` Rafael J. Wysocki
2023-08-21 18:44 ` Yazen Ghannam
2023-08-21 18:49 ` Rafael J. Wysocki
2023-08-21 19:01 ` Yazen Ghannam
2023-08-21 19:16 ` Rafael J. Wysocki
2023-08-21 19:23 ` Limonciello, Mario
2023-08-21 23:33 ` Yazen Ghannam
2023-08-22 2:53 ` Limonciello, Mario
2023-08-22 2:26 ` Avadhut Naik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6bc15195-aa26-4e29-b625-74fca84f7a6f@amd.com \
--to=mario.limonciello@amd.com \
--cc=avadhut.naik@amd.com \
--cc=avadnaik@amd.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.wilczynski@intel.com \
--cc=rafael@kernel.org \
--cc=yazen.ghannam@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox