Bug 576246 - missing power_meter release() function
missing power_meter release() function
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel (Show other bugs)
5.4
All Linux
urgent Severity urgent
: rc
: ---
Assigned To: John Feeney
Zhang Kexin
: ZStream
: 578323 581233 612870 616858 622845 635504 (view as bug list)
Depends On:
Blocks: 592846
  Show dependency treegraph
 
Reported: 2010-03-23 11:48 EDT by Jan Tluka
Modified: 2014-03-16 19:12 EDT (History)
19 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
When the power_meter module was unloaded or its initialization failed, a backtrace message was written to /var/log/dmesg that warned about a missing release() function. This error was harmless, and no longer occurs with this update.
Story Points: ---
Clone Of:
: 612870 (view as bug list)
Environment:
Last Closed: 2011-01-13 16:20:56 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
dmesg (38.84 KB, text/plain)
2011-01-12 00:10 EST, srinivas gowda
no flags Details

  None (edit)
Description Jan Tluka 2010-03-23 11:48:31 EDT
Description of problem:

This is a follow up of bug 566575. 

When loading power_meter module during i386 kernel-PAE boot following backtrace is seen:

ACPI Exception (evregion-0424): AE_SUPPORT, Returned by Handler for [DataTable]
[20060707]
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PMI0._GHL]
(Node c416f950), AE_SUPPORT
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PMI0._PMC]
(Node c416f9a0), AE_SUPPORT
ACPI Exception (power_meter-0759): AE_SUPPORT, Evaluating _PMC [20060707]
Device 'power_meter0' does not have a release() function, it is broken and must
be fixed.
BUG: warning at drivers/base/core.c:101/device_release() (Not tainted)
 [<c04ebe11>] kobject_cleanup+0x3e/0x5e
 [<c04ebe31>] kobject_release+0x0/0x8
 [<c04ec8f8>] kref_put+0x55/0x5f
 [<f8aa4faf>] acpi_power_meter_add+0x129/0x13a [power_meter]
 [<c05326fd>] acpi_bus_driver_init+0x28/0x4b
 [<c05336f4>] acpi_bus_register_driver+0x7e/0xb3
 [<f8a0d02a>] acpi_power_meter_init+0x1d/0x2b [power_meter]
 [<c043efe9>] sys_init_module+0x1aed/0x1caa
 [<c04ebdc1>] kobject_put+0x0/0x12
 [<c04752e2>] sys_read+0x3c/0x63
 [<c0404ead>] sysenter_past_esp+0x56/0x79
 =======================


Version-Release number of selected component (if applicable):
kernel-PAE-2.6.18-194.el5

How reproducible:
100%

Steps to Reproduce:
1. install RHEL5.5 with -194.el5 kernel on dell-per810-01.lab.bos.redhat.com
2. inspect system logs for the backtrace
  
Actual results:
backtrace during kernel boot

Expected results:
no backtrace

Additional info:
Full logs here: http://rhts.redhat.com/cgi-bin/rhts/test_log.cgi?id=12956071
Comment 1 Matthew Garrett 2010-03-23 11:49:15 EDT
Patch posted to rhkernel-list
Comment 2 Matthew Garrett 2010-04-05 13:48:41 EDT
*** Bug 578323 has been marked as a duplicate of this bug. ***
Comment 5 Dave Maley 2010-04-22 16:12:53 EDT
*** Bug 581233 has been marked as a duplicate of this bug. ***
Comment 9 Jarod Wilson 2010-05-03 12:53:59 EDT
in kernel-2.6.18-198.el5
You can download this test kernel from http://people.redhat.com/jwilson/el5

Please update the appropriate value in the Verified field
(cf_verified) to indicate this fix has been successfully
verified. Include a comment with verification details.
Comment 10 guilherme m. schroeder 2010-05-03 13:39:22 EDT
tested -198 with one machine here, no more backtrace for power_meter
still getting this:

ACPI Exception (evregion-0424): AE_SUPPORT, Returned by Handler for [DataTable] [20060707]
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PMI0._GHL] (Node ffff81034005d830), AE_SUPPORT
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PMI0._PMC] (Node ffff81034005d870), AE_SUPPORT
ACPI Exception (power_meter-0759): AE_SUPPORT, Evaluating _PMC [20060707]

