dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/arch/x86/kernel/acpi
Zhao Yakui 13b40a1a06 ACPI: Avoid array address overflow when _CST MWAIT hint bits are set
The Cx Register address obtained from the _CST object is used as the MWAIT
hints if the register type is FFixedHW. And it is used to check whether
the Cx type is supported or not.

On some boxes the following Cx state package is obtained from _CST object:
    >{
                ResourceTemplate ()
                {
                    Register (FFixedHW,
                        0x01,               // Bit Width
                        0x02,               // Bit Offset
                        0x0000000000889759, // Address
                        0x03,               // Access Size
                        )
                },

                0x03,
                0xF5,
                0x015E }

   In such case we should use the bit[7:4] of Cx address to check whether
the Cx type is supported or not.

mask the MWAIT hint to avoid array address overflow

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Acked-by:Venki Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2009-01-09 01:28:01 -05:00
..
realmode x86 ACPI: normalize segment descriptor register on resume 2008-07-05 08:25:40 +02:00
Makefile kbuild, suspend, x86: fix rebuild of wakeup.bin 2008-05-04 20:04:45 +02:00
boot.c ACPI: pci_link: remove acpi_irq_balance_set() interface 2008-11-11 21:12:05 -05:00
cstate.c ACPI: Avoid array address overflow when _CST MWAIT hint bits are set 2009-01-09 01:28:01 -05:00
processor.c ACPI: Disable the C2C3_FFH access mode HW has no MWAIT support 2008-07-16 23:27:04 +02:00
sleep.c Merge branch 'linus' into test 2008-10-23 00:11:07 -04:00
sleep.h x86: move suspend wakeup code to C 2008-04-17 17:41:37 +02:00
wakeup_32.S x86: move suspend wakeup code to C 2008-04-17 17:41:37 +02:00
wakeup_64.S x86: move suspend wakeup code to C 2008-04-17 17:41:37 +02:00
wakeup_rm.S x86: move suspend wakeup code to C 2008-04-17 17:41:37 +02:00