Re: [PATCH 0/5][RFC] Physical PCI slot objects

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Gary Hade
Date: Wednesday, November 14, 2007 - 5:40 pm

On Tue, Nov 13, 2007 at 06:37:32PM -0700, Alex Chiang wrote:

Thanks.  This will allow everyone to focus on the systems where
the changes are most beneficial and not waste a bunch of time
trying to test everywhere.


Hey, this isn't a silly question. :)


Yes, it is just a typo.  I did apply all 5 patches.


No, acpiphp should (and did before your changes) register all 
hotplug capable slots.  All 6 slots (2 PCI-X, 4 PCIe) in that
system are hotplug capable.  Emptyness shouldn't matter.  If
the empty slots are not registered it is not be possible to
successfully hotplug cards to them.

Without your changes acpiphp loads with the following output.
  acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
  acpiphp: Slot [1] registered
  acpiphp: Slot [2] registered
  acpiphp: Slot [3] registered
  acpiphp: Slot [4] registered
  acpiphp: Slot [5] registered
  acpiphp: Slot [6] registered

With your changes I confirmed that an attempted hotplug
to a boot-time vacant PCIe slot failed as expected.  The
driver saw the insertion event but didn't find anything
to enable:
acpiphp_glue: handle_hotplug_event_bridge: Bus check notify on \_SB_.VP05.CALG
acpiphp_glue: handle_hotplug_event_bridge: re-enumerating slots under \_SB_.VP05.CALG
acpiphp_glue: acpiphp_check_bridge: 0 enabled, 0 disabled


Well, both _ADR and _EJ0 exist for each of the 4 PCIe slots.


No, the P2P parent bus is 0000:0f and the P2P child bus is
0000:10 so I believe the real address for slot 4 should be
0000:10:00.

kernel without your changes after loading acpiphp:
  # cat /sys/bus/pci/slots/4/address
  0000:10:00

kernel with your changes both before and after loading acpiphp:
  # cat /sys/bus/pci/slots/4/address
  0000:0f:00


Of course, this kind of confusing noise would not be acceptable
in the final version of your changes.


No, the wrong thing happened here.  I expect the slot directories
for the empty slots to look the same as they did before your changes.
This is what the slot directories for empty slots look like without 
your changes.
  # find /sys/bus/pci/slots/[45]
  /sys/bus/pci/slots/4
  /sys/bus/pci/slots/4/power
  /sys/bus/pci/slots/4/attention
  /sys/bus/pci/slots/4/latch
  /sys/bus/pci/slots/4/adapter
  /sys/bus/pci/slots/4/address
  /sys/bus/pci/slots/5
  /sys/bus/pci/slots/5/power
  /sys/bus/pci/slots/5/attention
  /sys/bus/pci/slots/5/latch
  /sys/bus/pci/slots/5/adapter
  /sys/bus/pci/slots/5/address

Note that with your changes the slot directories for the PCI-X
slots (slot 1 populated, slot 2 empty) look fine.
  # find /sys/bus/pci/slots/[12]
  /sys/bus/pci/slots/1
  /sys/bus/pci/slots/1/address
  /sys/bus/pci/slots/1/power
  /sys/bus/pci/slots/1/attention
  /sys/bus/pci/slots/1/latch
  /sys/bus/pci/slots/1/adapter
  /sys/bus/pci/slots/2
  /sys/bus/pci/slots/2/address
  /sys/bus/pci/slots/2/power
  /sys/bus/pci/slots/2/attention
  /sys/bus/pci/slots/2/latch
  /sys/bus/pci/slots/2/adapter


At first I thought you were talking about the acpiphp
register failure messages that I reported here.  Since the
new functions added with patch 4/5 are not visited when acpiphp
loads you must be talking about the ACPI complaints during boot
(see below) which are mentioned in the comment you included
in your patch.  I don't have any ideas right now.

Thanks,
Gary

-- 
Gary Hade
System x Enablement
IBM Linux Technology Center
503-578-4503  IBM T/L: 775-4503
garyhade@us.ibm.com
http://www.ibm.com/linux/ltc

