http://defect.opensolaris.org/bz/show_bug.cgi?id=6276
Summary: cpupm mode assertion failure seem on SPARC system
Classification: Development
Product: power-mgmt
Version: unspecified
Platform: Other
OS/Version: Solaris
Status: NEW
Severity: minor
Priority: P4
Component: PAD
AssignedTo: eric.saxe at sun.com
ReportedBy: eric.saxe at sun.com
CC: tesla-dev at opensolaris.org
Pat hit:
panic[cpu12]/thread=3001a9c5440: assertion failed: cpupm == PM_CPUPM_EVENT ||
cpupm == PM_CPUPM_POLLING, file: ../../common/io/pm.c, line: 2706
000002a10236b260 genunix:assfail+74 (7b2c2208, 7b2c1968, a92, 188bc00, 1304000,
0)
%l0-3: 00000000018c4268 0000000000000000 000000007b2c1968 00000000702ddc00
%l4-7: 0000000000000001 0000000000000000 00000000018e1800 0000000000000000
000002a10236b310 pm:pm_ioctl+2404 (702d3f48, 7b2bee24, 0, 1917e78, 15, 0)
%l0-3: 00000000018c4268 0000000000000000 000000007b2c1968 00000000702ddc00
%l4-7: 0000000000000001 00000000702d4d10 0000000000000008 000000007b2c1800
000002a10236b8d0 genunix:fop_ioctl+58 (600105fc700, 15, 0, 100003, 0,
2a10236badc)
%l0-3: 000000000100a2d4 0000000001375454 00000600100ade40 0000000000000003
%l4-7: 0000000000000003 0000000000000004 000003001a9c5440 000002a10236bb90
000002a10236b990 genunix:ioctl+164 (3, 15, 0, 6500d107, 6001019d9f8, 1010101)
%l0-3: 000000000100a2d4 0000000000100003 000006001036d680 0000000000000003
%l4-7: 0000000000000003 0000000000000004 000003001a9c5440 000002a10236bb90
on orc.sfbay (a sun4v system).
The assertion is testing that after heading through this logic:
if (cmd == PM_START_PM) {
autopm_enabled = 1;
} else if (cmd == PM_START_CPUPM) {
cpupm = cpupm_default_mode;
} else if (cmd == PM_START_CPUPM_EV) {
cpupm = PM_CPUPM_EVENT;
} else if (cmd == PM_START_CPUPM_POLL) {
cpupm = PM_CPUPM_POLLING;
}
cpupm is set to either polling or event mode. But where CPUPM hasen't yet been
enabled, and we come through to start autopm first, cpupm remains either
PM_CPUPM_NOTSET or PM_CPUPM_DISABLED...tripping the assertion.
Since cpupm could legally be anything at the point where the assert currently
is, it should probably be removed. The commentary around this logic can also be
improved.
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.