<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/acpi/tables.c, branch linux-3.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-06-17T12:01:56Z</updated>
<entry>
<title>ACPI: use kstrto*() instead of simple_strto*()</title>
<updated>2014-06-17T12:01:56Z</updated>
<author>
<name>Christoph Jaeger</name>
</author>
<published>2014-06-13T19:49:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d915894f8317ac3e55b47da829aa65eb5f9ae97'/>
<id>urn:sha1:3d915894f8317ac3e55b47da829aa65eb5f9ae97</id>
<content type='text'>
simple_strto*() are obsolete; use kstrto*() instead. Add proper error
checking.

Signed-off-by: Christoph Jaeger &lt;christophjaeger@linux.com&gt;
Acked-by: David Rientjes &lt;rientjes@google.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: Fix x86 regression related to early mapping size limitation</title>
<updated>2014-05-31T22:20:52Z</updated>
<author>
<name>Lv Zheng</name>
</author>
<published>2014-05-31T00:15:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4fc0a7e889e5540305926e41931cf3bc0a60abb2'/>
<id>urn:sha1:4fc0a7e889e5540305926e41931cf3bc0a60abb2</id>
<content type='text'>
The following warning message is triggered:
 WARNING: CPU: 0 PID: 0 at mm/early_ioremap.c:136 __early_ioremap+0x11f/0x1f2()
 Modules linked in:
 CPU: 0 PID: 0 Comm: swapper Not tainted 3.15.0-rc1-00017-g86dfc6f3-dirty #298
 Hardware name: Intel Corporation S2600CP/S2600CP, BIOS SE5C600.86B.99.99.x036.091920111209 09/19/2011
  0000000000000009 ffffffff81b75c40 ffffffff817c627b 0000000000000000
  ffffffff81b75c78 ffffffff81067b5d 000000000000007b 8000000000000563
  00000000b96b20dc 0000000000000001 ffffffffff300e0c ffffffff81b75c88
 Call Trace:
  [&lt;ffffffff817c627b&gt;] dump_stack+0x45/0x56
  [&lt;ffffffff81067b5d&gt;] warn_slowpath_common+0x7d/0xa0
  [&lt;ffffffff81067c3a&gt;] warn_slowpath_null+0x1a/0x20
  [&lt;ffffffff81d4b9d5&gt;] __early_ioremap+0x11f/0x1f2
  [&lt;ffffffff81d4bc5b&gt;] early_ioremap+0x13/0x15
  [&lt;ffffffff81d2b8f3&gt;] __acpi_map_table+0x13/0x18
  [&lt;ffffffff817b8d1a&gt;] acpi_os_map_memory+0x26/0x14e
  [&lt;ffffffff813ff018&gt;] acpi_tb_acquire_table+0x42/0x70
  [&lt;ffffffff813ff086&gt;] acpi_tb_validate_table+0x27/0x37
  [&lt;ffffffff813ff0e5&gt;] acpi_tb_verify_table+0x22/0xd8
  [&lt;ffffffff813ff6a8&gt;] acpi_tb_install_non_fixed_table+0x60/0x1c9
  [&lt;ffffffff81d61024&gt;] acpi_tb_parse_root_table+0x218/0x26a
  [&lt;ffffffff81d1b120&gt;] ? early_idt_handlers+0x120/0x120
  [&lt;ffffffff81d610cd&gt;] acpi_initialize_tables+0x57/0x59
  [&lt;ffffffff81d5f25d&gt;] acpi_table_init+0x1b/0x99
  [&lt;ffffffff81d2bca0&gt;] acpi_boot_table_init+0x1e/0x85
  [&lt;ffffffff81d23043&gt;] setup_arch+0x99d/0xcc6
  [&lt;ffffffff81d1b120&gt;] ? early_idt_handlers+0x120/0x120
  [&lt;ffffffff81d1bbbe&gt;] start_kernel+0x8b/0x415
  [&lt;ffffffff81d1b120&gt;] ? early_idt_handlers+0x120/0x120
  [&lt;ffffffff81d1b5ee&gt;] x86_64_start_reservations+0x2a/0x2c
  [&lt;ffffffff81d1b72e&gt;] x86_64_start_kernel+0x13e/0x14d
 ---[ end trace 11ae599a1898f4e7 ]---
