public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC/Patch 0/12] ACPI based root bridge hot-add
@ 2005-03-18 21:38 Rajesh Shah
  2005-03-18 21:48 ` [Patch 1/12] " Rajesh Shah
                   ` (13 more replies)
  0 siblings, 14 replies; 22+ messages in thread
From: Rajesh Shah @ 2005-03-18 21:38 UTC (permalink / raw)
  To: gregkh; +Cc: linux-pci, linux-kernel, pcihpd-discuss

Here is a series of patches to support ACPI hot-add of a root
bridge hierarchy. The added hierarchy may contain other p2p 
bridges and end/leaf I/O devices too. The root bridge itself is
assumed to have been assigned resource ranges, but the p2p
bridges and end devices are not required to be initialized by
firmware. Most of the code changes are to make the existing code
flows suitable for such a hierarchy of bridges & devices.

This code supports hot-add on ia64 only for now.It does not yet
support I/O APIC hot-add, which is needed to make this fully
functional.  The patches are against 2.6.11-mm4 (plus the patch 
needed for ia64 to boot). I've tested to make sure this does not 
break end/leaf device hotplug on the hotplug capable ia64 box I have.

Thanks,
Rajesh

^ permalink raw reply	[flat|nested] 22+ messages in thread
* RE: [RFC/Patch 0/12] ACPI based root bridge hot-add
@ 2005-03-22  1:06 Sy, Dely L
  0 siblings, 0 replies; 22+ messages in thread
From: Sy, Dely L @ 2005-03-22  1:06 UTC (permalink / raw)
  To: Shah, Rajesh, Greg KH
  Cc: linux-pci, linux-kernel, pcihpd-discuss, akpm, Brown, Len,
	Luck, Tony

On Monday, March 21, 2005 10:05 AM, Rajesh Shah wrote:
> On Fri, Mar 18, 2005 at 09:13:32PM -0800, Greg KH wrote:
> > 	- Does this break the i386 acpiphp functionality?

> Dely Sy had tested hotplug with an earlier version of my patches
> (with minor differences from the current series) on i386 and it
> worked fine. She probably hasn't tested the latest one. Dely,
> could you check that please? 

I tested an earlier version of this patch on my i386 system with
PCI Express hot-plug slots.  The i386 acpiphp functionality worked
fine - i.e. I was able to do hot-plug of single- & multi-function 
cards.  

I'll check this new patch on my system.

> > 	- Have you tested other pci hotplug systems with this patch
> > 	  series?  Like pci express hotplug, standard pci hotplug,
> > 	  cardbus, etc?

> No, because I the one system I have access to isn't doing any
> hot-plug. I'm working on fixing that but was also hoping to hear
> from others who surely have access to more machines than I do.

PCI Express hot-plug has been tried (see above).  The original 
acpiphp driver won't detect hot-pluggable slots that locate on the
p2p bridge (PCI Express to PCI/PCI-X bridge) behind another p2p 
bridge (root port).  Therefore, the acpiphp can't be used for
standard PCI hot-plug in my system.

Thanks,
Dely

^ permalink raw reply	[flat|nested] 22+ messages in thread
* RE: [RFC/Patch 0/12] ACPI based root bridge hot-add
@ 2005-03-23  3:13 Dely Sy
  0 siblings, 0 replies; 22+ messages in thread
From: Dely Sy @ 2005-03-23  3:13 UTC (permalink / raw)
  To: gregkh, rajesh.shah
  Cc: akpm, dely.l.sy, len.brown, linux-kernel, linux-pci,
	pcihpd-discuss, tony.luck

On Monday, March 21, 2005 5:07 PM, Dely Sy wrote:
> On Monday, March 21, 2005 10:05 AM, Rajesh Shah wrote:
> > On Fri, Mar 18, 2005 at 09:13:32PM -0800, Greg KH wrote:
> > > 	- Does this break the i386 acpiphp functionality?

> > Dely Sy had tested hotplug with an earlier version of my patches
> > (with minor differences from the current series) on i386 and it
> > worked fine. She probably hasn't tested the latest one. Dely,
> > could you check that please? 

> I tested an earlier version of this patch on my i386 system with
> PCI Express hot-plug slots.  The i386 acpiphp functionality worked
> fine - i.e. I was able to do hot-plug of single- & multi-function 
> cards.  

