public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* DSDT > 128k support
@ 2004-11-17 14:08 Takayoshi Kochi
       [not found] ` <20041117.230831.74752627.t-kochi-UDFczIW9X1d8UrSeD/g0lQ@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Takayoshi Kochi @ 2004-11-17 14:08 UTC (permalink / raw)
  To: len.brown-ral2JQCrhuEAvxtiuMwx3w
  Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi,

Under the current implementation, reading /proc/acpi/dsdt does

1. allocate enough buffer for the size of whole DSDT
2. copy real DSDT to the buffer
3. copy from the buffer to user-supplied pointer

Not only the two copies are redundant but also if DSDT > 128K,
1. will fail because internally it will use kmalloc to
allocate the buffer.

This patch tries to solve the problem by not allocating
the redundant buffer and copy directly to userspace.
(also does the same thing for /proc/acpi/fadt)

Tested with 2.6.10-rc2 on ia64 and i386.

My concern is that this patch uses an ACIPCA-internal function
(acpi_tb_get_table_ptr), but it's not so bad because scan.c already
does this;)

Len, please consider applying this.

---
Takayoshi Kochi


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-11-18  6:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-17 14:08 DSDT > 128k support Takayoshi Kochi
     [not found] ` <20041117.230831.74752627.t-kochi-UDFczIW9X1d8UrSeD/g0lQ@public.gmane.org>
2004-11-17 14:11   ` Takayoshi Kochi
2004-11-17 17:51   ` Len Brown
2004-11-17 19:23     ` Bjorn Helgaas
     [not found]       ` <200411171223.12417.bjorn.helgaas-VXdhtT5mjnY@public.gmane.org>
2004-11-18  6:24         ` Takayoshi Kochi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox