Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH 1/1] ixgbe: correct SDP0 check of SFP cage for X550
@ 2022-04-20 20:51 Jeff Daly
  2022-04-22 22:52 ` Jakub Kicinski
  2022-04-25 13:17 ` [Intel-wired-lan] [PATCH v2 " Jeff Daly
  0 siblings, 2 replies; 8+ messages in thread
From: Jeff Daly @ 2022-04-20 20:51 UTC (permalink / raw)
  To: intel-wired-lan

SDP0 for X550 NICs is active low to indicate the presence of an SFP in the
cage (MOD_ABS#).  Invert the results of the logical AND to set
sfp_cage_full variable correctly.

Fixes: aac9e053f104 ("ixgbe: cleanup crosstalk fix")

Suggested-by: Stephen Douthit <stephend@silicom-usa.com>
Signed-off-by: Jeff Daly <jeffd@silicom-usa.com>
---
 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
index 4c26c4b92f07..26d16bc85c59 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
@@ -3308,8 +3308,8 @@ s32 ixgbe_check_mac_link_generic(struct ixgbe_hw *hw, ixgbe_link_speed *speed,
 			break;
 		case ixgbe_mac_X550EM_x:
 		case ixgbe_mac_x550em_a:
-			sfp_cage_full = IXGBE_READ_REG(hw, IXGBE_ESDP) &
-					IXGBE_ESDP_SDP0;
+			sfp_cage_full = !(IXGBE_READ_REG(hw, IXGBE_ESDP) &
+					IXGBE_ESDP_SDP0);
 			break;
 		default:
 			/* sanity check - No SFP+ devices here */
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [Intel-wired-lan] [PATCH v2 1/1] ixgbe: correct SDP0 check of SFP cage for X550
@ 2022-05-10 11:21 Skajewski, PiotrX
  2022-05-10 11:28 ` Maciej Fijalkowski
  0 siblings, 1 reply; 8+ messages in thread
From: Skajewski, PiotrX @ 2022-05-10 11:21 UTC (permalink / raw)
  To: intel-wired-lan

Hi Jeff,

Our analysis (using 0x15c4) showed that every time the cage is empty SDP indicates 0 and when cage is full it indicates 1.
No matter what transceiver we used, from those we have.
The same happens even we don't use the device which fall into crosstalk fix e.g 0x15c2.

When proposed patch was applied, the devices are no longer able to negotiate speed.
so basically this patch should not be accepted.

NACK

BR,
Piotr

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-05-13 20:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-20 20:51 [Intel-wired-lan] [PATCH 1/1] ixgbe: correct SDP0 check of SFP cage for X550 Jeff Daly
2022-04-22 22:52 ` Jakub Kicinski
2022-04-25 13:17 ` [Intel-wired-lan] [PATCH v2 " Jeff Daly
2022-05-11  8:32   ` Piotr Skajewski
2022-05-12 17:09   ` Tony Nguyen
2022-05-13 20:38     ` Jeff Daly
  -- strict thread matches above, loose matches on Subject: below --
2022-05-10 11:21 Skajewski, PiotrX
2022-05-10 11:28 ` Maciej Fijalkowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox