* [PATCH net-next v2 0/2][pull request] 100GbE Intel Wired LAN Driver Updates 2022-07-15
@ 2022-07-15 21:46 Tony Nguyen
2022-07-15 21:46 ` [PATCH net-next v2 1/2] ice: Add EXTTS feature to the feature bitmap Tony Nguyen
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Tony Nguyen @ 2022-07-15 21:46 UTC (permalink / raw)
To: davem, kuba, pabeni, edumazet; +Cc: Tony Nguyen, netdev
This series contains updates to ice driver only.
Ani updates feature restriction for devices that don't support external
time stamping.
Zhuo Chen removes unnecessary call to pci_aer_clear_nonfatal_status().
---
v2: Drop FEC patch for rework
The following are changes since commit 459f326e995ce6f02f3dc79ca5bc4e2abe33d156:
octeontx2-af: Set NIX link credits based on max LMAC
and are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue 100GbE
Anirudh Venkataramanan (1):
ice: Add EXTTS feature to the feature bitmap
Zhuo Chen (1):
ice: Remove pci_aer_clear_nonfatal_status() call
drivers/net/ethernet/intel/ice/ice.h | 1 +
drivers/net/ethernet/intel/ice/ice_lib.c | 1 +
drivers/net/ethernet/intel/ice/ice_main.c | 6 ------
drivers/net/ethernet/intel/ice/ice_ptp.c | 18 +++++++++++++-----
4 files changed, 15 insertions(+), 11 deletions(-)
--
2.35.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH net-next v2 1/2] ice: Add EXTTS feature to the feature bitmap
2022-07-15 21:46 [PATCH net-next v2 0/2][pull request] 100GbE Intel Wired LAN Driver Updates 2022-07-15 Tony Nguyen
@ 2022-07-15 21:46 ` Tony Nguyen
2022-07-15 21:46 ` [PATCH net-next v2 2/2] ice: Remove pci_aer_clear_nonfatal_status() call Tony Nguyen
2022-07-19 3:50 ` [PATCH net-next v2 0/2][pull request] 100GbE Intel Wired LAN Driver Updates 2022-07-15 patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Tony Nguyen @ 2022-07-15 21:46 UTC (permalink / raw)
To: davem, kuba, pabeni, edumazet
Cc: Anirudh Venkataramanan, netdev, anthony.l.nguyen,
Maciej Machnikowski, Anatolii Gerasymenko, Gurucharan
From: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
External time stamp sources are supported only on certain devices. Enforce
the right support matrix by adding the ICE_F_PTP_EXTTS bit to the feature
bitmap set.
Co-developed-by: Maciej Machnikowski <maciej.machnikowski@intel.com>
Signed-off-by: Maciej Machnikowski <maciej.machnikowski@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Signed-off-by: Anatolii Gerasymenko <anatolii.gerasymenko@intel.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
---
drivers/net/ethernet/intel/ice/ice.h | 1 +
drivers/net/ethernet/intel/ice/ice_lib.c | 1 +
drivers/net/ethernet/intel/ice/ice_ptp.c | 18 +++++++++++++-----
3 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ethernet/intel/ice/ice.h b/drivers/net/ethernet/intel/ice/ice.h
index 60453b3b8d23..f72c5cc4e035 100644
--- a/drivers/net/ethernet/intel/ice/ice.h
+++ b/drivers/net/ethernet/intel/ice/ice.h
@@ -181,6 +181,7 @@
enum ice_feature {
ICE_F_DSCP,
+ ICE_F_PTP_EXTTS,
ICE_F_SMA_CTRL,
ICE_F_GNSS,
ICE_F_MAX
diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c
index a6c4be5e5566..bc357dfae306 100644
--- a/drivers/net/ethernet/intel/ice/ice_lib.c
+++ b/drivers/net/ethernet/intel/ice/ice_lib.c
@@ -4182,6 +4182,7 @@ void ice_init_feature_support(struct ice_pf *pf)
case ICE_DEV_ID_E810C_QSFP:
case ICE_DEV_ID_E810C_SFP:
ice_set_feature_support(pf, ICE_F_DSCP);
+ ice_set_feature_support(pf, ICE_F_PTP_EXTTS);
if (ice_is_e810t(&pf->hw)) {
ice_set_feature_support(pf, ICE_F_SMA_CTRL);
if (ice_gnss_is_gps_present(&pf->hw))
diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c
index ef9344ef0d8e..29c7a0ccb3c4 100644
--- a/drivers/net/ethernet/intel/ice/ice_ptp.c
+++ b/drivers/net/ethernet/intel/ice/ice_ptp.c
@@ -1900,9 +1900,12 @@ ice_ptp_setup_pins_e810t(struct ice_pf *pf, struct ptp_clock_info *info)
}
info->n_per_out = N_PER_OUT_E810T;
- info->n_ext_ts = N_EXT_TS_E810;
- info->n_pins = NUM_PTP_PINS_E810T;
- info->verify = ice_verify_pin_e810t;
+
+ if (ice_is_feature_supported(pf, ICE_F_PTP_EXTTS)) {
+ info->n_ext_ts = N_EXT_TS_E810;
+ info->n_pins = NUM_PTP_PINS_E810T;
+ info->verify = ice_verify_pin_e810t;
+ }
/* Complete setup of the SMA pins */
ice_ptp_setup_sma_pins_e810t(pf, info);
@@ -1910,11 +1913,16 @@ ice_ptp_setup_pins_e810t(struct ice_pf *pf, struct ptp_clock_info *info)
/**
* ice_ptp_setup_pins_e810 - Setup PTP pins in sysfs
+ * @pf: pointer to the PF instance
* @info: PTP clock capabilities
*/
-static void ice_ptp_setup_pins_e810(struct ptp_clock_info *info)
+static void ice_ptp_setup_pins_e810(struct ice_pf *pf, struct ptp_clock_info *info)
{
info->n_per_out = N_PER_OUT_E810;
+
+ if (!ice_is_feature_supported(pf, ICE_F_PTP_EXTTS))
+ return;
+
info->n_ext_ts = N_EXT_TS_E810;
}
@@ -1956,7 +1964,7 @@ ice_ptp_set_funcs_e810(struct ice_pf *pf, struct ptp_clock_info *info)
if (ice_is_e810t(&pf->hw))
ice_ptp_setup_pins_e810t(pf, info);
else
- ice_ptp_setup_pins_e810(info);
+ ice_ptp_setup_pins_e810(pf, info);
}
/**
--
2.35.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH net-next v2 2/2] ice: Remove pci_aer_clear_nonfatal_status() call
2022-07-15 21:46 [PATCH net-next v2 0/2][pull request] 100GbE Intel Wired LAN Driver Updates 2022-07-15 Tony Nguyen
2022-07-15 21:46 ` [PATCH net-next v2 1/2] ice: Add EXTTS feature to the feature bitmap Tony Nguyen
@ 2022-07-15 21:46 ` Tony Nguyen
2022-07-19 3:50 ` [PATCH net-next v2 0/2][pull request] 100GbE Intel Wired LAN Driver Updates 2022-07-15 patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Tony Nguyen @ 2022-07-15 21:46 UTC (permalink / raw)
To: davem, kuba, pabeni, edumazet
Cc: Zhuo Chen, netdev, anthony.l.nguyen, Muchun Song, Sen Wang,
Wenliang Wang, Gurucharan
From: Zhuo Chen <chenzhuo.1@bytedance.com>
After commit 62b36c3ea664 ("PCI/AER: Remove
pci_cleanup_aer_uncorrect_error_status() calls"), calls to
pci_cleanup_aer_uncorrect_error_status() have already been removed. But in
commit 5995b6d0c6fc ("ice: Implement pci_error_handler ops")
pci_cleanup_aer_uncorrect_error_status was used again, so remove it in
this patch.
Signed-off-by: Zhuo Chen <chenzhuo.1@bytedance.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Sen Wang <wangsen.harry@bytedance.com>
Cc: Wenliang Wang <wangwenliang.1995@bytedance.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
---
drivers/net/ethernet/intel/ice/ice_main.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c
index ff2eac2f8c64..313716615e98 100644
--- a/drivers/net/ethernet/intel/ice/ice_main.c
+++ b/drivers/net/ethernet/intel/ice/ice_main.c
@@ -5313,12 +5313,6 @@ static pci_ers_result_t ice_pci_err_slot_reset(struct pci_dev *pdev)
result = PCI_ERS_RESULT_DISCONNECT;
}
- err = pci_aer_clear_nonfatal_status(pdev);
- if (err)
- dev_dbg(&pdev->dev, "pci_aer_clear_nonfatal_status() failed, error %d\n",
- err);
- /* non-fatal, continue */
-
return result;
}
--
2.35.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next v2 0/2][pull request] 100GbE Intel Wired LAN Driver Updates 2022-07-15
2022-07-15 21:46 [PATCH net-next v2 0/2][pull request] 100GbE Intel Wired LAN Driver Updates 2022-07-15 Tony Nguyen
2022-07-15 21:46 ` [PATCH net-next v2 1/2] ice: Add EXTTS feature to the feature bitmap Tony Nguyen
2022-07-15 21:46 ` [PATCH net-next v2 2/2] ice: Remove pci_aer_clear_nonfatal_status() call Tony Nguyen
@ 2022-07-19 3:50 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-07-19 3:50 UTC (permalink / raw)
To: Tony Nguyen; +Cc: davem, kuba, pabeni, edumazet, netdev
Hello:
This series was applied to netdev/net-next.git (master)
by Tony Nguyen <anthony.l.nguyen@intel.com>:
On Fri, 15 Jul 2022 14:46:40 -0700 you wrote:
> This series contains updates to ice driver only.
>
> Ani updates feature restriction for devices that don't support external
> time stamping.
>
> Zhuo Chen removes unnecessary call to pci_aer_clear_nonfatal_status().
>
> [...]
Here is the summary with links:
- [net-next,v2,1/2] ice: Add EXTTS feature to the feature bitmap
https://git.kernel.org/netdev/net-next/c/896a55aa5232
- [net-next,v2,2/2] ice: Remove pci_aer_clear_nonfatal_status() call
https://git.kernel.org/netdev/net-next/c/ca415ea1f03a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-07-19 3:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-15 21:46 [PATCH net-next v2 0/2][pull request] 100GbE Intel Wired LAN Driver Updates 2022-07-15 Tony Nguyen
2022-07-15 21:46 ` [PATCH net-next v2 1/2] ice: Add EXTTS feature to the feature bitmap Tony Nguyen
2022-07-15 21:46 ` [PATCH net-next v2 2/2] ice: Remove pci_aer_clear_nonfatal_status() call Tony Nguyen
2022-07-19 3:50 ` [PATCH net-next v2 0/2][pull request] 100GbE Intel Wired LAN Driver Updates 2022-07-15 patchwork-bot+netdevbpf
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.