{"id":12,"date":"2006-12-04T08:02:09","date_gmt":"2006-12-04T11:02:09","guid":{"rendered":"http:\/\/labs.morpheuz.eng.br\/blog\/?p=9"},"modified":"2006-12-04T08:02:09","modified_gmt":"2006-12-04T11:02:09","slug":"sony-vaio-vgn-sz340-acpi-problem-linux","status":"publish","type":"post","link":"https:\/\/blog.morpheuz.cc\/?p=12","title":{"rendered":"Sony Vaio VGN-SZ340 ACPI Problem (Linux)"},"content":{"rendered":"<p>So, the first patch that the guys from intel gave me to solve the problem with ACPI that didnt recognize both cores is below this text. This isnt a &#8220;perfect&#8221; patch as it does not solve a problem with cpu frequency scaling for cpu1. But it works great =)<\/p>\n<p>Thanks for intel&#8217;s guys!<br \/>\n<a target=\"_blank\" href=\"http:\/\/bugzilla.kernel.org\/show_bug.cgi?id=7465\" rel=\"noopener noreferrer\">http:\/\/bugzilla.kernel.org\/show_bug.cgi?id=7465 <\/a><\/p>\n<p>&#8212;<br \/>\ndrivers\/acpi\/tables.c |   16 ++++++++++&#8212;&#8212;<br \/>\n1 files changed, 10 insertions(+), 6 deletions(-)<\/p>\n<p>Index: linux-2.6.18.1\/drivers\/acpi\/tables.c<br \/>\n===================================================================<br \/>\n&#8212; linux-2.6.18.1.orig\/drivers\/acpi\/tables.c    2006-10-14 11:34:03.000000000 +0800<br \/>\n+++ linux-2.6.18.1\/drivers\/acpi\/tables.c    2006-12-02 01:01:00.000000000 +0800<br \/>\n@@ -316,7 +316,7 @@ acpi_table_parse_madt_family(enum acpi_t<br \/>\nunsigned int count = 0;<br \/>\nunsigned long madt_end;<br \/>\nunsigned int i;<br \/>\n&#8211;<br \/>\n+    unsigned int count = 0;<br \/>\nif (!handler)<br \/>\nreturn -EINVAL;<\/p>\n<p>@@ -325,6 +325,12 @@ acpi_table_parse_madt_family(enum acpi_t<br \/>\nfor (i = 0; i < sdt_count; i++) {\nif (sdt_entry[i].id != id)\ncontinue;\n+        count ++;\n+        if(count == 1) {\n+            printk(\"\\nFind the first MADT, don't parse it\");\n+            continue;\n+        }\n+        printk(\"\\nLet's parse the %d MADT.\", count);\nmadt = (void *)\n__acpi_map_table(sdt_entry[i].pa, sdt_entry[i].size);\nif (!madt) {\n@@ -388,12 +394,10 @@ int __init acpi_table_parse(enum acpi_ta\nif (sdt_entry[i].id != id)\ncontinue;\ncount++;\n-        if (count == 1)\n-            handler(sdt_entry[i].pa, sdt_entry[i].size);\n-\n-        else\n+        handler(sdt_entry[i].pa, sdt_entry[i].size);\n+        if(count > 1)<br \/>\nprintk(KERN_WARNING PREFIX<br \/>\n&#8211;                   &#8220;%d duplicate %s table ignored.\\n&#8221;, count,<br \/>\n+                   &#8220;%d duplicate %s table, former tables are ignored.\\n&#8221;, count,<br \/>\nacpi_table_signatures[id]);<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, the first patch that the guys from intel gave me to solve the problem with ACPI that didnt recognize both cores is below this text. This isnt a &#8220;perfect&#8221; patch as it does not solve a problem with cpu frequency scaling for cpu1. But it works great =) Thanks for intel&#8217;s guys! http:\/\/bugzilla.kernel.org\/show_bug.cgi?id=7465 &#8212; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-12","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12"}],"version-history":[{"count":0,"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=\/wp\/v2\/posts\/12\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}