Backport fixes from upstream 3.1 branch:
- i2c-tools-r6063-dont-choke-when-no-eeprom.diff: Don't choke when no EEPROM is found. - i2c-tools-r6106-vendors-JEP106AG.diff, - i2c-tools-r6107-vendors-JEP106AJ.diff: Update vendor list based on Jedec documents JEP106AG and JEP106AJ. - i2c-tools-r6108-remove-duplicate-ns.diff: Remove duplicate "ns" in SDR timings. - i2c-tools-r6109-fix-decoding-revision.diff: Fix decoding of SDR SPD revision. - i2c-tools-r6110-i2cdetect-clarify-probing.diff: Clarify the SMBus commands used for probing by default. - i2c-tools-r6121-typo-sprint.diff: Prevent hang on reserved DDR3 module type, caused by a typo in function name. - i2c-tools-r6122-more-DDR3-module-types.diff: Decode more DDR3 module types. OBS-URL: https://build.opensuse.org/package/show/Base:System/i2c-tools?expand=0&rev=21
This commit is contained in:
parent
b5637c1869
commit
eae9978104
40
i2c-tools-r6063-dont-choke-when-no-eeprom.diff
Normal file
40
i2c-tools-r6063-dont-choke-when-no-eeprom.diff
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
---
|
||||||
|
eeprom/decode-dimms | 11 ++++++-----
|
||||||
|
1 file changed, 6 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
--- i2c-tools-3.1.0.orig/eeprom/decode-dimms
|
||||||
|
+++ i2c-tools-3.1.0/eeprom/decode-dimms
|
||||||
|
@@ -1728,7 +1728,7 @@ sub sysfs_device_attribute
|
||||||
|
|
||||||
|
sub get_dimm_list
|
||||||
|
{
|
||||||
|
- my (@dirs, $dir, $file, @files);
|
||||||
|
+ my (@dirs, $dir, $opened, $file, @files);
|
||||||
|
|
||||||
|
if ($use_sysfs) {
|
||||||
|
@dirs = ('/sys/bus/i2c/drivers/eeprom', '/sys/bus/i2c/drivers/at24');
|
||||||
|
@@ -1738,6 +1738,7 @@ sub get_dimm_list
|
||||||
|
|
||||||
|
foreach $dir (@dirs) {
|
||||||
|
next unless opendir(local *DIR, $dir);
|
||||||
|
+ $opened++;
|
||||||
|
while (defined($file = readdir(DIR))) {
|
||||||
|
if ($use_sysfs) {
|
||||||
|
# We look for I2C devices like 0-0050 or 2-0051
|
||||||
|
@@ -1758,12 +1759,12 @@ sub get_dimm_list
|
||||||
|
close(DIR);
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (@files) {
|
||||||
|
- return sort { $a->{file} cmp $b->{file} } @files;
|
||||||
|
- } elsif (! -d '/sys/module/eeprom') {
|
||||||
|
- print "No EEPROM found, are you sure the eeprom module is loaded?\n";
|
||||||
|
+ if (!$opened) {
|
||||||
|
+ print STDERR "No EEPROM found, try loading the eeprom or at24 module\n";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+ return sort { $a->{file} cmp $b->{file} } @files;
|
||||||
|
}
|
||||||
|
|
||||||
|
# @dimm is a list of hashes. There's one hash for each EEPROM we found.
|
147
i2c-tools-r6106-vendors-JEP106AG.diff
Normal file
147
i2c-tools-r6106-vendors-JEP106AG.diff
Normal file
@ -0,0 +1,147 @@
|
|||||||
|
---
|
||||||
|
eeprom/decode-dimms | 69 ++++++++++++++++++++++++++++++++++++++++++----------
|
||||||
|
1 file changed, 56 insertions(+), 13 deletions(-)
|
||||||
|
|
||||||
|
--- i2c-tools-3.1.0.orig/eeprom/decode-dimms
|
||||||
|
+++ i2c-tools-3.1.0/eeprom/decode-dimms
|
||||||
|
@@ -63,17 +63,17 @@ $revision =~ s/ \([^()]*\)//;
|
||||||
|
"Lattice Semi.", "NCR", "Wafer Scale Integration", "IBM",
|
||||||
|
"Tristar", "Visic", "Intl. CMOS Technology", "SSSI",
|
||||||
|
"MicrochipTechnology", "Ricoh Ltd.", "VLSI", "Micron Technology",
|
||||||
|
- "Hyundai Electronics", "OKI Semiconductor", "ACTEL", "Sharp",
|
||||||
|
+ "Hynix Semiconductor Inc. (former Hyundai Electronics)", "OKI Semiconductor", "ACTEL", "Sharp",
|
||||||
|
"Catalyst", "Panasonic", "IDT", "Cypress",
|
||||||
|
"DEC", "LSI Logic", "Zarlink (former Plessey)", "UTMC",
|
||||||
|
"Thinking Machine", "Thomson CSF", "Integrated CMOS (Vertex)", "Honeywell",
|
||||||
|
- "Tektronix", "Sun Microsystems", "SST", "ProMos/Mosel Vitelic",
|
||||||
|
+ "Tektronix", "Oracle Corporation (former Sun Microsystems)", "Silicon Storage Technology", "ProMos/Mosel Vitelic",
|
||||||
|
"Infineon (former Siemens)", "Macronix", "Xerox", "Plus Logic",
|
||||||
|
"SunDisk", "Elan Circuit Tech.", "European Silicon Str.", "Apple Computer",
|
||||||
|
"Xilinx", "Compaq", "Protocol Engines", "SCI",
|
||||||
|
"Seiko Instruments", "Samsung", "I3 Design System", "Klic",
|
||||||
|
"Crosspoint Solutions", "Alliance Semiconductor", "Tandem", "Hewlett-Packard",
|
||||||
|
- "Intg. Silicon Solutions", "Brooktree", "New Media", "MHS Electronic",
|
||||||
|
+ "Integrated Silicon Solutions", "Brooktree", "New Media", "MHS Electronic",
|
||||||
|
"Performance Semi.", "Winbond Electronic", "Kawasaki Steel", "Bright Micro",
|
||||||
|
"TECMAR", "Exar", "PCMCIA", "LG Semi (former Goldstar)",
|
||||||
|
"Northern Telecom", "Sanyo", "Array Microsystems", "Crystal Semiconductor",
|
||||||
|
@@ -83,7 +83,7 @@ $revision =~ s/ \([^()]*\)//;
|
||||||
|
"Sony", "Cray Research", "AMS(Austria Micro)", "Vitesse",
|
||||||
|
"Aster Electronics", "Bay Networks (Synoptic)", "Zentrum or ZMD", "TRW",
|
||||||
|
"Thesys", "Solbourne Computer", "Allied-Signal", "Dialog",
|
||||||
|
- "Media Vision", "Level One Communication"],
|
||||||
|
+ "Media Vision", "Numonyx Corporation (former Level One Communication)"],
|
||||||
|
["Cirrus Logic", "National Instruments", "ILC Data Device", "Alcatel Mietec",
|
||||||
|
"Micro Linear", "Univ. of NC", "JTAG Technologies", "BAE Systems",
|
||||||
|
"Nchip", "Galileo Tech", "Bestlink Systems", "Graychip",
|
||||||
|
@@ -118,7 +118,7 @@ $revision =~ s/ \([^()]*\)//;
|
||||||
|
"Quadratics Superconductor", "3COM"],
|
||||||
|
["Camintonn Corporation", "ISOA Incorporated", "Agate Semiconductor", "ADMtek Incorporated",
|
||||||
|
"HYPERTEC", "Adhoc Technologies", "MOSAID Technologies", "Ardent Technologies",
|
||||||
|
- "Switchcore", "Cisco Systems, Inc.", "Allayer Technologies", "WorkX AG",
|
||||||
|
+ "Switchcore", "Cisco Systems, Inc.", "Allayer Technologies", "WorkX AG (Wichman)",
|
||||||
|
"Oasis Semiconductor", "Novanet Semiconductor", "E-M Solutions", "Power General",
|
||||||
|
"Advanced Hardware Arch.", "Inova Semiconductors GmbH", "Telocity", "Delkin Devices",
|
||||||
|
"Symagery Microsystems", "C-Port Corporation", "SiberCore Technologies", "Southland Microsystems",
|
||||||
|
@@ -128,7 +128,7 @@ $revision =~ s/ \([^()]*\)//;
|
||||||
|
"Chameleon Systems", "Aplus Flash Technology", "MIPS Technologies", "Chrysalis ITS",
|
||||||
|
"ADTEC Corporation", "Kentron Technologies", "Win Technologies", "Tachyon Semiconductor (former ASIC Designs Inc.)",
|
||||||
|
"Extreme Packet Devices", "RF Micro Devices", "Siemens AG", "Sarnoff Corporation",
|
||||||
|
- "Itautec Philco SA", "Radiata Inc.", "Benchmark Elect. (AVEX)", "Legend",
|
||||||
|
+ "Itautec SA (former Itautec Philco SA)", "Radiata Inc.", "Benchmark Elect. (AVEX)", "Legend",
|
||||||
|
"SpecTek Incorporated", "Hi/fn", "Enikia Incorporated", "SwitchOn Networks",
|
||||||
|
"AANetcom Incorporated", "Micro Memory Bank", "ESS Technology", "Virata Corporation",
|
||||||
|
"Excess Bandwidth", "West Bay Semiconductor", "DSP Group", "Newport Communications",
|
||||||
|
@@ -170,26 +170,26 @@ $revision =~ s/ \([^()]*\)//;
|
||||||
|
"PLX Technology", "Massana Design", "Intrinsity", "Valence Semiconductor",
|
||||||
|
"Terawave Communications", "IceFyre Semiconductor", "Primarion", "Picochip Designs Ltd",
|
||||||
|
"Silverback Systems", "Jade Star Technologies", "Pijnenburg Securealink",
|
||||||
|
- "TakeMS International AG", "Cambridge Silicon Radio",
|
||||||
|
+ "takeMS - Ultron AG (former Memorysolution GmbH)", "Cambridge Silicon Radio",
|
||||||
|
"Swissbit", "Nazomi Communications", "eWave System",
|
||||||
|
"Rockwell Collins", "Picocel Co., Ltd.", "Alphamosaic Ltd", "Sandburst",
|
||||||
|
"SiCon Video", "NanoAmp Solutions", "Ericsson Technology", "PrairieComm",
|
||||||
|
"Mitac International", "Layer N Networks", "MtekVision", "Allegro Networks",
|
||||||
|
"Marvell Semiconductors", "Netergy Microelectronic", "NVIDIA", "Internet Machines",
|
||||||
|
"Peak Electronics", "Litchfield Communication", "Accton Technology", "Teradiant Networks",
|
||||||
|
- "Europe Technologies", "Cortina Systems", "RAM Components", "Raqia Networks",
|
||||||
|
+ "Scaleo Chip (former Europe Technlogies)", "Cortina Systems", "RAM Components", "Raqia Networks",
|
||||||
|
"ClearSpeed", "Matsushita Battery", "Xelerated", "SimpleTech",
|
||||||
|
"Utron Technology", "Astec International", "AVM gmbH", "Redux Communications",
|
||||||
|
"Dot Hill Systems", "TeraChip"],
|
||||||
|
["T-RAM Incorporated", "Innovics Wireless", "Teknovus", "KeyEye Communications",
|
||||||
|
"Runcom Technologies", "RedSwitch", "Dotcast", "Silicon Mountain Memory",
|
||||||
|
"Signia Technologies", "Pixim", "Galazar Networks", "White Electronic Designs",
|
||||||
|
- "Patriot Scientific", "Neoaxiom Corporation", "3Y Power Technology", "Europe Technologies",
|
||||||
|
+ "Patriot Scientific", "Neoaxiom Corporation", "3Y Power Technology", "Scaleo Chip (former Europe Technologies)",
|
||||||
|
"Potentia Power Systems", "C-guys Incorporated", "Digital Communications Technology Incorporated", "Silicon-Based Technology",
|
||||||
|
"Fulcrum Microsystems", "Positivo Informatica Ltd", "XIOtech Corporation", "PortalPlayer",
|
||||||
|
- "Zhiying Software", "Direct2Data", "Phonex Broadband", "Skyworks Solutions",
|
||||||
|
+ "Zhiying Software", "Parker Vision, Inc. (former Direct2Data)", "Phonex Broadband", "Skyworks Solutions",
|
||||||
|
"Entropic Communications", "Pacific Force Technology", "Zensys A/S", "Legend Silicon Corp.",
|
||||||
|
- "sci-worx GmbH", "SMSC (former Oasis Silicon Systems)", "Renesas Technology", "Raza Microelectronics",
|
||||||
|
+ "sci-worx GmbH", "SMSC (former Oasis Silicon Systems)", "Renesas Electronics (former Renesas Technology)", "Raza Microelectronics",
|
||||||
|
"Phyworks", "MediaTek", "Non-cents Productions", "US Modular",
|
||||||
|
"Wintegra Ltd", "Mathstar", "StarCore", "Oplus Technologies",
|
||||||
|
"Mindspeed", "Just Young Computer", "Radia Communications", "OCZ",
|
||||||
|
@@ -220,7 +220,7 @@ $revision =~ s/ \([^()]*\)//;
|
||||||
|
"g2 Microsystems", "PowerFlash Semiconductor", "P.A. Semi, Inc.", "NovaTech Solutions, S.A.",
|
||||||
|
"c2 Microsystems, Inc.", "Level5 Networks", "COS Memory AG", "Innovasic Semiconductor",
|
||||||
|
"02IC Co. Ltd", "Tabula, Inc.", "Crucial Technology", "Chelsio Communications",
|
||||||
|
- "Solarflare Communications", "Xambala Inc.", "EADS Astrium", "ATO Semicon Co. Ltd.",
|
||||||
|
+ "Solarflare Communications", "Xambala Inc.", "EADS Astrium", "Terra Semiconductor Inc. (former ATO Semicon Co. Ltd.)",
|
||||||
|
"Imaging Works, Inc.", "Astute Networks, Inc.", "Tzero", "Emulex",
|
||||||
|
"Power-One", "Pulse~LINK Inc.", "Hon Hai Precision Industry", "White Rock Networks Inc.",
|
||||||
|
"Telegent Systems USA, Inc.", "Atrua Technologies, Inc.", "Acbel Polytech Inc.",
|
||||||
|
@@ -250,7 +250,50 @@ $revision =~ s/ \([^()]*\)//;
|
||||||
|
"Tec-Hill", "Multigig, Inc.", "Amimon", "Euphonic Technologies, Inc.", "BRN Phoenix",
|
||||||
|
"InSilica", "Ember Corporation", "Avexir Technologies Corporation", "Echelon Corporation",
|
||||||
|
"Edgewater Computer Systems", "XMOS Semiconductor Ltd.", "GENUSION, Inc.", "Memory Corp NV",
|
||||||
|
- "SiliconBlue Technologies", "Rambus Inc."]);
|
||||||
|
+ "SiliconBlue Technologies", "Rambus Inc.", "Andes Technology Corporation", "Coronis Systems",
|
||||||
|
+ "Achronix Semiconductor", "Siano Mobile Silicon Ltd.", "Semtech Corporation", "Pixelworks Inc.",
|
||||||
|
+ "Gaisler Research AB", "Teranetics", "Toppan Printing Co. Ltd.", "Kingxcon",
|
||||||
|
+ "Silicon Integrated Systems", "I-O Data Device, Inc.", "NDS Americas Inc.", "Solomon Systech Limited",
|
||||||
|
+ "On Demand Microelectronics", "Amicus Wireless Inc.", "SMARDTV SNC", "Comsys Communication Ltd.",
|
||||||
|
+ "Movidia Ltd.", "Javad GNSS, Inc.", "Montage Technology Group", "Trident Microsystems", "Super Talent",
|
||||||
|
+ "Optichron, Inc.", "Future Waves UK Ltd.", "SiBEAM, Inc.", "Inicore, Inc.", "Virident Systems",
|
||||||
|
+ "M2000, Inc.", "ZeroG Wireless, Inc.", "Gingle Technology Co. Ltd.", "Space Micro Inc.", "Wilocity",
|
||||||
|
+ "Novafora, Inc.", "iKoa Corporation", "ASint Technology", "Ramtron", "Plato Networks Inc.",
|
||||||
|
+ "IPtronics AS", "Infinite-Memories", "Parade Technologies Inc.", "Dune Networks",
|
||||||
|
+ "GigaDevice Semiconductor", "Modu Ltd.", "CEITEC", "Northrop Grumman", "XRONET Corporation",
|
||||||
|
+ "Sicon Semiconductor AB", "Atla Electronics Co. Ltd.", "TOPRAM Technology", "Silego Technology Inc.",
|
||||||
|
+ "Kinglife", "Ability Industries Ltd.", "Silicon Power Computer & Communications",
|
||||||
|
+ "Augusta Technology, Inc.", "Nantronics Semiconductors", "Hilscher Gesellschaft", "Quixant Ltd.",
|
||||||
|
+ "Percello Ltd.", "NextIO Inc.", "Scanimetrics Inc.", "FS-Semi Company Ltd.", "Infinera Corporation",
|
||||||
|
+ "SandForce Inc.", "Lexar Media", "Teradyne Inc.", "Memory Exchange Corp.", "Suzhou Smartek Electronics",
|
||||||
|
+ "Avantium Corporation", "ATP Electronics Inc.", "Valens Semiconductor Ltd", "Agate Logic, Inc.",
|
||||||
|
+ "Netronome", "Zenverge, Inc.", "N-trig Ltd", "SanMax Technologies Inc.", "Contour Semiconductor Inc.",
|
||||||
|
+ "TwinMOS", "Silicon Systems, Inc.", "V-Color Technology Inc.", "Certicom Corporation", "JSC ICC Milandr",
|
||||||
|
+ "PhotoFast Global Inc.", "InnoDisk Corporation", "Muscle Power", "Energy Micro", "Innofidei",
|
||||||
|
+ "CopperGate Communications", "Holtek Semiconductor Inc.", "Myson Century, Inc.", "FIDELIX",
|
||||||
|
+ "Red Digital Cinema", "Densbits Technology", "Zempro", "MoSys", "Provigent", "Triad Semiconductor, Inc."],
|
||||||
|
+["Siklu Communication Ltd.", "A Force Manufacturing Ltd.", "Strontium", "Abilis Systems", "Siglead, Inc.",
|
||||||
|
+ "Ubicom, Inc.", "Unifosa Corporation", "Stretch, Inc.", "Lantiq Deutschland GmbH", "Visipro",
|
||||||
|
+ "EKMemory", "Microelectronics Institute ZTE", "Cognovo Ltd.", "Carry Technology Co. Ltd.", "Nokia",
|
||||||
|
+ "King Tiger Technology", "Sierra Wireless", "HT Micron", "Albatron Technology Co. Ltd.",
|
||||||
|
+ "Leica Geosystems AG", "BroadLight", "AEXEA", "ClariPhy Communications, Inc.", "Green Plug",
|
||||||
|
+ "Design Art Networks", "Mach Xtreme Technology Ltd.", "ATO Solutions Co. Ltd.", "Ramsta",
|
||||||
|
+ "Greenliant Systems, Ltd.", "Teikon", "Antec Hadron", "NavCom Technology, Inc.",
|
||||||
|
+ "Shanghai Fudan Microelectronics", "Calxeda, Inc.", "JSC EDC Electronics", "Kandit Technology Co. Ltd.",
|
||||||
|
+ "Ramos Technology", "Goldenmars Technology", "XeL Technology Inc.", "Newzone Corporation",
|
||||||
|
+ "ShenZhen MercyPower Tech", "Nanjing Yihuo Technology", "Nethra Imaging Inc.", "SiTel Semiconductor BV",
|
||||||
|
+ "SolidGear Corporation", "Topower Computer Ind Co Ltd.", "Wilocity", "Profichip GmbH",
|
||||||
|
+ "Gerad Technologies", "Ritek Corporation", "Gomos Technology Limited", "Memoright Corporation",
|
||||||
|
+ "D-Broad, Inc.", "HiSilicon Technologies", "Syndiant Inc.", "Enverv Inc.", "Cognex",
|
||||||
|
+ "Xinnova Technology Inc.", "Ultron AG", "Concord Idea Corporation", "AIM Corporation",
|
||||||
|
+ "Lifetime Memory Products", "Ramsway", "Recore Systems BV", "Haotian Jinshibo Science Tech",
|
||||||
|
+ "Being Advanced Memory", "Adesto Technologies", "Giantec Semiconductor, Inc.", "HMD Electronics AG",
|
||||||
|
+ "Gloway International (HK)", "Kingcore", "Anucell Technology Holding",
|
||||||
|
+ "Accord Software & Systems Pvt. Ltd.", "Active-Semi Inc.", "Denso Corporation", "TLSI Inc.",
|
||||||
|
+ "Shenzhen Daling Electronic Co. Ltd.", "Mustang", "Orca Systems", "Passif Semiconductor",
|
||||||
|
+ "GigaDevice Semiconductor (Beijing) Inc.", "Memphis Electronic", "Beckhoff Automation GmbH",
|
||||||
|
+ "Harmony Semiconductor Corp (former ProPlus Design Solutions)", "Air Computers SRL", "TMT Memory"]
|
||||||
|
+);
|
||||||
|
|
||||||
|
$use_sysfs = -d '/sys/bus';
|
||||||
|
|
28
i2c-tools-r6107-vendors-JEP106AJ.diff
Normal file
28
i2c-tools-r6107-vendors-JEP106AJ.diff
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
eeprom/decode-dimms | 8 ++++++--
|
||||||
|
1 file changed, 6 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
--- i2c-tools-3.1.0.orig/eeprom/decode-dimms
|
||||||
|
+++ i2c-tools-3.1.0/eeprom/decode-dimms
|
||||||
|
@@ -63,7 +63,7 @@ $revision =~ s/ \([^()]*\)//;
|
||||||
|
"Lattice Semi.", "NCR", "Wafer Scale Integration", "IBM",
|
||||||
|
"Tristar", "Visic", "Intl. CMOS Technology", "SSSI",
|
||||||
|
"MicrochipTechnology", "Ricoh Ltd.", "VLSI", "Micron Technology",
|
||||||
|
- "Hynix Semiconductor Inc. (former Hyundai Electronics)", "OKI Semiconductor", "ACTEL", "Sharp",
|
||||||
|
+ "SK Hynix (former Hyundai Electronics)", "OKI Semiconductor", "ACTEL", "Sharp",
|
||||||
|
"Catalyst", "Panasonic", "IDT", "Cypress",
|
||||||
|
"DEC", "LSI Logic", "Zarlink (former Plessey)", "UTMC",
|
||||||
|
"Thinking Machine", "Thomson CSF", "Integrated CMOS (Vertex)", "Honeywell",
|
||||||
|
@@ -292,7 +292,11 @@ $revision =~ s/ \([^()]*\)//;
|
||||||
|
"Accord Software & Systems Pvt. Ltd.", "Active-Semi Inc.", "Denso Corporation", "TLSI Inc.",
|
||||||
|
"Shenzhen Daling Electronic Co. Ltd.", "Mustang", "Orca Systems", "Passif Semiconductor",
|
||||||
|
"GigaDevice Semiconductor (Beijing) Inc.", "Memphis Electronic", "Beckhoff Automation GmbH",
|
||||||
|
- "Harmony Semiconductor Corp (former ProPlus Design Solutions)", "Air Computers SRL", "TMT Memory"]
|
||||||
|
+ "Harmony Semiconductor Corp (former ProPlus Design Solutions)", "Air Computers SRL", "TMT Memory",
|
||||||
|
+ "Eorex Corporation", "Xingtera", "Netsol", "Bestdon Technology Co. Ltd.", "Baysand Inc.",
|
||||||
|
+ "Uroad Technology Co. Ltd. (former Triple Grow Industrial Ltd.)", "Wilk Elektronik S.A.",
|
||||||
|
+ "AAI", "Harman", "Berg Microelectronics Inc.", "ASSIA, Inc.", "Visiontek Products LLC",
|
||||||
|
+ "OCMEMORY", "Welink Solution Inc."]
|
||||||
|
);
|
||||||
|
|
||||||
|
$use_sysfs = -d '/sys/bus';
|
47
i2c-tools-r6108-remove-duplicate-ns.diff
Normal file
47
i2c-tools-r6108-remove-duplicate-ns.diff
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
---
|
||||||
|
eeprom/decode-dimms | 6 +-----
|
||||||
|
1 file changed, 1 insertion(+), 5 deletions(-)
|
||||||
|
|
||||||
|
--- i2c-tools-3.1.0.orig/eeprom/decode-dimms
|
||||||
|
+++ i2c-tools-3.1.0/eeprom/decode-dimms
|
||||||
|
@@ -623,7 +623,7 @@ sub decode_sdr_sdram($)
|
||||||
|
my $ctime = ($bytes->[9] >> 4) + ($bytes->[9] & 0xf) * 0.1;
|
||||||
|
|
||||||
|
$trcd = $bytes->[29];
|
||||||
|
- $trp = $bytes->[27];;
|
||||||
|
+ $trp = $bytes->[27];
|
||||||
|
$tras = $bytes->[30];
|
||||||
|
|
||||||
|
printl("tCL-tRCD-tRP-tRAS",
|
||||||
|
@@ -720,7 +720,6 @@ sub decode_sdr_sdram($)
|
||||||
|
else {
|
||||||
|
$temp += 15 if $temp < 4;
|
||||||
|
$temp += ($bytes->[23] & 0xf) * 0.1;
|
||||||
|
- $temp .= " ns";
|
||||||
|
}
|
||||||
|
$cycle_time .= "\n$temp ns at CAS ".$cas[$#cas-1];
|
||||||
|
|
||||||
|
@@ -729,7 +728,6 @@ sub decode_sdr_sdram($)
|
||||||
|
else {
|
||||||
|
$temp += 15 if $temp < 4;
|
||||||
|
$temp += ($bytes->[24] & 0xf) * 0.1;
|
||||||
|
- $temp .= " ns";
|
||||||
|
}
|
||||||
|
$access_time .= "\n$temp ns at CAS ".$cas[$#cas-1];
|
||||||
|
}
|
||||||
|
@@ -739,7 +737,6 @@ sub decode_sdr_sdram($)
|
||||||
|
if ($temp == 0) { $temp = "Undefined!"; }
|
||||||
|
else {
|
||||||
|
$temp += ($bytes->[25] & 0x3) * 0.25;
|
||||||
|
- $temp .= " ns";
|
||||||
|
}
|
||||||
|
$cycle_time .= "\n$temp ns at CAS ".$cas[$#cas-2];
|
||||||
|
|
||||||
|
@@ -747,7 +744,6 @@ sub decode_sdr_sdram($)
|
||||||
|
if ($temp == 0) { $temp = "Undefined!"; }
|
||||||
|
else {
|
||||||
|
$temp += ($bytes->[26] & 0x3) * 0.25;
|
||||||
|
- $temp .= " ns";
|
||||||
|
}
|
||||||
|
$access_time .= "\n$temp ns at CAS ".$cas[$#cas-2];
|
||||||
|
}
|
17
i2c-tools-r6109-fix-decoding-revision.diff
Normal file
17
i2c-tools-r6109-fix-decoding-revision.diff
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
eeprom/decode-dimms | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
--- i2c-tools-3.1.0.orig/eeprom/decode-dimms
|
||||||
|
+++ i2c-tools-3.1.0/eeprom/decode-dimms
|
||||||
|
@@ -591,7 +591,9 @@ sub decode_sdr_sdram($)
|
||||||
|
my $temp;
|
||||||
|
|
||||||
|
# SPD revision
|
||||||
|
- printl("SPD Revision", $bytes->[62]);
|
||||||
|
+ # Starting with SPD revision 1.2, this byte is encoded in BCD
|
||||||
|
+ printl("SPD Revision", $bytes->[62] < 0x12 ? $bytes->[62] :
|
||||||
|
+ ($bytes->[62] >> 4) . "." . ($bytes->[62] & 0xf));
|
||||||
|
|
||||||
|
#size computation
|
||||||
|
|
36
i2c-tools-r6110-i2cdetect-clarify-probing.diff
Normal file
36
i2c-tools-r6110-i2cdetect-clarify-probing.diff
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
tools/i2cdetect.8 | 12 ++++++++----
|
||||||
|
1 file changed, 8 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
--- i2c-tools-3.1.0.orig/tools/i2cdetect.8
|
||||||
|
+++ i2c-tools-3.1.0/tools/i2cdetect.8
|
||||||
|
@@ -28,6 +28,12 @@ should correspond to one of the busses l
|
||||||
|
The optional parameters \fIfirst\fR and \fIlast\fR restrict the scanning
|
||||||
|
range (default: from 0x03 to 0x77).
|
||||||
|
.PP
|
||||||
|
+As there is no standard I2C detection command, i2cdetect uses arbitrary
|
||||||
|
+SMBus commands (namely SMBus quick write and SMBus receive byte) to probe
|
||||||
|
+for devices. By default, the command used is the one believed to be the
|
||||||
|
+safest for each address. See options \fI-q\fR and \fI-r\fR to change this
|
||||||
|
+behavior.
|
||||||
|
+.PP
|
||||||
|
i2cdetect can also be used to query the functionalities of an I2C bus
|
||||||
|
(see option \fB-F\fP.)
|
||||||
|
|
||||||
|
@@ -57,14 +63,12 @@ scripts.
|
||||||
|
Force scanning of non-regular addresses. Not recommended.
|
||||||
|
.TP
|
||||||
|
.B "\-q"
|
||||||
|
-Use SMBus "quick write" commands for probing (by default, the command
|
||||||
|
-used is the one believed to be the safest for each address).
|
||||||
|
+Use SMBus "quick write" command for probing.
|
||||||
|
Not recommended. This is known to corrupt the Atmel AT24RF08 EEPROM
|
||||||
|
found on many IBM Thinkpad laptops.
|
||||||
|
.TP
|
||||||
|
.B "\-r"
|
||||||
|
-Use SMBus "read byte" commands for probing (by default, the command
|
||||||
|
-used is the one believed to be the safest for each address).
|
||||||
|
+Use SMBus "receive byte" command for probing.
|
||||||
|
Not recommended. This is known to lock SMBus on various write-only
|
||||||
|
chips (most notably clock chips at address 0x69).
|
||||||
|
.TP
|
15
i2c-tools-r6121-typo-sprint.diff
Normal file
15
i2c-tools-r6121-typo-sprint.diff
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
eeprom/decode-dimms | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
--- i2c-tools-3.1.0.orig/eeprom/decode-dimms
|
||||||
|
+++ i2c-tools-3.1.0/eeprom/decode-dimms
|
||||||
|
@@ -1167,7 +1167,7 @@ sub decode_ddr3_sdram($)
|
||||||
|
|
||||||
|
printl("Module Type", ($bytes->[3] <= $#module_types) ?
|
||||||
|
$module_types[$bytes->[3]] :
|
||||||
|
- sprint("Reserved (0x%.2X)", $bytes->[3]));
|
||||||
|
+ sprintf("Reserved (0x%.2X)", $bytes->[3]));
|
||||||
|
|
||||||
|
# speed
|
||||||
|
prints("Memory Characteristics");
|
18
i2c-tools-r6122-more-DDR3-module-types.diff
Normal file
18
i2c-tools-r6122-more-DDR3-module-types.diff
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
eeprom/decode-dimms | 5 ++++-
|
||||||
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
--- i2c-tools-3.1.0.orig/eeprom/decode-dimms
|
||||||
|
+++ i2c-tools-3.1.0/eeprom/decode-dimms
|
||||||
|
@@ -1163,7 +1163,10 @@ sub decode_ddr3_sdram($)
|
||||||
|
my $ctime;
|
||||||
|
|
||||||
|
my @module_types = ("Undefined", "RDIMM", "UDIMM", "SO-DIMM",
|
||||||
|
- "Micro-DIMM", "Mini-RDIMM", "Mini-UDIMM");
|
||||||
|
+ "Micro-DIMM", "Mini-RDIMM", "Mini-UDIMM",
|
||||||
|
+ "Mini-CDIMM", "72b-SO-UDIMM", "72b-SO-RDIMM",
|
||||||
|
+ "72b-SO-CDIMM", "LRDIMM", "16b-SO-DIMM",
|
||||||
|
+ "32b-SO-DIMM");
|
||||||
|
|
||||||
|
printl("Module Type", ($bytes->[3] <= $#module_types) ?
|
||||||
|
$module_types[$bytes->[3]] :
|
@ -1,3 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 13 14:44:02 CET 2013 - jdelvare@suse.de
|
||||||
|
|
||||||
|
Backport fixes from upstream 3.1 branch:
|
||||||
|
- i2c-tools-r6063-dont-choke-when-no-eeprom.diff: Don't choke when
|
||||||
|
no EEPROM is found.
|
||||||
|
- i2c-tools-r6106-vendors-JEP106AG.diff,
|
||||||
|
- i2c-tools-r6107-vendors-JEP106AJ.diff: Update vendor list based
|
||||||
|
on Jedec documents JEP106AG and JEP106AJ.
|
||||||
|
- i2c-tools-r6108-remove-duplicate-ns.diff: Remove duplicate "ns"
|
||||||
|
in SDR timings.
|
||||||
|
- i2c-tools-r6109-fix-decoding-revision.diff: Fix decoding of SDR
|
||||||
|
SPD revision.
|
||||||
|
- i2c-tools-r6110-i2cdetect-clarify-probing.diff: Clarify the SMBus
|
||||||
|
commands used for probing by default.
|
||||||
|
- i2c-tools-r6121-typo-sprint.diff: Prevent hang on reserved DDR3
|
||||||
|
module type, caused by a typo in function name.
|
||||||
|
- i2c-tools-r6122-more-DDR3-module-types.diff: Decode more DDR3
|
||||||
|
module types.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 13 14:00:15 CET 2013 - jdelvare@suse.de
|
Wed Feb 13 14:00:15 CET 2013 - jdelvare@suse.de
|
||||||
|
|
||||||
|
@ -27,6 +27,14 @@ Requires: udev
|
|||||||
Recommends: modules
|
Recommends: modules
|
||||||
Source0: i2c-tools-%{version}.tar.bz2
|
Source0: i2c-tools-%{version}.tar.bz2
|
||||||
Source1: i2c-tools-%{version}.tar.bz2.sig
|
Source1: i2c-tools-%{version}.tar.bz2.sig
|
||||||
|
Patch1: i2c-tools-r6063-dont-choke-when-no-eeprom.diff
|
||||||
|
Patch2: i2c-tools-r6106-vendors-JEP106AG.diff
|
||||||
|
Patch3: i2c-tools-r6107-vendors-JEP106AJ.diff
|
||||||
|
Patch4: i2c-tools-r6108-remove-duplicate-ns.diff
|
||||||
|
Patch5: i2c-tools-r6109-fix-decoding-revision.diff
|
||||||
|
Patch6: i2c-tools-r6110-i2cdetect-clarify-probing.diff
|
||||||
|
Patch7: i2c-tools-r6121-typo-sprint.diff
|
||||||
|
Patch8: i2c-tools-r6122-more-DDR3-module-types.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
ExcludeArch: s390 s390x
|
ExcludeArch: s390 s390x
|
||||||
|
|
||||||
@ -46,6 +54,14 @@ Authors:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
%patch3 -p1
|
||||||
|
%patch4 -p1
|
||||||
|
%patch5 -p1
|
||||||
|
%patch6 -p1
|
||||||
|
%patch7 -p1
|
||||||
|
%patch8 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" CC="%{__cc}"
|
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" CC="%{__cc}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user