Rework usage of the control PF pointer in struct ice_adapter
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest posting 2/27 patches 5 repliesIn review
- v6 posting 1/27 patches 0 repliesSuperseded
- v58 patches 1 replySuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 | 3 patches | 2 replies | Superseded | |
| v3 | 3 patches | 3 replies | Superseded | |
| v2 posting 2/2 | 3 patches | 1 reply | Superseded | |
| v2 posting 1/2 | 3 patches | 0 replies | Superseded | |
| v1 | 3 patches | 6 replies | Superseded |
Patches in v6 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | ice: Protect the control PF pointer with RCU and a rwsemdrivers/ drivers/ drivers/ +3 more | +119 | 1 reply | |
| 2/7 | ice: Cache struct ice_hw pointer for split register readsdrivers/ | +13 | 0 replies | |
| 3/7 | ice: Reject PTP access without a control PFdrivers/ drivers/ drivers/ +2 more | +98 | 1 reply | |
| 4/7 | ice: Clear the control PF pointer when the control PF is removeddrivers/ | +22 | 0 replies | |
| 5/7 | ice: Document control PF lock orderingdrivers/ | +15 | 1 reply | |
| 6/7 | ice: Annotate PTP control PF lock handoffdrivers/ drivers/ drivers/ | +32 | 1 reply | |
| 7/7 | ice: Release control PF lock before RCU waitdrivers/ | +13 | 1 reply |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Arkadiusz Kubalewski | Aleksandr Loktionov | Frederick Lawler | Przemyslaw Korba | Alexander Nowlin |
|---|---|---|---|---|---|
| 1/7 | R-b | R-b | T-b | ||
| 2/7 | R-b | R-b | T-b | ||
| 3/7 | R-b | T-b | |||
| 4/7 | R-b | R-b | T-b | ||
| 5/7 | R-b | T-b | |||
| 6/7 | R-b | T-b | |||
| 7/7 | R-b | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH RESEND iwl-net v6 0/7] Rework usage of the control PF pointer in struct ice_adapter
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://lore.kernel.org/intel-wired-lan/[email protected]/
v1->v2: Rebase onto the latest dev-queue branchv2->v3: Cosmetic fixesv3->v4: Add the rw_semaphore to protect the ctrl_pfv4->v5: Split patches into smaller self-contained parts, tighten potential race
condition windows, annotate RCU-related codev5->v6: Rebase on top of the latest dev-queue, remove absorbed changes
Sergey Temerkhanov (7):
ice: Protect the control PF pointer with RCU and a rwsem
ice: Cache struct ice_hw pointer for split register reads
ice: Reject PTP access without a control PF
ice: Clear the control PF pointer when the control PF is removed
ice: Document control PF lock ordering
ice: Annotate PTP control PF lock handoff
ice: Release control PF lock before RCU wait
drivers/net/ethernet/intel/ice/ice.h | 42 +++- drivers/net/ethernet/intel/ice/ice_adapter.c | 1 + drivers/net/ethernet/intel/ice/ice_adapter.h | 5 +- drivers/net/ethernet/intel/ice/ice_dpll.h | 18 +- drivers/net/ethernet/intel/ice/ice_ptp.c | 189 +++++++++++++----- drivers/net/ethernet/intel/ice/ice_ptp.h | 11 +- drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 78 +++++++- drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 6 +- drivers/net/ethernet/intel/ice/ice_txclk.c | 20 +- .../net/ethernet/intel/ice/virt/virtchnl.c | 5 +- 10 files changed, 293 insertions(+), 82 deletions(-)
base-commit: d2e3fa79cfab4d5c5715d6503a77c8648ef3c76c
Signature · 1 line
2.53.0