Patch "ice: fix pin phase adjust updates on PF reset" has been added to the 6.7-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ice: fix pin phase adjust updates on PF reset

to the 6.7-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     ice-fix-pin-phase-adjust-updates-on-pf-reset.patch
and it can be found in the queue-6.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit a0739457a8e786c7e828ffc785a96e61bd240cfc
Author: Arkadiusz Kubalewski <arkadiusz.kubalewski@xxxxxxxxx>
Date:   Fri Feb 9 22:24:32 2024 +0100

    ice: fix pin phase adjust updates on PF reset
    
    [ Upstream commit ee89921da471edcb4b1e67f5bbfedddf39749782 ]
    
    Do not allow to set phase adjust value for a pin if PF reset is in
    progress, this would cause confusing netlink extack errors as the firmware
    cannot process the request properly during the reset time.
    
    Return (-EBUSY) and report extack error for the user who tries configure
    pin phase adjust during the reset time.
    
    Test by looping execution of below steps until netlink error appears:
    - perform PF reset
    $ echo 1 > /sys/class/net/<ice PF>/device/reset
    - change pin phase adjust value:
    $ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/dpll.yaml \
            --do pin-set --json '{"id":0, "phase-adjust":1000}'
    
    Fixes: 90e1c90750d7 ("ice: dpll: implement phase related callbacks")
    Reviewed-by: Igor Bagnucki <igor.bagnucki@xxxxxxxxx>
    Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@xxxxxxxxx>
    Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@xxxxxxxxx> (A Contingent worker at Intel)
    Signed-off-by: Tony Nguyen <anthony.l.nguyen@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/intel/ice/ice_dpll.c b/drivers/net/ethernet/intel/ice/ice_dpll.c
index bcb9b9c13aabc..2b657d43c769d 100644
--- a/drivers/net/ethernet/intel/ice/ice_dpll.c
+++ b/drivers/net/ethernet/intel/ice/ice_dpll.c
@@ -988,6 +988,9 @@ ice_dpll_pin_phase_adjust_set(const struct dpll_pin *pin, void *pin_priv,
 	u8 flag, flags_en = 0;
 	int ret;
 
+	if (ice_dpll_is_reset(pf, extack))
+		return -EBUSY;
+
 	mutex_lock(&pf->dplls.lock);
 	switch (type) {
 	case ICE_DPLL_PIN_TYPE_INPUT:




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux