public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.28 - new warning evaluating _BIF - found Buffer, expected String
@ 2008-10-29 17:38 Andrey Borzenkov
  2008-10-29 19:35 ` Moore, Robert
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Borzenkov @ 2008-10-29 17:38 UTC (permalink / raw)
  To: linux-acpi

[-- Attachment #1: Type: text/plain, Size: 2217 bytes --]

[   36.156325] ACPI: AC Adapter [ADP1] (off-line)
[   36.177259] ACPI Warning (nspredef-0858): \_SB_.BAT1._BIF: Return Package type mismatch at index 9 - found Buffer, expected String [20080926]
[   36.183721] ACPI: Battery Slot [BAT1] (battery present)
[   36.184307] ACPI: Battery Slot [BAT2] (battery absent)

well, battery.c extrac_package deals with both string and buffer just fine.
I am not sure if this warning is really needed in normal kernel - after all,
Buffer to String conversion has well defined sematic in ACPI.

There is nothing user can do about it anyway.

For reference, here is _BIF method; it is Toshiba Portege 4000:

            Method (_BIF, 0, NotSerialized)
            {
                Name (BUFF, Package (0x0D) {})
                Store (0x00, Index (BUFF, 0x00))
                Store (\_SB.MEM.BDV1, Local2)
                Multiply (\_SB.MEM.BDC1, Local2, Local0)
                Divide (Local0, 0x03E8, Local1, Local0)
                Store (Local0, Index (BUFF, 0x01))
                Multiply (\_SB.MEM.BLF1, Local2, Local0)
                Divide (Local0, 0x03E8, Local1, Local0)
                Store (Local0, Index (BUFF, 0x02))
                Store (\_SB.MEM.BTC1, Index (BUFF, 0x03))
                Store (\_SB.MEM.BDV1, Index (BUFF, 0x04))
                Multiply (\_SB.MEM.BCW1, Local2, Local0)
                Divide (Local0, 0x03E8, Local1, Local0)
                Store (Local0, Index (BUFF, 0x05))
                Multiply (\_SB.MEM.BCL1, Local2, Local0)
                Divide (Local0, 0x03E8, Local1, Local0)
                Store (Local0, Index (BUFF, 0x06))
                Multiply (\_SB.MEM.BG11, Local2, Local0)
                Divide (Local0, 0x03E8, Local1, Local0)
                Store (Local0, Index (BUFF, 0x07))
                Multiply (\_SB.MEM.BG21, Local2, Local0)
                Divide (Local0, 0x03E8, Local1, Local0)
                Store (Local0, Index (BUFF, 0x08))
                Store (\_SB.MEM.BMN1, Index (BUFF, 0x09))
                Store (\_SB.MEM.BSN1, Index (BUFF, 0x0A))
                Store (\_SB.MEM.BTP1, Index (BUFF, 0x0B))
                Store (\_SB.MEM.BOI1, Index (BUFF, 0x0C))
                Return (BUFF)
            }

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2008-10-29 19:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-29 17:38 2.6.28 - new warning evaluating _BIF - found Buffer, expected String Andrey Borzenkov
2008-10-29 19:35 ` Moore, Robert

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