public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* dsdt with 2.5
@ 2003-05-09  8:48 roychris
       [not found] ` <3EBB6B55.5000700-GANU6spQydw@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: roychris @ 2003-05-09  8:48 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

I've just fixed my dsdt. How can I load it with the 2.5.69 kernel ?

Thanks



-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

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

* Re: custom dsdt with 2.5
       [not found] ` <3EBB6B55.5000700-GANU6spQydw@public.gmane.org>
@ 2003-05-09 12:26   ` Stefan Behnel
       [not found]     ` <3EBB9E65.6000108-8NdywcgfOMlWMvVl7B+zuCEWGD4kr0XT@public.gmane.org>
  2003-05-09 12:43   ` Ducrot Bruno
  1 sibling, 1 reply; 8+ messages in thread
From: Stefan Behnel @ 2003-05-09 12:26 UTC (permalink / raw)
  To: roychris; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi!

roychris wrote:
> I've just fixed my dsdt. How can I load it with the 2.5.69 kernel ?

Try
http://www.behnel.de/acpi/acpi-custom-DSDT.patch
resp.
http://www.behnel.de/acpi/samsung-acpi.html

At least, it works for 2.4, but I don't see why it shouldn't work for ACPI in 2.5.

BTW: There were patches recently that allow loading the DSDT from an initrd. Search the archives for that.

Stefan

-- 
=========================================================================
 Stefan Behnel
 Graduiertenkolleg TU-Darmstadt
 Wilhelminenstraße 7                               Tel: +49-6151-16-6706
 D-64283 Darmstadt                                 Fax: +49-6151-16-6707



-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

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

* Re: dsdt with 2.5
       [not found] ` <3EBB6B55.5000700-GANU6spQydw@public.gmane.org>
  2003-05-09 12:26   ` custom " Stefan Behnel
@ 2003-05-09 12:43   ` Ducrot Bruno
  1 sibling, 0 replies; 8+ messages in thread
From: Ducrot Bruno @ 2003-05-09 12:43 UTC (permalink / raw)
  To: roychris; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Fri, May 09, 2003 at 10:48:21AM +0200, roychris wrote:
> I've just fixed my dsdt. How can I load it with the 2.5.69 kernel ?
> 

Exact same procedure as for the 2.4 kernel (I don't know, though
for the initrd patch..).


-- 
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

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

* Re: custom dsdt with 2.5
       [not found]         ` <3EBBC498.7030704-GANU6spQydw@public.gmane.org>
@ 2003-05-09 14:51           ` Markus Gaugusch
  2003-05-09 15:16           ` Ducrot Bruno
  1 sibling, 0 replies; 8+ messages in thread
From: Markus Gaugusch @ 2003-05-09 14:51 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On May 9, roychris <roychris-GANU6spQydw@public.gmane.org> wrote:
> I changed by hand the osl.c of the kernel 2.5. I can send you a diff if
> you want. This is the few lines I changed :
>
> #include "/my/home/dsdt.hex"
>
> and
>
> *new_table = (struct acpi_table_header *) AmlCode;
This function is called for several tables, you must check if the DSDT
table is going to be replaced.
I have ported my DSDT in initrd to 2.5.69 and will release it within the
next one or two hours.

Markus
-- 
__________________    /"\
Markus Gaugusch       \ /    ASCII Ribbon Campaign
markus-z+rTbpWsRgbk7+2FdBfRIA@public.gmane.org     X     Against HTML Mail
                      / \


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

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

* Re: custom dsdt with 2.5
       [not found]     ` <3EBB9E65.6000108-8NdywcgfOMlWMvVl7B+zuCEWGD4kr0XT@public.gmane.org>
@ 2003-05-09 15:09       ` roychris
       [not found]         ` <3EBBC498.7030704-GANU6spQydw@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: roychris @ 2003-05-09 15:09 UTC (permalink / raw)
  To: Stefan Behnel; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

I changed by hand the osl.c of the kernel 2.5. I can send you a diff if 
you want. This is the few lines I changed :

#include "/my/home/dsdt.hex"

and

*new_table = (struct acpi_table_header *) AmlCode;

Now I have this error at boot time :

ACPI: Subsystem revision 20030418
    ACPI-0291: *** Info: Table [DSDT] replaced by host OS
    ACPI-0227: *** Error: Invalid signature where RSDP indicates 
RSDT/XSDT should be located
    ACPI-0103: *** Error: acpi_load_tables: Could not load RSDT: 
AE_BAD_SIGNATURE
    ACPI-0133: *** Error: acpi_load_tables: Could not load tables: 
AE_BAD_SIGNATURE
ACPI: Unable to load the System Description Tables


Could you help me ?


Stefan Behnel wrote:

> Hi!
>
> roychris wrote:
>
>> I've just fixed my dsdt. How can I load it with the 2.5.69 kernel ?
>
>
> Try
> http://www.behnel.de/acpi/acpi-custom-DSDT.patch
> resp.
> http://www.behnel.de/acpi/samsung-acpi.html
>
> At least, it works for 2.4, but I don't see why it shouldn't work for 
> ACPI in 2.5.
>
> BTW: There were patches recently that allow loading the DSDT from an 
> initrd. Search the archives for that.
>
> Stefan
>




-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

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

* Re: custom dsdt with 2.5
       [not found]         ` <3EBBC498.7030704-GANU6spQydw@public.gmane.org>
  2003-05-09 14:51           ` Markus Gaugusch