when installing the following table during early stage:
 ACPI: SSDT 0x00000000B9638018 07A0C4 (v02 INTEL  S2600CP  00004000 INTL 20100331)
The regression is caused by the size limitation of the x86 early IO mapping.

The root cause is:
 1. ACPICA doesn't split IO memory mapping and table mapping;
 2. Linux x86 OSL implements acpi_os_map_memory() using a size limited fix-map
    mechanism during early boot stage, which is more suitable for only IO
    mappings.

This patch fixes this issue by utilizing acpi_gbl_verify_table_checksum to
disable the table mapping during early stage and enabling it again for the
late stage. In this way, the normal code path is not affected. Then after
the code related to the root cause is cleaned up, the early checksum
verification can be easily re-enabled.

A new boot parameter - acpi_force_table_verification is introduced for
the platforms that require the checksum verification to stop loading bad
tables.

This fix also covers the checksum verification for the table overrides. Now
large tables can also be overridden using the initrd override mechanism.

Signed-off-by: Lv Zheng &lt;lv.zheng@intel.com&gt;
Reported-and-tested-by: Yuanhan Liu &lt;yuanhan.liu@linux.intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI / tables: Replace printk with pr_*</title>
<updated>2014-03-02T00:34:16Z</updated>
<author>
<name>Hanjun Guo</name>
</author>
<published>2014-02-20T07:45:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=730bf5ebb4dfb3ec654bb6c270aa55de70ebf54d'/>
<id>urn:sha1:730bf5ebb4dfb3ec654bb6c270aa55de70ebf54d</id>
<content type='text'>
This patch just does some cleanup to replace printk with pr_*,
and introduces pr_fmt() to remove all PREFIXs in tables.c,
no functional change.

Signed-off-by: Hanjun Guo &lt;hanjun.guo@linaro.org&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI / tables: Return proper error codes from acpi_table_parse() and fix comment.</title>
<updated>2014-01-06T11:33:06Z</updated>
<author>
<name>tangchen</name>
</author>
<published>2014-01-06T08:47:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f8a571b2a128a1697624c1b132f3af07848ebbcf'/>
<id>urn:sha1:f8a571b2a128a1697624c1b132f3af07848ebbcf</id>
<content type='text'>
The comment about return value of acpi_table_parse() is incorrect.
This patch fix it.

Since all callers only check if the function succeeded or not, this
patch simplifies the semantics by returning -errno for all failure
cases. This will also simply the comment.

As suggested by Toshi Kani &lt;toshi.kani@hp.com&gt;, also change the stub
in linux/acpi.h to return -ENODEV.

Signed-off-by: Tang Chen &lt;tangchen@cn.fujitsu.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI / tables: Check if id is NULL in acpi_table_parse()</title>
<updated>2014-01-06T11:33:05Z</updated>
<author>
<name>tangchen</name>
</author>
<published>2014-01-06T08:43:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=de2d1a7e9310c4d1464faf469c737f08b5608600'/>
<id>urn:sha1:de2d1a7e9310c4d1464faf469c737f08b5608600</id>
<content type='text'>
strncmp() does not check if the params are NULL. In acpi_table_parse(),
if @id is NULL, the kernel will panic.

