From: Kurt Kanzenbach <kurt@linutronix.de>
To: Vinicius Costa Gomes <vinicius.gomes@intel.com>,
intel-wired-lan@lists.osuosl.org
Cc: sasha.neftin@intel.com,
Vinicius Costa Gomes <vinicius.gomes@intel.com>,
netdev@vger.kernel.org, richardcochran@gmail.com,
jesse.brandeburg@intel.com, linux-kernel@vger.kernel.org,
Eric Dumazet <edumazet@google.com>,
anthony.l.nguyen@intel.com,
Jeff Kirsher <jeffrey.t.kirsher@intel.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [Intel-wired-lan] [iwl-net v1 1/2] igc: Fix missing time sync events
Date: Sun, 18 Feb 2024 16:40:03 +0100 [thread overview]
Message-ID: <87y1bhok6k.fsf@kurt.kurt.home> (raw)
In-Reply-To: <20240217010455.58258-2-vinicius.gomes@intel.com>
[-- Attachment #1: Type: text/plain, Size: 992 bytes --]
On Fri Feb 16 2024, Vinicius Costa Gomes wrote:
> Fix "double" clearing of interrupts, which can cause external events
> or timestamps to be missed.
>
> The IGC_TSIRC Time Sync Interrupt Cause register can be cleared in two
> ways, by either reading it or by writing '1' into the specific cause
> bit. This is documented in section 8.16.1.
>
> The following flow was used:
> 1. read IGC_TSIRC into 'tsicr';
> 2. handle the interrupts present in 'tsirc' and mark them in 'ack';
> 3. write 'ack' into IGC_TSICR;
>
> As both (1) and (3) will clear the interrupt cause, if an interrupt
> happens between (1) and (3) it will be ignored, causing events to be
> missed.
>
> Remove the extra clear in (3).
>
> Fixes: 2c344ae24501 ("igc: Add support for TX timestamping")
> Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
No obvious issues found while testing.
Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
Tested-by: Kurt Kanzenbach <kurt@linutronix.de> # Intel i225
Thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
next prev parent reply other threads:[~2024-02-18 15:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-17 1:04 [Intel-wired-lan] [iwl-net v1 0/2] igc/igb: Fix missing time sync events Vinicius Costa Gomes
2024-02-17 1:04 ` [Intel-wired-lan] [iwl-net v1 1/2] igc: " Vinicius Costa Gomes
2024-02-18 15:40 ` Kurt Kanzenbach [this message]
2024-02-17 1:04 ` [Intel-wired-lan] [iwl-net v1 2/2] igb: " Vinicius Costa Gomes
2024-02-17 15:05 ` Richard Cochran
2024-02-17 16:55 ` Richard Cochran
2024-02-20 17:30 ` Vinicius Costa Gomes
2024-02-17 15:13 ` [Intel-wired-lan] [iwl-net v1 0/2] igc/igb: " Richard Cochran
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=87y1bhok6k.fsf@kurt.kurt.home \
--to=kurt@linutronix.de \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jesse.brandeburg@intel.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=sasha.neftin@intel.com \
--cc=vinicius.gomes@intel.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