Linux ACPI
 help / color / mirror / Atom feed
* Re: ThinkPad X60: PCI: BIOS Bug: MCFG area is not E820-reserved (MCFG is in ACPI NVS)
       [not found] ` <20060530204112.GA22031@andromeda.dapyr.net>
@ 2006-05-30 21:47   ` Jeremy Fitzhardinge
  2006-05-30 23:06     ` Petr Vandrovec
  0 siblings, 1 reply; 3+ messages in thread
From: Jeremy Fitzhardinge @ 2006-05-30 21:47 UTC (permalink / raw)
  To: konradr; +Cc: Jeremy Fitzhardinge, Linux Kernel Mailing List, arjan, linux-acpi

On Tue, 2006-05-30 at 16:41 -0400, konradr@us.ibm.com wrote:
> On Tue, May 30, 2006 at 12:38:01PM -0700, Jeremy Fitzhardinge wrote:
> > [snip]
> >
> > So the MCFG entry is in the ACPI NVS region of the E820 table.  Is this 
> > bad? 
> 
> Not at all. The ACPI v3.0 specs mentions that:
> 
> "ACPI NVS Memory. This range of addresses is in use or reserve by
> the system and must not be used by the operating system. This
> range is required to be saved and restored across an NVS sleep."

I actually misread the tables.  It appears that MCFG (at 0x7f6e2e36) is
in ACPI Data (7f6d0000 - 7f6e3000).  include/asm-i386/e820.h says that
memory marked as "E820_ACPI" can be reused as normal memory once the
ACPI tables have been read.

Doesn't this mean that the MCFG memory could end up being used as
general system memory?  That seems bad if MCFG memory is some kind of
MMIO space.  Or is the comment simply wrong?

(I don't really know what this stuff is, so maybe I'm just pointlessly
worrying.)

	J

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

* Re: ThinkPad X60: PCI: BIOS Bug: MCFG area is not E820-reserved (MCFG is in ACPI NVS)
  2006-05-30 21:47   ` ThinkPad X60: PCI: BIOS Bug: MCFG area is not E820-reserved (MCFG is in ACPI NVS) Jeremy Fitzhardinge
@ 2006-05-30 23:06     ` Petr Vandrovec
  2006-05-30 23:48       ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Vandrovec @ 2006-05-30 23:06 UTC (permalink / raw)
  To: Jeremy Fitzhardinge
  Cc: konradr, Jeremy Fitzhardinge, Linux Kernel Mailing List, arjan,
	linux-acpi

Jeremy Fitzhardinge wrote:
> On Tue, 2006-05-30 at 16:41 -0400, konradr@us.ibm.com wrote:
> 
>>On Tue, May 30, 2006 at 12:38:01PM -0700, Jeremy Fitzhardinge wrote:
>>
>>>[snip]
>>>
>>>So the MCFG entry is in the ACPI NVS region of the E820 table.  Is this 
>>>bad? 
>>
>>Not at all. The ACPI v3.0 specs mentions that:
>>
>>"ACPI NVS Memory. This range of addresses is in use or reserve by
>>the system and must not be used by the operating system. This
>>range is required to be saved and restored across an NVS sleep."
> 
> 
> I actually misread the tables.  It appears that MCFG (at 0x7f6e2e36) is
> in ACPI Data (7f6d0000 - 7f6e3000).  include/asm-i386/e820.h says that
> memory marked as "E820_ACPI" can be reused as normal memory once the
> ACPI tables have been read.
> 
> Doesn't this mean that the MCFG memory could end up being used as
> general system memory?  That seems bad if MCFG memory is some kind of
> MMIO space.  Or is the comment simply wrong?

Address where MCFG table lives is not important.  What is important (and 
checked) is address of MMCONFIG reported by MCFG table...  Unfortunately code 
does not bother with printing that address :-(

Another problem is that code has hardcoded that MMCONFIG area is 256MB large. 
Unfortunately for the code PCI specification allows any power of two between 2MB 
and 256MB if vendor knows that such amount of busses (from 2 to 128) will be 
sufficient for system.  With notebook it is quite possible that not full 8 bits 
are implemented for MMCONFIG bus number.
								Petr


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

* Re: ThinkPad X60: PCI: BIOS Bug: MCFG area is not E820-reserved (MCFG is in ACPI NVS)
  2006-05-30 23:06     ` Petr Vandrovec
@ 2006-05-30 23:48       ` Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2006-05-30 23:48 UTC (permalink / raw)
  To: Petr Vandrovec
  Cc: Jeremy Fitzhardinge, konradr, Jeremy Fitzhardinge,
	Linux Kernel Mailing List, arjan, linux-acpi

On Wed, May 31, 2006 at 01:06:26AM +0200, Petr Vandrovec wrote:
> Jeremy Fitzhardinge wrote:
> >On Tue, 2006-05-30 at 16:41 -0400, konradr@us.ibm.com wrote:
> >
> >>On Tue, May 30, 2006 at 12:38:01PM -0700, Jeremy Fitzhardinge wrote:
> >>
> >>>[snip]
> >>>
> >>>So the MCFG entry is in the ACPI NVS region of the E820 table.  Is this 
> >>>bad? 
> >>
> >>Not at all. The ACPI v3.0 specs mentions that:
> >>
> >>"ACPI NVS Memory. This range of addresses is in use or reserve by
> >>the system and must not be used by the operating system. This
> >>range is required to be saved and restored across an NVS sleep."
> >
> >
> >I actually misread the tables.  It appears that MCFG (at 0x7f6e2e36) is
> >in ACPI Data (7f6d0000 - 7f6e3000).  include/asm-i386/e820.h says that
> >memory marked as "E820_ACPI" can be reused as normal memory once the
> >ACPI tables have been read.
> >
> >Doesn't this mean that the MCFG memory could end up being used as
> >general system memory?  That seems bad if MCFG memory is some kind of
> >MMIO space.  Or is the comment simply wrong?
> 
> Address where MCFG table lives is not important.  What is important (and 
> checked) is address of MMCONFIG reported by MCFG table...  Unfortunately 
> code does not bother with printing that address :-(
> 
> Another problem is that code has hardcoded that MMCONFIG area is 256MB 
> large. Unfortunately for the code PCI specification allows any power of two 
> between 2MB and 256MB if vendor knows that such amount of busses (from 2 to 
> 128) will be sufficient for system.  With notebook it is quite possible 
> that not full 8 bits are implemented for MMCONFIG bus number.

Patches to address this are always welcome :)

thanks,

greg k-h

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

end of thread, other threads:[~2006-05-30 23:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <447C9F19.5000105@goop.org>
     [not found] ` <20060530204112.GA22031@andromeda.dapyr.net>
2006-05-30 21:47   ` ThinkPad X60: PCI: BIOS Bug: MCFG area is not E820-reserved (MCFG is in ACPI NVS) Jeremy Fitzhardinge
2006-05-30 23:06     ` Petr Vandrovec
2006-05-30 23:48       ` Greg KH

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