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 4/6] eth: fbnic: parse the alarm range reported by firmware
Date: Thu, 15 Oct 2026 22:22:49 +0000	[thread overview]
Message-ID: <sashiko-outbox-173448@kernel.org> (raw)
In-Reply-To: <20261014222225.2803660-5-limzhineng2@gmail.com>

> Firmware reports which range a sensor is in: normal, below min, above
> max, above crit. It sends the range in an unsolicited event on every
> trip point crossing, including the crossing back into the normal range,
> and in the response to a sensor read. Parse both and keep the last
> reported range per sensor, so the driver holds a condition the hardware
> reported.
> 
> The range is cached from the mailbox thread in both cases, so an event
> and a read response cannot be applied out of the order firmware sent
> them. It is seeded alongside the rest of the sensor cache in
> fbnic_mbx_init(), before the mailbox interrupt is enabled, since an
> event can arrive as soon as it is.
> 
> Firmware predating range reporting sends ALARM_DEPRECATED for every
> threshold event and omits the range from the read response entirely.
> Neither is cached, as neither says which limit was crossed.
> 
> Subsequent patches in this series will consume the cached range.
> 
> 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=4


  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 [this message]
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

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-173448@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.