pci_hotplug: PCI Hot Plug PCI Core version: 0.5
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device S1F1 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device S1F2 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device S1F3 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device S1F4 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device S1F5 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device S1F6 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device S1F7 [20070126]
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device E3F1 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device E3F2 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device E3F3 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device E3F4 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device E3F5 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device E3F6 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device E3F7 [20070126]
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device E6F2 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device E6F3 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device E6F4 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device E6F5 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device E6F6 [20070126]
ACPI Exception (pci_bind-0086): AE_NOT_FOUND, Invalid ACPI-PCI context for device E6F7 [20070126]
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
ACPI: Invalid ACPI Bus context for device <NULL>
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/5][RFC] Physical PCI slot objects, Alex Chiang, (Mon Nov 12, 5:08 pm)
[PATCH 1/5] Remove path attribute from sgi_hotplug, Alex Chiang, (Mon Nov 12, 5:12 pm)
[PATCH 2/5] Construct one fakephp slot per pci slot, Alex Chiang, (Mon Nov 12, 5:13 pm)
[PATCH 3/5, RFC] Introduce pci_slot, Alex Chiang, (Mon Nov 12, 5:14 pm)
[PATCH 4/5, RFC] ACPI PCI slot detection driver, Alex Chiang, (Mon Nov 12, 5:17 pm)
[PATCH 5/5] Add pci_slot_add_hotplug() interface, Alex Chiang, (Mon Nov 12, 5:18 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Greg KH, (Tue Nov 13, 10:01 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Matthew Wilcox, (Tue Nov 13, 11:33 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Greg KH, (Tue Nov 13, 11:51 am)
Re: [PATCH 2/5] Construct one fakephp slot per pci slot, Linas Vepstas, (Tue Nov 13, 12:48 pm)
Re: [PATCH 2/5] Construct one fakephp slot per pci slot, Matthew Wilcox, (Tue Nov 13, 12:52 pm)
Re: [PATCH 3/5, RFC] Introduce pci_slot, Linas Vepstas, (Tue Nov 13, 12:56 pm)
Re: [PATCH 3/5, RFC] Introduce pci_slot, Matthew Wilcox, (Tue Nov 13, 1:03 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Matthew Wilcox, (Tue Nov 13, 1:11 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Greg KH, (Tue Nov 13, 1:19 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Alex Chiang, (Tue Nov 13, 1:21 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Linas Vepstas, (Tue Nov 13, 1:24 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Greg KH, (Tue Nov 13, 1:26 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Alex Chiang, (Tue Nov 13, 1:36 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Alex Chiang, (Tue Nov 13, 1:59 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Matt Domsch, (Tue Nov 13, 2:15 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Greg KH, (Tue Nov 13, 2:30 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Alex Chiang, (Tue Nov 13, 2:31 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Greg KH, (Tue Nov 13, 2:32 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Greg KH, (Tue Nov 13, 2:36 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Linas Vepstas, (Tue Nov 13, 2:41 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Matthew Wilcox, (Tue Nov 13, 2:58 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Bjorn Helgaas, (Tue Nov 13, 3:01 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Greg KH, (Tue Nov 13, 3:16 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Rick Jones, (Tue Nov 13, 3:51 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Greg KH, (Tue Nov 13, 3:56 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Kristen Carlson Accardi, (Tue Nov 13, 3:59 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Matthew Wilcox, (Tue Nov 13, 4:04 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Greg KH, (Tue Nov 13, 4:07 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Gary Hade, (Tue Nov 13, 4:08 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Alex Chiang, (Tue Nov 13, 4:14 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Kristen Carlson Accardi, (Tue Nov 13, 4:33 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Matthew Wilcox, (Tue Nov 13, 5:10 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Andi Kleen, (Tue Nov 13, 6:07 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Alex Chiang, (Tue Nov 13, 6:37 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Scott Murray, (Tue Nov 13, 11:00 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Kenji Kaneshige, (Wed Nov 14, 2:55 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Kenji Kaneshige, (Wed Nov 14, 4:43 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Matthew Wilcox, (Wed Nov 14, 7:17 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Andi Kleen, (Wed Nov 14, 7:35 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Alex Chiang, (Wed Nov 14, 7:42 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Matthew Wilcox, (Wed Nov 14, 8:00 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Andi Kleen, (Wed Nov 14, 8:08 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Matthew Wilcox, (Wed Nov 14, 8:12 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Alex Chiang, (Wed Nov 14, 8:20 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Bjorn Helgaas, (Wed Nov 14, 10:37 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Matthew Garrett, (Wed Nov 14, 10:44 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Greg KH, (Wed Nov 14, 10:51 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Greg KH, (Wed Nov 14, 10:53 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Matthew Garrett, (Wed Nov 14, 11:03 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Gary Hade, (Wed Nov 14, 11:13 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Alex Chiang, (Wed Nov 14, 11:36 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Kristen Carlson Accardi, (Wed Nov 14, 11:38 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Alex Chiang, (Wed Nov 14, 12:53 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Alex Chiang, (Wed Nov 14, 2:24 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Alex Chiang, (Wed Nov 14, 2:42 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Gary Hade, (Wed Nov 14, 5:40 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Alex Chiang, (Thu Nov 15, 10:36 am)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Alex Chiang, (Thu Nov 15, 1:20 pm)
Re: [PATCH 0/5][RFC] Physical PCI slot objects, Gary Hade, (Thu Nov 15, 4:38 pm)