Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4b813ac8
Commit
4b813ac8
authored
Aug 21, 2004
by
Len Brown
Committed by
Len Brown
Aug 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ACPI] Enable ACPICA workarounds for 'RELAXED_AML' and 'implicit return'
These workarounds are disabled if "acpi=strict"
parent
676ee8a7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
37 deletions
+8
-37
drivers/acpi/bus.c
drivers/acpi/bus.c
+4
-0
drivers/acpi/dispatcher/dsutils.c
drivers/acpi/dispatcher/dsutils.c
+1
-1
drivers/acpi/executer/exfldio.c
drivers/acpi/executer/exfldio.c
+2
-35
include/acpi/acglobal.h
include/acpi/acglobal.h
+1
-1
No files found.
drivers/acpi/bus.c
View file @
4b813ac8
...
...
@@ -598,6 +598,10 @@ acpi_early_init (void)
ACPI_FUNCTION_TRACE
(
"acpi_bus_init"
);
/* enable workarounds, unless strict ACPI spec. compliance */
if
(
!
acpi_strict
)
acpi_gbl_enable_interpreter_slack
=
TRUE
;
status
=
acpi_initialize_subsystem
();
if
(
ACPI_FAILURE
(
status
))
{
printk
(
KERN_ERR
PREFIX
"Unable to initialize the ACPI Interpreter
\n
"
);
...
...
drivers/acpi/dispatcher/dsutils.c
View file @
4b813ac8
...
...
@@ -102,7 +102,7 @@ acpi_ds_is_result_used (
* NOTE: this is optional because the ASL language does not actually
* support this behavior.
*/
if
((
acpi_gbl_enable_interpeter_slack
)
&&
if
((
acpi_gbl_enable_interp
r
eter_slack
)
&&
(
walk_state
->
parser_state
.
aml
>=
walk_state
->
parser_state
.
aml_end
))
{
ACPI_DEBUG_PRINT
((
ACPI_DB_DISPATCH
,
"Result of [%s] will be implicitly returned
\n
"
,
...
...
drivers/acpi/executer/exfldio.c
View file @
4b813ac8
...
...
@@ -130,7 +130,7 @@ acpi_ex_setup_region (
if
(
rgn_desc
->
region
.
length
<
(
obj_desc
->
common_field
.
base_byte_offset
+
field_datum_byte_offset
+
obj_desc
->
common_field
.
access_byte_width
))
{
if
(
acpi_gbl_enable_interpeter_slack
)
{
if
(
acpi_gbl_enable_interp
r
eter_slack
)
{
/*
* Slack mode only: We will go ahead and allow access to this
* field if it is within the region length rounded up to the next
...
...
@@ -169,40 +169,7 @@ acpi_ex_setup_region (
field_datum_byte_offset
,
obj_desc
->
common_field
.
access_byte_width
,
acpi_ut_get_node_name
(
rgn_desc
->
region
.
node
),
rgn_desc
->
region
.
length
));
if
(
!
acpi_strict
)
{
/*
* Allow access to the field if it is within the region size
* rounded up to a multiple of the access byte width. This
* overcomes "off-by-one" programming errors in the AML often
* found in Toshiba laptops. These errors were allowed by
* the Microsoft ASL compiler.
*/
u32
rounded_length
=
ACPI_ROUND_UP
(
rgn_desc
->
region
.
length
,
obj_desc
->
common_field
.
access_byte_width
);
if
(
rounded_length
<
(
obj_desc
->
common_field
.
base_byte_offset
+
field_datum_byte_offset
+
obj_desc
->
common_field
.
access_byte_width
))
{
return_ACPI_STATUS
(
AE_AML_REGION_LIMIT
);
}
else
{
static
int
warn_once
=
1
;
if
(
warn_once
)
{
// Could also associate a flag with each field, and
// warn once for each field.
ACPI_REPORT_WARNING
((
"The ACPI AML in your computer contains errors, "
"please nag the manufacturer to correct it.
\n
"
));
ACPI_REPORT_WARNING
((
"Allowing relaxed access to fields; "
"turn on CONFIG_ACPI_DEBUG for details.
\n
"
));
warn_once
=
0
;
}
return_ACPI_STATUS
(
AE_OK
);
}
}
else
{
return_ACPI_STATUS
(
AE_AML_REGION_LIMIT
);
}
return_ACPI_STATUS
(
AE_AML_REGION_LIMIT
);
}
return_ACPI_STATUS
(
AE_OK
);
...
...
include/acpi/acglobal.h
View file @
4b813ac8
...
...
@@ -94,7 +94,7 @@ extern u32 acpi_gbl_nesting_level;
* interpreter strictly follows the ACPI specification. Setting to TRUE
* allows the interpreter to forgive certain bad AML constructs.
*/
ACPI_EXTERN
u8
ACPI_INIT_GLOBAL
(
acpi_gbl_enable_interpeter_slack
,
FALSE
);
ACPI_EXTERN
u8
ACPI_INIT_GLOBAL
(
acpi_gbl_enable_interp
r
eter_slack
,
FALSE
);
/*
* Automatically serialize ALL control methods? Default is FALSE, meaning
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment