From: Sergey Temerkhanov <sergey.temerkhanov@intel.com>
To: intel-wired-lan@lists.osuosl.org
Cc: netdev@vger.kernel.org
Subject: [PATCH iwl-next v4 0/3] Rework usage of the control PF pointer in struct ice_adapter
Date: Mon, 31 Aug 2026 16:10:57 +0000 [thread overview]
Message-ID: <20260831161100.216773-1-sergey.temerkhanov@intel.com> (raw)
Rework usage of the control PF pointer in struct ice_adapter, so that
it is always has a consistent state, since it is global for an adapter.
Utilize RCU for reading the pointer value and atomic operations for
changing it. Zero out the ctrl_pf pointer when the control PF is removed.
Previous version:
https://mail-archive.com/intel-wired-lan@osuosl.org/msg18407.html
v1->v2: Rebase onto the latest dev-queue branch
v2->v3: Cosmetic fixes
v3->v4: Add the rw_semaphore to protect the ctrl_pf
Sergey Temerkhanov (3):
ice: Convert ctrl_pf pointer in struct ice_adapter to RCU
ice: Zero out the PTP control PF pointer at ice_adapter cleanup
ice: Cache struct ice_hw pointer for split register reads
Sergey Temerkhanov (3):
ice: Convert ctrl_pf pointer in struct ice_adapter to RCU
ice: Zero out the PTP control PF pointer at ice_adapter cleanup
ice: Cache struct ice_hw pointer for split register reads
drivers/net/ethernet/intel/ice/ice.h | 25 ++++-
drivers/net/ethernet/intel/ice/ice_adapter.c | 1 +
drivers/net/ethernet/intel/ice/ice_adapter.h | 5 +-
drivers/net/ethernet/intel/ice/ice_ptp.c | 101 ++++++++++++++-----
drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 37 ++++++-
drivers/net/ethernet/intel/ice/ice_txclk.c | 19 +++-
6 files changed, 147 insertions(+), 41 deletions(-)
--
2.53.0
next reply other threads:[~2026-08-31 16:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-31 16:10 Sergey Temerkhanov [this message]
2026-08-31 16:10 ` [PATCH iwl-next v4 1/3] ice: Convert ctrl_pf pointer in struct ice_adapter to RCU Sergey Temerkhanov
2026-09-01 12:43 ` Przemek Kitszel
2026-09-01 13:00 ` Temerkhanov, Sergey
2026-08-31 16:10 ` [PATCH iwl-next v4 2/3] ice: Zero out the PTP control PF pointer at ice_adapter cleanup Sergey Temerkhanov
2026-08-31 16:11 ` [PATCH iwl-next v4 3/3] ice: Cache struct ice_hw pointer for split register reads Sergey Temerkhanov
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=20260831161100.216773-1-sergey.temerkhanov@intel.com \
--to=sergey.temerkhanov@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=netdev@vger.kernel.org \
/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