14141 Commits

Author SHA1 Message Date
Robert Moore
f3d8f45c07
Merge pull request #488 from SchmErik/dt-devel
Data table enhancements
2019-08-06 07:16:34 -07:00
Erik Schmauss
52f0574d8c iASL: DT: save line number and input file length in file node
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-05 12:20:23 -07:00
Erik Schmauss
7b9fcc643c iASL: fix usage of safe string copy in data table compiler
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-05 11:57:05 -07:00
Erik Schmauss
2a0118342f iASL: add /* */ and // comment support in data table compiler
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-05 09:49:58 -07:00
Robert Moore
ad0022c3f4 iASL: Remove definition of __STDC__ from generation
Caused a couple of warnings with utmisc.c
2019-08-02 13:34:07 -07:00
Robert Moore
509a8904f2 Automated cleanup; no functional changes
remove tabs, excess lines/blanks, etc.
2019-08-02 13:27:00 -07:00
Robert Moore
a709aa45f8
Merge pull request #487 from SchmErik/dt-stat-fix
iASL: fix compile-time statistics for data table compiler
2019-08-02 12:37:30 -07:00
Robert Moore
6140825e76
Merge pull request #486 from SchmErik/legacy-processor
iASL: add warning on legacy ASL Processor() keyword
2019-08-02 12:37:11 -07:00
Erik Schmauss
a55212792e iASL: fix compile-time statistics for data table compiler
When compiling multiple tables, the global file node struct is used
to keep statistics for each input file. This change adds support for
using global file nodes to keep track of statistics for each data
table including total line conut, total field count, errors detected
during parsing.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-02 10:50:50 -07:00
Robert Moore
1a2b24e96b Update gitignore file
To ignore tests/templates directory.
2019-08-02 10:12:27 -07:00
Robert Moore
182910f78a iASL: change warning level for intermediate files
Change from warn 4 to warn 3 for files generated by bison
(.y.c) to eliminate some warnings about dead code.
2019-08-02 10:09:35 -07:00
Robert Moore
a9ac22905b iASL: Fix a few warnings at compiler time.
1) Warnings on use of strcpy
2) Warning about possible use of uninitialized variable.
2019-08-02 10:07:43 -07:00
Erik Schmauss
e6766ae2d7 iASL: add warning on legacy ASL Processor() keyword
The ASL Processor() object has been deprecated in ACPI 6.0

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-02 09:42:33 -07:00
Robert Moore
aa848a1835
Merge pull request #485 from SchmErik/remove-unintentional
Remove unintentional call to delete walkstate
2019-08-01 12:24:42 -07:00
Robert Moore
88d21fbe97
Merge pull request #484 from SchmErik/dt-flex-bison-frontend
Data table compiler: add flex-bison front-end
2019-08-01 12:24:09 -07:00
Erik Schmauss
634c308565 Remove unintentional call to delete walkstate
This line was added unintentionally in commit db2638cca.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-31 16:39:17 -07:00
Erik Schmauss
7581fee190 adding flex bison files to visual studio
Signed-off-by: Schmauss <erik.schmauss@intel.com>
2019-07-31 15:45:54 -07:00
Erik Schmauss
36037bdaf0 iASL: add data table prototype flag
This flag enables the the new flex/bison prototype front-end of the
data table compiler.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-31 15:45:23 -07:00
Erik Schmauss
dd3c0a35fa gitignore: ignore msvc2017 build directories
Signed-off-by: Schmauss <erik.schmauss@intel.com>
2019-07-31 15:45:23 -07:00
Robert Moore
f08ef3bebf Update iASL project file
Increase warning level to 4 (from 3).
2019-07-31 14:17:12 -07:00
Robert Moore
db2638ccaa Fix some coverity-found issues
Mostly with arg types within printf format strings.
2019-07-31 13:53:18 -07:00
Robert Moore
67d81e7bea Fix a few "possible use of non-initialized symbol" warnings
Typically, add a check for bad status returned from a call.
2019-07-26 12:32:32 -07:00
Robert Moore
02bbca5070 Macros: remove pointer math on a null pointer
Causes warnings on some compilers and/or tools.
Changed ACPI_TO_POINTER to use ACPI_CAST_PTR instead of using
arithmetic.

