PIIX4 and fix_hstcfg
Hello all,
We have in the i2-piix4 the fix_hstcfg option and it seems we should move it to pci/quirks.c The new serverworks chipsets do not need it and because they have bit different interrupt select field the message about fix_hstcfg will appear. And if the user do it it wont work or freeze.
As to remind I created this modified table with the serverworks int bit in place:
Address Offset: D2h Default Value: 00h Attribute: Read/Write
Bit Description
7:4 Reserved.
3:1 SMBus Interrupt Select (SMB_INTRSEL)--R/W. Selects the type of interrupt generated by the
SMBus controller. This field is decoded as follows:
Bits[3:1] SMBus Interrupt Bits[3:1] SMBus Interrupt
000 SMI# 100 IRQ9
001 Serverworks IRQ 101 Reserved
010 Reserved 110 Reserved
011 Reserved 111 Reserved
0 SMBus Controller Host Interface Enable (SMB_HST_EN)--R/W. 1=Enable the SMBus
Controller Host Interface. 0=Disable.
if (fix_hstcfg) {
dev_info(&PIIX4_dev->dev, "Working around buggy BIOS "
"(I2C)\n");
temp &= 0xfd;So this just cleans bit 1 effectively switching the serverworks IRQ mode to SMI (in fact) (If I remember correctly the motherboard had some incarnation of serverworks chipset.)
Tom, please can you supply the lspci -v -v -v of that machine so a quirk can be developed?
If you dont have the machine anymore I think we can drop that option anyway because I googled hard and it seemed nobody else had similar problems.
Regards
Rudolf
Quoted 1 line · Rudolf Marek
Tom, please can you supply the lspci -v -v -v of that machine so a quirk can be developed?
Here you go:
# lspci -vvv 00:00.0 Host bridge: Intel Corporation 440LX/EX - 82443LX/EX Host bridge (rev 03) Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR- Latency: 64 Region 0: Memory at e0000000 (32-bit, prefetchable) [size%6M] Capabilities: [a0] AGP version 1.0 Status: RQ1 SBA+ 64bit- FW- Rate=x1,x2 Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>
00:01.0 PCI bridge: Intel Corporation 440LX/EX - 82443LX/EX AGP bridge (rev 03) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap- 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Bus: primary , secondary, subordinate, sec-latencyd
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: fd600000-fe6fffff
Prefetchable memory behind bridge: db400000-dd4fffff
BridgeCtl: Parity+ SERR+ NoISA- VGA+ MAbort- >Reset- FastB2B-
00:07.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 01)
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0
00:07.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01) (prog-if 80 [Master])
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Region 4: I/O ports at ffa0 [disabled] [size]
00:07.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Interrupt: pin D routed to IRQ 9
Region 4: I/O ports at ef80 [size2]
00:07.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 01)
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin ? routed to IRQ 9
00:0b.0 Ethernet controller: Intel Corporation 82557 [Ethernet Pro 100] (rev 08)
Subsystem: Intel Corporation EtherExpress PRO/100+ Management Adapter
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (2000ns min, 14000ns max), cache line size 08
Interrupt: pin A routed to IRQ 11
Region 0: Memory at febfd000 (32-bit, non-prefetchable) [size=4K]
Region 1: I/O ports at ef00 [sized]
Region 2: Memory at fea00000 (32-bit, non-prefetchable) [size=1M]
Expansion ROM at fe900000 [disabled] [size=1M]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable+ DSel=0 DScale=2 PME-
00:0c.0 Multimedia audio controller: Ensoniq ES1370 [AudioPCI]
Subsystem: Unknown device 4942:4c4c
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (3000ns min, 32000ns max)
Interrupt: pin A routed to IRQ 15
Region 0: I/O ports at ee80 [sized]
00:0d.0 SCSI storage controller: Symbios Logic Inc. (formerly NCR) 53c895 (rev 01)
Subsystem: Tekram Technology Co.,Ltd.: Unknown device 3907
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (7500ns min, 16000ns max), cache line size 08
Interrupt: pin A routed to IRQ 10
Region 0: I/O ports at ec00 [size%6]
Region 1: Memory at febfff00 (32-bit, non-prefetchable) [size%6]
Region 2: Memory at febfe000 (32-bit, non-prefetchable) [size=4K]
Expansion ROM at febe0000 [disabled] [sizedK]
00:0f.0 Unknown mass storage controller: Promise Technology, Inc. 20262 (rev 01)
Subsystem: Promise Technology, Inc.: Unknown device 4d33
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Interrupt: pin A routed to IRQ 10
Region 0: I/O ports at eff0 [size=8]
Region 1: I/O ports at efe4 [size=4]
Region 2: I/O ports at efa8 [size=8]
Region 3: I/O ports at efe0 [size=4]
Region 4: I/O ports at ed80 [sized]
Region 5: Memory at febc0000 (32-bit, non-prefetchable) [size8K]
Expansion ROM at febb0000 [disabled] [sizedK]
01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200 AGP (rev 01) (prog-if 00 [VGA])
Subsystem: Matrox Graphics, Inc. Millennium G200 AGP
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (4000ns min, 8000ns max), cache line size 08
Interrupt: pin A routed to IRQ 11
Region 0: Memory at dc000000 (32-bit, prefetchable) [sizeM]
Region 1: Memory at fe6fc000 (32-bit, non-prefetchable) [sizeK]
Region 2: Memory at fd800000 (32-bit, non-prefetchable) [size=8M]
Expansion ROM at fe6e0000 [disabled] [sizedK]
Capabilities: [dc] Power Management version 1
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [f0] AGP version 1.0
Status: RQ1 SBA+ 64bit- FW- Rate=x1,x2
Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>
Quoted 2 lines
If you dont have the machine anymore I think we can drop that option anyway because I googled hard and it seemed nobody else had similar problems.
Note that I just use this as a crashbox now so if it's more trouble than it's worth, I wouldn't mind it being dropped.
Signature · 2 lines
Tom Rini http://gate.crashing.org/~trini/
Hello
Quoted 2 lines
Note that I just use this as a crashbox now so if it's more trouble than it's worth, I wouldn't mind it being dropped.
Thanks for the lspci. It seems it has no PCI subsystem ID regs??? Because of this much easier would be just drop.
I will drop the param + the warning of course.
Regards
Rudolf
Hi Rudolf, Tom,
Quoted 5 lines
Quoted 2 lines
Note that I just use this as a crashbox now so if it's more trouble than it's worth, I wouldn't mind it being dropped.
Thanks for the lspci. It seems it has no PCI subsystem ID regs??? Because of this much easier would be just drop.
Maybe we can use DMI instead. Tom, can you please provide the output of dmidecode for this system? Maybe others still use it.
Tom, do you remember if any other system ever needed this option?
Quoted 1 line
I will drop the param + the warning of course.
If we do that, we must update the documentation and maybe have a dedicated section for the faulty system. I guess that setpci can be used to change the register value?
Thanks,
Signature · 1 line
Jean Delvare
Hello all,
Quoted 3 lines
If we do that, we must update the documentation and maybe have a dedicated section for the faulty system. I guess that setpci can be used to change the register value?
Yep setpci will work.
regards
Rudolf
Quoted 10 lines · Jean Delvare
Hi Rudolf, Tom,
Quoted 5 lines
Quoted 2 lines
Note that I just use this as a crashbox now so if it's more trouble than it's worth, I wouldn't mind it being dropped.
Thanks for the lspci. It seems it has no PCI subsystem ID regs??? Because of this much easier would be just drop.
Maybe we can use DMI instead. Tom, can you please provide the output of dmidecode for this system? Maybe others still use it.
# dmidecode # dmidecode 2.6 Legacy DMI 0.0 present. 34 structures occupying 1032 bytes. Table at 0x000F6B4B. Handle 0x0000 DMI type 0, 18 bytes. BIOS Information Vendor: American Megatrends, Inc. Version: 0630 Release Date: 07/15/95 Address: 0xF0000 Runtime Size: 64 kB ROM Size: 256 kB Characteristics: ISA is supported PCI is supported PNP is supported APM is supported BIOS is upgradeable BIOS shadowing is allowed ESCD support is available Boot from CD is supported Selectable boot is supported EDD is supported Japanese floppy for NEC 9800 1.2 MB is supported (int 13h) 5.25"/360 KB floppy services are supported (int 13h) 5.25"/1.2 MB floppy services are supported (int 13h) 3.5"/720 KB floppy services are supported (int 13h) 3.5"/2.88 MB floppy services are supported (int 13h) Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h) Serial services are supported (int 14h) Printer services are supported (int 17h) CGA/mono video services are supported (int 10h) Handle 0x0001 DMI type 1, 8 bytes. System Information Manufacturer: To be filled Product Name: To be filled Version: To be filled Serial Number: Handle 0x0002 DMI type 2, 8 bytes. Base Board Information Manufacturer: Intel 440LX Product Name: 2.00 Version: Serial Number: <BAD INDEX> Handle 0x0003 DMI type 3, 9 bytes. Chassis Information Manufacturer: To be filled Type: Unknown Lock: Not Present Version: To be filled Serial Number: Asset Tag: Handle 0x0004 DMI type 4, 26 bytes. Processor Information Socket Designation: Slot 1 Type: Central Processor Family: 80386 Manufacturer: INTEL ID: 52 06 00 00 FF FB 83 01 Signature: Type 0, Family 6, Major Stepping 5, Minor Stepping 2 Version: Pentium II Voltage: 3.3 V 2.9 V External Clock: 66 MHz Max Speed: 333 MHz Current Speed: 333 MHz Status: Populated, Enabled Upgrade: Slot 1 Handle 0x0005 DMI type 4, 26 bytes. Processor Information Socket Designation: Slot 1 Type: Central Processor Family: 80386 Manufacturer: INTEL ID: 52 06 00 00 FF FB 83 01 Signature: Type 0, Family 6, Major Stepping 5, Minor Stepping 2 Version: Pentium II Voltage: 3.3 V 2.9 V External Clock: 66 MHz Max Speed: 333 MHz Current Speed: 333 MHz Status: Populated, Enabled Upgrade: Slot 1 Handle 0x0006 DMI type 5, 31 bytes. Memory Controller Information Error Detecting Method: 64-bit ECC Error Correcting Capabilities: Single-bit Error Correcting Error Scrubbing Supported Interleave: One-way Interleave Current Interleave: One-way Interleave Maximum Memory Module Size: 256 MB Maximum Total Memory Size: 2048 MB Supported Speeds: 70 ns 60 ns 50 ns Supported Memory Types: EDO Parity ECC DIMM SDRAM Memory Module Voltage: 3.3 V Associated Memory Slots: 8 0x0007 0x0008 0x0009 0x000A 0x000B 0x000C 0x000D 0x000E Handle 0x0008 DMI type 6, 12 bytes. Memory Module Information Socket Designation: Bank 1 Bank Connections: 0 0 Current Speed: 60 ns Type: DIMM SDRAM Installed Size: 64 MB (Single-bank Connection) Enabled Size: 64 MB (Single-bank Connection) Error Status: OK Handle 0x0009 DMI type 6, 12 bytes. Memory Module Information Socket Designation: Bank 2 Bank Connections: 0 0 Current Speed: 60 ns Type: DIMM SDRAM Installed Size: 64 MB (Single-bank Connection) Enabled Size: 64 MB (Single-bank Connection) Error Status: OK Handle 0x000A DMI type 6, 12 bytes. Memory Module Information Socket Designation: Bank 3 Bank Connections: 0 0 Current Speed: 60 ns Type: DIMM SDRAM Installed Size: 64 MB (Single-bank Connection) Enabled Size: 64 MB (Single-bank Connection) Error Status: OK Handle 0x000B DMI type 6, 12 bytes. Memory Module Information Socket Designation: Bank 4 Bank Connections: 0 0 Current Speed: 60 ns Type: DIMM SDRAM Installed Size: 64 MB (Single-bank Connection) Enabled Size: 64 MB (Single-bank Connection) Error Status: OK Handle 0x000C DMI type 6, 12 bytes. Memory Module Information Socket Designation: Bank 5 Bank Connections: 0 0 Current Speed: 60 ns Type: DIMM SDRAM Installed Size: 64 MB (Single-bank Connection) Enabled Size: 64 MB (Single-bank Connection) Error Status: OK Handle 0x000D DMI type 6, 12 bytes. Memory Module Information Socket Designation: Bank 6 Bank Connections: 0 0 Current Speed: 60 ns Type: DIMM SDRAM Installed Size: 64 MB (Single-bank Connection) Enabled Size: 64 MB (Single-bank Connection) Error Status: OK Handle 0x000E DMI type 6, 12 bytes. Memory Module Information Socket Designation: Bank 7 Bank Connections: 0 0 Current Speed: 60 ns Type: DIMM SDRAM Installed Size: 64 MB (Single-bank Connection) Enabled Size: 64 MB (Single-bank Connection) Error Status: OK Handle 0x000F DMI type 7, 15 bytes. Cache Information Socket Designation: L1 Cache Configuration: Enabled, Not Socketed, Level 1 Operational Mode: Write Back Location: Internal Installed Size: 16 KB Maximum Size: 32 KB Supported SRAM Types: Pipeline Burst Synchronous Installed SRAM Type: Synchronous Handle 0x0010 DMI type 7, 15 bytes. Cache Information Socket Designation: L2 Cache Configuration: Enabled, Not Socketed, Level 2 Operational Mode: Write Back Location: Internal Installed Size: 512 KB Maximum Size: 512 KB Supported SRAM Types: Pipeline Burst Synchronous Installed SRAM Type: Synchronous Handle 0x0011 DMI type 8, 9 bytes. Port Connector Information Internal Reference Designator: Serial1 Internal Connector Type: DB-9 male External Reference Designator: COMA External Connector Type: DB-9 male Port Type: Serial Port 16550A Compatible Handle 0x0012 DMI type 8, 9 bytes. Port Connector Information Internal Reference Designator: Serial2 Internal Connector Type: DB-9 male External Reference Designator: COMB External Connector Type: DB-9 male Port Type: Serial Port 16550A Compatible Handle 0x0013 DMI type 8, 9 bytes. Port Connector Information Internal Reference Designator: Parallel Internal Connector Type: DB-25 male External Reference Designator: LPT External Connector Type: DB-25 male Port Type: Parallel Port ECP/EPP Handle 0x0014 DMI type 8, 9 bytes. Port Connector Information Internal Reference Designator: Internal Connector Type: PS/2 External Reference Designator: Keyboard External Connector Type: PS/2 Port Type: Keyboard Port Handle 0x0015 DMI type 8, 9 bytes. Port Connector Information Internal Reference Designator: Internal Connector Type: PS/2 External Reference Designator: PS/2 Mouse External Connector Type: PS/2 Port Type: Mouse Port Handle 0x0016 DMI type 9, 12 bytes. System Slot Information Designation: ISA Slot1 Type: 16-bit ISA Current Usage: Unknown Length: Long Characteristics: Unknown Handle 0x0017 DMI type 9, 12 bytes. System Slot Information Designation: ISA Slot2 Type: 16-bit ISA Current Usage: Unknown Length: Long Characteristics: Unknown Handle 0x0018 DMI type 9, 12 bytes. System Slot Information Designation: PCI Slot1 Type: 32-bit PCI Current Usage: In Use Length: Short ID: 1 Characteristics: Unknown Handle 0x0019 DMI type 9, 12 bytes. System Slot Information Designation: PCI Slot2 Type: 32-bit PCI Current Usage: In Use Length: Long ID: 2 Characteristics: Unknown Handle 0x001A DMI type 9, 12 bytes. System Slot Information Designation: PCI Slot3 Type: 32-bit PCI Current Usage: In Use Length: Long ID: 3 Characteristics: Unknown Handle 0x001B DMI type 9, 12 bytes. System Slot Information Designation: PCI Slot4 Type: 32-bit PCI Current Usage: Available Length: Long ID: 4 Characteristics: Unknown Handle 0x001C DMI type 9, 12 bytes. System Slot Information Designation: PCI Slot5 Type: 32-bit PCI Current Usage: In Use Length: Long ID: 5 Characteristics: Unknown Handle 0x001D DMI type 9, 12 bytes. System Slot Information Designation: AGP Slot Type: 32-bit PCI Current Usage: Available Length: Long ID: 6 Characteristics: Unknown Handle 0x001E DMI type 10, 12 bytes. On Board Device 1 Information Type: Video Status: Enabled Description: On Board VGA On Board Device 2 Information Type: SCSI Controller Status: Enabled Description: SCSI Controller 1 On Board Device 3 Information Type: SCSI Controller Status: Enabled Description: SCSI Controller 2 On Board Device 4 Information Type: Other Status: Enabled Description: USB with 2 connectors Handle 0x001F DMI type 11, 5 bytes. OEM Strings String 1: Today is a very fine day Handle 0x0020 DMI type 12, 5 bytes. System Configuration Options Option 1: This is the reference string Handle 0x0021 DMI type 13, 22 bytes. BIOS Language Information Installable Languages: 1 English Currently Installed Language: English Wrong DMI structures count: 34 announced, only 33 decoded.
Quoted 1 line
Tom, do you remember if any other system ever needed this option?
I don't recall, sorry.
Signature · 2 lines
Tom Rini http://gate.crashing.org/~trini/
Quoted 4 lines · Tom Rini
System Information
Manufacturer: To be filled
Product Name: To be filled
Version: To be filled
Quite clever :)
Quoted 5 lines
Quoted 1 line
Tom, do you remember if any other system ever needed this option?
I don't recall, sorry.
I think just a drop plus doc note is a winner.
Regards
Rudolf
Hi Rudolf, Tom,
Quoted 7 lines
Quoted 4 lines · Tom Rini
System Information
Manufacturer: To be filled
Product Name: To be filled
Version: To be filledQuite clever :)
This table is totally crappy, indeed. Nothing we can do with this.
Quoted 1 line
I think just a drop plus doc note is a winner.
Agreed. Can you please work up a patch?
Thanks,
Signature · 1 line
Jean Delvare