public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* PaceBlade broken acpi/memory map
@ 2003-02-20 17:21 Pavel Machek
       [not found] ` <20030220172144.GA15016-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Pavel Machek @ 2003-02-20 17:21 UTC (permalink / raw)
  To: kernel list, ACPI mailing list

Hi!

I have PaceBlade here, and its memory map is wrong, which leads to
ACPI refusing to load. [It does not mention "ACPI data" in the memory
map at all!]

And when I work around that, it crashes in processing _STA/_INI
methods. [Anyone from PaceBlade listening?]

								Pavel
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

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

* Re: [ACPI] PaceBlade broken acpi/memory map
       [not found] ` <20030220172144.GA15016-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
@ 2003-02-24 16:42   ` Ducrot Bruno
       [not found]     ` <20030224164209.GD13404-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Ducrot Bruno @ 2003-02-24 16:42 UTC (permalink / raw)
  To: Pavel Machek
  Cc: kernel list, ACPI mailing list, Robert Woerle,
	ducrot-kk6yZipjEM5g9hUCZPvPmw

On Thu, Feb 20, 2003 at 06:21:45PM +0100, Pavel Machek wrote:
> Hi!
> 
> I have PaceBlade here, and its memory map is wrong, which leads to
> ACPI refusing to load. [It does not mention "ACPI data" in the memory
> map at all!]

I have made those patches to workaround that.  I have no time
to rediff it though (sorry), but it is easy to get it.  I also CC
to Robert Woerle because he has already send a PR to the
bios mainteners.

> 
> And when I work around that, it crashes in processing _STA/_INI
> methods. [Anyone from PaceBlade listening?]

Don't know what happens: I have no paceblade and it sound like it
is OK for Robert ?


this one is bad.  Only here in order to get the second diff apply cleanly.


--- linux-2.4.21-pre3-acpi-20030109-s4bios/arch/i386/kernel/setup.c	2003/01/22 12:37:35	1.1
+++ linux-2.4.21-pre3-acpi-20030109-s4bios/arch/i386/kernel/setup.c	2003/01/22 13:44:06
@@ -546,6 +546,12 @@
 	if (*pnr_map < 2)
 		return -1;
 
+	biosmap[(int) *pnr_map].addr = 0x0eef0000;
+	biosmap[(int) *pnr_map].size = 53248;
+	biosmap[(int) *pnr_map].type = E820_ACPI;
+	(*pnr_map)++;
+
+	
 	old_nr = *pnr_map;
 
 	/* bail out if we find any unreasonable addresses in bios map */





This one is the good one.  Need to be rediffed correctly, or to be changed for 2.5.


--- linux-2.4.21-pre3-acpi-20030109-s4bios/arch/i386/kernel/setup.c	2003/01/27 13:46:37	1.2
+++ linux-2.4.21-pre3-acpi-20030109-s4bios/arch/i386/kernel/setup.c	2003/01/27 14:13:28
@@ -546,10 +546,47 @@
 	if (*pnr_map < 2)
 		return -1;
 
+	/*
+	 * For broken BIOS which do not declare an ACPI DATA properly,
+	 * even though ACPI NVS are here, we try to declare the 64ko as
+	 * ACPI DATA (and hope it will work).
+	 */
+	do {
+		int i;
+		int seen = 0;
+		struct e820entry new_entry;
+
+		old_nr = *pnr_map;
+		memset(&new_entry, 0, sizeof (new_entry));
+
+		for (i = 0; i < old_nr; i++) {
+			switch (biosmap[i].type) {
+			case E820_ACPI:
+				seen = 1;
+				break;
+			case E820_NVS:
+				new_entry.addr = biosmap[i].addr - 0x10000;
+				new_entry.size = 0x10000;
+				new_entry.type = E820_ACPI;
+				break;
+			default:
+				break;
+			}
+		}
+		if (!seen && new_entry.type == E820_ACPI) {
+			printk(KERN_WARNING "setup: found a ACPI NV region, but no ACPI DATA.  Trying to mark\n");
+			printk(KERN_WARNING "setup: %016Lx of size %016Lx as ACPI DATA.\n", new_entry.addr, new_entry.size);
+			memcpy(&biosmap[(int) *pnr_map], &new_entry, sizeof(new_entry));
+			(*pnr_map)++;
+		}
+	} while (0);
+
+#if 0
 	biosmap[(int) *pnr_map].addr = 0x0eef0000;
 	biosmap[(int) *pnr_map].size = 53248;
 	biosmap[(int) *pnr_map].type = E820_ACPI;
 	(*pnr_map)++;
