13507 Commits

Author SHA1 Message Date
Robert Moore
5e0f848d47 Merge branch 'master' of ssh://ssh.github.com/acpica/acpica 2017-09-06 09:51:12 -07:00
Robert Moore
391096bf3d acpiexec: Add hwtimer.c to the utility
This module was not being included in any ACPICA tool, and thus
not even built until it was included in a kernel.

Also add a few small tests in acpiexec that invoke the timer
interfaces in hwtimer.
2017-09-06 09:48:38 -07:00
Robert Moore
6c41b48bb4 Merge pull request #309 from SchmErik/iaslExternalFix03
disassembler: reset ParserState's Aml pointer when parsing bad external declarations
2017-09-01 14:57:16 -07:00
Robert Moore
35916636a9 Merge pull request #308 from SchmErik/aslts_makefile_cleanup
Add functionality to invoke Do 2 if previous test run does not match the current test run results
2017-09-01 14:50:42 -07:00
Erik Schmauss
7d542c6f97 disassembler: getting rid of error message
This error message tends to clutter up the disassembled ASL
file with information that is unnecessary.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-09-01 10:48:38 -07:00
Erik Schmauss
e7e2513747 Disassembler: reset ParserState's Aml pointer when parsing bad externals
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-09-01 10:43:04 -07:00
Robert Moore
0d3a7f1d96 iASL: Move all allocation functions to new modules
Memory allocation functions are in aslallocate.c
Cache functions are in aslcache.c
2017-09-01 10:38:59 -07:00
Robert Moore
8232c29974 iASL: Fix incorrect memory allocation
Was using UtLocalCalloc instead of UtStringCacheCalloc.
Reported by Colin Ian King.
ACPICA BZ 1416
2017-09-01 08:09:52 -07:00
Erik Schmauss
f306328d75 ASLTS: asltsrun: add functionality to save the output from Do 2 to the result directory
This is a convenient way to look at the difference between the current and
previous ASLTSL run if there exists a difference.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-31 16:53:36 -07:00
Erik Schmauss
c5adbb87d2 ASLTS: scripts: trivial syntax edits, no functional change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-31 11:15:46 -07:00
Robert Moore
faa9fdfbd0 Update version to 20170831
Version 20170831.
R08_31_17
2017-08-31 08:54:36 -07:00
Robert Moore
da8fed09b9 Logfile: Changes for version 20170831
Version 20170831.
2017-08-31 08:54:07 -07:00
Robert Moore
82f676f946 Merge pull request #305 from SchmErik/aslts_makefile_cleanup
ASLTS script clean up
2017-08-31 08:51:08 -07:00
Robert Moore
1cdcf16447 Update AcpiGetTimer for 64-bit interface to AcpiHwRead
Return value from AcpiHwRead is now 64 bits, but the ACPI PM
Timer is defined by the ACPI spec to be 32 bits.
2017-08-31 08:42:17 -07:00
Robert Moore
4cde388045 acpisrc: cleanup an exit path
Don't fclose a file twice. Colin Ian King.
2017-08-31 07:12:28 -07:00
Erik Schmauss
2e492ed995 ASLTS: script: removing debug messages, no functional change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-30 15:05:37 -07:00
Erik Schmauss
be0c7aa577 ASLTS: Do: adding binary comparison for the aslplus and aslminus targets
This is intended to be used as a part of the disassembler test
sequence in order to ensure that compiling, disassembling and
recompiling has the same effect as simply compiling the ASL files.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-30 15:05:37 -07:00
Erik Schmauss
d79775d864 ASLTS: script: add targets for disassembler test sequence
The disassembler test sequence is as follows:

Given a test case ASL file, it will compile, disassemble and re-compile.
The above procedures result in an AML file. This should be then compared
to a file that is compiled by ASLTS for a normal compilation by using
the acpibin utility (not yet implemented).

