Skip to contentSkip to conversation

lspci != scanpci !?

DISCUSSION Enrico Bartky 3 participants 4 messages Jan 14, 2005 – Jan 15, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

I have a Gigabyte GA-5AA Board with ALi Aladdin IV Chipset ( 1533, 1541 ). I tried to get the smbus to work, but Gigabyte have disabled it and I can't activate it in the BIOS. I use kernel 2.6.10 and looked at the m7101-hotplug for kernel 2.4-module from lm_sensors. I added the following to drivers/pci/quirks.c:

....
/* ALi 1533 fixup to enable the M7101 SMBus Controller
* ported from prog/hotplug of the lm_sensors
* package
*/
static void __devinit quirk_ali1533_smbus(struct pci_dev *dev) {
u8 val = 0;

pci_read_config_byte ( dev, 0x5F, &val );
if ( val & 0x4 )
{
pci_write_config_byte ( dev, 0x5F, val & 0xFB );
}
}
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1533, quirk_ali1533_smbus );
....

Now the scanpci command shows the M7101 BUT lspci and /proc/pci, /proc/bus/pci, /sys/bus/pci NOT. What can I do? Is there anything like a "update_pci" command?

Thanx,
EnricoB

#1 lore raw
Quoted 27 lines · Enrico Bartky

Hello,

I have a Gigabyte GA-5AA Board with ALi Aladdin IV Chipset ( 1533, 1541 ). I tried to get the smbus to work, but Gigabyte have disabled it and I can't activate it in the BIOS. I use kernel 2.6.10 and looked at the m7101-hotplug for kernel 2.4-module from lm_sensors. I added the following to drivers/pci/quirks.c:

....
/* ALi 1533 fixup to enable the M7101 SMBus Controller
* ported from prog/hotplug of the lm_sensors
* package
*/
static void __devinit quirk_ali1533_smbus(struct pci_dev *dev) {
u8 val = 0;

pci_read_config_byte ( dev, 0x5F, &val );
if ( val & 0x4 )
{
pci_write_config_byte ( dev, 0x5F, val & 0xFB );
}
}
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1533, quirk_ali1533_smbus );
....

Quoted 3 lines

Now the scanpci command shows the M7101 BUT lspci and /proc/pci, /proc/bus/pci, /sys/bus/pci NOT. What can I do? Is there anything like a "update_pci" command?

I think there is a kernel command-line parameter you can use to tell the kernel to ignore the BIOS-supplied PCI map and generate it's own via scanning (ala what scanpci does).

Matt

Signature · 6 lines
Matthew Dharm                              Home: [email protected] 
Maintainer, Linux USB Mass Storage Driver

Department of Justice agent.  I have come to purify the flock.
					-- DOJ agent
User Friendly, 5/22/1998
#2 lore raw
In reply to Enrico Bartky

Hello!

Quoted 3 lines

Now the scanpci command shows the M7101 BUT lspci and /proc/pci, /proc/bus/pci, /sys/bus/pci NOT. What can I do? Is there anything like a "update_pci" command?

What does lspci -vv -M' and lspci -vv -M -H1' print?

(Please Cc to me, I usually read LKML in large batches.)

Have a nice fortnight

Signature · 3 lines
Martin `MJ' Mares   <[email protected]>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
Air conditioned environment -- Do not open Windows.
#3 lore raw

Here are the outputs. Without H1 there is no 7101 device; with H1 there is a 7101 device.

Enrico

----- Original Message -----
From: "Martin Mares" <[email protected]>
To: "Enrico Bartky" <[email protected]>
Cc: <[email protected]>
Sent: Saturday, January 15, 2005 1:35 PM
Subject: Re: lspci != scanpci !?

Quoted 8 lines

Hello!

Quoted 3 lines

Now the scanpci command shows the M7101 BUT lspci and /proc/pci, /proc/bus/pci, /sys/bus/pci NOT. What can I do? Is there anything like a "update_pci" command?

What does lspci -vv -M' and lspci -vv -M -H1' print?

Quoted 7 lines

(Please Cc to me, I usually read LKML in large batches.)

Have a nice fortnight
--
Martin `MJ' Mares <[email protected]> http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth Air conditioned environment -- Do not open Windows.

WARNING: Bus mapping can be reliable only with direct hardware access enabled.

00:00.0 Host bridge: ALi Corporation M1541 (rev 04)

	Subsystem: ALi Corporation ALI M1541 Aladdin V/V+ AGP System Controller
	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
	Region 0: Memory at e0000000 (32-bit, non-prefetchable)
	Capabilities: [b0] AGP version 1.0
		Status: RQ=28 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2
		Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>

00:01.0 PCI bridge: ALi Corporation M1541 PCI to AGP Controller (rev 04) (prog-if 00 [Normal decode])
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
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 0000c000-0000cfff
Memory behind bridge: cde00000-cfefffff
Prefetchable memory behind bridge: bdc00000-cdcfffff
BridgeCtl: Parity+ SERR- NoISA- VGA+ MAbort- >Reset- FastB2B-

