Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 312765 Details for
Bug 455253
[4.7] /proc/acpi/dsdt: No such device
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
ia64 workaround for this issue
455253.patch (text/plain), 3.73 KB, created by
Prarit Bhargava
on 2008-07-28 12:30:42 UTC
(
hide
)
Description:
ia64 workaround for this issue
Filename:
MIME Type:
Creator:
Prarit Bhargava
Created:
2008-07-28 12:30:42 UTC
Size:
3.73 KB
patch
obsolete
>diff -X /tmp/dontdiff -urNp linux-2.6.9.orig/drivers/acpi/system.c linux-2.6.9/drivers/acpi/system.c >--- linux-2.6.9.orig/drivers/acpi/system.c 2008-07-27 19:09:05.000000000 -0400 >+++ linux-2.6.9/drivers/acpi/system.c 2008-07-28 08:24:34.000000000 -0400 >@@ -102,7 +102,13 @@ acpi_system_read_dsdt ( > > res = simple_read_from_buffer(buffer, count, ppos, > dsdt.pointer, dsdt.length); >- acpi_os_free(dsdt.pointer); >+#if CONFIG_IA64 >+ if (ia64_platform_is("dig")) >+ free_pages(dsdt.pointer, get_order(dsdt.length)); >+ else >+#else >+ acpi_os_free(dsdt.pointer); >+#endif > > return_VALUE(res); > } >diff -X /tmp/dontdiff -urNp linux-2.6.9.orig/drivers/acpi/tables/tbxface.c linux-2.6.9/drivers/acpi/tables/tbxface.c >--- linux-2.6.9.orig/drivers/acpi/tables/tbxface.c 2008-07-27 19:09:05.000000000 -0400 >+++ linux-2.6.9/drivers/acpi/tables/tbxface.c 2008-07-28 08:23:32.000000000 -0400 >@@ -429,7 +429,13 @@ acpi_get_table ( > > /* Validate/Allocate/Clear caller buffer */ > >- status = acpi_ut_initialize_buffer (ret_buffer, table_length); >+#ifdef CONFIG_IA64 >+ if ((table_type == ACPI_TABLE_DSDT) && ia64_platform_is("dig")) >+ status = acpi_ut_allocate_dsdt_buffer(ret_buffer, >+ table_length); >+ else >+#endif >+ status = acpi_ut_initialize_buffer (ret_buffer, table_length); > if (ACPI_FAILURE (status)) { > return_ACPI_STATUS (status); > } >diff -X /tmp/dontdiff -urNp linux-2.6.9.orig/drivers/acpi/utilities/utalloc.c linux-2.6.9/drivers/acpi/utilities/utalloc.c >--- linux-2.6.9.orig/drivers/acpi/utilities/utalloc.c 2008-07-27 19:09:05.000000000 -0400 >+++ linux-2.6.9/drivers/acpi/utilities/utalloc.c 2008-07-28 08:28:33.000000000 -0400 >@@ -41,8 +41,11 @@ > * POSSIBILITY OF SUCH DAMAGES. > */ > >- > #include <acpi/acpi.h> >+#ifdef CONFIG_IA64 >+#include <linux/gfp.h> >+#include <linux/mm.h> >+#endif > > #define _COMPONENT ACPI_UTILITIES > ACPI_MODULE_NAME ("utalloc") >@@ -254,6 +257,44 @@ acpi_ut_validate_buffer ( > return (AE_OK); > } > >+#ifdef CONFIG_IA64 >+/******************************************************************************* >+ * >+ * FUNCTION: acpi_ut_initialize_dsdt_buffer >+ * >+ * PARAMETERS: Buffer - Buffer to be validated >+ * required_length - Length needed >+ * >+ * RETURN: Status >+ * >+ * DESCRIPTION: There seems to a bug with the HP BIOS/ACPI tables where the >+ * dsdt is > 128K in size. RHEL4 kmalloc limit >+ * is 128K so alloc_pages() must be used to dump the dsdt. >+ * Only allocate a new buffer using alloc_pages(). >+ * The memory used here is shortlived and is free_pages()'d after >+ * the table is dumped. >+ * >+ ******************************************************************************/ >+ >+acpi_status >+acpi_ut_allocate_dsdt_buffer(struct acpi_buffer *buffer, >+ acpi_size required_length) >+{ >+ struct page *p; >+ >+ /* Allocate a new buffer */ >+ p = alloc_pages(GFP_KERNEL, get_order(required_length)); >+ buffer->pointer = page_address(p); >+ if (!buffer->pointer) >+ return (AE_NO_MEMORY); >+ >+ /* Clear the buffer */ >+ ACPI_MEMSET (buffer->pointer, 0, required_length); >+ >+ buffer->length = required_length; >+ return (AE_OK); >+} >+#endif > > /******************************************************************************* > * >diff -X /tmp/dontdiff -urNp linux-2.6.9.orig/include/acpi/acutils.h linux-2.6.9/include/acpi/acutils.h >--- linux-2.6.9.orig/include/acpi/acutils.h 2008-07-27 19:09:10.000000000 -0400 >+++ linux-2.6.9/include/acpi/acutils.h 2008-07-28 07:07:47.000000000 -0400 >@@ -773,6 +773,11 @@ acpi_ut_initialize_buffer ( > struct acpi_buffer *buffer, > acpi_size required_length); > >+#ifdef CONFIG_IA64 >+acpi_status >+acpi_ut_allocate_dsdt_buffer(struct acpi_buffer *buffer, >+ acpi_size required_length); >+#endif > > /* Memory allocation functions */ >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 455253
: 312765