AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/07/25 18:26 flow patch-triage
0m Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch modifies the Intel Ethernet Connection E800 Series (ice) driver, specifically its DPLL and SMA/U.FL pin handling logic. This driver requires physical Intel E800 series PCIe hardware which is not emulated in standard virtualized environments like QEMU. Therefore, the modified code is unreachable during fuzzing.",
  "WorthFuzzing": false
}

1/1 2026/07/25 18:26 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit a0fc82476d045c5d03dca750536efd03799e7705\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Sat Jul 25 18:26:05 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/ethernet/intel/ice/ice_dpll.c b/drivers/net/ethernet/intel/ice/ice_dpll.c\nindex 30c3a4db7d611c..210a2a2b24bb3c 100644\n--- a/drivers/net/ethernet/intel/ice/ice_dpll.c\n+++ b/drivers/net/ethernet/intel/ice/ice_dpll.c\n@@ -538,6 +538,29 @@ ice_dpll_pin_disable(struct ice_hw *hw, struct ice_dpll_pin *pin,\n \treturn ret;\n }\n \n+/**\n+ * ice_dpll_sw_pin_notify_peer - notify the paired SW pin after a state change\n+ * @changed: the SW pin that was explicitly changed (already notified by dpll core)\n+ *\n+ * SMA and U.FL pins share physical signal paths in pairs (SMA1/U.FL1 and\n+ * SMA2/U.FL2).  When one pin's routing changes via the PCA9575 GPIO\n+ * expander, the paired pin's state may also change.  Send a change\n+ * notification for the peer pin so userspace consumers monitoring the\n+ * peer via dpll netlink learn about the update.\n+ *\n+ * Context: Called from dpll_pin_ops callbacks after pf-\u003edplls.lock is\n+ *          released.  Uses __dpll_pin_change_ntf() because dpll_lock is\n+ *          still held by the dpll netlink layer.\n+ */\n+static void ice_dpll_sw_pin_notify_peer(struct ice_dpll_pin *changed)\n+{\n+\tstruct ice_dpll_pin *peer;\n+\n+\tpeer = changed-\u003emuxed;\n+\tif (peer-\u003epin)\n+\t\t__dpll_pin_change_ntf(peer-\u003epin);\n+}\n+\n /**\n  * ice_dpll_pin_store_state - updates the state of pin in SW bookkeeping\n  * @pin: pointer to a pin\n@@ -669,10 +692,10 @@ ice_dpll_sw_pins_update(struct ice_pf *pf)\n \tp = \u0026d-\u003esma[ICE_DPLL_PIN_SW_2_IDX];\n \tp-\u003eactive = true;\n \tp-\u003edirection = DPLL_PIN_DIRECTION_INPUT;\n+\tif (data \u0026 ICE_SMA2_DIR_EN)\n+\t\tp-\u003edirection = DPLL_PIN_DIRECTION_OUTPUT;\n \tif ((data \u0026 ICE_SMA2_INACTIVE_MASK) == ICE_SMA2_INACTIVE_MASK)\n \t\tp-\u003eactive = false;\n-\telse if (data \u0026 ICE_SMA2_DIR_EN)\n-\t\tp-\u003edirection = DPLL_PIN_DIRECTION_OUTPUT;\n \n \tp = \u0026d-\u003eufl[ICE_DPLL_PIN_SW_1_IDX];\n \tif (!(data \u0026 (ICE_SMA1_DIR_EN | ICE_SMA1_TX_EN)))\n@@ -1163,32 +1186,6 @@ ice_dpll_input_state_get(const struct dpll_pin *pin, void *pin_priv,\n \t\t\t\t      extack, ICE_DPLL_PIN_TYPE_INPUT);\n }\n \n-/**\n- * ice_dpll_sw_pin_notify_peer - notify the paired SW pin after a state change\n- * @d: pointer to dplls struct\n- * @changed: the SW pin that was explicitly changed (already notified by dpll core)\n- *\n- * SMA and U.FL pins share physical signal paths in pairs (SMA1/U.FL1 and\n- * SMA2/U.FL2).  When one pin's routing changes via the PCA9575 GPIO\n- * expander, the paired pin's state may also change.  Send a change\n- * notification for the peer pin so userspace consumers monitoring the\n- * peer via dpll netlink learn about the update.\n- *\n- * Context: Called from dpll_pin_ops callbacks after pf-\u003edplls.lock is\n- *          released.  Uses __dpll_pin_change_ntf() because dpll_lock is\n- *          still held by the dpll netlink layer.\n- */\n-static void ice_dpll_sw_pin_notify_peer(struct ice_dplls *d,\n-\t\t\t\t\tstruct ice_dpll_pin *changed)\n-{\n-\tstruct ice_dpll_pin *peer;\n-\n-\tpeer = (changed \u003e= d-\u003esma \u0026\u0026 changed \u003c d-\u003esma + ICE_DPLL_PIN_SW_NUM) ?\n-\t\t\u0026d-\u003eufl[changed-\u003eidx] : \u0026d-\u003esma[changed-\u003eidx];\n-\tif (peer-\u003epin)\n-\t\t__dpll_pin_change_ntf(peer-\u003epin);\n-}\n-\n /**\n  * ice_dpll_sma_direction_set - set direction of SMA pin\n  * @p: pointer to a pin\n@@ -1219,17 +1216,21 @@ static int ice_dpll_sma_direction_set(struct ice_dpll_pin *p,\n \n \tswitch (p-\u003eidx) {\n \tcase ICE_DPLL_PIN_SW_1_IDX:\n-\t\tdata \u0026= ~ICE_SMA1_MASK;\n-\t\tif (direction == DPLL_PIN_DIRECTION_OUTPUT)\n+\t\tif (direction == DPLL_PIN_DIRECTION_OUTPUT) {\n+\t\t\tdata \u0026= ~ICE_SMA1_TX_EN;\n \t\t\tdata |= ICE_SMA1_DIR_EN;\n+\t\t} else {\n+\t\t\tdata \u0026= ~ICE_SMA1_DIR_EN;\n+\t\t\tdata \u0026= ~ICE_SMA1_TX_EN;\n+\t\t}\n \t\tbreak;\n \tcase ICE_DPLL_PIN_SW_2_IDX:\n \t\tif (direction == DPLL_PIN_DIRECTION_INPUT) {\n \t\t\tdata \u0026= ~ICE_SMA2_DIR_EN;\n-\t\t\tdata |= ICE_SMA2_UFL2_RX_DIS;\n \t\t} else {\n-\t\t\tdata \u0026= ~(ICE_SMA2_TX_EN | ICE_SMA2_UFL2_RX_DIS);\n \t\t\tdata |= ICE_SMA2_DIR_EN;\n+\t\t\tdata \u0026= ~ICE_SMA2_UFL2_RX_DIS;\n+\t\t\tdata \u0026= ~ICE_SMA2_TX_EN;\n \t\t}\n \t\tbreak;\n \tdefault:\n@@ -1250,7 +1251,7 @@ static int ice_dpll_sma_direction_set(struct ice_dpll_pin *p,\n \t * backing pin when U.FL becomes inactive because the SMA pin may\n \t * still be using it.\n \t */\n-\tpeer = \u0026d-\u003eufl[p-\u003eidx];\n+\tpeer = p-\u003emuxed;\n \tif (peer-\u003eactive) {\n \t\tstruct ice_dpll_pin *target;\n \t\tenum ice_dpll_pin_type type;\n@@ -1258,12 +1259,17 @@ static int ice_dpll_sma_direction_set(struct ice_dpll_pin *p,\n \t\tif (peer-\u003eoutput) {\n \t\t\ttarget = peer-\u003eoutput;\n \t\t\ttype = ICE_DPLL_PIN_TYPE_OUTPUT;\n-\t\t} else {\n+\t\t} else if (peer-\u003einput) {\n \t\t\ttarget = peer-\u003einput;\n \t\t\ttype = ICE_DPLL_PIN_TYPE_INPUT;\n+\t\t} else {\n+\t\t\treturn -EINVAL;\n \t\t}\n+\n \t\tret = ice_dpll_pin_enable(\u0026p-\u003epf-\u003ehw, target,\n-\t\t\t\t\t  d-\u003eeec.dpll_idx, type, extack);\n+                                         d-\u003epps.dpll_idx \u003c ICE_DPLL_RCLK_NUM_MAX \u0026\u0026\n+                                          target-\u003estate[d-\u003epps.dpll_idx] == DPLL_PIN_STATE_CONNECTED ?\n+\t\t\t\t\t  d-\u003epps.dpll_idx : d-\u003eeec.dpll_idx, type, extack);\n \t\tif (!ret)\n \t\t\tret = ice_dpll_pin_state_update(p-\u003epf, target,\n \t\t\t\t\t\t\ttype, extack);\n@@ -1299,6 +1305,7 @@ ice_dpll_ufl_pin_state_set(const struct dpll_pin *pin, void *pin_priv,\n \tenum ice_dpll_pin_type type;\n \tstruct ice_pf *pf = p-\u003epf;\n \tstruct ice_hw *hw;\n+\tu8 old_data = 0;\n \tbool enable;\n \tu8 data;\n \tint ret;\n@@ -1311,14 +1318,17 @@ ice_dpll_ufl_pin_state_set(const struct dpll_pin *pin, void *pin_priv,\n \tret = ice_read_sma_ctrl(hw, \u0026data);\n \tif (ret)\n \t\tgoto unlock;\n+\told_data = data;\n \n \tret = -EINVAL;\n \tswitch (p-\u003eidx) {\n \tcase ICE_DPLL_PIN_SW_1_IDX:\n-\t\tif (state == DPLL_PIN_STATE_CONNECTED) {\n+\t\tswitch (state) {\n+\t\tcase DPLL_PIN_STATE_CONNECTED:\n \t\t\tdata \u0026= ~ICE_SMA1_MASK;\n \t\t\tenable = true;\n-\t\t} else if (state == DPLL_PIN_STATE_DISCONNECTED) {\n+\t\t\tbreak;\n+\t\tcase DPLL_PIN_STATE_DISCONNECTED:\n \t\t\t/* Skip if U.FL1 is not active, setting TX_EN\n \t\t\t * while DIR_EN is set would also deactivate\n \t\t\t * the paired SMA1 output.\n@@ -1329,18 +1339,21 @@ ice_dpll_ufl_pin_state_set(const struct dpll_pin *pin, void *pin_priv,\n \t\t\t}\n \t\t\tdata |= ICE_SMA1_TX_EN;\n \t\t\tenable = false;\n-\t\t} else {\n+\t\t\tbreak;\n+\t\tdefault:\n \t\t\tgoto unlock;\n \t\t}\n \t\ttarget = p-\u003eoutput;\n \t\ttype = ICE_DPLL_PIN_TYPE_OUTPUT;\n \t\tbreak;\n \tcase ICE_DPLL_PIN_SW_2_IDX:\n-\t\tif (state == DPLL_PIN_STATE_SELECTABLE) {\n+\t\tswitch (state) {\n+\t\tcase DPLL_PIN_STATE_SELECTABLE:\n \t\t\tdata |= ICE_SMA2_DIR_EN;\n \t\t\tdata \u0026= ~ICE_SMA2_UFL2_RX_DIS;\n \t\t\tenable = true;\n-\t\t} else if (state == DPLL_PIN_STATE_DISCONNECTED) {\n+\t\t\tbreak;\n+\t\tcase DPLL_PIN_STATE_DISCONNECTED:\n \t\t\t/* Skip if U.FL2 is not active, setting\n \t\t\t * UFL2_RX_DIS could also disable the paired\n \t\t\t * SMA2 input.\n@@ -1352,7 +1365,8 @@ ice_dpll_ufl_pin_state_set(const struct dpll_pin *pin, void *pin_priv,\n \t\t\t}\n \t\t\tdata |= ICE_SMA2_UFL2_RX_DIS;\n \t\t\tenable = false;\n-\t\t} else {\n+\t\t\tbreak;\n+\t\tdefault:\n \t\t\tgoto unlock;\n \t\t}\n \t\ttarget = p-\u003einput;\n@@ -1368,19 +1382,90 @@ ice_dpll_ufl_pin_state_set(const struct dpll_pin *pin, void *pin_priv,\n \tret = ice_dpll_pin_state_update(pf, p, ICE_DPLL_PIN_TYPE_SOFTWARE,\n \t\t\t\t\textack);\n \tif (ret)\n-\t\tgoto unlock;\n+\t\tgoto restore_sma_ctrl;\n \n-\tif (enable)\n+\tif (enable) {\n \t\tret = ice_dpll_pin_enable(hw, target, d-\u003edpll_idx, type, extack);\n-\telse\n+\t\tif (!ret)\n+\t\t\tret = ice_dpll_pin_state_update(pf, target, type, extack);\n+\t\tif (!ret \u0026\u0026 p-\u003emuxed \u0026\u0026 p-\u003emuxed-\u003eactive) {\n+\t\t\tstruct ice_dpll_pin *peer = p-\u003emuxed;\n+\t\t\tstruct ice_dpll_pin *peer_target;\n+\t\t\tenum ice_dpll_pin_type peer_type;\n+\t\t\tint peer_ret;\n+\n+\t\t\tswitch (peer-\u003edirection) {\n+\t\t\tcase DPLL_PIN_DIRECTION_OUTPUT:\n+\t\t\t\tpeer_target = peer-\u003eoutput;\n+\t\t\t\tpeer_type = ICE_DPLL_PIN_TYPE_OUTPUT;\n+\t\t\t\tbreak;\n+\t\t\tcase DPLL_PIN_DIRECTION_INPUT:\n+\t\t\t\tpeer_target = peer-\u003einput;\n+\t\t\t\tpeer_type = ICE_DPLL_PIN_TYPE_INPUT;\n+\t\t\t\tbreak;\n+\t\t\tdefault:\n+\t\t\t\tret = -EINVAL;\n+\t\t\t\tgoto disable_pin;\n+\t\t\t}\n+\t\t\tif (!peer_target) {\n+\t\t\t\tret = -EINVAL;\n+\t\t\t\tgoto disable_pin;\n+\t\t\t}\n+\t\t\tpeer_ret = ice_dpll_pin_enable(\u0026pf-\u003ehw, peer_target,\n+\t\t\t\t\t       pf-\u003edplls.pps.dpll_idx \u003c ICE_DPLL_RCLK_NUM_MAX \u0026\u0026\n+\t\t\t\t\t       peer_target-\u003estate[pf-\u003edplls.pps.dpll_idx] == DPLL_PIN_STATE_CONNECTED ?\n+\t\t\t\t\t       pf-\u003edplls.pps.dpll_idx : pf-\u003edplls.eec.dpll_idx,\n+\t\t\t\t\t\t       peer_type, NULL);\n+\t\t\tif (!peer_ret)\n+\t\t\t\tpeer_ret = ice_dpll_pin_state_update(pf, peer_target,\n+\t\t\t\t\t\t\t     peer_type, NULL);\n+\t\t\tif (peer_ret) {\n+\t\t\t\tret = peer_ret;\n+\t\t\t\tgoto disable_pin;\n+\t\t\t}\n+\t\t}\n+\t} else {\n \t\tret = ice_dpll_pin_disable(hw, target, type, extack);\n-\tif (!ret)\n-\t\tret = ice_dpll_pin_state_update(pf, target, type, extack);\n+\t\tif (!ret)\n+\t\t\tret = ice_dpll_pin_state_update(pf, target, type, extack);\n+\t}\n+\n+\tgoto unlock;\n+\n+disable_pin:\n+\tice_dpll_pin_disable(hw, target, type, extack);\n+\tif (p-\u003emuxed \u0026\u0026 p-\u003emuxed-\u003eactive) {\n+\t\tstruct ice_dpll_pin *peer = p-\u003emuxed;\n+\t\tstruct ice_dpll_pin *peer_target = NULL;\n+\t\tenum ice_dpll_pin_type peer_type;\n+\n+\t\tif (peer-\u003edirection == DPLL_PIN_DIRECTION_OUTPUT) {\n+\t\t\tpeer_target = peer-\u003eoutput;\n+\t\t\tpeer_type = ICE_DPLL_PIN_TYPE_OUTPUT;\n+\t\t} else if (peer-\u003edirection == DPLL_PIN_DIRECTION_INPUT) {\n+\t\t\tpeer_target = peer-\u003einput;\n+\t\t\tpeer_type = ICE_DPLL_PIN_TYPE_INPUT;\n+\t\t}\n+\t\tif (peer_target)\n+\t\t\tice_dpll_pin_disable(\u0026pf-\u003ehw, peer_target, peer_type, extack);\n+\t}\n+restore_sma_ctrl:\n+\t{\n+\t\tint restore_ret;\n+\n+\t\trestore_ret = ice_write_sma_ctrl(hw, old_data);\n+\t\tif (!restore_ret)\n+\t\t\trestore_ret = ice_dpll_sw_pins_update(pf);\n+\t\tif (restore_ret)\n+\t\t\tdev_warn(ice_pf_to_dev(pf),\n+\t\t\t\t \"Failed to restore SMA control after pin state error %d, restore err %d\\n\",\n+\t\t\t\t ret, restore_ret);\n+\t}\n \n unlock:\n \tmutex_unlock(\u0026pf-\u003edplls.lock);\n \tif (!ret)\n-\t\tice_dpll_sw_pin_notify_peer(\u0026pf-\u003edplls, p);\n+\t\tice_dpll_sw_pin_notify_peer(p);\n \n \treturn ret;\n }\n@@ -1467,6 +1552,7 @@ ice_dpll_sma_pin_state_set(const struct dpll_pin *pin, void *pin_priv,\n \tstruct ice_dpll *d = dpll_priv;\n \tstruct ice_pf *pf = sma-\u003epf;\n \tenum ice_dpll_pin_type type;\n+\tu8 old_data = 0;\n \tbool enable;\n \tint ret;\n \n@@ -1479,28 +1565,164 @@ ice_dpll_sma_pin_state_set(const struct dpll_pin *pin, void *pin_priv,\n \t\tif (ret)\n \t\t\tgoto unlock;\n \t}\n-\tif (sma-\u003edirection == DPLL_PIN_DIRECTION_INPUT) {\n-\t\tenable = state == DPLL_PIN_STATE_SELECTABLE;\n+\tswitch (state) {\n+\tcase DPLL_PIN_STATE_SELECTABLE:\n+\t\tif (sma-\u003edirection == DPLL_PIN_DIRECTION_OUTPUT) {\n+\t\t\tenable = false;\n+\t\t\tret = -EINVAL;\n+\t\t\tgoto unlock;\n+\t\t}\n+\t\tenable = true;\n+\t\tbreak;\n+\tcase DPLL_PIN_STATE_CONNECTED:\n+\t\tif (sma-\u003edirection == DPLL_PIN_DIRECTION_INPUT) {\n+\t\t\tenable = false;\n+\t\t\tret = -EINVAL;\n+\t\t\tgoto unlock;\n+\t\t}\n+\t\tenable = true;\n+\t\tbreak;\n+\tcase DPLL_PIN_STATE_DISCONNECTED:\n+\t\tenable = false;\n+\t\tbreak;\n+\tdefault:\n+\t\tret = -EINVAL;\n+\t\tgoto unlock;\n+\t}\n+\n+\tswitch (sma-\u003edirection) {\n+\tcase DPLL_PIN_DIRECTION_INPUT:\n \t\ttarget = sma-\u003einput;\n \t\ttype = ICE_DPLL_PIN_TYPE_INPUT;\n-\t} else {\n-\t\tenable = state == DPLL_PIN_STATE_CONNECTED;\n+\t\tbreak;\n+\tcase DPLL_PIN_DIRECTION_OUTPUT:\n \t\ttarget = sma-\u003eoutput;\n \t\ttype = ICE_DPLL_PIN_TYPE_OUTPUT;\n+\t\tbreak;\n+\tdefault:\n+\t\tret = -EINVAL;\n+\t\tgoto unlock;\n \t}\n \n-\tif (enable)\n+\tif (enable) {\n+\t\tu8 data;\n+\n+\t\tret = ice_read_sma_ctrl(\u0026pf-\u003ehw, \u0026data);\n+\t\tif (ret)\n+\t\t\tgoto unlock;\n+\t\told_data = data;\n+\t\tswitch (sma-\u003eidx) {\n+\t\tcase ICE_DPLL_PIN_SW_1_IDX:\n+\t\t\tdata \u0026= ~ICE_SMA1_TX_EN;\n+\t\t\tbreak;\n+\t\tcase ICE_DPLL_PIN_SW_2_IDX:\n+\t\t\tdata \u0026= ~ICE_SMA2_UFL2_RX_DIS;\n+\t\t\tdata \u0026= ~ICE_SMA2_TX_EN;\n+\t\t\tbreak;\n+\t\tdefault:\n+\t\t\tret = -EINVAL;\n+\t\t\tgoto unlock;\n+\t\t}\n+\t\tret = ice_write_sma_ctrl(\u0026pf-\u003ehw, data);\n+\t\tif (ret)\n+\t\t\tgoto unlock;\n+\t\tret = ice_dpll_sw_pins_update(pf);\n+\t\tif (ret)\n+\t\t\tgoto restore_sma_ctrl;\n+\n \t\tret = ice_dpll_pin_enable(\u0026pf-\u003ehw, target, d-\u003edpll_idx, type,\n \t\t\t\t\t  extack);\n-\telse\n+\t\tif (ret)\n+\t\t\tgoto restore_sma_ctrl;\n+\t\t/* refresh target state first so a peer-side error cannot leave it stale */\n+\t\tret = ice_dpll_pin_state_update(pf, target, type, extack);\n+\t\tif (ret) {\n+\t\t\tice_dpll_pin_disable(\u0026pf-\u003ehw, target, type, extack);\n+\t\t\tgoto restore_sma_ctrl;\n+\t\t}\n+\n+\t\tif (sma-\u003emuxed \u0026\u0026 sma-\u003emuxed-\u003eactive) {\n+\t\t\tstruct ice_dpll_pin *peer = sma-\u003emuxed;\n+\t\t\tstruct ice_dpll_pin *peer_target;\n+\t\t\tenum ice_dpll_pin_type peer_type;\n+\n+\t\t\tswitch (peer-\u003edirection) {\n+\t\t\tcase DPLL_PIN_DIRECTION_OUTPUT:\n+\t\t\t\tpeer_target = peer-\u003eoutput;\n+\t\t\t\tpeer_type = ICE_DPLL_PIN_TYPE_OUTPUT;\n+\t\t\t\tbreak;\n+\t\t\tcase DPLL_PIN_DIRECTION_INPUT:\n+\t\t\t\tpeer_target = peer-\u003einput;\n+\t\t\t\tpeer_type = ICE_DPLL_PIN_TYPE_INPUT;\n+\t\t\t\tbreak;\n+\t\t\tdefault:\n+\t\t\t\tret = -EINVAL;\n+\t\t\t\tgoto disable_pin;\n+\t\t\t}\n+\t\t\tif (!peer_target) {\n+\t\t\t\tret = -EINVAL;\n+\t\t\t\tgoto disable_pin;\n+\t\t\t}\n+\t\t\tret = ice_dpll_pin_enable(\u0026pf-\u003ehw, peer_target,\n+\t\t\t\t\t\t  pf-\u003edplls.pps.dpll_idx \u003c ICE_DPLL_RCLK_NUM_MAX \u0026\u0026\n+\t\t\t\t\t\t    peer_target-\u003estate[pf-\u003edplls.pps.dpll_idx] == DPLL_PIN_STATE_CONNECTED ?\n+\t\t\t\t\t\t  pf-\u003edplls.pps.dpll_idx : pf-\u003edplls.eec.dpll_idx,\n+\t\t\t\t\t\t  peer_type, extack);\n+\t\t\tif (!ret)\n+\t\t\t\tret = ice_dpll_pin_state_update(pf, peer_target,\n+\t\t\t\t\t\t\t\tpeer_type, extack);\n+\t\t\tif (ret)\n+\t\t\t\tgoto disable_pin;\n+\t\t}\n+\t} else {\n \t\tret = ice_dpll_pin_disable(\u0026pf-\u003ehw, target, type, extack);\n+\t\tif (!ret)\n+\t\t\tret = ice_dpll_pin_state_update(pf, target, type,\n+\t\t\t\t\t\t\textack);\n+\t}\n+\tgoto unlock;\n+\n+disable_pin:\n \tif (!ret)\n-\t\tret = ice_dpll_pin_state_update(pf, target, type, extack);\n+\t\tret = -EINVAL;\n+\tice_dpll_pin_disable(\u0026pf-\u003ehw, target, type, extack);\n+\tif (sma-\u003emuxed \u0026\u0026 sma-\u003emuxed-\u003eactive) {\n+\t\tstruct ice_dpll_pin *peer = sma-\u003emuxed;\n+\t\tstruct ice_dpll_pin *peer_target = NULL;\n+\t\tenum ice_dpll_pin_type peer_type = ICE_DPLL_PIN_TYPE_INPUT;\n+\n+\t\tswitch (peer-\u003edirection) {\n+\t\tcase DPLL_PIN_DIRECTION_OUTPUT:\n+\t\t\tpeer_target = peer-\u003eoutput;\n+\t\t\tpeer_type = ICE_DPLL_PIN_TYPE_OUTPUT;\n+\t\t\tbreak;\n+\t\tcase DPLL_PIN_DIRECTION_INPUT:\n+\t\t\tpeer_target = peer-\u003einput;\n+\t\t\tpeer_type = ICE_DPLL_PIN_TYPE_INPUT;\n+\t\t\tbreak;\n+\t\tdefault:\n+\t\t\tbreak;\n+\t\t}\n+\t\tif (peer_target)\n+\t\t\tice_dpll_pin_disable(\u0026pf-\u003ehw, peer_target, peer_type, extack);\n+\t}\n+restore_sma_ctrl:\n+\t{\n+\t\tint restore_ret;\n+\n+\t\trestore_ret = ice_write_sma_ctrl(\u0026pf-\u003ehw, old_data);\n+\t\tif (!restore_ret)\n+\t\t\trestore_ret = ice_dpll_sw_pins_update(pf);\n+\t\tif (restore_ret)\n+\t\t\tdev_warn(ice_pf_to_dev(pf),\n+\t\t\t\t \"Failed to restore SMA control after pin state error %d, restore err %d\\n\",\n+\t\t\t\t ret, restore_ret);\n+\t}\n \n unlock:\n \tmutex_unlock(\u0026pf-\u003edplls.lock);\n \tif (!ret)\n-\t\tice_dpll_sw_pin_notify_peer(\u0026pf-\u003edplls, sma);\n+\t\tice_dpll_sw_pin_notify_peer(sma);\n \n \treturn ret;\n }\n@@ -1697,7 +1919,7 @@ ice_dpll_pin_sma_direction_set(const struct dpll_pin *pin, void *pin_priv,\n \tret = ice_dpll_sma_direction_set(p, direction, extack);\n \tmutex_unlock(\u0026pf-\u003edplls.lock);\n \tif (!ret)\n-\t\tice_dpll_sw_pin_notify_peer(\u0026pf-\u003edplls, p);\n+\t\tice_dpll_sw_pin_notify_peer(p);\n \n \treturn ret;\n }\n@@ -4514,6 +4736,8 @@ static int ice_dpll_init_info_sw_pins(struct ice_pf *pf)\n \t\tif (pin-\u003einput-\u003eref_sync)\n \t\t\tpin-\u003eref_sync = pin-\u003einput-\u003eref_sync - pin_abs_idx;\n \t\tpin-\u003eoutput = \u0026d-\u003eoutputs[ICE_DPLL_PIN_SW_OUTPUT_ABS(i)];\n+\t\tpin-\u003emuxed = \u0026d-\u003eufl[i];\n+\n \t\tice_dpll_phase_range_set(\u0026pin-\u003eprop.phase_range, phase_adj_max);\n \t}\n \tfor (i = 0; i \u003c ICE_DPLL_PIN_SW_NUM; i++) {\n@@ -4523,7 +4747,8 @@ static int ice_dpll_init_info_sw_pins(struct ice_pf *pf)\n \t\tpin-\u003eprop.capabilities = caps;\n \t\tpin-\u003epf = pf;\n \t\tpin-\u003eprop.board_label = ice_dpll_sw_pin_ufl[i];\n-\t\tif (i == ICE_DPLL_PIN_SW_1_IDX) {\n+\t\tswitch (i) {\n+\t\tcase ICE_DPLL_PIN_SW_1_IDX:\n \t\t\tpin-\u003edirection = DPLL_PIN_DIRECTION_OUTPUT;\n \t\t\tpin_abs_idx = ICE_DPLL_PIN_SW_OUTPUT_ABS(i);\n \t\t\tpin-\u003eprop.freq_supported =\n@@ -4533,7 +4758,8 @@ static int ice_dpll_init_info_sw_pins(struct ice_pf *pf)\n \t\t\tpin-\u003eprop.freq_supported_num = freq_supp_num;\n \t\t\tpin-\u003einput = NULL;\n \t\t\tpin-\u003eoutput = \u0026d-\u003eoutputs[pin_abs_idx];\n-\t\t} else if (i == ICE_DPLL_PIN_SW_2_IDX) {\n+\t\t\tbreak;\n+\t\tcase ICE_DPLL_PIN_SW_2_IDX:\n \t\t\tpin-\u003edirection = DPLL_PIN_DIRECTION_INPUT;\n \t\t\tpin_abs_idx = ICE_DPLL_PIN_SW_INPUT_ABS(i) +\n \t\t\t\t      input_idx_offset;\n@@ -4546,7 +4772,12 @@ static int ice_dpll_init_info_sw_pins(struct ice_pf *pf)\n \t\t\tpin-\u003eprop.capabilities =\n \t\t\t\t(DPLL_PIN_CAPABILITIES_PRIORITY_CAN_CHANGE |\n \t\t\t\t caps);\n+\t\t\tbreak;\n+\t\tdefault:\n+\t\t\tdev_err(ice_pf_to_dev(pf), \"Invalid U.FL pin index: %d\\n\", i);\n+\t\t\treturn -EINVAL;\n \t\t}\n+\t\tpin-\u003emuxed = \u0026d-\u003esma[i];\n \t\tice_dpll_phase_range_set(\u0026pin-\u003eprop.phase_range, phase_adj_max);\n \t}\n \ndiff --git a/drivers/net/ethernet/intel/ice/ice_dpll.h b/drivers/net/ethernet/intel/ice/ice_dpll.h\nindex 103ba3e490682c..dc6f096bf069a1 100644\n--- a/drivers/net/ethernet/intel/ice/ice_dpll.h\n+++ b/drivers/net/ethernet/intel/ice/ice_dpll.h\n@@ -76,6 +76,7 @@ struct ice_dpll_pin {\n \ts32 phase_adjust;\n \tstruct ice_dpll_pin *input;\n \tstruct ice_dpll_pin *output;\n+\tstruct ice_dpll_pin *muxed;\n \tenum dpll_pin_direction direction;\n \ts64 phase_offset;\n \tu8 status;\n"
}

2/1 2026/07/25 18:26 agent patch-evaluator
0m Model:
best-expensive

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch modifies the Intel Ethernet Connection E800 Series (ice) driver, specifically its DPLL and SMA/U.FL pin handling logic. This driver requires physical Intel E800 series PCIe hardware which is not emulated in standard virtualized environments like QEMU. Therefore, the modified code is unreachable during fuzzing.",
  "WorthFuzzing": false
}

Instruction:
You are an expert Linux kernel maintainer.
Your job is to review a provided patch series and determine
if it makes functional changes to the kernel that should be fuzzed.

IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively
use your code access tools to examine the actual source code and confirm any assumptions.

Return WorthFuzzing=false if the patch only contains:
- Modifications to Documentation/, Kconfig files, or code comments.
- Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints.
- Changes to numeric constants or macros that do not functionally alter execution flow.
- Code paths that are impossible to reach in virtualized environments like GCE or QEMU,
  even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim).
- Code in vendor-specific PCIe switch, SmartNIC, or GPU drivers (e.g., mlxsw, pds_core, qed,
  ionic, amdgpu) that require physical PCIe hardware cards not emulated in standard QEMU.
- Driver .remove, .shutdown, or pci_unregister_driver teardown callbacks (e.g., igb_remove)
  that are executed only during PCI hot-unplug or sysfs driver unbind operations.

If it modifies reachable core kernel logic, drivers, or architectures, use your code search
tools to verify the code can be executed, then return WorthFuzzing=true.

When returning WorthFuzzing=true, you MUST ALSO:
1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols.
   Avoid listing generic hot-path functions to prevent skewed test distributions.
   Prefer non-static, non-inlined API entrypoint functions over internal static helper functions
   (which are inlined by the compiler and do not have distinct symbol addresses).
2. Identify any specific CONFIG_ options required to properly test this new/modified feature.
   Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions.
   Also check "depends on" lines in Kconfig to include any non-standard parent subsystem configs
   needed for Kbuild to compile the code statically into vmlinux. List them in the EnableConfigs
   output array, and DO NOT add a 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
For your convenience, here is the diff of the changes:
commit a0fc82476d045c5d03dca750536efd03799e7705
Author: syz-cluster <triage@syzkaller.com>
Date:   Sat Jul 25 18:26:05 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/net/ethernet/intel/ice/ice_dpll.c b/drivers/net/ethernet/intel/ice/ice_dpll.c
index 30c3a4db7d611c..210a2a2b24bb3c 100644
--- a/drivers/net/ethernet/intel/ice/ice_dpll.c
+++ b/drivers/net/ethernet/intel/ice/ice_dpll.c
@@ -538,6 +538,29 @@ ice_dpll_pin_disable(struct ice_hw *hw, struct ice_dpll_pin *pin,
 	return ret;
 }
 
+/**
+ * ice_dpll_sw_pin_notify_peer - notify the paired SW pin after a state change
+ * @changed: the SW pin that was explicitly changed (already notified by dpll core)
+ *
+ * SMA and U.FL pins share physical signal paths in pairs (SMA1/U.FL1 and
+ * SMA2/U.FL2).  When one pin's routing changes via the PCA9575 GPIO
+ * expander, the paired pin's state may also change.  Send a change
+ * notification for the peer pin so userspace consumers monitoring the
+ * peer via dpll netlink learn about the update.
+ *
+ * Context: Called from dpll_pin_ops callbacks after pf->dplls.lock is
+ *          released.  Uses __dpll_pin_change_ntf() because dpll_lock is
+ *          still held by the dpll netlink layer.
+ */
+static void ice_dpll_sw_pin_notify_peer(struct ice_dpll_pin *changed)
+{
+	struct ice_dpll_pin *peer;
+
+	peer = changed->muxed;
+	if (peer->pin)
+		__dpll_pin_change_ntf(peer->pin);
+}
+
 /**
  * ice_dpll_pin_store_state - updates the state of pin in SW bookkeeping
  * @pin: pointer to a pin
@@ -669,10 +692,10 @@ ice_dpll_sw_pins_update(struct ice_pf *pf)
 	p = &d->sma[ICE_DPLL_PIN_SW_2_IDX];
 	p->active = true;
 	p->direction = DPLL_PIN_DIRECTION_INPUT;
+	if (data & ICE_SMA2_DIR_EN)
+		p->direction = DPLL_PIN_DIRECTION_OUTPUT;
 	if ((data & ICE_SMA2_INACTIVE_MASK) == ICE_SMA2_INACTIVE_MASK)
 		p->active = false;
-	else if (data & ICE_SMA2_DIR_EN)
-		p->direction = DPLL_PIN_DIRECTION_OUTPUT;
 
 	p = &d->ufl[ICE_DPLL_PIN_SW_1_IDX];
 	if (!(data & (ICE_SMA1_DIR_EN | ICE_SMA1_TX_EN)))
@@ -1163,32 +1186,6 @@ ice_dpll_input_state_get(const struct dpll_pin *pin, void *pin_priv,
 				      extack, ICE_DPLL_PIN_TYPE_INPUT);
 }
 
-/**
- * ice_dpll_sw_pin_notify_peer - notify the paired SW pin after a state change
- * @d: pointer to dplls struct
- * @changed: the SW pin that was explicitly changed (already notified by dpll core)
- *
- * SMA and U.FL pins share physical signal paths in pairs (SMA1/U.FL1 and
- * SMA2/U.FL2).  When one pin's routing changes via the PCA9575 GPIO
- * expander, the paired pin's state may also change.  Send a change
- * notification for the peer pin so userspace consumers monitoring the
- * peer via dpll netlink learn about the update.
- *
- * Context: Called from dpll_pin_ops callbacks after pf->dplls.lock is
- *          released.  Uses __dpll_pin_change_ntf() because dpll_lock is
- *          still held by the dpll netlink layer.
- */
-static void ice_dpll_sw_pin_notify_peer(struct ice_dplls *d,
-					struct ice_dpll_pin *changed)
-{
-	struct ice_dpll_pin *peer;
-
-	peer = (changed >= d->sma && changed < d->sma + ICE_DPLL_PIN_SW_NUM) ?
-		&d->ufl[changed->idx] : &d->sma[changed->idx];
-	if (peer->pin)
-		__dpll_pin_change_ntf(peer->pin);
-}
-
 /**
  * ice_dpll_sma_direction_set - set direction of SMA pin
  * @p: pointer to a pin
@@ -1219,17 +1216,21 @@ static int ice_dpll_sma_direction_set(struct ice_dpll_pin *p,
 
 	switch (p->idx) {
 	case ICE_DPLL_PIN_SW_1_IDX:
-		data &= ~ICE_SMA1_MASK;
-		if (direction == DPLL_PIN_DIRECTION_OUTPUT)
+		if (direction == DPLL_PIN_DIRECTION_OUTPUT) {
+			data &= ~ICE_SMA1_TX_EN;
 			data |= ICE_SMA1_DIR_EN;
+		} else {
+			data &= ~ICE_SMA1_DIR_EN;
+			data &= ~ICE_SMA1_TX_EN;
+		}
 		break;
 	case ICE_DPLL_PIN_SW_2_IDX:
 		if (direction == DPLL_PIN_DIRECTION_INPUT) {
 			data &= ~ICE_SMA2_DIR_EN;
-			data |= ICE_SMA2_UFL2_RX_DIS;
 		} else {
-			data &= ~(ICE_SMA2_TX_EN | ICE_SMA2_UFL2_RX_DIS);
 			data |= ICE_SMA2_DIR_EN;
+			data &= ~ICE_SMA2_UFL2_RX_DIS;
+			data &= ~ICE_SMA2_TX_EN;
 		}
 		break;
 	default:
@@ -1250,7 +1251,7 @@ static int ice_dpll_sma_direction_set(struct ice_dpll_pin *p,
 	 * backing pin when U.FL becomes inactive because the SMA pin may
 	 * still be using it.
 	 */
-	peer = &d->ufl[p->idx];
+	peer = p->muxed;
 	if (peer->active) {
 		struct ice_dpll_pin *target;
 		enum ice_dpll_pin_type type;
@@ -1258,12 +1259,17 @@ static int ice_dpll_sma_direction_set(struct ice_dpll_pin *p,
 		if (peer->output) {
 			target = peer->output;
 			type = ICE_DPLL_PIN_TYPE_OUTPUT;
-		} else {
+		} else if (peer->input) {
 			target = peer->input;
 			type = ICE_DPLL_PIN_TYPE_INPUT;
+		} else {
+			return -EINVAL;
 		}
+
 		ret = ice_dpll_pin_enable(&p->pf->hw, target,
-					  d->eec.dpll_idx, type, extack);
+                                         d->pps.dpll_idx < ICE_DPLL_RCLK_NUM_MAX &&
+                                          target->state[d->pps.dpll_idx] == DPLL_PIN_STATE_CONNECTED ?
+					  d->pps.dpll_idx : d->eec.dpll_idx, type, extack);
 		if (!ret)
 			ret = ice_dpll_pin_state_update(p->pf, target,
 							type, extack);
@@ -1299,6 +1305,7 @@ ice_dpll_ufl_pin_state_set(const struct dpll_pin *pin, void *pin_priv,
 	enum ice_dpll_pin_type type;
 	struct ice_pf *pf = p->pf;
 	struct ice_hw *hw;
+	u8 old_data = 0;
 	bool enable;
 	u8 data;
 	int ret;
@@ -1311,14 +1318,17 @@ ice_dpll_ufl_pin_state_set(const struct dpll_pin *pin, void *pin_priv,
 	ret = ice_read_sma_ctrl(hw, &data);
 	if (ret)
 		goto unlock;
+	old_data = data;
 
 	ret = -EINVAL;
 	switch (p->idx) {
 	case ICE_DPLL_PIN_SW_1_IDX:
-		if (state == DPLL_PIN_STATE_CONNECTED) {
+		switch (state) {
+		case DPLL_PIN_STATE_CONNECTED:
 			data &= ~ICE_SMA1_MASK;
 			enable = true;
-		} else if (state == DPLL_PIN_STATE_DISCONNECTED) {
+			break;
+		case DPLL_PIN_STATE_DISCONNECTED:
 			/* Skip if U.FL1 is not active, setting TX_EN
 			 * while DIR_EN is set would also deactivate
 			 * the paired SMA1 output.
@@ -1329,18 +1339,21 @@ ice_dpll_ufl_pin_state_set(const struct dpll_pin *pin, void *pin_priv,
 			}
 			data |= ICE_SMA1_TX_EN;
 			enable = false;
-		} else {
+			break;
+		default:
 			goto unlock;
 		}
 		target = p->output;
 		type = ICE_DPLL_PIN_TYPE_OUTPUT;
 		break;
 	case ICE_DPLL_PIN_SW_2_IDX:
-		if (state == DPLL_PIN_STATE_SELECTABLE) {
+		switch (state) {
+		case DPLL_PIN_STATE_SELECTABLE:
 			data |= ICE_SMA2_DIR_EN;
 			data &= ~ICE_SMA2_UFL2_RX_DIS;
 			enable = true;
-		} else if (state == DPLL_PIN_STATE_DISCONNECTED) {
+			break;
+		case DPLL_PIN_STATE_DISCONNECTED:
 			/* Skip if U.FL2 is not active, setting
 			 * UFL2_RX_DIS could also disable the paired
 			 * SMA2 input.
@@ -1352,7 +1365,8 @@ ice_dpll_ufl_pin_state_set(const struct dpll_pin *pin, void *pin_priv,
 			}
 			data |= ICE_SMA2_UFL2_RX_DIS;
 			enable = false;
-		} else {
+			break;
+		default:
 			goto unlock;
 		}
 		target = p->input;
@@ -1368,19 +1382,90 @@ ice_dpll_ufl_pin_state_set(const struct dpll_pin *pin, void *pin_priv,
 	ret = ice_dpll_pin_state_update(pf, p, ICE_DPLL_PIN_TYPE_SOFTWARE,
 					extack);
 	if (ret)
-		goto unlock;
+		goto restore_sma_ctrl;
 
-	if (enable)
+	if (enable) {
 		ret = ice_dpll_pin_enable(hw, target, d->dpll_idx, type, extack);
-	else
+		if (!ret)
+			ret = ice_dpll_pin_state_update(pf, target, type, extack);
+		if (!ret && p->muxed && p->muxed->active) {
+			struct ice_dpll_pin *peer = p->muxed;
+			struct ice_dpll_pin *peer_target;
+			enum ice_dpll_pin_type peer_type;
+			int peer_ret;
+
+			switch (peer->direction) {
+			case DPLL_PIN_DIRECTION_OUTPUT:
+				peer_target = peer->output;
+				peer_type = ICE_DPLL_PIN_TYPE_OUTPUT;
+				break;
+			case DPLL_PIN_DIRECTION_INPUT:
+				peer_target = peer->input;
+				peer_type = ICE_DPLL_PIN_TYPE_INPUT;
+				break;
+			default:
+				ret = -EINVAL;
+				goto disable_pin;
+			}
+			if (!peer_target) {
+				ret = -EINVAL;
+				goto disable_pin;
+			}
+			peer_ret = ice_dpll_pin_enable(&pf->hw, peer_target,
+					       pf->dplls.pps.dpll_idx < ICE_DPLL_RCLK_NUM_MAX &&
+					       peer_target->state[pf->dplls.pps.dpll_idx] == DPLL_PIN_STATE_CONNECTED ?
+					       pf->dplls.pps.dpll_idx : pf->dplls.eec.dpll_idx,
+						       peer_type, NULL);
+			if (!peer_ret)
+				peer_ret = ice_dpll_pin_state_update(pf, peer_target,
+							     peer_type, NULL);
+			if (peer_ret) {
+				ret = peer_ret;
+				goto disable_pin;
+			}
+		}
+	} else {
 		ret = ice_dpll_pin_disable(hw, target, type, extack);
-	if (!ret)
-		ret = ice_dpll_pin_state_update(pf, target, type, extack);
+		if (!ret)
+			ret = ice_dpll_pin_state_update(pf, target, type, extack);
+	}
+
+	goto unlock;
+
+disable_pin:
+	ice_dpll_pin_disable(hw, target, type, extack);
+	if (p->muxed && p->muxed->active) {
+		struct ice_dpll_pin *peer = p->muxed;
+		struct ice_dpll_pin *peer_target = NULL;
+		enum ice_dpll_pin_type peer_type;
+
+		if (peer->direction == DPLL_PIN_DIRECTION_OUTPUT) {
+			peer_target = peer->output;
+			peer_type = ICE_DPLL_PIN_TYPE_OUTPUT;
+		} else if (peer->direction == DPLL_PIN_DIRECTION_INPUT) {
+			peer_target = peer->input;
+			peer_type = ICE_DPLL_PIN_TYPE_INPUT;
+		}
+		if (peer_target)
+			ice_dpll_pin_disable(&pf->hw, peer_target, peer_type, extack);
+	}
+restore_sma_ctrl:
+	{
+		int restore_ret;
+
+		restore_ret = ice_write_sma_ctrl(hw, old_data);
+		if (!restore_ret)
+			restore_ret = ice_dpll_sw_pins_update(pf);
+		if (restore_ret)
+			dev_warn(ice_pf_to_dev(pf),
+				 "Failed to restore SMA control after pin state error %d, restore err %d\n",
+				 ret, restore_ret);
+	}
 
 unlock:
 	mutex_unlock(&pf->dplls.lock);
 	if (!ret)
-		ice_dpll_sw_pin_notify_peer(&pf->dplls, p);
+		ice_dpll_sw_pin_notify_peer(p);
 
 	return ret;
 }
@@ -1467,6 +1552,7 @@ ice_dpll_sma_pin_state_set(const struct dpll_pin *pin, void *pin_priv,
 	struct ice_dpll *d = dpll_priv;
 	struct ice_pf *pf = sma->pf;
 	enum ice_dpll_pin_type type;
+	u8 old_data = 0;
 	bool enable;
 	int ret;
 
@@ -1479,28 +1565,164 @@ ice_dpll_sma_pin_state_set(const struct dpll_pin *pin, void *pin_priv,
 		if (ret)
 			goto unlock;
 	}
-	if (sma->direction == DPLL_PIN_DIRECTION_INPUT) {
-		enable = state == DPLL_PIN_STATE_SELECTABLE;
+	switch (state) {
+	case DPLL_PIN_STATE_SELECTABLE:
+		if (sma->direction == DPLL_PIN_DIRECTION_OUTPUT) {
+			enable = false;
+			ret = -EINVAL;
+			goto unlock;
+		}
+		enable = true;
+		break;
+	case DPLL_PIN_STATE_CONNECTED:
+		if (sma->direction == DPLL_PIN_DIRECTION_INPUT) {
+			enable = false;
+			ret = -EINVAL;
+			goto unlock;
+		}
+		enable = true;
+		break;
+	case DPLL_PIN_STATE_DISCONNECTED:
+		enable = false;
+		break;
+	default:
+		ret = -EINVAL;
+		goto unlock;
+	}
+
+	switch (sma->direction) {
+	case DPLL_PIN_DIRECTION_INPUT:
 		target = sma->input;
 		type = ICE_DPLL_PIN_TYPE_INPUT;
-	} else {
-		enable = state == DPLL_PIN_STATE_CONNECTED;
+		break;
+	case DPLL_PIN_DIRECTION_OUTPUT:
 		target = sma->output;
 		type = ICE_DPLL_PIN_TYPE_OUTPUT;
+		break;
+	default:
+		ret = -EINVAL;
+		goto unlock;
 	}
 
-	if (enable)
+	if (enable) {
+		u8 data;
+
+		ret = ice_read_sma_ctrl(&pf->hw, &data);
+		if (ret)
+			goto unlock;
+		old_data = data;
+		switch (sma->idx) {
+		case ICE_DPLL_PIN_SW_1_IDX:
+			data &= ~ICE_SMA1_TX_EN;
+			break;
+		case ICE_DPLL_PIN_SW_2_IDX:
+			data &= ~ICE_SMA2_UFL2_RX_DIS;
+			data &= ~ICE_SMA2_TX_EN;
+			break;
+		default:
+			ret = -EINVAL;
+			goto unlock;
+		}
+		ret = ice_write_sma_ctrl(&pf->hw, data);
+		if (ret)
+			goto unlock;
+		ret = ice_dpll_sw_pins_update(pf);
+		if (ret)
+			goto restore_sma_ctrl;
+
 		ret = ice_dpll_pin_enable(&pf->hw, target, d->dpll_idx, type,
 					  extack);
-	else
+		if (ret)
+			goto restore_sma_ctrl;
+		/* refresh target state first so a peer-side error cannot leave it stale */
+		ret = ice_dpll_pin_state_update(pf, target, type, extack);
+		if (ret) {
+			ice_dpll_pin_disable(&pf->hw, target, type, extack);
+			goto restore_sma_ctrl;
+		}
+
+		if (sma->muxed && sma->muxed->active) {
+			struct ice_dpll_pin *peer = sma->muxed;
+			struct ice_dpll_pin *peer_target;
+			enum ice_dpll_pin_type peer_type;
+
+			switch (peer->direction) {
+			case DPLL_PIN_DIRECTION_OUTPUT:
+				peer_target = peer->output;
+				peer_type = ICE_DPLL_PIN_TYPE_OUTPUT;
+				break;
+			case DPLL_PIN_DIRECTION_INPUT:
+				peer_target = peer->input;
+				peer_type = ICE_DPLL_PIN_TYPE_INPUT;
+				break;
+			default:
+				ret = -EINVAL;
+				goto disable_pin;
+			}
+			if (!peer_target) {
+				ret = -EINVAL;
+				goto disable_pin;
+			}
+			ret = ice_dpll_pin_enable(&pf->hw, peer_target,
+						  pf->dplls.pps.dpll_idx < ICE_DPLL_RCLK_NUM_MAX &&
+						    peer_target->state[pf->dplls.pps.dpll_idx] == DPLL_PIN_STATE_CONNECTED ?
+						  pf->dplls.pps.dpll_idx : pf->dplls.eec.dpll_idx,
+						  peer_type, extack);
+			if (!ret)
+				ret = ice_dpll_pin_state_update(pf, peer_target,
+								peer_type, extack);
+			if (ret)
+				goto disable_pin;
+		}
+	} else {
 		ret = ice_dpll_pin_disable(&pf->hw, target, type, extack);
+		if (!ret)
+			ret = ice_dpll_pin_state_update(pf, target, type,
+							extack);
+	}
+	goto unlock;
+
+disable_pin:
 	if (!ret)
-		ret = ice_dpll_pin_state_update(pf, target, type, extack);
+		ret = -EINVAL;
+	ice_dpll_pin_disable(&pf->hw, target, type, extack);
+	if (sma->muxed && sma->muxed->active) {
+		struct ice_dpll_pin *peer = sma->muxed;
+		struct ice_dpll_pin *peer_target = NULL;
+		enum ice_dpll_pin_type peer_type = ICE_DPLL_PIN_TYPE_INPUT;
+
+		switch (peer->direction) {
+		case DPLL_PIN_DIRECTION_OUTPUT:
+			peer_target = peer->output;
+			peer_type = ICE_DPLL_PIN_TYPE_OUTPUT;
+			break;
+		case DPLL_PIN_DIRECTION_INPUT:
+			peer_target = peer->input;
+			peer_type = ICE_DPLL_PIN_TYPE_INPUT;
+			break;
+		default:
+			break;
+		}
+		if (peer_target)
+			ice_dpll_pin_disable(&pf->hw, peer_target, peer_type, extack);
+	}
+restore_sma_ctrl:
+	{
+		int restore_ret;
+
+		restore_ret = ice_write_sma_ctrl(&pf->hw, old_data);
+		if (!restore_ret)
+			restore_ret = ice_dpll_sw_pins_update(pf);
+		if (restore_ret)
+			dev_warn(ice_pf_to_dev(pf),
+				 "Failed to restore SMA control after pin state error %d, restore err %d\n",
+				 ret, restore_ret);
+	}
 
 unlock:
 	mutex_unlock(&pf->dplls.lock);
 	if (!ret)
-		ice_dpll_sw_pin_notify_peer(&pf->dplls, sma);
+		ice_dpll_sw_pin_notify_peer(sma);
 
 	return ret;
 }
@@ -1697,7 +1919,7 @@ ice_dpll_pin_sma_direction_set(const struct dpll_pin *pin, void *pin_priv,
 	ret = ice_dpll_sma_direction_set(p, direction, extack);
 	mutex_unlock(&pf->dplls.lock);
 	if (!ret)
-		ice_dpll_sw_pin_notify_peer(&pf->dplls, p);
+		ice_dpll_sw_pin_notify_peer(p);
 
 	return ret;
 }
@@ -4514,6 +4736,8 @@ static int ice_dpll_init_info_sw_pins(struct ice_pf *pf)
 		if (pin->input->ref_sync)
 			pin->ref_sync = pin->input->ref_sync - pin_abs_idx;
 		pin->output = &d->outputs[ICE_DPLL_PIN_SW_OUTPUT_ABS(i)];
+		pin->muxed = &d->ufl[i];
+
 		ice_dpll_phase_range_set(&pin->prop.phase_range, phase_adj_max);
 	}
 	for (i = 0; i < ICE_DPLL_PIN_SW_NUM; i++) {
@@ -4523,7 +4747,8 @@ static int ice_dpll_init_info_sw_pins(struct ice_pf *pf)
 		pin->prop.capabilities = caps;
 		pin->pf = pf;
 		pin->prop.board_label = ice_dpll_sw_pin_ufl[i];
-		if (i == ICE_DPLL_PIN_SW_1_IDX) {
+		switch (i) {
+		case ICE_DPLL_PIN_SW_1_IDX:
 			pin->direction = DPLL_PIN_DIRECTION_OUTPUT;
 			pin_abs_idx = ICE_DPLL_PIN_SW_OUTPUT_ABS(i);
 			pin->prop.freq_supported =
@@ -4533,7 +4758,8 @@ static int ice_dpll_init_info_sw_pins(struct ice_pf *pf)
 			pin->prop.freq_supported_num = freq_supp_num;
 			pin->input = NULL;
 			pin->output = &d->outputs[pin_abs_idx];
-		} else if (i == ICE_DPLL_PIN_SW_2_IDX) {
+			break;
+		case ICE_DPLL_PIN_SW_2_IDX:
 			pin->direction = DPLL_PIN_DIRECTION_INPUT;
 			pin_abs_idx = ICE_DPLL_PIN_SW_INPUT_ABS(i) +
 				      input_idx_offset;
@@ -4546,7 +4772,12 @@ static int ice_dpll_init_info_sw_pins(struct ice_pf *pf)
 			pin->prop.capabilities =
 				(DPLL_PIN_CAPABILITIES_PRIORITY_CAN_CHANGE |
 				 caps);
+			break;
+		default:
+			dev_err(ice_pf_to_dev(pf), "Invalid U.FL pin index: %d\n", i);
+			return -EINVAL;
 		}
+		pin->muxed = &d->sma[i];
 		ice_dpll_phase_range_set(&pin->prop.phase_range, phase_adj_max);
 	}
 
diff --git a/drivers/net/ethernet/intel/ice/ice_dpll.h b/drivers/net/ethernet/intel/ice/ice_dpll.h
index 103ba3e490682c..dc6f096bf069a1 100644
--- a/drivers/net/ethernet/intel/ice/ice_dpll.h
+++ b/drivers/net/ethernet/intel/ice/ice_dpll.h
@@ -76,6 +76,7 @@ struct ice_dpll_pin {
 	s32 phase_adjust;
 	struct ice_dpll_pin *input;
 	struct ice_dpll_pin *output;
+	struct ice_dpll_pin *muxed;
 	enum dpll_pin_direction direction;
 	s64 phase_offset;
 	u8 status;

3/2 2026/07/25 18:26 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 9021
							output: 100
							thoughts: 536
						

Thoughts:
**Analyzing the Reachability of Intel E800 Series DPLL Code for Fuzzing**

Okay, so I'm looking at a patch that touches `ice_dpll.c`, specifically dealing with DPLL and SMA/U.FL pins within the Intel Ethernet Connection E800 Series Linux Driver (`ice`). My initial thought is to figure out if this code is even reachable in a typical fuzzing setup, particularly in a virtualized environment. The `ice` driver is *very* specific to Intel E800 series PCIe network cards. My gut tells me this will be an issue.

I quickly check – does QEMU emulate the E800 series? No, not even close. QEMU's network emulation focuses on much older or more generic NICs like e1000, virtio-net, etc. This confirms my suspicion: QEMU doesn't offer any direct emulation of the `ice` device. I need to solidify this by confirming that the `ice` driver itself is targeted for *physical* PCIe devices.

I check the directory structure: `drivers/net/ethernet/intel/ice/` is definitely a physical PCIe device driver. So, without the hardware present, the `ice_probe` function will never find the device, and that's the starting point for registering the DPLL functionality. This immediately means the DPLL code, including functions like `ice_dpll_pin_disable` and `ice_dpll_sw_pin_notify_peer`, will not be executed.

I also double-check, just to be thorough, if there's any software emulation for the `ice` driver floating around. Nope, nothing.

The DPLL subsystem *might* be logically reachable in some hypothetical scenario, but the `ice` driver registers its DPLLs during the device probe. If the device isn't present, the probe won't run, DPLL registration will fail, and any callbacks registered to the DPLL system will remain dormant.

Okay, let's confirm this. I check the Kconfig file for the `ice` driver. Yup: `config ICE` with `depends on PCI`. Dead giveaway: it’s a physical PCIe device, not some software construct. It's utterly dependent on the presence of physical hardware not emulated in the usual QEMU setups I'd use for fuzzing.

Therefore, after a thorough investigation, the conclusion is clear: **WorthFuzzing=false**. The code changes are specific to physical Intel E800 series PCIe hardware. Without this specific hardware, the relevant code paths will never be executed. The DPLL functionality will never be probed. Thus, it's unreachable in standard fuzzing environments. I need to return `WorthFuzzing=false` with the reasoning that this requires physical Intel E800 series PCIe hardware.



4/2 2026/07/25 18:26 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch modifies the Intel Ethernet Connection E800 Series (ice) driver, specifically its DPLL and SMA/U.FL pin handling logic. This driver requires physical Intel E800 series PCIe hardware which is not emulated in standard virtualized environments like QEMU. Therefore, the modified code is unreachable during fuzzing.",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch modifies the Intel Ethernet Connection E800 Series (ice) driver, specifically its DPLL and SMA/U.FL pin handling logic. This driver requires physical Intel E800 series PCIe hardware which is not emulated in standard virtualized environments like QEMU. Therefore, the modified code is unreachable during fuzzing.",
  "WorthFuzzing": false
}

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)