From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757247Ab2EEQsr (ORCPT ); Sat, 5 May 2012 12:48:47 -0400 Received: from mx3.schottelius.org ([77.109.138.221]:36337 "EHLO mx3.schottelius.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757170Ab2EEQsq (ORCPT ); Sat, 5 May 2012 12:48:46 -0400 Date: Sat, 5 May 2012 18:48:19 +0200 From: Nico Schottelius To: Jiang Liu Cc: Francois Rigaut , Yinghai Lu , Greg KH , linux-pci@vger.kernel.org, Nico Schottelius , LKML Subject: Re: Linux Support for Thunderbolt using Apple Monitor Message-ID: <20120505164819.GA21599@schottelius.org> Mail-Followup-To: Nico Schottelius , Jiang Liu , Francois Rigaut , Yinghai Lu , Greg KH , linux-pci@vger.kernel.org, LKML References: <20120503153547.GD20334@kroah.com> <20120503233858.GA13453@kroah.com> <4FA358ED.1080705@gmail.com> <20120504184851.GB11223@kroah.com> <4FA4AA3E.1070903@gmail.com> <4FA544B1.3070705@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FA544B1.3070705@gmail.com> User-Agent: echo $message | gpg -e $sender -s | netcat mailhost 25 X-Netzseite: http://www.nico.schottelius.org/ X-System-Info: brief (Linux 3.3.4-2-ARCH x86_64) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Jiang, Jiang Liu [Sat, May 05, 2012 at 11:18:09PM +0800]: > It seems that the PCI topology related to the Thunderbird is: Thanks for digging into this, I've the feeling we could somehow get this running in the end... > [...] > According to the acpidump sent out by you, I guess the relationship among PCIe and ACPI is as below: > Device (PCI0) // PCIe host bridge > { > Name (_HID, EisaId ("PNP0A08")) > Device (P0P2) //00:01.0 > { > Name (_ADR, 0x00010000) > Device (UPSB) //03:00.0 > { > Name (_ADR, 0x00) > Device (DSB2) //04:04.0 > { > Name (_ADR, 0x00040000) > Method (_RMV, 0, NotSerialized) > { > Return (OSDW ()) // OSDW-> OS is Darwin > } > Device (UPS2) //37:00.0 > { > Name (_ADR, 0x00) > } > } > } > } > } > > But _RMV method only returns 1 on iOS or Max OS X. That means ACPI based hotplug is disabled > on Linux for your system. And as Yinghai has pointed out, all the PCIe downstream ports on > the system don't support PCIe hotplug. So need BIOS or hardware changes to support Thunderbolt > cable hotplug on your system. I'm not deep into how acpi works, but wondering: Can't we replace that part, change the tree or emulate a different OSDW() method similar to LD_PRELOAD? Cheers, Nico -- PGP key: 7ED9 F7D3 6B10 81D7 0EC5 5C09 D7DC C8E4 3187 7DF0