Thread (18 messages) 18 messages, 5 authors, 2026-02-04

Re: [PATCH 2/2] hpet: Add HPET-based NMI watchdog support

From: Thomas Gleixner <tglx@kernel.org>
Date: 2026-02-03 15:28:14
Also in: lkml

On Tue, Feb 03 2026 at 13:36, Alexander Graf wrote:
On 03.02.26 11:32, Thomas Gleixner wrote:
quoted
On Mon, Feb 02 2026 at 17:48, Alexander Graf wrote:
quoted
(Disclaimer: Some of this code was written with the help of Kiro, an AI
coding assistant)
You could have sent your change log through AI too so it conforms with
the change log rules ...
Maybe we should introduce an AGENTS.md file in Linux that tells the AI 
tool to do that automatically? These tools usually don't read README 
files. :)
I don't care what tools do, but I very much care about what the people
who use the tools do.
quoted
quoted
+     if (panic_in_progress())
+             return NMI_HANDLED;
+
+     /* Check if this NMI is from our HPET timer by comparing counter value */
+     now = hpet_readl(HPET_COUNTER);
And both you and your AI assistant failed to read through the previous
discussions on that topic and the 10+ failed attempts to make it work
correctly.  Otherwise you would have figured out that reading HPET in
the NMI handler is a patently bad idea.

I'm not reiterating any of it as it's well documented in the LKML archive.

Thanks a bunch for the pointer. I had indeed missed the previous patch 
set submissions on the same topic. Those look a lot more sophisticated 
than the quick hacky version I built. Nice! Oh well, at least I 
(re)learned a few things about the HPET along the way.

Looking at the latest submission [1] (v7), I see patches but no reviews, 
no acks and no merges. Those patches also seem to address most of your 
concerns (obviously, since you reviewed them before :)). Reading the 
side conversation about it [2], it sounds like the buddy hardlockup 
detector is trying to fill the same gap as the HPET one and hence after 
that got merged, interest faded?
I don't remember. That thing clearly fell through the cracks. Let me
find it again and reply to that.

As time has advanced there are probably a few things which need to be
addressed. 

Thanks,

        tglx
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help