Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f0a433c authored by Jacob Keller's avatar Jacob Keller Committed by Jeff Kirsher
Browse files

ixgbe: show <2% for encoding loss on PCIe Gen3



This patch updates the ixgbe_check_minimum_link function to correctly show that
there is some minor loss of encoding, even though we don't calculate it in the
max GT/s equation. It is small enough to not bother, but is better to report it
than not.

Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Tested-by: default avatarPhil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 27d9ce4f
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -245,7 +245,7 @@ static void ixgbe_check_minimum_link(struct ixgbe_adapter *adapter,
		max_gts = 4 * width;
		max_gts = 4 * width;
		break;
		break;
	case PCIE_SPEED_8_0GT:
	case PCIE_SPEED_8_0GT:
		/* 128b/130b encoding only reduces throughput by 1% */
		/* 128b/130b encoding reduces throughput by less than 2% */
		max_gts = 8 * width;
		max_gts = 8 * width;
		break;
		break;
	default:
	default:
@@ -263,7 +263,7 @@ static void ixgbe_check_minimum_link(struct ixgbe_adapter *adapter,
		   width,
		   width,
		   (speed == PCIE_SPEED_2_5GT ? "20%" :
		   (speed == PCIE_SPEED_2_5GT ? "20%" :
		    speed == PCIE_SPEED_5_0GT ? "20%" :
		    speed == PCIE_SPEED_5_0GT ? "20%" :
		    speed == PCIE_SPEED_8_0GT ? "N/a" :
		    speed == PCIE_SPEED_8_0GT ? "<2%" :
		    "Unknown"));
		    "Unknown"));


	if (max_gts < expected_gts) {
	if (max_gts < expected_gts) {