2005-01-14 20:58:11

by Enrico Bartky

[permalink] [raw]
Subject: lspci != scanpci !?

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


2005-01-14 22:37:25

by Matthew Dharm

[permalink] [raw]
Subject: Re: lspci != scanpci !?

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: [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


Attachments:
(No filename) (1.40 kB)
(No filename) (189.00 B)
Download all attachments

2005-01-14 23:07:21

by Enrico Bartky

[permalink] [raw]
Subject: Re: lspci != scanpci !?

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


Matthew Dharm <[email protected]> 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: [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



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

2005-01-15 12:35:58

by Martin Mares

[permalink] [raw]
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 <[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.

2005-01-15 15:55:43

by Enrico Bartky

[permalink] [raw]
Subject: Re: lspci != scanpci !?

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 !?


> 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 <[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.


Attachments:
lspcivvm.txt (4.41 kB)
lspcivvmh1.txt (4.65 kB)
Download all attachments