https://bugzilla.kernel.org/show_bug.cgi?id=15480





--- Comment #15 from Bjorn Helgaas <[email protected]>  2010-03-24 22:06:09 
---
Created an attachment (id=25690)
 --> (https://bugzilla.kernel.org/attachment.cgi?id=25690)
Windows GA-MA78GM-S2H PCI bus resources

>From the DSDT in comment 13, we can see that the BIOS starts with this
template:

    DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, ...
      0x00100000,         // Range Minimum
      0xFEBFFFFF,         // Range Maximum
      0xFFF00000,         // Length

and fills in the starting address, probably based on the system memory size. 
What we see in Linux (from comment 14) is this:

    [07] 32-Bit DWORD Address Space Resource
              Resource Type : Memory Range
         Min Relocatability : MinFixed
         Max Relocatability : MaxFixed
            Address Minimum : CFF00000  (_MIN)
            Address Maximum : FEBFFFFF  (_MAX)
             Address Length : 3EE10000  (_LEN)

Per ACPI spec, _LEN must be (_MAX - _MIN + 1), but 3EE10000 != FEBFFFFF -
CFF00000 + 1, so this looks like a BIOS defect.

But Windows deals with it, and Linux should, too.

[email protected] went far out of his way to collect the attached Windows Device
Manager screenshot from a GA-MA78GM-S2H.  The resources shown there match what
Linux found, except for this "end-of-memory to FEBFFFFF" region.  There,
Windows appears to have trimmed the _LEN so it fits between _MIN and _MAX.

I think it will be much better for Linux to enforce this "LEN <= _MAX - _MIN +
1" constraint than to trim it based on other resources that conflict.  This
way, we'll end up with [mem 0xcff00000-0xfebfffff] rather than [mem
0xcff00000-0xffffffff], which should match Windows exactly and will remove the
possibility of placing a device at 0xfec00000, where it probably won't work.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
acpi-bugzilla mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to