From: Kristen Accardi <kristen.c.accardi@intel.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: linux-kernel@vger.kernel.org, greg@kroah.com,
pcihpd-discuss@lists.sourceforge.net, len.brown@intel.com,
linux-acpi@vger.kernel.org
Subject: Re: [Pcihpd-discuss] Re: [patch 0/4] Hot Dock/Undock support
Date: Wed, 18 Jan 2006 13:06:09 -0800 [thread overview]
Message-ID: <1137618370.31839.12.camel@whizzy> (raw)
In-Reply-To: <20060118194554.GA1502@elf.ucw.cz>
On Wed, 2006-01-18 at 20:45 +0100, Pavel Machek wrote:
> Hi!
>
> > > > This series of patches is against the -mm kernel, and will enable
> > > > docking station support. It is an early patch, but still pretty
> > > > functional, so I think it's worthwhile to include at this point.
> > > > For some laptops, it's necessary to use the pci=assign-busses kernel
> > > > parameter, because some _DCK methods will attempt to assign bus numbers
> > > > to the dock bridge (incorrectly).
> > >
> > > On thinkpad X32: I selected
> ...
> > > Recompiled, rebooted with machine out of dock. /sys/bus/pci/slots/ is
> > > empty. I then inserted machine into dock, and locked it:
> > >
> > > root@amd:/sys/bus/pci/slots# echo dock > /proc/acpi/ibm/dock
> > > root@amd:/sys/bus/pci/slots# ls
> > > root@amd:/sys/bus/pci/slots#
> > >
> > > ...still empty. What am I doing wrong?
> >
> > You may not use the ibm_acpi driver at the same time as the acpiphp
> > driver for docking. This is because the ibm_acpi driver also tries to
> > handle the dock event notification, and doesn't actually do any
> > hotplugging of the devices. So, you want to set that config option to
> > N. What you are doing above is actually writing to the ibm_acpi
> > driver.
>
> Done.
>
> > I didn't provide a way to do undocking via software. I just use the
> > button on the dock station. You should however, see something
> > in /sys/bus/pci/slots - can you scan your dmesg to make sure that the
> > acpiphp driver is running? You might run it as a module and enable
> > debugging:
> >
> > modprobe acpiphp debug=1
> >
> > This way we can see if it finds your dock slot and registers the notify
> > handler.
>
> Result is:
>
> root@amd:/data/l/linux-mm/drivers/pci/hotplug# insmod acpiphp.ko debug=1
> insmod: error inserting 'acpiphp.ko': -1 No such device
> root@amd:/data/l/linux-mm/drivers/pci/hotplug# dmesg | tail -3
> Failure of coda_cnode_make for root: error -19
> acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
> acpiphp_glue: Total 0 slots
> root@amd:/data/l/linux-mm/drivers/pci/hotplug#
>
> Should I have CONFIG_HOTPLUG_PCI_ACPI_IBM set?
>
> Pavel
>
Hum, I don't think so (but maybe someone else knows for sure), I thought
that driver was specifically for a certain kind of IBM server, not an
IBM laptop. It looks like from this output that the acpiphp is not
recognizing any hotplug capable devices on your laptop. I believe that
this is defined by acpiphp as a slot which is "ejectable", meaning
contains an ACPI method called _EJ0. I think we should take a look at
your dsdt to make sure that it seems reasonable, and also perhaps you
could send the output of lspci -vv -x with the laptop booted in the dock
just to see what kind of dock bridge you have and make sure everything
seems like it should work. Please send the disassembled output of your
dsdt - if you've never done it before, instructions for doing this can
be found here:
http://acpi.sourceforge.net/dsdt/index.php
thanks!
Kristen
next prev parent reply other threads:[~2006-01-18 21:39 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-18 0:56 [patch 0/4] Hot Dock/Undock support Kristen Accardi
2006-01-18 12:16 ` Pavel Machek
2006-01-18 13:04 ` Pavel Machek
2006-01-18 18:42 ` [Pcihpd-discuss] " Kristen Accardi
2006-01-18 19:45 ` Pavel Machek
2006-01-18 21:06 ` Kristen Accardi [this message]
2006-01-18 21:47 ` Matthew Garrett
2006-01-18 22:08 ` Pavel Machek
2006-01-18 22:23 ` Pavel Machek
2006-01-19 0:06 ` Kristen Accardi
2006-01-19 15:23 ` Dmitry Torokhov
2006-01-18 14:51 ` Pavel Machek
2006-01-20 1:27 ` Kristen Accardi
2006-01-18 20:42 ` Pavel Machek
2006-01-18 21:43 ` Kristen Accardi
2006-01-18 21:11 ` Pavel Machek
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=1137618370.31839.12.camel@whizzy \
--to=kristen.c.accardi@intel.com \
--cc=greg@kroah.com \
--cc=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=pcihpd-discuss@lists.sourceforge.net \
/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