+#endif
 
 	
 	old_nr = *pnr_map;



It is much better to kill the lines in #if 0 ... #endif of course.

Cheers,

-- 
Ducrot Bruno

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

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

* Re: PaceBlade broken acpi/memory map
       [not found]     ` <20030224164209.GD13404-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
@ 2003-02-24 18:39       ` Pavel Machek
       [not found]         ` <20030224183955.GC517-jyMamyUUXNJG4ohzP4jBZS1Fcj925eT/@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Pavel Machek @ 2003-02-24 18:39 UTC (permalink / raw)
  To: Ducrot Bruno; +Cc: kernel list, ACPI mailing list, Robert Woerle

Hi!

> > I have PaceBlade here, and its memory map is wrong, which leads to
> > ACPI refusing to load. [It does not mention "ACPI data" in the memory
> > map at all!]
> 
> I have made those patches to workaround that.  I have no time

Yes, I have seen those... I also made a patch that enables you to do
that workaround from mem= options at kernel command line.

								Pavel
-- 
Horseback riding is like software...
...vgf orggre jura vgf serr.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

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

* Re: [ACPI] PaceBlade broken acpi/memory map
       [not found]         ` <20030224183955.GC517-jyMamyUUXNJG4ohzP4jBZS1Fcj925eT/@public.gmane.org>
@ 2003-02-25 14:35           ` Ducrot Bruno
       [not found]             ` <20030225143505.GH13404-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Ducrot Bruno @ 2003-02-25 14:35 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Ducrot Bruno, kernel list, ACPI mailing list, Robert Woerle

On Mon, Feb 24, 2003 at 07:39:55PM +0100, Pavel Machek wrote:
> Hi!
> 
> > > I have PaceBlade here, and its memory map is wrong, which leads to
> > > ACPI refusing to load. [It does not mention "ACPI data" in the memory
> > > map at all!]
> > 
> > I have made those patches to workaround that.  I have no time
> 
> Yes, I have seen those... I also made a patch that enables you to do
> that workaround from mem= options at kernel command line.
> 

I doubt you received the latest one, since I have not make it public
unless this day.

-- 
Ducrot Bruno

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

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

* Re: [ACPI] PaceBlade broken acpi/memory map
       [not found]             ` <20030225143505.GH13404-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
@ 2003-02-25 14:53               ` Robert
       [not found]                 ` <3E5B835E.7050601-y2s3ugBAdl9BDgjK7y7TUQ@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Robert @ 2003-02-25 14:53 UTC (permalink / raw)
  To: Ducrot Bruno; +Cc: Pavel Machek, kernel list, ACPI mailing list, Robert Woerle



Ducrot Bruno schrieb:

>On Mon, Feb 24, 2003 at 07:39:55PM +0100, Pavel Machek wrote:
>  
>
>>Hi!
>>
>>    
>>
>>>>I have PaceBlade here, and its memory map is wrong, which leads to
>>>>ACPI refusing to load. [It does not mention "ACPI data" in the memory
>>>>map at all!]
>>>>        
>>>>
>>>I have made those patches to workaround that.  I have no time
>>>      
>>>
>>Yes, I have seen those... I also made a patch that enables you to do
>>that workaround from mem= options at kernel command line.
>>
>>    
>>
>
>I doubt you received the latest one, since I have not make it public
>unless this day.
>  
>
i did sent it to him since he recieved our machine from Suse Nuernberg

>  
>

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

* Re: [ACPI] PaceBlade broken acpi/memory map
       [not found]                 ` <3E5B835E.7050601-y2s3ugBAdl9BDgjK7y7TUQ@public.gmane.org>
@ 2003-02-25 15:13                   ` Ducrot Bruno
       [not found]                     ` <20030225151341.GI13404-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Ducrot Bruno @ 2003-02-25 15:13 UTC (permalink / raw)
  To: Robert
  Cc: Ducrot Bruno, Pavel Machek, kernel list, ACPI mailing list,
	Robert Woerle

On Tue, Feb 25, 2003 at 03:53:18PM +0100, Robert wrote:
> 
> 
> Ducrot Bruno schrieb:
> 
> >On Mon, Feb 24, 2003 at 07:39:55PM +0100, Pavel Machek wrote:
> > 
> >
> >>Hi!
> >>
> >>   
> >>
> >>>>I have PaceBlade here, and its memory map is wrong, which leads to
> >>>>ACPI refusing to load. [It does not mention "ACPI data" in the memory
> >>>>map at all!]
> >>>>       
> >>>>
> >>>I have made those patches to workaround that.  I have no time
> >>>     
> >>>
> >>Yes, I have seen those... I also made a patch that enables you to do
> >>that workaround from mem= options at kernel command line.
> >>
> >>   
> >>
> >
> >I doubt you received the latest one, since I have not make it public
> >unless this day.
> > 
> >
> i did sent it to him since he recieved our machine from Suse Nuernberg
> 

Ah, OK.  Wasn't aware of that.  But why then making a mem= opitons in
that case.  I have take care to *not* use any mem= at all because that
can make things worse.

-- 
Ducrot Bruno

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

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

* Re: [ACPI] PaceBlade broken acpi/memory map
       [not found]                     ` <20030225151341.GI13404-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
@ 2003-02-25 17:44                       ` Pavel Machek
       [not found]                         ` <20030225174449.GD12028-jyMamyUUXNJG4ohzP4jBZS1Fcj925eT/@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Pavel Machek @ 2003-02-25 17:44 UTC (permalink / raw)
  To: Ducrot Bruno; +Cc: Robert, kernel list, ACPI mailing list, Robert Woerle

Hi!

> > >>>>I have PaceBlade here, and its memory map is wrong, which leads to
> > >>>>ACPI refusing to load. [It does not mention "ACPI data" in the memory
> > >>>>map at all!]
> > >>>>       
> > >>>>
> > >>>I have made those patches to workaround that.  I have no time
> > >>>     
> > >>>
> > >>Yes, I have seen those... I also made a patch that enables you to do
> > >>that workaround from mem= options at kernel command line.
> > >>
> > >>   
> > >>
> > >
> > >I doubt you received the latest one, since I have not make it public
> > >unless this day.
> > > 
> > >
> > i did sent it to him since he recieved our machine from Suse Nuernberg
> > 
> 
> Ah, OK.  Wasn't aware of that.  But why then making a mem= opitons in
> that case.  I have take care to *not* use any mem= at all because that
> can make things worse.

I've received it after I made my patch, and I think that more machine
with broken tables will be created in future...

								Pavel
-- 
Horseback riding is like software...
...vgf orggre jura vgf serr.

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

* Re: [ACPI] PaceBlade broken acpi/memory map
       [not found]                         ` <20030225174449.GD12028-jyMamyUUXNJG4ohzP4jBZS1Fcj925eT/@public.gmane.org>
@ 2003-02-25 20:09                           ` Ducrot Bruno
       [not found]                             ` <20030225200907.GJ13404-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Ducrot Bruno @ 2003-02-25 20:09 UTC (permalink / raw)
  To: Pavel Machek
  Cc: Ducrot Bruno, Robert, kernel list, ACPI mailing list,
	Robert Woerle

Hi Pavel,

On Tue, Feb 25, 2003 at 06:44:49PM +0100, Pavel Machek wrote:
> 
> I've received it after I made my patch, and I think that more machine
> with broken tables will be created in future...
> 

