From: Andrey Borzenkov <arvidjaar@mail.ru>
To: linux-acpi@vger.kernel.org
Subject: 2.6.28 - new warning evaluating _BIF - found Buffer, expected String
Date: Wed, 29 Oct 2008 20:38:52 +0300 [thread overview]
Message-ID: <200810292038.53075.arvidjaar@mail.ru> (raw)
[-- 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 --]
next reply other threads:[~2008-10-29 17:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-29 17:38 Andrey Borzenkov [this message]
2008-10-29 19:35 ` 2.6.28 - new warning evaluating _BIF - found Buffer, expected String Moore, Robert
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=200810292038.53075.arvidjaar@mail.ru \
--to=arvidjaar@mail.ru \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox