linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [050/121] ACPI / battery: Fix parsing _BIX return value
       [not found] <18659783.iZRLPaKV6J@aoki>
@ 2013-10-06 22:21 ` Ben Hutchings
  2013-10-08  5:17   ` Lan Tianyu
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Hutchings @ 2013-10-06 22:21 UTC (permalink / raw)
  To: Francisco Castro; +Cc: Rafael J. Wysocki, Lan Tianyu, linux-acpi

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

On Tue, 2013-10-01 at 01:01 -0300, Francisco Castro wrote:
> From: Ben Hutchings <ben@decadent.org.uk>
> > 3.2.51-rc1 review patch.  If anyone has any objections, please let me know.
> > 
> > ------------------
> > From: Lan Tianyu <tianyu.lan@intel.com>
> > 
> > commit 016d5baad04269e8559332df05f89bd95b52d6ad upstream.
> > 
> > The _BIX method returns extended battery info as a package.
> > According the ACPI spec (ACPI 5, Section 10.2.2.2), the first member
> > of that package should be "Revision".  However, the current ACPI
> > battery driver treats the first member as "Power Unit" which should
> > be the second member.  This causes the result of _BIX return data
> > parsing to be incorrect.
> > 
> > Fix this by adding a new member called 'revision' to struct
> > acpi_battery and adding the offsetof() information on it to
> > extended_info_offsets[] as the first row.
[...]
> Hello,
> 
> Before anything, sorry for my broken english, and thank you all for reading my 
> mail.
> 
> I noticed this patch, since it happened to be added recently to the standard 
> ubuntu kernel 3.8.0.31; and these two lines makes the battery module fail with 
> laptop (a NEC LZ750/LS) which previously worked. After removing these two 
> lines and recompiling, it worked again.
> 
> The lines that dmesg is now showing, are:
> 
> [    2.272970] ACPI Warning: For \_SB_.PCI0.LPCB.EC__.BAT1._BIX: Return 
> Package is too small - found 19 elements, expected 20 (20121018/nspredef-679)
> [    2.272985] battery: probe of PNP0C0A:00 failed with error -14
> 
> I believe a new (working) patch is needed, since this breaks compatibility 
> with hardware that's somewhat new, and still on sale. I hope this mail is not 
> too late, and this can be fixed.

You should report this to the Ubuntu kernel maintainers via Launchpad so
they can make a decision whether to revert this change in their packaged
kernel.

Hopefully Lan Tianyu and other ACPI developers will work out how to fix
this completely and then that fix can go into later stable updates.

I only look after the stable 3.2.y branch, so there's little I can do to
help you beyond this.

Ben.

-- 
Ben Hutchings
Who are all these weirdos? - David Bowie, reading IRC for the first time

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

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

* Re: [050/121] ACPI / battery: Fix parsing _BIX return value
  2013-10-06 22:21 ` [050/121] ACPI / battery: Fix parsing _BIX return value Ben Hutchings
@ 2013-10-08  5:17   ` Lan Tianyu
  0 siblings, 0 replies; 2+ messages in thread
From: Lan Tianyu @ 2013-10-08  5:17 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: Francisco Castro, Rafael J. Wysocki, linux-acpi

On 2013年10月07日 06:21, Ben Hutchings wrote:
> On Tue, 2013-10-01 at 01:01 -0300, Francisco Castro wrote:
>> From: Ben Hutchings <ben@decadent.org.uk>
>>> 3.2.51-rc1 review patch.  If anyone has any objections, please let me know.
>>>
>>> ------------------
>>> From: Lan Tianyu <tianyu.lan@intel.com>
>>>
>>> commit 016d5baad04269e8559332df05f89bd95b52d6ad upstream.
>>>
>>> The _BIX method returns extended battery info as a package.
>>> According the ACPI spec (ACPI 5, Section 10.2.2.2), the first member
>>> of that package should be "Revision".  However, the current ACPI
>>> battery driver treats the first member as "Power Unit" which should
>>> be the second member.  This causes the result of _BIX return data
>>> parsing to be incorrect.
>>>
>>> Fix this by adding a new member called 'revision' to struct
>>> acpi_battery and adding the offsetof() information on it to
>>> extended_info_offsets[] as the first row.
> [...]
>> Hello,
>>
>> Before anything, sorry for my broken english, and thank you all for reading my 
>> mail.
>>
>> I noticed this patch, since it happened to be added recently to the standard 
>> ubuntu kernel 3.8.0.31; and these two lines makes the battery module fail with 
>> laptop (a NEC LZ750/LS) which previously worked. After removing these two 
>> lines and recompiling, it worked again.
>>
>> The lines that dmesg is now showing, are:
>>
>> [    2.272970] ACPI Warning: For \_SB_.PCI0.LPCB.EC__.BAT1._BIX: Return 
>> Package is too small - found 19 elements, expected 20 (20121018/nspredef-679)
>> [    2.272985] battery: probe of PNP0C0A:00 failed with error -14
>>
>> I believe a new (working) patch is needed, since this breaks compatibility 
>> with hardware that's somewhat new, and still on sale. I hope this mail is not 
>> too late, and this can be fixed.
> 
> You should report this to the Ubuntu kernel maintainers via Launchpad so
> they can make a decision whether to revert this change in their packaged
> kernel.
> 
> Hopefully Lan Tianyu and other ACPI developers will work out how to fix
> this completely and then that fix can go into later stable updates.

Sorry for later response. Just come back from vacation.

Francisco, please attach the output of acpidump on your machine to
bugzilla. Thanks.

https://bugzilla.kernel.org/show_bug.cgi?id=60519

> 
> I only look after the stable 3.2.y branch, so there's little I can do to
> help you beyond this.
> 
> Ben.
> 


-- 
Best regards
Tianyu Lan
--
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

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

end of thread, other threads:[~2013-10-08  5:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <18659783.iZRLPaKV6J@aoki>
2013-10-06 22:21 ` [050/121] ACPI / battery: Fix parsing _BIX return value Ben Hutchings
2013-10-08  5:17   ` Lan Tianyu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).