public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* lspci != scanpci !?
@ 2005-01-14 20:57 Enrico Bartky
  2005-01-14 22:37 ` Matthew Dharm
  2005-01-15 12:35 ` Martin Mares
  0 siblings, 2 replies; 5+ messages in thread
From: Enrico Bartky @ 2005-01-14 20:57 UTC (permalink / raw)
  To: linux-kernel

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: lspci != scanpci !?
  2005-01-14 20:57 Enrico Bartky
@ 2005-01-14 22:37 ` Matthew Dharm
  2005-01-15 12:35 ` Martin Mares
  1 sibling, 0 replies; 5+ messages in thread
From: Matthew Dharm @ 2005-01-14 22:37 UTC (permalink / raw)
  To: Enrico Bartky; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1474 bytes --]

On Fri, Jan 14, 2005 at 09:57:00PM +0100, Enrico Bartky wrote:
> 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?

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

-- 
Matthew Dharm                              Home: mdharm-usb@one-eyed-alien.net 
Maintainer, Linux USB Mass Storage Driver

Department of Justice agent.  I have come to purify the flock.
					-- DOJ agent
User Friendly, 5/22/1998

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: lspci != scanpci !?
@ 2005-01-14 23:01 Enrico Bartky
  0 siblings, 0 replies; 5+ messages in thread
From: Enrico Bartky @ 2005-01-14 23:01 UTC (permalink / raw)
  To: MatthewDharm; +Cc: linux-kernel

In the kernel config I have aktivate the direct pci-access.


Matthew Dharm <mdharm-kernel@one-eyed-alien.net> schrieb am 14.01.05 23:37:23:

On Fri, Jan 14, 2005 at 09:57:00PM +0100, Enrico Bartky wrote:
> 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?

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

-- 
Matthew Dharm                              Home: mdharm-usb@one-eyed-alien.net 
Maintainer, Linux USB Mass Storage Driver

Department of Justice agent.  I have come to purify the flock.
					-- DOJ agent
User Friendly, 5/22/1998



__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: lspci != scanpci !?
  2005-01-14 20:57 Enrico Bartky
  2005-01-14 22:37 ` Matthew Dharm
@ 2005-01-15 12:35 ` Martin Mares
  2005-01-15 15:54   ` Enrico Bartky
  1 sibling, 1 reply; 5+ messages in thread
From: Martin Mares @ 2005-01-15 12:35 UTC (permalink / raw)
  To: Enrico Bartky; +Cc: linux-kernel

Hello!

> 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
-- 
Martin `MJ' Mares   <mj@ucw.cz>   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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: lspci != scanpci !?
  2005-01-15 12:35 ` Martin Mares
@ 2005-01-15 15:54   ` Enrico Bartky
  0 siblings, 0 replies; 5+ messages in thread
From: Enrico Bartky @ 2005-01-15 15:54 UTC (permalink / raw)
  To: Martin Mares; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 848 bytes --]

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

Enrico

----- Original Message -----
From: "Martin Mares" <mj@ucw.cz>
To: "Enrico Bartky" <DOSProfi@web.de>
Cc: <linux-kernel@vger.kernel.org>
Sent: Saturday, January 15, 2005 1:35 PM
Subject: Re: lspci != scanpci !?


> Hello!
>
> > 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
> --
> Martin `MJ' Mares   <mj@ucw.cz>   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.

[-- Attachment #2: lspcivvm.txt --]
[-- Type: text/plain, Size: 4598 bytes --]

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

[-- Attachment #3: lspcivvmh1.txt --]
[-- Type: text/plain, Size: 4854 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-01-15 15:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-14 23:01 lspci != scanpci !? Enrico Bartky
  -- strict thread matches above, loose matches on Subject: below --
2005-01-14 20:57 Enrico Bartky
2005-01-14 22:37 ` Matthew Dharm
2005-01-15 12:35 ` Martin Mares
2005-01-15 15:54   ` Enrico Bartky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox