All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Zinc Lim" <limzhineng2@gmail.com>
Cc: linux-hwmon@vger.kernel.org
Subject: Re: [PATCH net-next v4 6/6] eth: fbnic: derive the alarm range on older firmware
Date: Thu, 15 Oct 2026 22:22:50 +0000	[thread overview]
Message-ID: <sashiko-outbox-173450@kernel.org> (raw)
In-Reply-To: <20261014222225.2803660-7-limzhineng2@gmail.com>

> Firmware that predates range reporting uses the threshold event to flag
> that a limit was exceeded, with the attribute hardcoded to 1, rather than
> reporting which range the sensor entered. The range enum reserves that
> value as FBNIC_FW_TSENE_ALARM_DEPRECATED. It does not indicate which
> limit was crossed, so it is not cached and the alarm classifies a fresh
> reading on every sysfs read.
> 
> Such firmware re-arms the trip points around the range the reading
> landed in, so every crossing interrupts, including the one back to
> normal. The event carries the reading that tripped it, so derive the
> range from that, against the same capability response thresholds and
> boundaries firmware uses. The alarm then tracks crossings there too, and
> wakes anything polling the sysfs attribute.
> 
> An event can arrive before the capability response that carries those
> thresholds, since rx messages are parsed while polling for it. There is
> nothing to classify against yet, so the reading would come back as the
> normal range and stick there. Leave the range unknown and let the read
> path derive it once the thresholds are in.
> 
> Signed-off-by: Zinc Lim <limzhineng2@gmail.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261014222225.2803660-1-limzhineng2@gmail.com?part=6


      reply	other threads:[~2026-10-15 22:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-14 22:22 [PATCH net-next v4 0/6] eth: fbnic: expand hwmon sensor support Zinc Lim
2026-10-14 22:22 ` [PATCH net-next v4 1/6] eth: fbnic: move sensor read logic out of fbnic_mac Zinc Lim
2026-10-15 22:22   ` sashiko-bot
2026-10-14 22:22 ` [PATCH net-next v4 2/6] eth: fbnic: cache hwmon sensor readings Zinc Lim
2026-10-15 22:22   ` sashiko-bot
2026-10-14 22:22 ` [PATCH net-next v4 3/6] eth: fbnic: report temperature and voltage thresholds via hwmon Zinc Lim
2026-10-15 22:22   ` sashiko-bot
2026-10-14 22:22 ` [PATCH net-next v4 4/6] eth: fbnic: parse the alarm range reported by firmware Zinc Lim
2026-10-15 22:22   ` sashiko-bot
2026-10-14 22:22 ` [PATCH net-next v4 5/6] eth: fbnic: report temperature and voltage alarms via hwmon Zinc Lim
2026-10-15 22:22   ` sashiko-bot
2026-10-14 22:22 ` [PATCH net-next v4 6/6] eth: fbnic: derive the alarm range on older firmware Zinc Lim
2026-10-15 22:22   ` sashiko-bot [this message]

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=sashiko-outbox-173450@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=limzhineng2@gmail.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.