Bug 1533 - Unalignment access
Summary: Unalignment access
Status: CLOSED CODE_FIX
Alias: None
Product: ACPI
Classification: Unclassified
Component: ACPICA-Core (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Robert Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-12 21:32 UTC by Luming Yu
Modified: 2006-09-28 13:17 UTC (History)
1 user (show)

See Also:
Kernel Version: Lastest 2.4 ia64 + Latest ACPI
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
a patch for fixing this issue (920 bytes, patch)
2003-11-19 02:54 UTC, Luming Yu
Details | Diff
a patch for fixing this issue (1017 bytes, patch)
2003-12-21 23:42 UTC, Luming Yu
Details | Diff
unaligned access call trace (14.35 KB, text/plain)
2004-09-20 00:13 UTC, Wang, Zhenyu Z
Details

Description Luming Yu 2003-11-12 21:32:03 UTC
Hardware Environment:
4 way 800M Itanium, Lion

Software Environment:
Lastest 2.4 ia64 + Latest ACPI

Problem Description:
kernel unaligned access to 0xe000000004c2f199, ip=0xe000000004615fb1

Steps to reproduce:
    Press power button
Comment 1 Luming Yu 2003-11-19 02:54:10 UTC
Created attachment 1475 [details]
a patch for fixing this issue
Comment 2 Shaohua 2003-11-19 16:53:41 UTC
acglobal.h is platform independent, but your method is platform dependent. So 
I guess you should find another solution.
Comment 3 Robert Moore 2003-12-03 14:19:39 UTC
I'd like to see a call trace of this problem.  The acpi_generic_address is 
compiled under #pragma pack(1) already, and we carefully extract data from it.  
This is not to say that a case has been missed -- and the call trace would help 
with that.
Comment 4 Luming Yu 2003-12-03 19:01:30 UTC
But gcc generate unaligned address like below:

[root@acpi-tiger 2.4-acpi]# grep acpi_gbl_xpm1a System.map 
e000000004cbde89 B acpi_gbl_xpm1a_enable
Comment 5 Luming Yu 2003-12-21 23:42:06 UTC
Created attachment 1711 [details]
a patch for fixing this issue

This patch is based on Bob's suggestion
Comment 6 Robert Moore 2004-02-20 15:11:09 UTC
Fix integrated into 20040220
Comment 7 Wang, Zhenyu Z 2004-09-20 00:08:25 UTC
2.6 kernel still has this issue on IPF. So reopen this.
unaligned access happens both on boot and sci triggered.
pls, see the call trace attached.
Comment 8 Wang, Zhenyu Z 2004-09-20 00:13:28 UTC
Created attachment 3680 [details]
unaligned access call trace
Comment 9 Robert Moore 2004-09-22 15:13:16 UTC
The call trace points toward something to do with the GPEs, but there is not 
enough info to go further than that.  You will need to debug it down to the 
exact problem.
Comment 10 Wang, Zhenyu Z 2004-11-17 01:26:04 UTC
Bob fixed this in ACPICA 20041015.
Comment 11 Robert Moore 2004-11-17 13:57:37 UTC
Should be fixed
Comment 12 Len Brown 2004-11-17 17:09:34 UTC
ACPICA 20041015 shipped in 2.6.10-rc2 - closing.

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