How to read ACPI table from Linux application
by chittaraiah pabba
Hi,
I am new to ACPICA community. We are planning to use ACPICA API's in one
of power management application to get ACPI Processor block information
from dsdt file in Linux server.
I am planning to use ACPICA libraries to read ACPI Processor block
information from Linux application. Information like: processor
supported P-states and power usage of p states
We wrote small application to initialize ACPI tables but it's failing
and saw below error:
////////////////////
ACPI Exception: AE_NOT_FOUND, While initializing Table Manager
(20091214/examples-247)
ACPI example
examples-0206 [00] main : Example Debug output
ACPI: ACPICA example info message
ACPI Warning: ACPICA example warning message (20091214/examples-211)
ACPI Error: ACPICA example error message (20091214/examples-212)
ACPI Exception: AE_AML_OPERAND_TYPE, Example exception message
(20091214/examples-213)
ACPI: Executing OSI method
ACPI: _OSI returned FFFFFFFF
///////////////////////////////////////////
Can anyone guide me how to read processor information block dsdt file
with ACPICA code?
--Chittari
The information contained in this message may be confidential and proprietary to American Megatrends, Inc. This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.
11 years
Help!!!! Help on wake up from S3.
by Sean Shoufu Luo
Maybe anyone here can give suggestion for me to wake up my client from S3.
I'm a newbieeeee on ACPI. But now I need support the feature STR
(suspend-to-RAM) on our unix-like OS. I transplanted ACPICA and implemented
OS service layer, then initialize core system, and I success to enumerate
all devices, success to put it into S1 and wake up from it. Also, I can soft
off by putting it into S5.
However, when I'm trying to put it into S3, once AcpiEnterSleepStatePrep()
called, I found, the light of power button begin to flash, and when
AcpiEnterSleepState() called, the light still flash and the power consuming
goes down around 1.1w. Till now, everything looks well, and it looks like
Linux's. But the problem comes, when I pressed the power button at the
second time, I found the the light of power button become yellow but still
flash, lasting about 3/4 seconds, it turned to be green again, and monitor
is lighted, system goes up. But, it does't jump to the WakingVector that I
install with AcpiSetFirmwareWakingVecotr() before I put it into S3, instead,
it booted from IDE ...
I debug it by dump all values set to be registers (including SLP_TYP &
SLP_EN) and compared with Linux's to found no difference. Also, I'm sure my
hardware is ACPI-compatible, and I use Xubuntu to verify it woks (STR).
Does anybody have same experience or any suggestion on it? Or how can I
found why it not jump to waking vector ... any tool to spy what happened in
BIOS??
My ACPICA version is 20091214.
Any Suggestion will be greatly appreciate.
Sean
--
Happy is everything!
11 years, 1 month
ACPICA version 20100121 released
by Moore, Robert
21 January 2010. Summary of changes for version 20100121:
This release is available at www.acpica.org/downloads
1) ACPI CA Core Subsystem:
Added the 2010 copyright to all module headers and signons. This affects virtually every file in the ACPICA core subsystem, the iASL compiler, the tools/utilities, and the test suites.
Implemented a change to the AcpiGetDevices interface to eliminate unnecessary invocations of the _STA method. In the case where a specific _HID is requested, do not run _STA until a _HID match is found. This eliminates potentially dozens of _STA calls during a search for a particular device/HID, which in turn can improve boot times. ACPICA BZ 828. Lin Ming.
Implemented an additional repair for predefined method return values. Attempt to repair unexpected NULL elements within returned Package objects. Create an Integer of value zero, a NULL String, or a zero-length Buffer as appropriate. ACPICA BZ 818. Lin Ming, Bob Moore.
Removed the obsolete ACPI_INTEGER data type. This type was introduced as the code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 (with 64-bit AML integers). It is now obsolete and this change removes it from the ACPICA code base, replaced by UINT64. The original typedef has been retained for now for compatibility with existing device driver code. ACPICA BZ 824.
Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field in the parse tree object.
Added additional warning options for the gcc-4 generation. Updated the source accordingly. This includes some code restructuring to eliminate unreachable code, elimination of some gotos, elimination of unused return values, some additional casting, and removal of redundant declarations.
Example Code and Data Size: These are the sizes for the OS-independent acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The debug version of the code includes the debug output trace mechanism and has a much larger code and data size.
Previous Release:
Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total
Debug Version: 163.4K Code, 50.8K Data, 214.2K Total
Current Release:
Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total
Debug Version: 163.5K Code, 50.9K Data, 214.4K Total
2) iASL Compiler/Disassembler and Tools:
No functional changes for this release.
11 years, 1 month
Query about the ACPI
by Hsu, Edward (ETD)
To whom it may concern,
Hello, I've gone through the ACPI website, http://www.acpica.org/, and I was wondering if the all Intel-related developmet tools would work for AMD platform as well.
Besides, can it be merged into a Microsoft Windows application program?
Thank you very much.
Best Regards,
Edward Hsu
11 years, 1 month