History log of /drivers/acpi/acpica/nspredef.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
77848130e53b06c22fe37a7b6acbb82bb3e9bfba 12-Jan-2012 Bob Moore <robert.moore@intel.com> ACPICA: Update all copyrights to 2012

Update all copyrights to 2012.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
7fce7a4b0db7d90db553faf568853d56cd908c39 16-Nov-2011 Bob Moore <robert.moore@intel.com> ACPI 5.0: Add new predefined names

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
8f9c91273e36e5762c617c23e4fd48d5172e0dac 04-Jul-2011 Fenghua Yu <fenghua.yu@intel.com> ACPICA: Do not repair _TSS return package if _PSS is present

We can only sort the _TSS return package if there is no _PSS
in the same scope. This is because if _PSS is present, the ACPI
specification dictates that the _TSS Power Dissipation field is
to be ignored, and therefore some BIOSs leave garbage values in
the _TSS Power field(s). In this case, it is best to just return
the _TSS package as-is.

Reported-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
d57b23ad0ca7a46931e4d98eb6b4b73b112f0969 04-Jul-2011 Bob Moore <robert.moore@intel.com> ACPICA: Add option to disable method return value validation and repair

Runtime option can be used to disable return value repair if this
is causing a problem on a particular machine.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
b4e104eaeb8cd4329a23e0e4ebf166681b1d182d 17-Jan-2011 Bob Moore <robert.moore@intel.com> ACPICA: Update all ACPICA copyrights and signons to 2011

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
091f4d718620a79698e1c8ca3e9acbf78eb62da3 21-Jan-2010 Bob Moore <robert.moore@intel.com> ACPICA: Predefined name repair: fix NULL package elements

For the predefined methods that return fixed-length packages
(or subpackages), attempt repair for a NULL element. Create an
Integer of value 0, a NULL String, or a zero-length buffer as
appropriate.

http://www.acpica.org/bugzilla/show_bug.cgi?id=818

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
a8357b0c95484b46944728712f8810d3b37bf588 22-Jan-2010 Bob Moore <robert.moore@intel.com> ACPICA: Update all ACPICA copyrights and signons to 2010

Add 2010 copyright to all module headers and signons, including
the Linux header. This affects virtually every file in the ACPICA
core subsystem, iASL compiler, and all utilities.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
2147d3f00f85c9e993786863d8138694672da01b 21-Jan-2010 Bob Moore <robert.moore@intel.com> ACPICA: Update for new gcc-4 warning options

Added several new options for the gcc-4 generation, and updated
the source accordingly. This includes some code restructuring to
eliminate unreachable code, elimination of some gotos, elimination
of unused return values, and some additional casting.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
d4085a3ffee8828f7f1bae7fa3cf5e58f59ba627 11-Dec-2009 Bob Moore <robert.moore@intel.com> ACPICA: Predefined name repair: automatically remove null package elements

This change will automatically remove embedded and trailing NULL
package elements from returned package objects that are defined
to containe a variable number of sub-packages. The driver is then
presented with a package with no null elements to deal with.
ACPICA BZ 819.

http://www.acpica.org/bugzilla/show_bug.cgi?id=819

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
465da9eb75665203a826f961de74a817b870850a 11-Dec-2009 Bob Moore <robert.moore@intel.com> ACPICA: Conditionally perform complex per-predefined-name repairs

Only attempt the "complex" repairs (package sorting, buffer
expansion) if the previous "generic" validation and repair was
successful.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
3a58176e4fa47d8232e04131b023f3f2ecd7084b 11-Dec-2009 Bob Moore <robert.moore@intel.com> ACPICA: Remove messages if predefined repair(s) are successful

Repair mechanism was considered too wordy. Now, messages are only
unconditionally emitted if the return object cannot be repaired.
Existing messages for successful repairs were converted to
ACPI_DEBUG_PRINT messages for now. ACPICA BZ 827.

http://www.acpica.org/bugzilla/show_bug.cgi?id=827

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
ea7c5ec148044776d5e134e52a3e1aca8d662dbe 11-Dec-2009 Bob Moore <robert.moore@intel.com> ACPICA: Move Package-to-Buffer repair code into common ToBuffer function

Move code specific to _FDE and _GTM into the generic repair code.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
34c39c755347c1ca3d06284bad2273c6a9c3108a 11-Dec-2009 Bob Moore <robert.moore@intel.com> ACPICA: Add repair for bad _FDE/_GTM buffers

The expected return value for both names is a Buffer of 5 DWORDS.
This repair fixes two possible problems (both seen in the field):
A package of integers is returned, or a buffer of BYTEs is returned.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
ad5babeed8d3082406c5b67ae558b95a479ddb6f 12-Nov-2009 Bob Moore <robert.moore@intel.com> ACPICA: Add repair for predefined methods that must return sorted lists

This change will repair (by sorting) packages returned by _ALR,
_PSS, and _TSS. Drivers can now assume that the packages are
correctly sorted. Adds one new file, nsrepair2.c.
ACPICA BZ 784.

