Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
90cebe35
Commit
90cebe35
authored
Sep 08, 2009
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'acpica' into test
parents
d6e9e547
c9766237
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
12 deletions
+50
-12
drivers/acpi/acpica/aclocal.h
drivers/acpi/acpica/aclocal.h
+3
-0
drivers/acpi/acpica/dsmthdat.c
drivers/acpi/acpica/dsmthdat.c
+4
-4
drivers/acpi/acpica/dsobject.c
drivers/acpi/acpica/dsobject.c
+18
-5
drivers/acpi/acpica/nsinit.c
drivers/acpi/acpica/nsinit.c
+15
-0
drivers/acpi/acpica/nspredef.c
drivers/acpi/acpica/nspredef.c
+6
-2
drivers/acpi/acpica/uteval.c
drivers/acpi/acpica/uteval.c
+3
-0
include/acpi/acpixf.h
include/acpi/acpixf.h
+1
-1
No files found.
drivers/acpi/acpica/aclocal.h
View file @
90cebe35
...
...
@@ -898,6 +898,9 @@ struct acpi_bit_register_info {
#define ACPI_OSI_WIN_XP_SP2 0x05
#define ACPI_OSI_WINSRV_2003_SP1 0x06
#define ACPI_OSI_WIN_VISTA 0x07
#define ACPI_OSI_WINSRV_2008 0x08
#define ACPI_OSI_WIN_VISTA_SP1 0x09
#define ACPI_OSI_WIN_7 0x0A
#define ACPI_ALWAYS_ILLEGAL 0x00
...
...
drivers/acpi/acpica/dsmthdat.c
View file @
90cebe35
...
...
@@ -433,10 +433,10 @@ acpi_ds_method_data_get_value(u8 type,
case
ACPI_REFCLASS_LOCAL
:
ACPI_ERROR
((
AE_INFO
,
"Uninitialized Local[%d] at node %p"
,
index
,
node
));
/*
* No error message for this case, will be trapped again later to
* detect and ignore cases of Store(local_x,local_x)
*/
return_ACPI_STATUS
(
AE_AML_UNINITIALIZED_LOCAL
);
default:
...
...
drivers/acpi/acpica/dsobject.c
View file @
90cebe35
...
...
@@ -482,14 +482,27 @@ acpi_ds_build_internal_package_obj(struct acpi_walk_state *walk_state,
if
(
arg
)
{
/*
* num_elements was exhausted, but there are remaining elements in the
* package_list.
* package_list.
Truncate the package to num_elements.
*
* Note: technically, this is an error, from ACPI spec: "It is an error
* for NumElements to be less than the number of elements in the
* PackageList". However, for now, we just print an error message and
* no exception is returned.
* PackageList". However, we just print an error message and
* no exception is returned. This provides Windows compatibility. Some
* BIOSs will alter the num_elements on the fly, creating this type
* of ill-formed package object.
*/
while
(
arg
)
{
/*
* We must delete any package elements that were created earlier
* and are not going to be used because of the package truncation.
*/
if
(
arg
->
common
.
node
)
{
acpi_ut_remove_reference
(
ACPI_CAST_PTR
(
union
acpi_operand_object
,
arg
->
common
.
node
));
arg
->
common
.
node
=
NULL
;
}
/* Find out how many elements there really are */
...
...
@@ -498,7 +511,7 @@ acpi_ds_build_internal_package_obj(struct acpi_walk_state *walk_state,
}
ACPI_WARNING
((
AE_INFO
,
"Package List length (
%X) larger than NumElements count (
%X), truncated
\n
"
,
"Package List length (
0x%X) larger than NumElements count (0x
%X), truncated
\n
"
,
i
,
element_count
));
}
else
if
(
i
<
element_count
)
{
/*
...
...
@@ -506,7 +519,7 @@ acpi_ds_build_internal_package_obj(struct acpi_walk_state *walk_state,
* Note: this is not an error, the package is padded out with NULLs.
*/
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Package List length (
%X) smaller than NumElements count (
%X), padded with null elements
\n
"
,
"Package List length (
0x%X) smaller than NumElements count (0x
%X), padded with null elements
\n
"
,
i
,
element_count
));
}
...
...
drivers/acpi/acpica/nsinit.c
View file @
90cebe35
...
...
@@ -170,6 +170,21 @@ acpi_status acpi_ns_initialize_devices(void)
goto
error_exit
;
}
/*
* Execute the "global" _INI method that may appear at the root. This
* support is provided for Windows compatibility (Vista+) and is not
* part of the ACPI specification.
*/
info
.
evaluate_info
->
prefix_node
=
acpi_gbl_root_node
;
info
.
evaluate_info
->
pathname
=
METHOD_NAME__INI
;
info
.
evaluate_info
->
parameters
=
NULL
;
info
.
evaluate_info
->
flags
=
ACPI_IGNORE_RETURN_VALUE
;
status
=
acpi_ns_evaluate
(
info
.
evaluate_info
);
if
(
ACPI_SUCCESS
(
status
))
{
info
.
num_INI
++
;
}
/* Walk namespace to execute all _INIs on present devices */
status
=
acpi_ns_walk_namespace
(
ACPI_TYPE_ANY
,
ACPI_ROOT_OBJECT
,
...
...
drivers/acpi/acpica/nspredef.c
View file @
90cebe35
...
...
@@ -193,11 +193,15 @@ acpi_ns_check_predefined_names(struct acpi_namespace_node *node,
}
/*
* We have a return value, but if one wasn't expected, just exit, this is
*
1)
We have a return value, but if one wasn't expected, just exit, this is
* not a problem. For example, if the "Implicit Return" feature is
* enabled, methods will always return a value.
*
* 2) If the return value can be of any type, then we cannot perform any
* validation, exit.
*/
if
(
!
predefined
->
info
.
expected_btypes
)
{
if
((
!
predefined
->
info
.
expected_btypes
)
||
(
predefined
->
info
.
expected_btypes
==
ACPI_RTYPE_ALL
))
{
goto
cleanup
;
}
...
...
drivers/acpi/acpica/uteval.c
View file @
90cebe35
...
...
@@ -69,6 +69,9 @@ static struct acpi_interface_info acpi_interfaces_supported[] = {
{
"Windows 2001 SP2"
,
ACPI_OSI_WIN_XP_SP2
},
/* Windows XP SP2 */
{
"Windows 2001.1 SP1"
,
ACPI_OSI_WINSRV_2003_SP1
},
/* Windows Server 2003 SP1 - Added 03/2006 */
{
"Windows 2006"
,
ACPI_OSI_WIN_VISTA
},
/* Windows Vista - Added 03/2006 */
{
"Windows 2006.1"
,
ACPI_OSI_WINSRV_2008
},
/* Windows Server 2008 - Added 09/2009 */
{
"Windows 2006 SP1"
,
ACPI_OSI_WIN_VISTA_SP1
},
/* Windows Vista SP1 - Added 09/2009 */
{
"Windows 2009"
,
ACPI_OSI_WIN_7
},
/* Windows 7 and Server 2008 R2 - Added 09/2009 */
/* Feature Group Strings */
...
...
include/acpi/acpixf.h
View file @
90cebe35
...
...
@@ -47,7 +47,7 @@
/* Current ACPICA subsystem version in YYYYMMDD format */
#define ACPI_CA_VERSION 0x20090
730
#define ACPI_CA_VERSION 0x20090
903
#include "actypes.h"
#include "actbl.h"
...
...
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