Reported by: Qian Cai (cai@lca.pw).
2019-07-26 12:10:13 -07:00
Robert Moore
2667516e38
Merge pull request #483 from SchmErik/processor-uid
iASL: emit error when _UID under a processor object is a string
2019-07-26 09:19:44 -07:00
Erik Schmauss
8ff8d5f40b iASL: emit error when _UID under a processor object is a string
_UID under a processor object must evaluate to an integer rather than
a string.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-25 14:02:49 -07:00
Robert Moore
d59291ad2c Merge branch 'master' of ssh://ssh.github.com/acpica/acpica
From pull request merge.
2019-07-25 12:54:46 -07:00
Robert Moore
2f0f8468ed
Merge pull request #482 from SchmErik/rafael-gpe
GPE: back-port Rafael's GPE patches to ACPICA
2019-07-25 12:54:33 -07:00
Robert Moore
30fe0520cf
Merge pull request #481 from SchmErik/iasl-prefix
iASL: add null terminator to name strings that only consist of multip…
2019-07-25 12:53:00 -07:00
Robert Moore
1f1652dad8 Increase total number of possible Owner IDs
From 255 to 4095 possible IDs.
Reported by: Hedi Berriche (hedi.berriche @hpe.com).
2019-07-25 12:50:20 -07:00
Rafael J. Wysocki
7f70163e70 ACPICA: Return UINT32 from AcpiDispatchGpe()
In some cases it is useful to know whether or not the
AcpiEvDetectGpe() called by AcpiDispatchGpe() has found the GPE to be
active, so return the return value of it (whose data type is UINT32)
from latter.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-17 16:03:16 -07:00
Rafael J. Wysocki
e468906dd0 ACPICA: Introduce acpi_dispatch_gpe()
Introduce acpi_dispatch_gpe() as a wrapper around AcpiEvDetectGpe()
for checking if the given GPE (as represented by a GPE device handle
and a GPE number) is currently active and dispatching it (if that's
the case) outside of interrupt context.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-17 15:54:07 -07:00
Erik Schmauss
8f512bd509 iASL: add null terminator to name strings that only consist of multiple prefixes (^)
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-17 14:22:59 -07:00
Robert Moore
a36cc3f864 Remove more vs2017 temp files 2019-07-16 12:22:58 -07:00
Robert Moore
71b9e3834c Remove additional files that are vs2017 temp files
under v15 subdirectory.
2019-07-16 12:20:37 -07:00
Robert Moore
0de8bb5a80
Merge pull request #480 from SchmErik/iasl-ret-status
iASL: return -1 if AML files were not generated due to compiler errors
2019-07-12 12:07:51 -07:00
Robert Moore
b19227e401
Merge pull request #479 from SchmErik/table-load-init
Table load: exit interpreter before initializing objects
2019-07-12 12:07:41 -07:00
Robert Moore
509bdb3131
Merge pull request #477 from ColinIanKing/master
Debugger: remove redundant assignment on ObjDesc
2019-07-12 12:07:26 -07:00
Erik Schmauss
1ed9f0276c iASL: return -1 if AML files were not generated due to compiler errors
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-11 10:58:13 -07:00
Erik Schmauss
73f6372490 Table load: exit interpreter before initializing objects
This prevents re-acquiring the interpreter lock when loading tables

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-11 10:02:12 -07:00
Robert Moore
b28401bfae Remove parts of the MSVC2017 build that are temp files
.vs subdirectory.
2019-07-10 13:48:36 -07:00
Robert Moore
8fd3088aa9 Update msvc2017 project file for iASL compiler
Fixes a reference to "msvc" instead of "msvc2017".
2019-07-10 13:32:04 -07:00
Colin Ian King
f530f1acb3 Debugger: remove redundant assignment on ObjDesc
Pointer ObjDesc is being initialized with a value that is never
read and it is being updated later with a new value. The initialization
is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
2019-07-04 13:58:32 +01:00
Robert Moore
450ffd8b9c Update version to 20190703
Version 20190703.
R07_03_19
2019-07-03 10:15:28 -07:00
Robert Moore
3081296b49 Logfile: Changes for version 20190703
Version 20190703.
2019-07-03 10:14:18 -07:00
Robert Moore
945c9c2196 Tools: update project files to msvc2017
Note: this change deprecates the project files found in
msvc9.
2019-07-03 09:34:34 -07:00
Robert Moore
41e8312492
Merge pull request #475 from SchmErik/rafael-gpe
ACPICA: Clear status of GPEs on first direct enable
2019-07-02 09:41:29 -07:00
Robert Moore
67e98d09b3 Merge branch 'master' of ssh://ssh.github.com/acpica/acpica 2019-07-02 09:29:40 -07:00
Robert Moore
49e12510b3 Update for MSVC 2017, no functional changes
eliminates some warnings on MSVC 2017.
2019-07-02 09:27:57 -07:00
Rafael J. Wysocki
7ef6f75cc2 ACPICA: Clear status of GPEs on first direct enable
ACPI GPEs (other than the EC one) can be enabled in two situations.
First, the GPEs with existing _Lxx and _Exx methods are enabled
implicitly by ACPICA during system initialization.  Second, the GPEs
without these methods (like GPEs listed by _PRW objects for wakeup
devices) need to be enabled directly by the code that is going to use
them (e.g. ACPI power management or device drivers).

In the former case, if the status of a given GPE is set to start
with, its handler method (either _Lxx or _Exx) needs to be invoked to
take care of the events (possibly) signaled before the GPE was
enabled. In the latter case, however, the first caller of
acpi_enable_gpe() for a given GPE should not be expected to care
about any events that might be signaled through it earlier.  In that
case, it is better to clear the status of the GPE before enabling it,
to prevent stale events from triggering unwanted actions (like
spurious system resume, for example).

For this reason, modify acpi_ev_add_gpe_reference() to take an
additional boolean argument indicating whether or not the GPE status
needs to be cleared when its reference counter changes from zero to
one and make acpi_enable_gpe() pass TRUE to it through that new
argument.

Fixes: 18996f2db918 ("ACPICA: Events: Stop unconditionally clearing ACPI IRQs during suspend/resume")
Reported-by: Furquan Shaikh <furquan@google.com>
Tested-by: Furquan Shaikh <furquan@google.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-06-20 16:20:46 -07:00
Robert Moore
c7ef9f3526 Update table load object initialization
Use the common internal "initialize objects" interface
Affects:
Load()
LoadTable()
AcpiLoadTable
2019-06-20 08:03:29 -07:00