arch: x86_64
Comment 11 Matthew Garrett 2010-05-03 13:49:45 EDT
Yes. We don't implement support for IPMI operation regions (nor does upstream), so machines that require that for power meter usage will fail.
Comment 18 Douglas Silas 2010-06-28 16:21:29 EDT
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.

New Contents:
When the power_meter module was unloaded or its initialization failed, a backtrace message was written to /var/log/dmesg that warned about a missing release() function. This error was harmless, and no longer occurs with this update.
Comment 19 Martin Wilck 2010-07-02 10:36:37 EDT
(In reply to comment #11)
> Yes. We don't implement support for IPMI operation regions (nor does upstream),
> so machines that require that for power meter usage will fail.    

Could you please give evidence for your statenement "nor does upstream"?
I saw patches around being currently under discussion.

https://patchwork.kernel.org/patch/60875/
https://patchwork.kernel.org/patch/65860/
http://marc.info/?l=linux-acpi&m=127590301225171&w=4

I did not find evidence that these patches were ultimately rejected.
Comment 20 Matthew Garrett 2010-07-02 10:45:13 EDT
The patches have not been merged upstream and still need to be reworked to cope with the changes in IPMI evaluation order.
Comment 21 Alexander Todorov 2010-07-09 05:37:57 EDT
*** Bug 612870 has been marked as a duplicate of this bug. ***
Comment 22 Matthew Garrett 2010-07-23 09:12:59 EDT
*** Bug 616858 has been marked as a duplicate of this bug. ***
Comment 23 Matthew Garrett 2010-08-10 11:02:06 EDT
*** Bug 622845 has been marked as a duplicate of this bug. ***
Comment 24 Matthew Garrett 2010-09-20 11:50:45 EDT
*** Bug 635504 has been marked as a duplicate of this bug. ***
Comment 25 Zhang Kexin 2010-12-09 02:41:07 EST
reproduced with rhel5.5 i386 PAE kernel.
[root@dell-per810-01 ~]# uname -a
Linux dell-per810-01.lab.bos.redhat.com 2.6.18-194.el5PAE #1 SMP Tue Mar 16 22:00:21 EDT 2010 i686 i686 i386 GNU/Linux

ACPI Exception (evregion-0424): AE_SUPPORT, Returned by Handler for [DataTable] [20060707]
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PMI0._GHL] (Node c416e950), AE_SUPPORT
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PMI0._PMC] (Node c416e9a0), AE_SUPPORT
ACPI Exception (power_meter-0759): AE_SUPPORT, Evaluating _PMC [20060707]
Device 'power_meter0' does not have a release() function, it is broken and must be fixed.
BUG: warning at drivers/base/core.c:101/device_release() (Not tainted)
 [<c04ebe11>] kobject_cleanup+0x3e/0x5e
 [<c04ebe31>] kobject_release+0x0/0x8
 [<c04ec8f8>] kref_put+0x55/0x5f
 [<f8aa2faf>] acpi_power_meter_add+0x129/0x13a [power_meter]
 [<c05326fd>] acpi_bus_driver_init+0x28/0x4b
 [<c05336f4>] acpi_bus_register_driver+0x7e/0xb3
 [<f8a7d02a>] acpi_power_meter_init+0x1d/0x2b [power_meter]
 [<c043efe9>] sys_init_module+0x1aed/0x1caa
 [<c04ebdc1>] kobject_put+0x0/0x12
 [<c04752e2>] sys_read+0x3c/0x63
 [<c0404ead>] sysenter_past_esp+0x56/0x79
 =======================

No such dmesg output for 2.6.18-236 i386 PAE kernel.

So bug is fixed.
Comment 26 srinivas gowda 2011-01-12 00:10:59 EST
Created attachment 472951 [details]
dmesg
Comment 27 srinivas gowda 2011-01-12 00:16:08 EST
I see a similar error on some of our platforms with 2.6.18-237.el5 (RHEL5.6 RC1) kernel. 
Please find the attached log -  attachment 472951 [details].

Dint see any issues while loading/unloading the power_meter module.
Comment 28 srinivas gowda 2011-01-12 00:24:59 EST
On re-looking comment 11, will the systems  that  support IPMI_operation_region will continue to display the "ACPI Error" messages ? 

Any workaround to mask this error ?
Comment 30 errata-xmlrpc 2011-01-13 16:20:56 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0017.html

Note You need to log in before you can comment on or make changes to this bug.