Skip to contentSkip to conversation

firmware/isci: update to oem parameter format v1.3

PATCH Applied Dan Williams 2 participants 2 messages Jan 4, 2012 – Jan 5, 2012 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware/isci: update to oem parameter format v1.3

v1.1 allows finer grained tuning of the SSC (spread-spectrum-clocking) settings for SAS and SATA. See notes in probe_roms.h

v1.3 allows the attenuation of the attached cables to be specified to the driver in terms of 'short', 'medium', and 'long' (see probe_roms.h). These settings (per phy) are retrieved from the platform oem-parameters (BIOS rom), the fallback firmware blob, or via a module parameter override.

---
for linux-firmware.git

 isci/README            |    2 +
 isci/create_fw.c       |   53 +++++++++++++++--------------
 isci/create_fw.h       |   13 ++++++-
 isci/isci_firmware.bin |  Bin
 isci/probe_roms.h      |   89 ++++++++++++++++++++++++++++++++++++++++++++++--
 5 files changed, 125 insertions(+), 32 deletions(-)
isci/README +1 -1
index 8056d2b..8e63ac3 100644
@@ -31,6 +31,6 @@ Header Type - u8: 0xf
 
 ==============================================================================
 
-Place isci_firmware.bin in /lib/firmware
+Place isci_firmware.bin in /lib/firmware/isci
 Be sure to recreate the initramfs image to include the firmware.
 
isci/create_fw.c +27 -26

66 lines not on this page · raw message

isci/create_fw.h +11 -2
index 78c3ea7..f9b04ba 100644
@@ -58,11 +58,20 @@ static const unsigned long long sas_addr[2][4] = { { 0x5FCFFFFF00000001ULL,
 						     0x5FCFFFFF00000002ULL } };
 #endif
 
+static const int cable_selection[2][4];
+
 /* Maximum number of concurrent device spin up */
 static const int max_num_concurrent_dev_spin_up = 1;
 
 /* enable of ssc operation */
-static const int enable_ssc;
+/*
+ * NOTE: also see probe_roms.h. This value can be set for ssc values.
+ * Values can be set for:
+ * ssc_sata_tx_spread_level
+ * ssc_sas_tx_spread_level
+ * ssc_sas_tx_type
+ */
+static const __u8 enable_ssc;
 
 /* AFE_TX_AMP_CONTROL */
 static const unsigned int afe_tx_amp_control0 = 0x000bdd08;
@@ -72,6 +81,6 @@ static const unsigned int afe_tx_amp_control3 = 0x000afc6e;
 
 static const char blob_name[] = "isci_firmware.bin";
 static const char sig[] = "ISCUOEMB";
-static const unsigned char version = 0x10;
+static const unsigned char version = ISCI_ROM_VER_LATEST;
 
 #endif
isci/isci_firmware.bin binary +0 -0
index 963b3793ebdfef3a311f4aaf1b275ac0e221874c..4254fa4a6d25b70be8c8161aefe8a7b94906111a 100644
GIT binary patch
isci/probe_roms.h +86 -3

107 lines not on this page · raw message

#1 lore raw
Quoted 8 lines · Dan Williams

v1.1 allows finer grained tuning of the SSC (spread-spectrum-clocking) settings for SAS and SATA. See notes in probe_roms.h

v1.3 allows the attenuation of the attached cables to be specified to the driver in terms of 'short', 'medium', and 'long' (see probe_roms.h). These settings (per phy) are retrieved from the platform oem-parameters (BIOS rom), the fallback firmware blob, or via a module parameter override.

[...]

Applied, thanks.

Ben.

Signature · 2 lines
Ben Hutchings
Make three consecutive correct guesses and you will be considered an expert.