2008-08-29 14:50:39

by J.A. Magallón

[permalink] [raw]
Subject: Unhiding devices in pci bus

Hi all...

I have an Aspire One, and the JMicron SD Card reader is hidden from
sysfs
space, it only shows if I do an lspci -H1 (direct hardware access):
...
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express
Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express
Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express
Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express
Port 4 (rev 02)
...
04:00.0 System peripheral: JMicron Technologies, Inc. Device 2382
04:00.2 SD Host controller: JMicron Technologies, Inc. Device 2381
04:00.3 System peripheral: JMicron Technologies, Inc. Device 2383
04:00.4 System peripheral: JMicron Technologies, Inc. Device 2384

one:~# lspci -t
-[0000:00]-+-00.0
+-02.0
+-02.1
+-1b.0
+-1c.0-[0000:01]--
+-1c.1-[0000:02]----00.0
+-1c.2-[0000:03]----00.0
+-1c.3-[0000:04]--
+-1d.0
+-1d.1
+-1d.2
+-1d.3
+-1d.7
+-1e.0-[0000:05]--
+-1f.0
+-1f.2
\-1f.3

one:~# lspci -H1 -t
-[0000:00]-+-00.0
+-02.0
+-02.1
+-1b.0
+-1c.0-[0000:01]--
+-1c.1-[0000:02]--
+-1c.2-[0000:03]----00.0
+-1c.3-[0000:04]--+-00.0
| +-00.2
| +-00.3
| \-00.4
+-1d.0
+-1d.1
+-1d.2
+-1d.3
+-1d.7
+-1e.0-[0000:05]--
+-1f.0
+-1f.2
\-1f.3

lspci -M:

...
00: Primary host bus
1e.0 Bridge to 05-05
1c.3 Bridge to 04-04
1c.2 Bridge to 03-03
1c.1 Bridge to 02-02
1c.0 Bridge to 01-01
...

If I load the driver (sdhci), it does not detect anything. It looks like
it is hidden/hung after one of the pci bridges, how can I make this
device
visible for the driver ?

Thanks.

--
J.A. Magallon <jamagallon()ono!com> \ Software is
like sex:
\ It's better when
it's free
Mandriva Linux release 2009.0 (Cooker) for i586
Linux 2.6.25-jam13 (gcc 4.3.1 20080515 (GCC) #1 SMP



2008-08-29 15:43:22

by J.A. Magallón

[permalink] [raw]
Subject: Re: Unhiding devices in pci bus


On 2008.08.29, at 16:36, J.A. Magall?n wrote:

> Hi all...
>
> I have an Aspire One, and the JMicron SD Card reader is hidden from
> sysfs
> space, it only shows if I do an lspci -H1 (direct hardware access):
> ...
> 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI
> Express Port 1 (rev 02)
> 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI
> Express Port 2 (rev 02)
> 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI
> Express Port 3 (rev 02)
> 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI
> Express Port 4 (rev 02)
> ...

Forgot to say that this only happens after you have inserted a card
once. You can then remove it and the device stays there.
Unfortunately I can't boot with the card in, because udev hangs
forever on boot...

>
> 04:00.0 System peripheral: JMicron Technologies, Inc. Device 2382
> 04:00.2 SD Host controller: JMicron Technologies, Inc. Device 2381
> 04:00.3 System peripheral: JMicron Technologies, Inc. Device 2383
> 04:00.4 System peripheral: JMicron Technologies, Inc. Device 2384
>
> one:~# lspci -t
> -[0000:00]-+-00.0
> +-02.0
> +-02.1
> +-1b.0
> +-1c.0-[0000:01]--
> +-1c.1-[0000:02]----00.0
> +-1c.2-[0000:03]----00.0
> +-1c.3-[0000:04]--
> +-1d.0
> +-1d.1
> +-1d.2
> +-1d.3
> +-1d.7
> +-1e.0-[0000:05]--
> +-1f.0
> +-1f.2
> \-1f.3
>
> one:~# lspci -H1 -t
> -[0000:00]-+-00.0
> +-02.0
> +-02.1
> +-1b.0
> +-1c.0-[0000:01]--
> +-1c.1-[0000:02]--
> +-1c.2-[0000:03]----00.0
> +-1c.3-[0000:04]--+-00.0
> | +-00.2
> | +-00.3
> | \-00.4
> +-1d.0
> +-1d.1
> +-1d.2
> +-1d.3
> +-1d.7
> +-1e.0-[0000:05]--
> +-1f.0
> +-1f.2
> \-1f.3
>
> lspci -M:
>
> ...
> 00: Primary host bus
> 1e.0 Bridge to 05-05
> 1c.3 Bridge to 04-04
> 1c.2 Bridge to 03-03
> 1c.1 Bridge to 02-02
> 1c.0 Bridge to 01-01
> ...
>
> If I load the driver (sdhci), it does not detect anything. It looks
> like
> it is hidden/hung after one of the pci bridges, how can I make this
> device
> visible for the driver ?
>
> Thanks.
>
> --
> J.A. Magallon <jamagallon()ono!com> \ Software is
> like sex:
> \ It's better when
> it's free
> Mandriva Linux release 2009.0 (Cooker) for i586
> Linux 2.6.25-jam13 (gcc 4.3.1 20080515 (GCC) #1 SMP
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-
> kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

--
J.A. Magallon <jamagallon()ono!com> \ Software is
like sex:
\ It's better when
it's free
Mandriva Linux release 2009.0 (Cooker) for i586
Linux 2.6.25-jam13 (gcc 4.3.1 20080515 (GCC) #1 SMP


2008-08-29 23:36:35

by J.A. Magallón

[permalink] [raw]
Subject: Re: Unhiding devices in pci bus

On Fri, 29 Aug 2008 21:43:32 +0200 (CEST), Erik Inge Bolsø <[email protected]> wrote:

> You are doing the setpci magic trick, I assume?
>
> if not, add
> "setpci -d 197b:2381 AE=47"
> to your boot scripts.
>
> (From the stock linpus boot scripts.)
>

It has never worked for me.

But FYI, 2-6-27-rc5 boots fine with the card inserted and detects the
reader. No hack needed.
And ether and wifi both work.
But it has other problems.

--
J.A. Magallon <jamagallon()ono!com> \ Software is like sex:
\ It's better when it's free
Mandriva Linux release 2009.0 (Cooker) for i586
Linux 2.6.25-jam18 (gcc 4.3.1 20080626 (GCC) #1 SMP