@ 2003-05-09 15:16           ` Ducrot Bruno
  1 sibling, 0 replies; 8+ messages in thread
From: Ducrot Bruno @ 2003-05-09 15:16 UTC (permalink / raw)
  To: roychris; +Cc: Stefan Behnel, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Fri, May 09, 2003 at 05:09:12PM +0200, roychris wrote:
> I changed by hand the osl.c of the kernel 2.5. I can send you a diff if 
> you want. This is the few lines I changed :
> 
> #include "/my/home/dsdt.hex"
> 
> and
> 
> *new_table = (struct acpi_table_header *) AmlCode;
> 

*ALL* acpi tables will be passed to acpi_table_override().  Therefore,
the RSDT table have been replaced by the table that you have provided.
Since that is not what you want (RSDT is not DSDT), the ACPI subsystem
can not work properly.

Do something like this:

	*new_table = NULL;

	if (!strncmp((strncmp(existing_table->signature, DSDT_SIG, 4))))
		*new_table = (struct acpi_table_header *) AmlCode;


BTW, I don't see any reason why you have to patch by hand osl.c and you don't
use acpi-custom-DSDT.patch instead.
Really, it look good for me.  What say

$ patch -p1 -i /path/to/acpi-custom-DSDT.patch
in the linux-2.5.69 directory ?


Cheers,

-- 
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

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

* Re: custom dsdt with 2.5
@ 2003-05-09 17:35 roychris-GANU6spQydw
       [not found] ` <1052501708.3ebbe6ccf3454-HZaT1/I6gcdWj0EZb7rXcA@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: roychris-GANU6spQydw @ 2003-05-09 17:35 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f; +Cc: Ducrot Bruno

Bruno, your patch is rejected by the 2.5.69. But thanks to your help, it's
working now. I can use my custom dsdt.
But my problem is not solve. When I try the 3 sleep state, all my peripherics
are shutted down (but I don't have the sleep LED on), but when I want to resume,
only the cdrom wakes up ! And when I try the 4 state, after the driver frees the
memory, I have a very fast (too fast to read it) message that is indefinitively
repeated. I think that it's a dump mem (something like kernel panic maybe).

How can I have this message ?
Does anyone have the same troubles ?

Ducrot Bruno wrote:

>On Fri, May 09, 2003 at 05:09:12PM +0200, roychris wrote:
>
>>I changed by hand the osl.c of the kernel 2.5. I can send you a diff if 
>>you want. This is the few lines I changed :
>>
>>#include "/my/home/dsdt.hex"
>>
>>and
>>
>>*new_table = (struct acpi_table_header *) AmlCode;
>>
>
>*ALL* acpi tables will be passed to acpi_table_override().  Therefore,
>the RSDT table have been replaced by the table that you have provided.
>Since that is not what you want (RSDT is not DSDT), the ACPI subsystem
>can not work properly.
>
>Do something like this:
>
>	*new_table = NULL;
>
>	if (!strncmp((strncmp(existing_table->signature, DSDT_SIG, 4))))
>		*new_table = (struct acpi_table_header *) AmlCode;
>
>
>BTW, I don't see any reason why you have to patch by hand osl.c and you don't
>use acpi-custom-DSDT.patch instead.
>Really, it look good for me.  What say
>
>$ patch -p1 -i /path/to/acpi-custom-DSDT.patch
>in the linux-2.5.69 directory ?
>
>
>Cheers,
>


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

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

* Re: custom dsdt with 2.5
       [not found] ` <1052501708.3ebbe6ccf3454-HZaT1/I6gcdWj0EZb7rXcA@public.gmane.org>
@ 2003-05-09 17:47   ` Ducrot Bruno
  0 siblings, 0 replies; 8+ messages in thread
From: Ducrot Bruno @ 2003-05-09 17:47 UTC (permalink / raw)
  To: roychris-GANU6spQydw
  Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Ducrot Bruno

On Fri, May 09, 2003 at 07:35:08PM +0200, roychris-GANU6spQydw@public.gmane.org wrote:
> Bruno, your patch is rejected by the 2.5.69. But thanks to your help, it's
> working now. I can use my custom dsdt.

acpi-custom-DSDT.patch should work, (but I have not tested it) is
not my patch.

> But my problem is not solve. When I try the 3 sleep state, all my peripherics
> are shutted down (but I don't have the sleep LED on), but when I want to resume,
> only the cdrom wakes up ! And when I try the 4 state, after the driver frees the
> memory, I have a very fast (too fast to read it) message that is indefinitively
> repeated. I think that it's a dump mem (something like kernel panic maybe).
> 
> How can I have this message ?
> Does anyone have the same troubles ?

I can not tell because I have an hardware failure in my laptop, but
I should bought a new one soon.

-- 
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

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

end of thread, other threads:[~2003-05-09 17:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-09  8:48 dsdt with 2.5 roychris
     [not found] ` <3EBB6B55.5000700-GANU6spQydw@public.gmane.org>
2003-05-09 12:26   ` custom " Stefan Behnel
     [not found]     ` <3EBB9E65.6000108-8NdywcgfOMlWMvVl7B+zuCEWGD4kr0XT@public.gmane.org>
2003-05-09 15:09       ` roychris
     [not found]         ` <3EBBC498.7030704-GANU6spQydw@public.gmane.org>
2003-05-09 14:51           ` Markus Gaugusch
2003-05-09 15:16           ` Ducrot Bruno
2003-05-09 12:43   ` Ducrot Bruno
  -- strict thread matches above, loose matches on Subject: below --
2003-05-09 17:35 custom " roychris-GANU6spQydw
     [not found] ` <1052501708.3ebbe6ccf3454-HZaT1/I6gcdWj0EZb7rXcA@public.gmane.org>
2003-05-09 17:47   ` Ducrot Bruno

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