public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Francois Rigaut <frigaut@gmail.com>
To: Yinghai Lu <yinghai@kernel.org>
Cc: Greg KH <gregkh@linuxfoundation.org>,
	linux-pci@vger.kernel.org,
	Nico Schottelius <nico-linux-20120419@schottelius.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: Linux Support for Thunderbolt using Apple Monitor
Date: Sat, 05 May 2012 14:19:10 +1000	[thread overview]
Message-ID: <4FA4AA3E.1070903@gmail.com> (raw)
In-Reply-To: <CAE9FiQWcyRfLKB+YivOfa-GydbhoaMx06n6a4VMDWoTOMkj7ig@mail.gmail.com>


On 05/05/12 05:38, Yinghai Lu wrote:
> On Fri, May 4, 2012 at 12:37 PM, Yinghai Lu<yinghai@kernel.org>  wrote:
>> On Fri, May 4, 2012 at 11:48 AM, Greg KH<gregkh@linuxfoundation.org>  wrote:
>>> Ok, it looks like these are the devices that we are missing while
>>> "hotplugging":
>>> 37:00.0 PCI bridge: Intel Corporation Device 1513
>>> 38:00.0 PCI bridge: Intel Corporation Device 1513
>>> 38:01.0 PCI bridge: Intel Corporation Device 1513
>>> 38:02.0 PCI bridge: Intel Corporation Device 1513
>>> 38:03.0 PCI bridge: Intel Corporation Device 1513
>>> 38:04.0 PCI bridge: Intel Corporation Device 1513
>>> 38:05.0 PCI bridge: Intel Corporation Device 1513
>>> 39:00.0 PCI bridge: Pericom Semiconductor Device 400c (rev 02)
>>> 3a:03.0 PCI bridge: Pericom Semiconductor Device 400c (rev 02)
>>> 3b:00.0 USB controller: Pericom Semiconductor Device 400e (rev 01)
>>> 3b:00.1 USB controller: Pericom Semiconductor Device 400e (rev 01)
>>> 3b:00.2 USB controller: Pericom Semiconductor Device 400f (rev 01)
>>> 3c:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM57761 Gigabit Ethernet PCIe (rev 10)
>>> 3d:00.0 FireWire (IEEE 1394): nee Agere Systems nee Lucent
>>> Microelectronics FW643 PCI Express 1394b Controller (PHY/Link) (rev 08)
>>>
>>> Which is good, I was worried that there was a video controller out there
>>> on the end of the thunderbolt link.
>>>
>>> So, the problem really is two here:
>>>   - your video card doesn't detect the new display
>>>   - your pci devices do not show up
>>>
>>> The first one probably needs to be reported to the Intel video driver
>>> people, they can help you out the best.
no it's definitely not the first one. As you saw, there'sa whole bunch 
of other devices (3 USB, firewire, network) that do not show up either.

The new info from Yinghai (thanks Yinghai) explains why hotpluging with 
pciehp did not work/detect the PCIE hotplug and did not result in *any* 
kernel messages.

So the whole thing I guess boils down to making acpiphp work. And why it 
outputs the "no such device" error message and does not load:

I tried with debug=1 and got a bit more info in the log files:

[root@poliahu frigaut]# lsmod | grep -e acpi -e pci
acpi_cpufreq            5941  0
mperf                   1275  1 acpi_cpufreq
processor              26144  1 acpi_cpufreq
[root@poliahu frigaut]# modprobe acpiphp debug=1
ERROR: could not insert 'acpiphp': No such device

at this point this message showed up in everything.log:
May  5 14:09:55 localhost kernel: [28329.700022] pci_hotplug: PCI Hot 
Plug PCI Core version: 0.5
May  5 14:09:55 localhost kernel: [28329.702041] acpiphp: ACPI Hot Plug 
PCI Controller Driver version: 0.5
May  5 14:09:55 localhost kernel: [28329.702484] acpiphp_glue: found 
PCI-to-PCI bridge at PCI 0000:04:00.0
May  5 14:09:55 localhost kernel: [28329.702715] acpiphp_glue: Bus 
0000:05 has 0 slots
May  5 14:09:55 localhost kernel: [28329.702720] acpiphp_glue: Total 0 slots

then:
[root@poliahu frigaut]# lsmod | grep -e acpi -e pci
pci_hotplug            25324  0
acpi_cpufreq            5941  0
mperf                   1275  1 acpi_cpufreq
processor              26144  1 acpi_cpufreq
[root@poliahu frigaut]#

shows that acpiphp was indeed not loaded (I assume the error occurs 
after it has written out the above messages in the log file), but 
pci_hotplug was as a dep of acpiphp I assume (thus, correct behavior).

So we're back to the issue of the acpiphp load error.

Greg, I see you're one of the authors of acpiphp:
#define DRIVER_VERSION    "0.5"
#define DRIVER_AUTHOR    "Greg Kroah-Hartman <gregkh@us.ibm.com>, 
Takayoshi Kochi <t-kochi@bq.jp.nec.com>, Matthew Wilcox <willy@hp.com>"
#define DRIVER_DESC    "ACPI Hot Plug PCI Controller Driver"

but that might have been a while back?

Cheers, and thanks,
Francois



>>>
>>> The second one means that something is up with the pci hotplug
>>> controller.  I've cced the linux-pci list, the people there should be
>>> able to help out better than I, as I no longer have any PCI hotplug
>>> hardware to work with anymore.
>>>
>> those devices are under 04:04.0, but that does not have slot cap
>> enabled by BIOS. So pciehp is going to to help.
> should be: pciehp is not going to help.
>
> so acpiphp are involved?
>
> Yinghai

  reply	other threads:[~2012-05-05  4:19 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-19 16:38 Linux Support for Thunderbolt using Apple Monitor Nico Schottelius
2012-04-19 21:15 ` Greg KH
     [not found] ` <CAMVeQ8r_3vuAxzbLyKoecOHOOGijUDkLfw+MK7o-WoWbuOGSrg@mail.gmail.com>
2012-05-02 16:36   ` Nico Schottelius
2012-05-02 20:25     ` Greg KH
2012-05-03  6:50       ` Nico Schottelius
2012-05-03 15:34         ` Greg KH
     [not found]         ` <CAMVeQ8qYu4bShd_+pwRv8bShhusJMDa-jjoqu7EujS4jt7RSNA@mail.gmail.com>
2012-05-03 15:35           ` Greg KH
2012-05-03 18:40             ` Nico Schottelius
2012-05-03 18:51               ` Greg KH
     [not found]             ` <CAMVeQ8q3PMMGmFSgrnqbW2HVdfmN+LgatX3TSfv5_2Ebuuj=QQ@mail.gmail.com>
2012-05-03 23:38               ` Greg KH
2012-05-04  4:19                 ` Francois Rigaut
2012-05-04 18:48                   ` Greg KH
2012-05-04 19:37                     ` Yinghai Lu
2012-05-04 19:38                       ` Yinghai Lu
2012-05-05  4:19                         ` Francois Rigaut [this message]
2012-05-05  8:18                           ` Jiang Liu
2012-05-05  8:47                             ` Francois Rigaut
2012-05-05 15:27                               ` Jiang Liu
2012-05-05 15:18                           ` Jiang Liu
2012-05-05 16:48                             ` Nico Schottelius
2012-05-06  3:22                               ` Jiang Liu
2012-05-09 16:05                                 ` Greg KH
2012-05-10  1:49                                   ` Francois Rigaut
2012-05-10  3:45                                     ` Greg KH
2012-05-06  3:59                             ` Francois Rigaut
2012-05-05  0:28                     ` Francois Rigaut
2012-05-05  0:35                       ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FA4AA3E.1070903@gmail.com \
    --to=frigaut@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=nico-linux-20120419@schottelius.org \
    --cc=yinghai@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox