All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] [PATCH] ACPI: ignore the error about the _CRS of LINK device
@ 2007-12-10  8:15 Zhao Yakui
  2007-12-14 22:43 ` Len Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Zhao Yakui @ 2007-12-10  8:15 UTC (permalink / raw)
  To: linux-acpi; +Cc: lenb

Hi, All
	The following error message can be found in the dmesg of bug8896.
	 ACPI Error (uteval-0269): Return object type is incorrect
[\_SB_.PCI0.ALKD._CRS] (Node da4b49f0), AE_TYPE
	ACPI Error (uteval-0275): Type returned from _CRS was incorrect:
Integer, expected Btypes: 4 [20060707]
	ACPI Exception (pci_link-0278): AE_TYPE, Evaluating _CRS [20060707]
	And the above error message is related to the following	BIOS Bug.
	Method (_CRS, 0, NotSerialized)
                {
                    Return (0x00)
                }

Can we ignore the error about the _CRS method of LINK device and select
IRQ from the possible IRQ list returned by _PRS method?

Thanks.
	


Subject: ACPI : Ignore the error about the _CRS of LINK device
>From : Zhao Yakui <yakui.zhao@intel.com>

Ignore the error about the _CRS method of LINK device and select
IRQ from possible IRQ list returned by _PRS method.

http://bugzilla.kernel.org/show_bug.cgi?id=8896

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
---
 drivers/acpi/pci_link.c |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Index: linux-2.6.24-rc4/drivers/acpi/pci_link.c
===================================================================
--- linux-2.6.24-rc4.orig/drivers/acpi/pci_link.c
+++ linux-2.6.24-rc4/drivers/acpi/pci_link.c
@@ -385,9 +385,16 @@ static int acpi_pci_link_set(struct acpi
 
 	/* Query _CRS, set link->irq.active */
 	result = acpi_pci_link_get_current(link);
-	if (result) {
-		goto end;
-	}
+	if (result == ENODEV) {
+		/*
+		 * Ignore the error about the _CRS method of Link device and
+		 * select IRQ from the Possible IRQ list
+		 * returned by _PRS method.
+		 */
+                printk(KERN_WARNING "Ignore error LINK CRS method.\n");
+                link->irq.active = irq;
+                result = 0;
+        }
 
 	/*
 	 * Is current setting not what we set?

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

* Re: [RFC] [PATCH] ACPI: ignore the error about the _CRS of LINK device
  2007-12-10  8:15 [RFC] [PATCH] ACPI: ignore the error about the _CRS of LINK device Zhao Yakui
@ 2007-12-14 22:43 ` Len Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2007-12-14 22:43 UTC (permalink / raw)
  To: Zhao Yakui; +Cc: linux-acpi

That's funny,
I thought we already ignored errors from _CRS on link devices.
perhaps the errors we ignore are slightly different --
we ignore an IRQ0, but here the return value isn't
formatted correctly -- we should probably follow the same path...

-Len

On Monday 10 December 2007 03:15, Zhao Yakui wrote:
> Hi, All
> 	The following error message can be found in the dmesg of bug8896.
> 	 ACPI Error (uteval-0269): Return object type is incorrect
> [\_SB_.PCI0.ALKD._CRS] (Node da4b49f0), AE_TYPE
> 	ACPI Error (uteval-0275): Type returned from _CRS was incorrect:
> Integer, expected Btypes: 4 [20060707]
> 	ACPI Exception (pci_link-0278): AE_TYPE, Evaluating _CRS [20060707]
> 	And the above error message is related to the following	BIOS Bug.
> 	Method (_CRS, 0, NotSerialized)
>                 {
>                     Return (0x00)
>                 }
> 
> Can we ignore the error about the _CRS method of LINK device and select
> IRQ from the possible IRQ list returned by _PRS method?
> 
> Thanks.
> 	
> 
> 
> Subject: ACPI : Ignore the error about the _CRS of LINK device
> >From : Zhao Yakui <yakui.zhao@intel.com>
> 
> Ignore the error about the _CRS method of LINK device and select
> IRQ from possible IRQ list returned by _PRS method.
> 
> http://bugzilla.kernel.org/show_bug.cgi?id=8896
> 
> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
> ---
>  drivers/acpi/pci_link.c |   13 ++++++++++---
>  1 file changed, 10 insertions(+), 3 deletions(-)
> 
> Index: linux-2.6.24-rc4/drivers/acpi/pci_link.c
> ===================================================================
> --- linux-2.6.24-rc4.orig/drivers/acpi/pci_link.c
> +++ linux-2.6.24-rc4/drivers/acpi/pci_link.c
> @@ -385,9 +385,16 @@ static int acpi_pci_link_set(struct acpi
>  
>  	/* Query _CRS, set link->irq.active */
>  	result = acpi_pci_link_get_current(link);
> -	if (result) {
> -		goto end;
> -	}
> +	if (result == ENODEV) {
> +		/*
> +		 * Ignore the error about the _CRS method of Link device and
> +		 * select IRQ from the Possible IRQ list
> +		 * returned by _PRS method.
> +		 */
> +                printk(KERN_WARNING "Ignore error LINK CRS method.\n");
> +                link->irq.active = irq;
> +                result = 0;
> +        }
>  
>  	/*
>  	 * Is current setting not what we set?
> 

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

end of thread, other threads:[~2007-12-14 22:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-10  8:15 [RFC] [PATCH] ACPI: ignore the error about the _CRS of LINK device Zhao Yakui
2007-12-14 22:43 ` Len Brown

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.