linux/drivers/acpi/acpica
Bob Moore 22b5afce6a ACPICA: Add auto-serialization support for ill-behaved control methods.
This change adds support to automatically mark a control method as
"serialized" if the method creates any named objects. This will
positively prevent the method from being entered by more than one
thread and thus preventing a possible abort when an attempt is
made to create an object twice.

Implemented by parsing all non-serialize control methods at table
load time.

This feature is disabled by default and this patch also adds a new
Linux kernel parameter "acpi_auto_serialize" to allow this feature
to be turned on for a specific boot.

References: https://bugzilla.kernel.org/show_bug.cgi?id=52191
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-03-26 16:25:59 +01:00
..
accommon.h ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
acdebug.h ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)." 2014-03-18 01:53:45 +01:00
acdispat.h ACPICA: Add auto-serialization support for ill-behaved control methods. 2014-03-26 16:25:59 +01:00
acevents.h ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)." 2014-03-18 01:53:45 +01:00
acglobal.h ACPICA: Add auto-serialization support for ill-behaved control methods. 2014-03-26 16:25:59 +01:00
achware.h ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)." 2014-03-18 01:53:45 +01:00
acinterp.h ACPICA: Remove global option to serialize all control methods. 2014-03-26 16:25:59 +01:00
aclocal.h ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)." 2014-03-18 01:53:45 +01:00
acmacros.h ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)." 2014-03-18 01:53:45 +01:00
acnamesp.h ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)." 2014-03-18 01:53:45 +01:00
acobject.h ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)." 2014-03-18 01:53:45 +01:00
acopcode.h ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
acparser.h ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)." 2014-03-18 01:53:45 +01:00
acpredef.h ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)." 2014-03-18 01:53:45 +01:00
acresrc.h ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)." 2014-03-18 01:53:45 +01:00
acstruct.h ACPICA: Add auto-serialization support for ill-behaved control methods. 2014-03-26 16:25:59 +01:00
actables.h ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)." 2014-03-18 01:53:45 +01:00
acutils.h ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)." 2014-03-18 01:53:45 +01:00
amlcode.h ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)." 2014-03-18 01:53:45 +01:00
amlresrc.h ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)." 2014-03-18 01:53:45 +01:00
dsargs.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
dscontrol.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
dsfield.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
dsinit.c ACPICA: Add auto-serialization support for ill-behaved control methods. 2014-03-26 16:25:59 +01:00
dsmethod.c ACPICA: Add auto-serialization support for ill-behaved control methods. 2014-03-26 16:25:59 +01:00
dsmthdat.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
dsobject.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
dsopcode.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
dsutils.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
dswexec.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
dswload2.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
dswload.c ACPICA: Add auto-serialization support for ill-behaved control methods. 2014-03-26 16:25:59 +01:00
dswscope.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
dswstate.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
evevent.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
evglock.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
evgpe.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
evgpeblk.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
evgpeinit.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
evgpeutil.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
evhandler.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
evmisc.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
evregion.c ACPICA: Prevent infinite loops when traversing corrupted lists. 2014-03-18 01:52:18 +01:00
evrgnini.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
evsci.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
evxface.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
evxfevnt.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
evxfgpe.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
evxfregn.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exconfig.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exconvrt.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
excreate.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exdebug.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exdump.c ACPICA: Debugger: Add missing objects; Traverse linked lists 2014-03-18 01:52:17 +01:00
exfield.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exfldio.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exmisc.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exmutex.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exnames.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exoparg1.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exoparg2.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exoparg3.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exoparg6.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exprep.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exregion.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exresnte.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exresolv.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exresop.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exstore.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exstoren.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exstorob.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
exsystem.c ACPICA: Remove global option to serialize all control methods. 2014-03-26 16:25:59 +01:00
exutils.c ACPICA: Remove global option to serialize all control methods. 2014-03-26 16:25:59 +01:00
hwacpi.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
hwesleep.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
hwgpe.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
hwpci.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
hwregs.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
hwsleep.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
hwtimer.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
hwvalid.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
hwxface.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
hwxfsleep.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
Makefile ACPICA: Update the conditions to enable the utility resource dump strings. 2014-02-11 00:30:25 +01:00
nsaccess.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
nsalloc.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
nsarguments.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
nsconvert.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
nsdump.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
nsdumpdv.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
nseval.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
nsinit.c ACPICA: Add auto-serialization support for ill-behaved control methods. 2014-03-26 16:25:59 +01:00
nsload.c ACPICA: Add auto-serialization support for ill-behaved control methods. 2014-03-26 16:25:59 +01:00
nsnames.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
nsobject.c ACPICA: Prevent infinite loops when traversing corrupted lists. 2014-03-18 01:52:18 +01:00
nsparse.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
nspredef.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
nsprepkg.c ACPICA: Comment update - no functional change. 2014-03-18 01:47:30 +01:00
nsrepair2.c ACPICA: Comment update - no functional change. 2014-03-18 01:47:30 +01:00
nsrepair.c ACPICA: Comment update - no functional change. 2014-03-18 01:47:30 +01:00
nssearch.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
nsutils.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
nswalk.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
nsxfeval.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
nsxfname.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
nsxfobj.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
psargs.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
psloop.c ACPICA: Add auto-serialization support for ill-behaved control methods. 2014-03-26 16:25:59 +01:00
psobject.c ACPICA: Add auto-serialization support for ill-behaved control methods. 2014-03-26 16:25:59 +01:00
psopcode.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
psopinfo.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
psparse.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
psscope.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
pstree.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
psutils.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
pswalk.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
psxface.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
rsaddr.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
rscalc.c ACPICA: Comment update - no functional change. 2014-03-18 01:47:30 +01:00
rscreate.c ACPICA: Comment update - no functional change. 2014-03-18 01:47:30 +01:00
rsdump.c ACPICA: Update conditional compilation flags for resource dump functions. 2014-02-27 00:45:59 +01:00
rsdumpinfo.c ACPICA: Update the conditions to enable the utility resource dump strings. 2014-02-11 00:30:25 +01:00
rsinfo.c ACPICA: Update the conditions to enable the utility resource dump strings. 2014-02-11 00:30:25 +01:00
rsio.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
rsirq.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
rslist.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
rsmemory.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
rsmisc.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
rsserial.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
rsutils.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
rsxface.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
tbfadt.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
tbfind.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
tbinstal.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
tbprint.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
tbutils.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
tbxface.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
tbxfload.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
tbxfroot.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utaddress.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utalloc.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utbuffer.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utcache.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utcopy.c ACPICA: Correctly support references in the union acpi_object. 2014-02-11 00:30:25 +01:00
utdebug.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utdecode.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utdelete.c ACPICA: Prevent infinite loops when traversing corrupted lists. 2014-03-18 01:52:18 +01:00
uterror.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
uteval.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utexcep.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utglobal.c ACPICA: Cleanup/improve global variable declarations. 2014-03-18 01:50:57 +01:00
utids.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utinit.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utlock.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utmath.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utmisc.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utmutex.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utobject.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utosi.c ACPICA: Add text: ACPICA policy for new _OSI strings. No functional change. 2014-03-18 01:52:17 +01:00
utownerid.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utpredef.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utresrc.c ACPICA: Update the conditions to enable the utility resource dump strings. 2014-02-11 00:30:25 +01:00
utstate.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utstring.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
uttrack.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utxface.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utxferror.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utxfinit.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00
utxfmutex.c ACPICA: Update ACPICA copyrights to 2014. 2014-02-11 00:30:25 +01:00