All of lore.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <len.brown@intel.com>
To: akpm@osdl.org
Cc: linux-acpi@vger.kernel.org, eiichiro.oiwa.nm@hitachi.com
Subject: Re: [patch 09/12] Fix incorrect handling PCI-Express Root Bridge _HID
Date: Sat, 14 Oct 2006 04:07:49 -0400	[thread overview]
Message-ID: <200610140407.49927.len.brown@intel.com> (raw)
In-Reply-To: <200610102120.k9ALKeBx024290@shell0.pdx.osdl.net>

This was applied to (2.6.20-bound) ACPICA, and I've cherry-picked it
to apply to 2.6.19, and will send it to stable as well.

thanks,
-Len

On Tuesday 10 October 2006 17:20, akpm@osdl.org wrote:
> 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 files 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 */
> _
> -
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

      reply	other threads:[~2006-10-14  8:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-10 21:20 [patch 09/12] Fix incorrect handling PCI-Express Root Bridge _HID akpm
2006-10-14  8:07 ` Len Brown [this message]

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=200610140407.49927.len.brown@intel.com \
    --to=len.brown@intel.com \
    --cc=akpm@osdl.org \
    --cc=eiichiro.oiwa.nm@hitachi.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@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 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.