> I'll check this new patch on my system.

Earlier I reported that Matthew's acpiphp rewrite had problem in 
powering down slot on my i386 system.  The following patch is 
needed to get the acpiphp rewrite properly powering down the slot.
A similar patch was sent out to Matthew for comment and Rajesh 
had tested the patch on Tiger4.

I just did a test of Rajesh's latest patch on 2.6.11.5 with
Wilcox's acpiphp rewrite and the following patch.  Hot-plug of 
PCI Express card worked fine on my i386 system
 
Thanks,
Dely

Signed-off-by: Dely Sy <dely.l.sy@intel.com>

diff -urpN linux-2.6.11.5rbha/drivers/pci/hotplug/acpiphp_glue.c linux-2.6.11.5rbhatst/drivers/pci/hotplug/acpiphp_glue.c
--- linux-2.6.11.5rbha/drivers/pci/hotplug/acpiphp_glue.c	2005-03-22 00:56:04.000000000 -0800
+++ linux-2.6.11.5rbhatst/drivers/pci/hotplug/acpiphp_glue.c	2005-03-22 23:21:23.000000000 -0800
@@ -586,7 +586,7 @@ static int power_off_slot(struct acpiphp
 	list_for_each (l, &slot->funcs) {
 		func = list_entry(l, struct acpiphp_func, sibling);
 
-		if (func->pci_dev && (func->flags & FUNC_HAS_PS3)) {
+		if (func->flags & FUNC_HAS_PS3) {
 			status = acpi_evaluate_object(func->handle, "_PS3", NULL, NULL);
 			if (ACPI_FAILURE(status)) {
 				warn("%s: _PS3 failed\n", __FUNCTION__);
@@ -601,7 +601,7 @@ static int power_off_slot(struct acpiphp
 		func = list_entry(l, struct acpiphp_func, sibling);
 
 		/* We don't want to call _EJ0 on non-existing functions. */
-		if (func->pci_dev && (func->flags & FUNC_HAS_EJ0)) {
+		if (func->flags & FUNC_HAS_EJ0) {
 			/* _EJ0 method take one argument */
 			arg_list.count = 1;
 			arg_list.pointer = &arg;

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2005-03-31 19:07 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-18 21:38 [RFC/Patch 0/12] ACPI based root bridge hot-add Rajesh Shah
2005-03-18 21:48 ` [Patch 1/12] " Rajesh Shah
2005-03-18 21:59 ` [Patch 2/12] Fix pci_enable_device() for p2p bridges Rajesh Shah
2005-03-18 22:02 ` [patch 03/12] Make pcibios_fixup_bus() hot-plug safe Rajesh Shah
2005-03-18 22:04 ` [patch 04/12] Prevent duplicate bus numbers when scanning PCI bridge Rajesh Shah
2005-03-18 22:07 ` [patch 05/12] Take the PCI lock when modifying pci bus or device lists Rajesh Shah
2005-03-18 22:09 ` [patch 06/12] Link newly created pci child bus to its parent on creation Rajesh Shah
2005-03-18 22:11 ` [patch 07/12] Make the PCI remove routines safe for failed hot-plug Rajesh Shah
2005-03-19  5:14   ` Greg KH
2005-03-18 22:14 ` [patch 08/12] Remove hot-plugged devices that could not be allocated resources Rajesh Shah
2005-03-18 22:16 ` [patch 09/12] Read bridge resources when fixing up the bus Rajesh Shah
2005-03-18 22:18 ` [patch 10/12] Allow ACPI .add and .start operations to be done independently Rajesh Shah
2005-03-18 22:20 ` [patch 11/12] Export the interface to get PCI id for an ACPI handle Rajesh Shah
2005-03-18 22:22 ` [patch 12/12] ACPI based root bridge hot-add Rajesh Shah
2005-03-19  5:13 ` [RFC/Patch 0/12] " Greg KH
2005-03-21 18:04   ` Rajesh Shah
2005-03-21 18:27     ` Greg KH
2005-03-31 19:06       ` Len Brown
2005-03-19 13:50 ` Paul Ionescu
2005-03-21 19:14   ` [ACPI] " Rajesh Shah
  -- strict thread matches above, loose matches on Subject: below --
2005-03-22  1:06 Sy, Dely L
2005-03-23  3:13 Dely Sy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox