Bug 4892

Summary: Unable to read battery information ( Acpi patch 20050708 ) - AE_OWNER_ID_LIMIT
Product: ACPI Reporter: Damien Bellegueulle (d.bellegueulle)
Component: Power-BatteryAssignee: Robert Moore (Robert.Moore)
Status: CLOSED PATCH_ALREADY_AVAILABLE    
Severity: blocking CC: acpi-bugzilla, astarikovskiy
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.12.2 & Acpi patch 20050708 Subsystem:
Regression: --- Bisected commit-id:
Attachments: acpidmp.txt
cleanup for OwnerId usage
Method recursion handling for owner_id
Errors shown by dmesg
some errors from /var/log/messages
updated recursion patch

Description Damien Bellegueulle 2005-07-15 14:18:52 UTC
Distribution: Mandriva 2005  
Hardware Environment:Notebook Asus M6ne  
Software Environment:Kde 3.3.2  
Problem Description:Unable to read battery information  
  
Steps to reproduce: Unable to read battery information after full power 
 
cat /proc/acpi/battery/BAT0/info 
present:                 yes 
ERROR: Unable to read battery information 
 
( c0), AE_OWNER_ID_LIMIT 
    ACPI-0098: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.PCI0.SBRG.EC0_.ACS_] 
(Node b19af5c0), AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.AC__._PSR] (Node 
b19affc0), AE_OWNER_ID_LIMIT 
    ACPI-0098: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_TZ_.RTMP] (Node 
b19b72c0),AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_TZ_.THRM._TMP] (Node 
b19b7220), AE_OWNER_ID_LIMIT 
    ACPI-0098: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.PCI0.SBRG.EC0_.ACS_] 
(Node b19af5c0), AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.AC__._PSR] (Node 
b19affc0), AE_OWNER_ID_LIMIT 
    ACPI-0098: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_TZ_.RTMP] (Node 
b19b72c0),AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_TZ_.THRM._TMP] (Node 
b19b7220), AE_OWNER_ID_LIMIT 
    ACPI-0098: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.PCI0.SBRG.EC0_.ACS_] 
(Node b19af5c0), AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.AC__._PSR] (Node 
b19affc0), AE_OWNER_ID_LIMIT
Comment 1 Robert Moore 2005-07-15 15:53:33 UTC
Please attach your acpi tables from acpidmp
Comment 2 Damien Bellegueulle 2005-07-18 04:54:24 UTC
Created attachment 5345 [details]
acpidmp.txt
Comment 3 Damien Bellegueulle 2005-07-18 04:56:25 UTC
*** Bug 4891 has been marked as a duplicate of this bug. ***
Comment 4 Robert Moore 2005-07-18 13:23:23 UTC
Do any other errors happen before the first AE_OWNER_ID_LIMIT?
Comment 5 Damien Bellegueulle 2005-07-18 23:39:14 UTC
Yes , only after the first AE_OWNER_ID_LIMIT
Comment 6 Damien Bellegueulle 2005-07-20 22:58:54 UTC
dmesg 
d [\_TZ_.RTMP] (Node b19b72c0), AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_TZ_.THRM._TMP] (Node 
b19b7220), AE_OWNER_ID_LIMIT 
    ACPI-0098: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.PCI0.SBRG.EC0_.ACS_] 
(Node b19af5c0), AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.AC__._PSR] (Node 
b19affc0), AE_OWNER_ID_LIMIT 
    ACPI-0098: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.PCI0.SBRG.EC0_.BATS] 
(Node b19af5a0), AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.BAT0._BST] (Node 
b19b23c0), AE_OWNER_ID_LIMIT 
    ACPI-0098: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.PCI0.SBRG.EC0_.ACS_] 
(Node b19af5c0), AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.AC__._PSR] (Node 
b19affc0), AE_OWNER_ID_LIMIT 
    ACPI-0098: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_TZ_.RTMP] (Node b19b72c0), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_TZ_.THRM._TMP] (Node 
b19b7220), AE_OWNER_ID_LIMIT 
    ACPI-0098: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.PCI0.SBRG.EC0_.ACS_] 
(Node b19af5c0), AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.AC__._PSR] (Node 
b19affc0), AE_OWNER_ID_LIMIT 
    ACPI-0098: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_TZ_.RTMP] (Node b19b72c0), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_TZ_.THRM._TMP] (Node 
b19b7220), AE_OWNER_ID_LIMIT 
    ACPI-0098: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.PCI0.SBRG.EC0_.ACS_] 
(Node b19af5c0), AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.AC__._PSR] (Node 
b19affc0), AE_OWNER_ID_LIMIT 
    ACPI-0098: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.PCI0.SBRG.EC0_.BATS] 
(Node b19af5a0), AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.BAT0._BST] (Node 
b19b23c0), AE_OWNER_ID_LIMIT 
    ACPI-0098: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.PCI0.SBRG.EC0_.ACS_] 
(Node b19af5c0), AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.AC__._PSR] (Node 
b19affc0), AE_OWNER_ID_LIMIT 
    ACPI-0098: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
 
Comment 7 Alexey Starikovskiy 2005-07-21 20:01:09 UTC
Created attachment 5360 [details]
cleanup for OwnerId usage

Please try this patch.
Comment 8 Damien Bellegueulle 2005-07-23 10:01:02 UTC
Ok with patch id=5360 
Comment 9 Damien Bellegueulle 2005-07-23 10:17:08 UTC
    ACPI-0145: *** Error: Invalid owner_id: 00 
    ACPI-0145: *** Error: Invalid owner_id: 00 
 
After 10 minutes ... , but i read battery information 
Comment 10 Damien Bellegueulle 2005-07-27 14:34:48 UTC
Kernel 2.6.12-ck4 &  Acpi patch 20050708 &  cleanup for OwnerId usage.diff 
   
dmesg   
D_LIMIT   
    ACPI-0509: *** Error: Method execution failed [\_TZ_.THRM._TMP] (Node   
b19b7220), AE_OWNER_ID_LIMIT   
    ACPI-0105: *** Error: Could not allocate new owner_id (32 max),   
AE_OWNER_ID_LIMIT   
    ACPI-0509: *** Error: Method execution failed [\_SB_.PCI0.SBRG.EC0_.ACS_]   
(Node b19af5c0), AE_OWNER_ID_LIMIT   
    ACPI-0509: *** Error: Method execution failed [\_SB_.AC__._PSR] (Node   
b19affc0), AE_OWNER_ID_LIMIT   
    ACPI-0105: *** Error: Could not allocate new owner_id (32 max),   
AE_OWNER_ID_LIMIT   
    ACPI-0509: *** Error: Method execution failed [\_TZ_.RTMP] (Node b19b72c0),   
AE_OWNER_ID_LIMIT   
    ACPI-0509: *** Error: Method execution failed [\_TZ_.THRM._TMP] (Node   
b19b7220), AE_OWNER_ID_LIMIT   
    ACPI-0105: *** Error: Could not allocate new owner_id (32 max),   
AE_OWNER_ID_LIMIT   
   
Comment 11 Damien Bellegueulle 2005-07-27 14:41:04 UTC
cat /proc/acpi/thermal_zone/THRM/temperature 
[xxxxxx@dabcorp ~]$  0
Comment 12 Damien Bellegueulle 2005-07-30 06:42:54 UTC
Kernel 2.6.12.3 & Acpi 20050729 
 
After battery full charged , not battery,temperature info ... : 
 
 
    ACPI-0509: *** Error: Method execution failed [\_TZ_.THRM._TMP] (Node 
b19b7f20), AE_OWNER_ID_LIMIT 
    ACPI-0105: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.AC__._PSR] (Node 
b19affc0), AE_OWNER_ID_LIMIT 
    ACPI-0105: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_TZ_.THRM._TMP] (Node 
b19b7f20), AE_OWNER_ID_LIMIT 
    ACPI-0105: *** Error: Could not allocate new owner_id (32 max), 
AE_OWNER_ID_LIMIT 
    ACPI-0509: *** Error: Method execution failed [\_SB_.AC__._PSR] (Node 
b19affc0), AE_OWNER_ID_LIMIT 
 
Comment 13 Len Brown 2005-08-14 22:40:08 UTC
Do you see this in kernel.org kernels, or is this a
regression seen only when applying the latest ACPI patch?
In particilar, do you see this 2.6.13-rc6?
Comment 14 Alexey Starikovskiy 2005-08-24 23:00:34 UTC
Created attachment 5757 [details]
Method recursion handling for owner_id

Could you please try this patch against 2.6.12 + 20050729?
Comment 15 Gerard Soldevila 2005-09-02 03:29:42 UTC
Hi, I'm Gerard Soldevila
on an Acer Travelmate 4001 WLMI (smart battery)
using linux 2.6.12.5 + acpi20050729 + your method recursion handling patch
(also using a patch to read dsdt from initrd)

First of all, I can't boot with AC unplugged
I'm going to handwrite the output if you need

In second place,
Battery status reading seems right at first glance, but sometimes fails
Attached is the output of dmesg + some errors found in /var/log/messages

Hope this could help,

Gerard
Comment 16 Gerard Soldevila 2005-09-02 03:31:13 UTC
Created attachment 5857 [details]
Errors shown by dmesg
Comment 17 Gerard Soldevila 2005-09-02 03:32:05 UTC
Created attachment 5858 [details]
some errors from /var/log/messages
Comment 18 Alexey Starikovskiy 2005-09-02 03:35:59 UTC
Created attachment 5859 [details]
updated recursion patch

Could you please try updated version of the patch?
Comment 19 Gerard Soldevila 2005-09-05 07:06:48 UTC
I've tried updated recursion patch (ID 5859).

Works well for now, no errors in dmesg, bootable with AC unplugged

Now the only problem is that I'm losing keypresses, I'm waiting for a nospinlock
patch for version 2.6.12
(Smart Battery System for Linux - https://sourceforge.net/projects/sbs-linux/ )


Thanks,

Gerard
Comment 20 Alexey Starikovskiy 2005-09-05 08:05:31 UTC
Thanks for checking.
Comment 21 Luming Yu 2005-09-05 08:12:47 UTC
To comment#19, would you like to test this updated burst-mode ec patch 
http://bugzilla.kernel.org/show_bug.cgi?id=3851#c73, which uses semaphore 
instead of spin lock. 
Comment 22 Luming Yu 2005-09-05 08:14:20 UTC
please boot with ec_burst=1.
Comment 23 Len Brown 2005-09-07 20:40:36 UTC
I belive that the problem this bug report was filed against --
battery status failing with AE_OWNER_ID_LIMIT -- is fixed
in ACPICA 20050902, included in the latest ACPI patch here:
http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.13/
acpi-20050902-2.6.13.diff.gz

If this is not the case, please re-open.
If other systems have other issues, please open other bug reports.
Comment 24 Len Brown 2005-09-09 09:12:48 UTC
shipped in 2.6.13-git9
closing.