## 00.01:0 is a bridge from 00 to 01-01
00:02.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03) (prog-if 10 [OHCI])
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 (20000ns max), cache line size 08
Interrupt: pin A routed to IRQ 0
Region 0: Memory at dffff000 (32-bit, non-prefetchable)

00:07.0 ISA bridge: ALi Corporation M1533 PCI to ISA Bridge [Aladdin IV] (rev c3)
Subsystem: ALi Corporation ALI M1533 Aladdin IV ISA Bridge
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:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: D-Link System Inc DRN-32TX
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 (8000ns min, 16000ns max)
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at dc00
Region 1: Memory at dfffef00 (32-bit, non-prefetchable)
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:09.0 Unknown mass storage controller: Promise Technology, Inc. 20269 (rev 02) (prog-if 85)
Subsystem: Promise Technology, Inc. Ultra133TX2
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 (1000ns min, 4500ns max), cache line size 08
Interrupt: pin A routed to IRQ 10
Region 0: I/O ports at dff0
Region 1: I/O ports at dfe4
Region 2: I/O ports at dfa8
Region 3: I/O ports at dfe0
Region 4: I/O ports at df90
Region 5: Memory at dfff8000 (32-bit, non-prefetchable)
Expansion ROM at dffe0000
Capabilities: [60] 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-

01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (rev a1) (prog-if 00 [VGA])
Subsystem: ASUSTeK Computer Inc.: Unknown device 4019
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 (1250ns min, 250ns max)
Interrupt: pin A routed to IRQ 0
Region 0: Memory at ce000000 (32-bit, non-prefetchable)
Region 1: Memory at c0000000 (32-bit, prefetchable)
Capabilities: [60] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [44] AGP version 2.0
Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA- ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2,x4
Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>

Summary of buses:

00: Primary host bus

	01.0 Bridge to 01-01

01: Entered via 00:01.0

00:00.0 Host bridge: ALi Corporation M1541 (rev 04)

	Subsystem: ALi Corporation ALI M1541 Aladdin V/V+ AGP System Controller
	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
	Region 0: Memory at e0000000 (32-bit, non-prefetchable)
	Capabilities: [b0] AGP version 1.0
		Status: RQ=28 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2
		Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>

00:01.0 PCI bridge: ALi Corporation M1541 PCI to AGP Controller (rev 04) (prog-if 00 [Normal decode])
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
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 0000c000-0000cfff
Memory behind bridge: cde00000-cfefffff
Prefetchable memory behind bridge: bdc00000-cdcfffff
BridgeCtl: Parity+ SERR- NoISA- VGA+ MAbort- >Reset- FastB2B-

## 00.01:0 is a bridge from 00 to 01-01
00:02.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03) (prog-if 10 [OHCI])
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 (20000ns max), cache line size 08
Interrupt: pin A routed to IRQ 0
Region 0: Memory at dffff000 (32-bit, non-prefetchable)

00:03.0 Bridge: ALi Corporation M7101 Power Management Controller [PMU]
Subsystem: ALi Corporation M7101 Power Management Controller [PMU]
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-

00:07.0 ISA bridge: ALi Corporation M1533 PCI to ISA Bridge [Aladdin IV] (rev c3)
Subsystem: ALi Corporation ALI M1533 Aladdin IV ISA Bridge
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:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: D-Link System Inc DRN-32TX
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 (8000ns min, 16000ns max)
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at dc00
Region 1: Memory at dfffef00 (32-bit, non-prefetchable)
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:09.0 Unknown mass storage controller: Promise Technology, Inc. 20269 (rev 02) (prog-if 85)
Subsystem: Promise Technology, Inc. Ultra133TX2
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 (1000ns min, 4500ns max), cache line size 08
Interrupt: pin A routed to IRQ 10
Region 0: I/O ports at dff0
Region 1: I/O ports at dfe4
Region 2: I/O ports at dfa8
Region 3: I/O ports at dfe0
Region 4: I/O ports at df90
Region 5: Memory at dfff8000 (32-bit, non-prefetchable)
Expansion ROM at dffe0000
Capabilities: [60] 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-

01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (rev a1) (prog-if 00 [VGA])
Subsystem: ASUSTeK Computer Inc.: Unknown device 4019
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 (1250ns min, 250ns max)
Interrupt: pin A routed to IRQ 0
Region 0: Memory at ce000000 (32-bit, non-prefetchable)
Region 1: Memory at c0000000 (32-bit, prefetchable)
Capabilities: [60] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [44] AGP version 2.0
Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA- ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2,x4
Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>

Summary of buses:

00: Primary host bus

	01.0 Bridge to 01-01

01: Entered via 00:01.0