Repository navigation
Conversation
Author
|
Upstream branch: de52810 |
Author
|
Upstream branch: de52810 |
ghost
force-pushed
the
series/1206011=>for-next
branch
from
November 10, 2026 10:22
a8ccbed to
d7eafeb
Compare
Author
|
Upstream branch: de52810 |
The NVMe hwmon support exposes the temperature alarm as a plain sysfs attribute, so monitoring tools have to poll temp1_alarm to learn about a critical temperature condition. The device does send a SMART / Health Status asynchronous event when a critical warning is raised, but the host never enables it in the Asynchronous Event Configuration, and the completion path silently drops the event. The temperature warning is bit 1 of the SMART / Health Critical Warnings field of the Asynchronous Event Configuration (feature 0x0b, command dword 11 bits 7:0), which mirrors the critical_warning byte of the SMART log. Unlike the notice events, it has no OAES capability bit, so the subscription does not go through ctrl->oaes. The event stays latched until the SMART log is read with RAE cleared, so the deferred work re-reads it before the completion path re-arms the Asynchronous Event Request, and then calls hwmon_notify_event() on temp1_alarm. hwmon_notify_event() also feeds the thermal zone registered with HWMON_C_REGISTER_TZ and emits the standard hwmon uevent, which a plain sysfs_notify() would skip. The nvme-pci transport completes asynchronous events from interrupt context, so the completion path only queues the work. Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
ghost
force-pushed
the
series/1206011=>for-next
branch
from
November 10, 2026 11:15
d7eafeb to
11f20a4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request for series with
subject: nvme: make SMART / Health Status AENs reach hwmon alarms
version: 1
url: https://patchwork.kernel.org/series/1206011/