That it not the answer I expected.  To be more clear: you report errors
on _STA and _INI.  I don't know why.  But with my previous patch, it seems
that there is no such errors (but it is with 2.4).
And one of the suspect(s) for what I know is your mem= option patch.

-- 
Ducrot Bruno

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

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

* Re: PaceBlade broken acpi/memory map
       [not found]                             ` <20030225200907.GJ13404-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
@ 2003-02-25 20:49                               ` Ducrot Bruno
       [not found]                                 ` <20030225204911.GK13404-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Ducrot Bruno @ 2003-02-25 20:49 UTC (permalink / raw)
  To: Ducrot Bruno
  Cc: Pavel Machek, Robert, kernel list, ACPI mailing list,
	Robert Woerle

On Tue, Feb 25, 2003 at 09:09:07PM +0100, Ducrot Bruno wrote:
> Hi Pavel,
> 
> On Tue, Feb 25, 2003 at 06:44:49PM +0100, Pavel Machek wrote:
> > 
> > I've received it after I made my patch, and I think that more machine
> > with broken tables will be created in future...
> > 
> 
> That it not the answer I expected.  To be more clear: you report errors
> on _STA and _INI.  I don't know why.  But with my previous patch, it seems
> that there is no such errors (but it is with 2.4).
> And one of the suspect(s) for what I know is your mem= option patch.

Ok.  Found your patch in LKML.  Soon like to be OK.  Will see then what
hapens, but I need your dmesg.

Cheers,

-- 
Ducrot Bruno

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


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

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

* Re: [ACPI] PaceBlade broken acpi/memory map
       [not found]                                 ` <20030225204911.GK13404-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
@ 2003-02-26  9:39                                   ` Pavel Machek
  0 siblings, 0 replies; 10+ messages in thread
From: Pavel Machek @ 2003-02-26  9:39 UTC (permalink / raw)
  To: Ducrot Bruno; +Cc: Robert, kernel list, ACPI mailing list, Robert Woerle

Hi!

> > > I've received it after I made my patch, and I think that more machine
> > > with broken tables will be created in future...
> > > 
> > 
> > That it not the answer I expected.  To be more clear: you report errors
> > on _STA and _INI.  I don't know why.  But with my previous patch, it seems
> > that there is no such errors (but it is with 2.4).
> > And one of the suspect(s) for what I know is your mem= option patch.
> 
> Ok.  Found your patch in LKML.  Soon like to be OK.  Will see then what
> hapens, but I need your dmesg.

Sorry, I no longer have access to that machine :-(.
								Pavel
-- 
Horseback riding is like software...
...vgf orggre jura vgf serr.

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

end of thread, other threads:[~2003-02-26  9:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-20 17:21 PaceBlade broken acpi/memory map Pavel Machek
     [not found] ` <20030220172144.GA15016-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-02-24 16:42   ` [ACPI] " Ducrot Bruno
     [not found]     ` <20030224164209.GD13404-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
2003-02-24 18:39       ` Pavel Machek
     [not found]         ` <20030224183955.GC517-jyMamyUUXNJG4ohzP4jBZS1Fcj925eT/@public.gmane.org>
2003-02-25 14:35           ` [ACPI] " Ducrot Bruno
     [not found]             ` <20030225143505.GH13404-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
2003-02-25 14:53               ` Robert
     [not found]                 ` <3E5B835E.7050601-y2s3ugBAdl9BDgjK7y7TUQ@public.gmane.org>
2003-02-25 15:13                   ` Ducrot Bruno
     [not found]                     ` <20030225151341.GI13404-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
2003-02-25 17:44                       ` Pavel Machek
     [not found]                         ` <20030225174449.GD12028-jyMamyUUXNJG4ohzP4jBZS1Fcj925eT/@public.gmane.org>
2003-02-25 20:09                           ` Ducrot Bruno
     [not found]                             ` <20030225200907.GJ13404-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
2003-02-25 20:49                               ` Ducrot Bruno
     [not found]                                 ` <20030225204911.GK13404-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
2003-02-26  9:39                                   ` [ACPI] " Pavel Machek

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