All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 10/10] Fix incorrect handling PCI-Express Root Bridge _HID
@ 2006-09-25 23:28 akpm
  2006-09-26  4:41 ` eiichiro.oiwa.nm
  0 siblings, 1 reply; 4+ messages in thread
From: akpm @ 2006-09-25 23:28 UTC (permalink / raw)
  To: len.brown; +Cc: linux-acpi, akpm, eiichiro.oiwa.nm

From: <eiichiro.oiwa.nm@hitachi.com>

Lifted from http://bugzilla.kernel.org/show_bug.cgi?id=7145

PCI Bus Topology:

[CPU] [CPU]        [CPU]  [CPU]
  |      |BUS        |     |   BUS
--+--+---+---      --+--+--+------
     |                  |
 [Root Bridge]*1-----[Root Bridge]*1
     |      |           \        \
 [Bridge]   |        [PCI-e slot] [PCI-e slot]
    | |    [PCI-e slot]
    | \
    | [PCI-e slot]
    |
    |
 [PCI Bridge]
    |     \
    |      [PCI-X slot]
    |
 [PCI-X slot]

*1: PCI Express Root Bridge.

I could not get correct PCI Express BUS number from the structure of
acpi_object_extra.  I always get zero as BUS number regardless of BUS
location.  I found that there is incorrect comparison with _HID (PNP0A08)
in acpi/events/evrgnini.c and PCI Express _BBN method always fail. 
Therefore, we get always get zero as PCI Express bus number.

I suggest the following patch.

Cc: "Brown, Len" <len.brown@intel.com>
Cc: <linux-acpi@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 drivers/acpi/events/evrgnini.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN drivers/acpi/events/evrgnini.c~fix-incorrect-handling-of-pci-express-root-bridge-_hid drivers/acpi/events/evrgnini.c
--- a/drivers/acpi/events/evrgnini.c~fix-incorrect-handling-of-pci-express-root-bridge-_hid
+++ a/drivers/acpi/events/evrgnini.c
@@ -225,12 +225,12 @@ acpi_ev_pci_config_region_setup(acpi_han
 				if (!
 				    (ACPI_STRNCMP
 				     (object_hID.value, PCI_ROOT_HID_STRING,
-				      sizeof(PCI_ROOT_HID_STRING))
+				      sizeof(PCI_ROOT_HID_STRING)))
 				     ||
 				     !(ACPI_STRNCMP
 				       (object_hID.value,
 					PCI_EXPRESS_ROOT_HID_STRING,
-					sizeof(PCI_EXPRESS_ROOT_HID_STRING)))))
+					sizeof(PCI_EXPRESS_ROOT_HID_STRING))))
 				{
 
 					/* Install a handler for this PCI root bridge */
_

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

* Re:[patch 10/10] Fix incorrect handling PCI-Express Root Bridge _HID
  2006-09-25 23:28 [patch 10/10] Fix incorrect handling PCI-Express Root Bridge _HID akpm
@ 2006-09-26  4:41 ` eiichiro.oiwa.nm
  2006-09-26  7:15   ` [patch " Len Brown
  0 siblings, 1 reply; 4+ messages in thread
From: eiichiro.oiwa.nm @ 2006-09-26  4:41 UTC (permalink / raw)
  To: akpm; +Cc: len.brown, linux-acpi

Hi Andrew,

We need this patch for APCI hotplug because APCI parser gets bus number from acpi_object_extra. I already tested this patch by ACPI hotplug, and confirmed there is no problem on our box has described PCI topology.
I don't have git rights.
Could you merge this patch into Linus's tree?

Thanks,
Eiichiro Oiwa

>From: <eiichiro.oiwa.nm@hitachi.com>
>
>Lifted from http://bugzilla.kernel.org/show_bug.cgi?id=7145
>
>PCI Bus Topology:
>
>[CPU] [CPU]        [CPU]  [CPU]
>  |      |BUS        |     |   BUS
>--+--+---+---      --+--+--+------
>     |                  |
> [Root Bridge]*1-----[Root Bridge]*1
>     |      |           \        \
> [Bridge]   |        [PCI-e slot] [PCI-e slot]
>    | |    [PCI-e slot]
>    | \
>    | [PCI-e slot]
>    |
>    |
> [PCI Bridge]
>    |     \
>    |      [PCI-X slot]
>    |
> [PCI-X slot]
>
>*1: PCI Express Root Bridge.
>
>I could not get correct PCI Express BUS number from the structure of
>acpi_object_extra.  I always get zero as BUS number regardless of BUS
>location.  I found that there is incorrect comparison with _HID (PNP0A08)
>in acpi/events/evrgnini.c and PCI Express _BBN method always fail. 
>Therefore, we get always get zero as PCI Express bus number.
>
>I suggest the following patch.
>
>Cc: "Brown, Len" <len.brown@intel.com>
>Cc: <linux-acpi@vger.kernel.org>
>Signed-off-by: Andrew Morton <akpm@osdl.org>
>---
>
> drivers/acpi/events/evrgnini.c |    4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff -puN drivers/acpi/events/evrgnini.c~fix-incorrect-handling-of-pci-express-root-bridge-_hid drivers/acpi/events/evrgnini.c
>--- a/drivers/acpi/events/evrgnini.c~fix-incorrect-handling-of-pci-express-root-bridge-_hid
>+++ a/drivers/acpi/events/evrgnini.c
>@@ -225,12 +225,12 @@ acpi_ev_pci_config_region_setup(acpi_han
> 				if (!
> 				    (ACPI_STRNCMP
> 				     (object_hID.value, PCI_ROOT_HID_STRING,
>-				      sizeof(PCI_ROOT_HID_STRING))
>+				      sizeof(PCI_ROOT_HID_STRING)))
> 				     ||
> 				     !(ACPI_STRNCMP
> 				       (object_hID.value,
> 					PCI_EXPRESS_ROOT_HID_STRING,
>-					sizeof(PCI_EXPRESS_ROOT_HID_STRING)))))
>+					sizeof(PCI_EXPRESS_ROOT_HID_STRING))))
> 				{
> 
> 					/* Install a handler for this PCI root bridge */
>_
>

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

* Re: [patch 10/10] Fix incorrect handling PCI-Express Root Bridge _HID
  2006-09-26  4:41 ` eiichiro.oiwa.nm