Signed-off-by: Tang Chen &lt;tangchen@cn.fujitsu.com&gt;
Acked-by: Toshi Kani &lt;toshi.kani@hp.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI / table: Replace '1' with specific error return values</title>
<updated>2013-12-07T00:31:59Z</updated>
<author>
<name>Hanjun Guo</name>
</author>
<published>2013-12-05T15:42:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=95df812dbdc350bfcf31e247e9100c378a472480'/>
<id>urn:sha1:95df812dbdc350bfcf31e247e9100c378a472480</id>
<content type='text'>
After commit 7f8f97c3cc (ACPI: acpi_table_parse() now returns
success/fail, not count), acpi_table_parse() returns '1' when it is
unable to find the table, but it should return a negative error code
in that case.  Make it return -ENODEV instead.

Fix the same problem in acpi_table_init() analogously.

Signed-off-by: Hanjun Guo &lt;hanjun.guo@linaro.org&gt;
[rjw: Subject and changelog]
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPICA: Cleanup table handler naming conflicts.</title>
<updated>2013-01-11T12:10:16Z</updated>
<author>
<name>Lv Zheng</name>
</author>
<published>2013-01-12T15:29:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b43e1065cab4b5be90c016b2f076086b70cd1556'/>
<id>urn:sha1:b43e1065cab4b5be90c016b2f076086b70cd1556</id>
<content type='text'>
This is a cosmetic patch only. Comparison of the resulting binary showed
only line number differences.

This patch does not affect the generation of the Linux binary.
This patch decreases 44 lines of 20121114 divergence.diff.

There are naming conflicts between Linux and ACPICA on table handlers. This
patch cleans up this conflicts to reduce the source code diff between Linux
and ACPICA.

Signed-off-by: Lv Zheng &lt;lv.zheng@intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: Harden acpi_table_parse_entries() against BIOS bug</title>
<updated>2012-10-06T19:51:49Z</updated>
<author>
<name>Fenghua Yu</name>
</author>
<published>2012-09-25T18:11:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=369d913b242cae2205471b11b6e33ac368ed33ec'/>
<id>urn:sha1:369d913b242cae2205471b11b6e33ac368ed33ec</id>
<content type='text'>
Parsing acpi table entries may fall into an infinite loop on a buggy BIOS
which has entry length=0 in acpi table.

Instead of kernel hang with few failure clue which leads to heavy lifting debug
effort, this patch hardens kernel boot by booting into non NUMA mode. The debug
info left in log buffer helps people identify the issue.

Signed-off-by: Fenghua Yu &lt;fenghua.yu@intel.com&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: delete the "acpi=ht" boot option</title>
<updated>2010-03-15T00:58:38Z</updated>
<author>
<name>Len Brown</name>
</author>
<published>2010-02-19T05:09:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=68ca406930d6380b3be7ada5f15fcf85bfcbd552'/>
<id>urn:sha1:68ca406930d6380b3be7ada5f15fcf85bfcbd552</id>
<content type='text'>
acpi=ht was important in 2003 -- before ACPI was
universally deployed and enabled by default in
the major Linux distributions.

At that time, there were a fair number of people who
or chose to, or needed to, run with acpi=off,
yet also wanted access to Hyper-threading.

Today we find that many invocations of "acpi=ht"
are accidental, and thus is it possible that it
is doing more harm than good.

In 2.6.34, we warn on invocation of acpi=ht.
In 2.6.35, we delete the boot option.

Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: fix "acpi=ht" boot option</title>
<updated>2010-02-18T08:49:38Z</updated>
<author>
<name>Len Brown</name>
</author>
<published>2010-02-16T08:45:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=49bf83a45fc677db1ed44d0e072e6aaeabe4e124'/>
<id>urn:sha1:49bf83a45fc677db1ed44d0e072e6aaeabe4e124</id>
<content type='text'>
We broke "acpi=ht" in 2.6.32 by disabling MADT parsing
for acpi=disabled.  e5b8fc6ac158f65598f58dba2c0d52ba3b412f52
This also broke systems which invoked acpi=ht via DMI blacklist.

acpi=ht is a really ugly hack,
but restore it for those that still use it.

http://bugzilla.kernel.org/show_bug.cgi?id=14886

Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
</feed>
