Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sys-kernel/gentoo-sources-4.17.11 ACPI errors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Wed Aug 01, 2018 10:45 am    Post subject: sys-kernel/gentoo-sources-4.17.11 ACPI errors Reply with quote

Code:
[    0.034032] ACPI Error: Result stack is empty! State=        (ptrval) (20180313/dswstate-65)
[    0.034040] ACPI Error: AE_AML_NO_RETURN_VALUE, Missing or null operand (20180313/dsutils-612)
[    0.034044] ACPI Error: AE_AML_NO_RETURN_VALUE, While creating Arg 0 (20180313/dsutils-727)
[    0.034302] ACPI Error: Result stack is empty! State=        (ptrval) (20180313/dswstate-65)
[    0.034306] ACPI Error: AE_AML_NO_RETURN_VALUE, Missing or null operand (20180313/dsutils-612)
[    0.034309] ACPI Error: AE_AML_NO_RETURN_VALUE, While creating Arg 0 (20180313/dsutils-727)
[    0.034313] ACPI Error: Result stack is empty! State=        (ptrval) (20180313/dswstate-65)
[    0.034317] ACPI Error: AE_AML_NO_RETURN_VALUE, Missing or null operand (20180313/dsutils-612)
[    0.034320] ACPI Error: AE_AML_NO_RETURN_VALUE, While creating Arg 0 (20180313/dsutils-727)
[    0.034387] ACPI Error: Result stack is empty! State=        (ptrval) (20180313/dswstate-65)
[    0.034390] ACPI Error: AE_AML_NO_RETURN_VALUE, Missing or null operand (20180313/dsutils-612)
[    0.034394] ACPI Error: AE_AML_NO_RETURN_VALUE, While creating Arg 0 (20180313/dsutils-727)
[    0.035364] ACPI Error: Result stack is empty! State=        (ptrval) (20180313/dswstate-65)
[    0.035370] ACPI Error: AE_AML_NO_RETURN_VALUE, Missing or null operand (20180313/dsutils-612)
[    0.035373] ACPI Error: AE_AML_NO_RETURN_VALUE, While creating Arg 0 (20180313/dsutils-727)
[    0.035654] ACPI Error: Result stack is empty! State=        (ptrval) (20180313/dswstate-65)
[    0.035658] ACPI Error: AE_AML_NO_RETURN_VALUE, Missing or null operand (20180313/dsutils-612)
[    0.035661] ACPI Error: AE_AML_NO_RETURN_VALUE, While creating Arg 0 (20180313/dsutils-727)
[    0.035666] ACPI Error: Result stack is empty! State=        (ptrval) (20180313/dswstate-65)
[    0.035670] ACPI Error: AE_AML_NO_RETURN_VALUE, Missing or null operand (20180313/dsutils-612)
[    0.035673] ACPI Error: AE_AML_NO_RETURN_VALUE, While creating Arg 0 (20180313/dsutils-727)
[    0.036275] ACPI Error: Result stack is empty! State=        (ptrval) (20180313/dswstate-65)
[    0.036279] ACPI Error: AE_AML_NO_RETURN_VALUE, Missing or null operand (20180313/dsutils-612)
[    0.036282] ACPI Error: AE_AML_NO_RETURN_VALUE, While creating Arg 0 (20180313/dsutils-727)
[    0.036297] ACPI Error: Unimplemented data type: 0x0 (20180313/dsobject-549)


https://lkml.org/lkml/2018/7/28/151

Patch from LKML:
Code:
diff -Nurp linux.before_name/drivers/acpi/acpica/psloop.c linux.after_name/drivers/acpi/acpica/psloop.c
--- linux.before_name/drivers/acpi/acpica/psloop.c   2018-07-27 15:53:31.073522915 -0700
+++ linux.after_name/drivers/acpi/acpica/psloop.c   2018-07-27 15:53:25.320522527 -0700
@@ -714,15 +714,20 @@ acpi_status acpi_ps_parse_loop(struct ac
          } else
              if ((walk_state->
              parse_flags & ACPI_PARSE_MODULE_LEVEL)
+            && status != AE_CTRL_TRANSFER
             && ACPI_FAILURE(status)) {
             /*
-             * ACPI_PARSE_MODULE_LEVEL means that we are loading a table by
-             * executing it as a control method. However, if we encounter
-             * an error while loading the table, we need to keep trying to
-             * load the table rather than aborting the table load. Set the
-             * status to AE_OK to proceed with the table load. If we get a
-             * failure at this point, it means that the dispatcher got an
-             * error while processing Op (most likely an AML operand error.
+             * ACPI_PARSE_MODULE_LEVEL flag means that we are currently
+             * loading a table by executing it as a control method.
+             * However, if we encounter an error while loading the table,
+             * we need to keep trying to load the table rather than
+             * aborting the table load (setting the status to AE_OK
+             * continues the table load). If we get a failure at this
+             * point, it means that the dispatcher got an error while
+             * processing Op (most likely an AML operand error) or a
+             * control method was called from module level and the
+             * dispatcher returned AE_CTRL_TRANSFER. In the latter case,
+             * leave the status alone, there's nothing wrong with it.
              */
             status = AE_OK;
          }


Fix for ACPI errors at boot with 4.17.11 (and higher?) kernel, fixed in 4.18-rc7.
Back to top
View user's profile Send private message
redeltaglio
n00b
n00b


Joined: 04 Apr 2018
Posts: 7
Location: Barcelona, Spain

PostPosted: Wed Aug 01, 2018 2:27 pm    Post subject: Thank you! Reply with quote

It works!
_________________
https://twitter.com/taglio
PGP: 90DC 1D49 FC85 DD2E 38AC 5301 6DAE 5C27 DFAF 0D6
"...a broken clock is always right twice a day..."
Back to top
View user's profile Send private message
PrSo
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2017
Posts: 132

PostPosted: Wed Aug 01, 2018 2:51 pm    Post subject: Reply with quote

Yep,
and here is the commit:
https://lkml.org/lkml/2018/7/31/306

__EDIT___
Mean git pull request.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum