linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pat Erley <pat-lkml@erley.org>
To: linux-pci@vger.kernel.org
Subject: Expresscard AHCI Controller not Detected at Hotplug
Date: Thu, 26 Apr 2012 15:45:43 -0400	[thread overview]
Message-ID: <4F99A5E7.5090500@erley.org> (raw)

Apologies if I've chosen the wrong mailing list to start with.  I'm not certain
where this hickup is happening, so I'm not sure who to talk to.

I have a laptop (Lenovo w510) with an Expresscard/34 slot.  If I hotplug my
multi-i/o card, it works fine (well, it's detected and is enumerated):

  acpiphp_glue: _handle_hotplug_event_bridge: Bus check notify on \_SB_.PCI0.EXP4
  acpiphp_glue: _handle_hotplug_event_bridge: re-enumerating slots under \_SB_.PCI0.EXP4
  pci 0000:05:00.0: [9710:9912] type 0 class 0x000700
  pci 0000:05:00.0: reg 10: [io  0x0000-0x0007]
  pci 0000:05:00.0: reg 14: [mem 0x00000000-0x00000fff]
  pci 0000:05:00.0: reg 24: [mem 0x00000000-0x00000fff]
  pci 0000:05:00.0: PME# supported from D3hot D3cold
  pci 0000:05:00.1: [9710:9912] type 0 class 0x000700
  pci 0000:05:00.1: reg 10: [io  0x0000-0x0007]
  pci 0000:05:00.1: reg 14: [mem 0x00000000-0x00000fff]
  pci 0000:05:00.1: reg 24: [mem 0x00000000-0x00000fff]
  pci 0000:05:00.1: PME# supported from D3hot D3cold
  pci 0000:05:00.2: [9710:9912] type 0 class 0x000701
  pci 0000:05:00.2: reg 10: [io  0x0000-0x0007]
  pci 0000:05:00.2: reg 14: [io  0x0000-0x0007]
  pci 0000:05:00.2: reg 18: [mem 0x00000000-0x00000fff]
  pci 0000:05:00.2: reg 24: [mem 0x00000000-0x00000fff]
  pci 0000:05:00.2: PME# supported from D3hot D3cold
  pci 0000:05:00.0: BAR 1: assigned [mem 0xf0000000-0xf0000fff]
  pci 0000:05:00.0: BAR 5: assigned [mem 0xf0001000-0xf0001fff]
  pci 0000:05:00.1: BAR 1: assigned [mem 0xf0002000-0xf0002fff]
  pci 0000:05:00.1: BAR 5: assigned [mem 0xf0003000-0xf0003fff]
  pci 0000:05:00.2: BAR 2: assigned [mem 0xf0004000-0xf0004fff]
  pci 0000:05:00.2: BAR 5: assigned [mem 0xf0005000-0xf0005fff]
  pci 0000:05:00.0: BAR 0: assigned [io  0x3000-0x3007]
  pci 0000:05:00.1: BAR 0: assigned [io  0x3008-0x300f]
  pci 0000:05:00.2: BAR 0: assigned [io  0x3010-0x3017]
  pci 0000:05:00.2: BAR 1: assigned [io  0x3018-0x301f]
  pci 0000:05:00.0: no hotplug settings from platform
  pci 0000:05:00.1: no hotplug settings from platform
  pci 0000:05:00.2: no hotplug settings from platform
  acpiphp_glue: acpiphp_check_bridge: 1 enabled, 0 disabled
  Serial: 8250/16550 driver, 0 ports, IRQ sharing enabled
  serial 0000:05:00.0: enabling device (0000 -> 0003)
  Couldn't register serial port 0000:05:00.0: -28
  serial 0000:05:00.1: enabling device (0000 -> 0003)
  Couldn't register serial port 0000:05:00.1: -28
  parport_serial 0000:05:00.2: enabling device (0000 -> 0003)
  parport0: PC-style at 0x3010 (0x3018), irq 17, using FIFO [PCSPP,TRISTATE,COMPAT,ECP]

If I eject my multi-i/o card and hotplug my esata card (Marvell 91xx based), nothing
is seen:

  acpiphp_glue: _handle_hotplug_event_bridge: Bus check notify on \_SB_.PCI0.EXP4
  acpiphp_glue: _handle_hotplug_event_bridge: re-enumerating slots under \_SB_.PCI0.EXP4
  acpiphp_glue: acpiphp_check_bridge: 0 enabled, 1 disabled
  acpiphp_glue: _handle_hotplug_event_bridge: Bus check notify on \_SB_.PCI0.EXP4
  acpiphp_glue: _handle_hotplug_event_bridge: re-enumerating slots under \_SB_.PCI0.EXP4
  acpiphp_glue: acpiphp_check_bridge: 0 enabled, 0 disabled

If I do:

echo 1 > /sys/bus/pci/rescan

  pci 0000:05:00.0: [1b4b:9123] type 0 class 0x000106
  pci 0000:05:00.0: reg 10: [io  0x8000-0x8007]
  pci 0000:05:00.0: reg 14: [io  0x8040-0x8043]
  pci 0000:05:00.0: reg 18: [io  0x8100-0x8107]
  pci 0000:05:00.0: reg 1c: [io  0x8140-0x8143]
  pci 0000:05:00.0: reg 20: [io  0x800000-0x80000f]
  pci 0000:05:00.0: reg 24: [mem 0x00900000-0x009007ff]
  pci 0000:05:00.0: reg 30: [mem 0xd0000000-0xd000ffff pref]
  pci 0000:05:00.0: PME# supported from D3hot
  pci 0000:05:00.0: BAR 6: assigned [mem 0xf2800000-0xf280ffff pref]
  pci 0000:05:00.0: BAR 5: assigned [mem 0xf0000000-0xf00007ff]
  pci 0000:05:00.0: BAR 4: assigned [io  0x3020-0x302f]
  pci 0000:05:00.0: BAR 0: assigned [io  0x3000-0x3007]
  pci 0000:05:00.0: BAR 2: assigned [io  0x3030-0x3037]
  pci 0000:05:00.0: BAR 1: assigned [io  0x3038-0x303b]
  pci 0000:05:00.0: BAR 3: assigned [io  0x303c-0x303f]
  ahci 0000:05:00.0: irq 46 for MSI/MSI-X
  ahci 0000:05:00.0: controller can do FBS, turning on CAP_FBS
  ahci 0000:05:00.0: AHCI 0001.0200 32 slots 8 ports 6 Gbps 0xff impl SATA mode
  ahci 0000:05:00.0: flags: 64bit ncq fbs pio
  scsi28 : ahci
<snip x26>
  scsi 35:0:0:0: Processor         Marvell  91xx Config      1.01 PQ: 0 ANSI: 5
  scsi 35:0:0:0: Attached scsi generic sg5 type 3

It's detected and works fine.

Is this a PCI bug, an ACPI bug, a hardware issue, or working as designed?  Is there a
'better' way I should be handling this use case?

                 reply	other threads:[~2012-04-26 19:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4F99A5E7.5090500@erley.org \
    --to=pat-lkml@erley.org \
    --cc=linux-pci@vger.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;
as well as URLs for NNTP newsgroup(s).