--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: linux-image-3.2.0-4-amd64: ixgbe driver vendor-locks SFP+ optics
- From: Wilco Baan Hofman <wilco@baanhofman.nl>
- Date: Thu, 21 Feb 2013 14:23:34 +0100
- Message-id: <1361453014.29880.3.camel@localhost>
Source: linux-image-3.2.0-4-amd64
Severity: normal
Tags: patch upstream
ixgbe driver enforces vendor locking for SFP+ optics in the open source
driver.
Attaching a patch to address this issue.
-- System Information:
Distributor ID: Debian
Description: Debian
Release: 6.0.5
Codename: wheezy
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.7-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Description: Remove intel vendor lock for SFP(+) optics
Makes sure all optics will work.
.
Author: Wilco Baan Hofman <wilco@baanhofman.nl>
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: other
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Forwarded: no
Reviewed-By: Wilco Baan Hofman <wilco@baanhofman.nl>
Last-Update: 2013-02-21
--- linux-3.2.35.orig/drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c
+++ linux-3.2.35/drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c
@@ -1068,9 +1068,11 @@ s32 ixgbe_identify_sfp_module_generic(st
if (hw->phy.type == ixgbe_phy_sfp_intel) {
status = 0;
} else {
- hw_dbg(hw, "SFP+ module not supported\n");
- hw->phy.type = ixgbe_phy_sfp_unsupported;
- status = IXGBE_ERR_SFP_NOT_SUPPORTED;
+ hw_dbg(hw, "SFP+ module not supported, but unlocking the card for you.\n");
+ enforce_sfp |= IXGBE_DEVICE_CAPS_ALLOW_ANY_SFP;
+ hw->eeprom.ops.write(hw, IXGBE_DEVICE_CAPS, enforce_sfp);
+ ixgbe_update_eeprom_checksum_generic(hw);
+ status = 0;
}
} else {
status = 0;
--- End Message ---