netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iwl-next 0/4] ice: Read Tx timestamps in the IRQ top half
@ 2025-05-20 11:06 Karol Kolacinski
  2025-05-20 11:06 ` [PATCH iwl-next 1/4] ice: skip completion for sideband queue writes Karol Kolacinski
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Karol Kolacinski @ 2025-05-20 11:06 UTC (permalink / raw)
  To: intel-wired-lan
  Cc: netdev, anthony.l.nguyen, przemyslaw.kitszel, richardcochran,
	Karol Kolacinski

On all E82X products (E822, E823 and E825), Tx timestamps are read using
sideband queue.
This is a very robust HW queue and it's used only for accessing PHYs and
CGU, which means it can use spin_locks and delays instead of mutexes and
sleeps like slow admin queue handled by the FW.

This allows reading the sideband queue in the top half of the interrupt
and allows to avoid bottom half scheduling delays, which speeds up Tx
timestamping process significantly.

Introduce new structure ice_sq_ops, which allows to assign lock/unlock
operations based on the queue type on queue init.

Karol Kolacinski (4):
  ice: skip completion for sideband queue writes
  ice: refactor ice_sq_send_cmd and ice_shutdown_sq
  ice: use spin_lock for sideband queue send queue
  ice: read Tx timestamps in the IRQ top half

 drivers/net/ethernet/intel/ice/ice_common.c   |  21 +-
 drivers/net/ethernet/intel/ice/ice_common.h   |   3 +-
 drivers/net/ethernet/intel/ice/ice_controlq.c | 252 +++++++++++-------
 drivers/net/ethernet/intel/ice/ice_controlq.h |  20 +-
 drivers/net/ethernet/intel/ice/ice_ptp.c      |  46 ++--
 drivers/net/ethernet/intel/ice/ice_ptp_hw.c   |  62 +++--
 drivers/net/ethernet/intel/ice/ice_sbq_cmd.h  |   5 +-
 7 files changed, 251 insertions(+), 158 deletions(-)


base-commit: 82bb0098b73f72a026b4bb49206a8c1d90974edc
-- 
2.49.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-06-06 12:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-20 11:06 [PATCH iwl-next 0/4] ice: Read Tx timestamps in the IRQ top half Karol Kolacinski
2025-05-20 11:06 ` [PATCH iwl-next 1/4] ice: skip completion for sideband queue writes Karol Kolacinski
2025-05-22  6:47   ` [Intel-wired-lan] " Paul Menzel
2025-06-06 12:50   ` Simon Horman
2025-05-20 11:06 ` [PATCH iwl-next 2/4] ice: refactor ice_sq_send_cmd and ice_shutdown_sq Karol Kolacinski
2025-06-06 12:50   ` Simon Horman
2025-05-20 11:06 ` [PATCH iwl-next 3/4] ice: use spin_lock for sideband queue send queue Karol Kolacinski
2025-06-06 12:49   ` Simon Horman
2025-05-20 11:06 ` [PATCH iwl-next 4/4] ice: read Tx timestamps in the IRQ top half Karol Kolacinski
2025-06-06 12:50   ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).