@ 2006-09-26  7:15   ` Len Brown
  2006-09-26  7:46     ` Re[2]: " eiichiro.oiwa.nm
  0 siblings, 1 reply; 4+ messages in thread
From: Len Brown @ 2006-09-26  7:15 UTC (permalink / raw)
  To: eiichiro.oiwa.nm; +Cc: akpm, linux-acpi

On Tuesday 26 September 2006 00:41, eiichiro.oiwa.nm@hitachi.com wrote:
> Hi Andrew,
> 
> We need this patch for APCI hotplug because APCI parser gets bus number from acpi_object_extra. I already tested this patch by ACPI hotplug, and confirmed there is no problem on our box has described PCI topology.
> I don't have git rights.
> Could you merge this patch into Linus's tree?

Eiichiro,
Thank you for finding and fixing this bug.
This patch is checked into the upstream ACPICA source tree.
While I don't expect to pull that whole tree into 2.6.18,
I do plan to cherry pick this patch with some others for 2.6.19,
as well as 2.6.18.stable.

thanks,
-Len

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

* Re[2]: [patch 10/10] Fix incorrect handling PCI-Express Root Bridge _HID
  2006-09-26  7:15   ` [patch " Len Brown
@ 2006-09-26  7:46     ` eiichiro.oiwa.nm
  0 siblings, 0 replies; 4+ messages in thread
From: eiichiro.oiwa.nm @ 2006-09-26  7:46 UTC (permalink / raw)
  To: Len Brown; +Cc: akpm, linux-acpi

>> Hi Andrew,
>> 
>> We need this patch for APCI hotplug because APCI parser gets bus number from acpi_object_extra. I already tested this patch by ACPI hotplug, and confirmed there is no problem on our box has described PCI topology.
>> I don't have git rights.
>> Could you merge this patch into Linus's tree?
>
>Eiichiro,
>Thank you for finding and fixing this bug.
>This patch is checked into the upstream ACPICA source tree.
>While I don't expect to pull that whole tree into 2.6.18,
>I do plan to cherry pick this patch with some others for 2.6.19,
>as well as 2.6.18.stable.
>
>thanks,
>-Len

Len,
Thank you for your information.

Eiichiro

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

end of thread, other threads:[~2006-09-26  7:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-25 23:28 [patch 10/10] Fix incorrect handling PCI-Express Root Bridge _HID akpm
2006-09-26  4:41 ` eiichiro.oiwa.nm
2006-09-26  7:15   ` [patch " Len Brown
2006-09-26  7:46     ` Re[2]: " eiichiro.oiwa.nm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.