http://www.acpica.org/bugzilla/show_bug.cgi?id=784

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
419a909dd10142d015dd96457db1b1eda643f89e 12-Nov-2009 Bob Moore <robert.moore@intel.com> ACPICA: Fix possible fault if return Package objects contain NULL elements

For predefined name validation. Also adds a warning if a NULL
element is followed by any non-null elements. ACPICA BZ 813, 814.

http://www.acpica.org/bugzilla/show_bug.cgi?id=813
http://www.acpica.org/bugzilla/show_bug.cgi?id=814

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
307a042416dfc2216251a85b79e8578b65fdc0e7 03-Sep-2009 Bob Moore <robert.moore@intel.com> ACPICA: Fix extraneous warning if _DSM returns a package

_DSM can return any type of object, so validation on the return
type cannot be performed. ACPICA BZ 802.

http://www.acpica.org/bugzilla/show_bug.cgi?id=802

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
999e08f99846a1fd6ee9642ec306a2d318925116 13-Aug-2009 Bob Moore <robert.moore@intel.com> ACPICA: ACPI 4: Add validation for new predefined names.

Added 31 new names for ACPI 4.0.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
53e9387bdd8bfef6cffff2d2eb6bd28eca812682 24-Jul-2009 Bob Moore <robert.moore@intel.com> ACPICA: ACPI 4.0 : Add new return package type, restructure module.

Added one new package type, a package that contains a revision number and
a variable number of sub-packages. Restructured the module to
put the sub-package list traversal in a separate function.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
e5f69d6ef7a6b0dbad8d4c00d83009960be02155 24-Jul-2009 Bob Moore <robert.moore@intel.com> ACPICA: Add repair for predefined methods that return nested packages

Fixes a problem where a predefined method is defined to return
a variable-length Package of sub-packages. If the length is one,
the BIOS code occasionally creates a simple single package with
no sub-packages. This code attempts to fix the problem by wrapping
a new package object around the existing package. ACPICA BZ 790.

http://acpica.org/bugzilla/show_bug.cgi?id=790

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
b2deadd53c3630786e73746fb0ad8450f4e015bf 24-Jul-2009 Bob Moore <robert.moore@intel.com> ACPICA: Move predefined repair code to new file, no functional change

New file is nsrepair.c. This is in preparation for additional
errror correcting code.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
0444e8f6d72d6e38f92d48884bc90bbc6c22fd5a 24-Jun-2009 Bob Moore <robert.moore@intel.com> ACPICA: Fix: Predefined object repair executed only once

This fixes a problem where the code that attempts to repair/convert
an object of incorrect type is only executed on the first time the
predefined method is called. The mechanism that disables warnings
on subsequent calls was interfering with the repair mechanism.
ACPICA BZ 781.

http://acpica.org/bugzilla/show_bug.cgi?id=781

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
dbdc8f02fe8339686623c84745ba15b0f4f889a1 24-Jun-2009 Bob Moore <robert.moore@intel.com> ACPICA: Fix possible memory leak in nspredef

Fixed a possible leak when an attempt is made to repair a return
object. The only current repair is an automatic buffer to string
conversion.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
65259094c3e038519a2d8fa6fbc6256f04ad6535 21-Apr-2009 Bob Moore <robert.moore@intel.com> ACPICA: Fix possible dereference of null pointer

Fix dereference of possibly null pointer "Predefined" in the case
where the method is not one of the predefined methods.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
03ef132b7258bbea4858be4b1bd6cb6c3fdd3253 19-Mar-2009 Bob Moore <robert.moore@intel.com> ACPICA: Fix index value in package warning message

For predefined method validation. Index value in warning message
could be off by one.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
d4913dc6d0c680aa106d1d80b5ad2a9325367afd 06-Mar-2009 Bob Moore <robert.moore@intel.com> ACPICA: Formatting update - no functional changes

Split long lines, update comments.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
3371c19c294a4cb3649aa4e84606be8a1d999e61 18-Feb-2009 Bob Moore <robert.moore@intel.com> ACPICA: Remove ACPI_GET_OBJECT_TYPE macro

Remove all instances of this obsolete macro, since it is now a
simple reference to ->common.type. There were about 150 invocations
of the macro across 41 files. ACPICA BZ 755.

http://www.acpica.org/bugzilla/show_bug.cgi?id=755

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
e2f7a7772880458edff1b1cc5a988947229fac26 09-Jan-2009 Len Brown <len.brown@intel.com> ACPICA: hide private headers

Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c
95b482a8d31116f3f5c2a5089569393234d06385 09-Jan-2009 Len Brown <len.brown@intel.com> ACPICA: create acpica/ directory

also, delete sleep/ and delete ACPI_CFLAGS from Makefile

Signed-off-by: Len Brown <len.brown@intel.com>
/drivers/acpi/acpica/nspredef.c