This sequence of commands ensures that the disassembler does not inject
any unwanted code in the AML.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-30 15:05:37 -07:00
Erik Schmauss
6c50a9e3b5 ASLTS: Makefile: remove compile-disassemble-recompile from install_all_modes_of_test_case
Compile-disassemble-recompile will be in different targets. This means that
the OPT argument is no longer needed in install_all_modes_of_test_case.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-30 15:05:37 -07:00
Erik Schmauss
05bc03a5df ASLTS: Makefile: splitting iASL flags to output and non-output based flags
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-30 15:05:37 -07:00
Erik Schmauss
ac8f111efc ASLTS: Do: moving NPARAM checking outside of run_asl_compiler for cleanliness
This NPARAM counts the amount of enabled test cases given to the Do script

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-30 15:05:37 -07:00
Lv Zheng
5a52881149 iasl: Move aslversion determination logic from Makefile.def to Do script 2017-08-30 15:05:37 -07:00
Lv Zheng
bf8ee64902 ASLTS: Split install target into install_n32/n64/s32/s64
This patch splits install target into install_n32/n64/s32/s64 targets
so that they can be invoked from "Do" script separately. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-08-30 15:05:37 -07:00
Lv Zheng
66b85dc874 ASLTS: Allow cases/modes to be specified for aslts compile
This patch adds support in Do to allow test cases/modes to be specified
in "Do 0" mode - build aslts aml test cases. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-08-30 15:05:37 -07:00
Lv Zheng
421e5d9439 ASLTS: Convert make_install into make_target
Convert make_install into make_target so that other targets can be used
in Do script. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-08-30 15:05:37 -07:00
Robert Moore
a2c83e75a5 acpisrc: Add option to check files for non-printable characters
Dirty little option to scan entire file for non-printable ASCII
characters. Useful for debugging garbage output in listing
and text debug files.
2017-08-30 13:28:38 -07:00
Robert Moore
e3574138af String conversions: Update to add new behaviors
1) Allow whitespace in string before the constant
2) UtStrtoul64 now always creates a 64-bit integer; iASL will
truncate this to the lower 32-bits if the table being compiled
is a 32-bit table (DSDT revision less than 2).
2017-08-30 12:35:29 -07:00
Robert Moore
affd12bb11 acpiexec: Do not change default max loop count
The acpiexec count was too small to run some of the tests,
so just use the acpica default. this count is scheduled to
be removed, to be replaced by a real timer/timeout.
2017-08-30 07:19:34 -07:00
Robert Moore
5221c19354 Merge pull request #303 from SchmErik/iasl_dev01
iASL: expand -vw optoin to ignore errors in addition to warnings and remarks
2017-08-28 12:52:17 -07:00
Robert Moore
44a1a65fb9 Disassembler: Ignore tiny buffers during ResourceTemplate detection
Ignore any buffers 2 bytes or smaller, as they either cannot be
or very highly probably cannot be (2 bytes) resource templates.
2017-08-28 12:40:28 -07:00
Robert Moore
5e510eb781 iASL: Add a warning for a NULL Resource Template
This is the case for "ResourceTemplate(){}", which generates
an END_TAG only. This would appear to be worthless in real-world
ASL code.
2017-08-28 12:02:55 -07:00
Erik Schmauss
239454e04b iASL: move error check inside AslCommonError
This allows AslCommonError to check if a particular error
message should be ignored.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-28 10:21:31 -07:00
Erik Schmauss
57c6d8ed4a iASL: change -vw option to ignore errors in addition to warnings and remarks
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-25 13:53:52 -07:00
Robert Moore
78ed189ab6 Merge pull request #301 from SchmErik/aslts_fix
ASLTS: exc: allow implicit conversion of strings with "0x" to hex
2017-08-25 13:44:36 -07:00
Robert Moore
385d5c9baa iASL: Use common error routine for DoConstant conversion errors
Use AslCommonError because conversion errors are not in fact
syntax errors. Prevents early abort of the compiler.
2017-08-25 13:42:06 -07:00
Robert Moore
0cab8637d6 iASL: Add support for escape sequences in debug output
Translate non-printable characters within AML strings to escape
sequences in order to prevent garbage output in the parse
tree debug file.
2017-08-25 08:26:51 -07:00
Robert Moore
33e38cd240 String conversions: Cleanup/format comments. No functional changes
Cleanup some of the language used in the large comments, especially
the ones that reference the rules in the ACPI spec.
Fixed some typos.
2017-08-23 14:19:20 -07:00
Robert Moore
610046d444 Restructure/cleanup all string-to-integer conversion functions
Improve adherence to ACPI spec for implicit and explicit conversions
Adds octal support for constants in ASL code
Adds integer overflow errors for constants during ASL compilation
Eliminates most of the existing complex flags parameters
Simplify support for implicit/explicit runtime conversions
Adds one new file, utilities/utstrsuppt.c
2017-08-18 12:40:31 -07:00
Robert Moore
067b19a906 iASL: Fix definition of the PPTT ACPI table
The "Line Size Valid" Flag was specified in the wrong bit position.
ACPICA bugzilla 1414.
2017-08-15 13:48:45 -07:00
Erik Schmauss
eab4fc423b ASLTS: exc: change test case to allow implicit conversion of strings with "0x" to hex
The ACPI spec's definition of implicit conversion does not allow
'0x' within strings that are converted to integers. Without '0x'
the number being converted could be mistaken as a decimal number.
Instead we are allowing with 0x or no 0x and both versions are
implicitly converted to hex.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-10 14:35:01 -07:00
Robert Moore
df6cf656bc Merge pull request #289 from zetalog/acpiexec-test
Acpiexec test
2017-08-10 09:31:35 -07:00
Robert Moore
ee3f49cfb2 Merge pull request #209 from zetalog/acpica-64bit
Acpica 64bit
2017-08-10 09:12:01 -07:00
Robert Moore
89d60db588 Fix a couple format issues, no functional change
ACPI table definition headers.
2017-08-08 12:54:35 -07:00
Robert Moore
9951c78746 Header support for the PDTT ACPI table
This is an ACPI 6.2 table.
2017-08-08 12:43:36 -07:00
Robert Moore
50f6163654 Update version to 20170728
Version 20170728.
R07_28_17
2017-07-28 09:49:51 -07:00
Robert Moore
c2b9d289c4 Logfile: Changes for version 20170728
Version 20170728.
2017-07-28 09:49:03 -07:00
Robert Moore
6cd1ba2619 Merge pull request #288 from zetalog/efi-stdlib
Edk2 stdlib/windows
2017-07-27 14:28:48 -07:00
Robert Moore
d2e7b6389d Merge pull request #279 from james-morse-arm/for_upstream/sdei_v2
iASL: Add support for the SDEI table (v2)
2017-07-27 14:27:09 -07:00
Robert Moore
af661c00af ResourceMgr: Allow _DMA method in walk resources
The _DMA object contains a resource template, this change
adds support for the walk resources function so that ACPI
devices containing a _DMA object can actually parse it to
detect DMA ranges for the respective bus.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
2017-07-27 14:23:59 -07:00
Robert Moore
ea9152daae Ensure all instances of AE_AML_INTERNAL have error messages
This exception is only meaningful with an associated error message.
2017-07-27 13:46:19 -07:00