• Rafa Bilski's avatar
    [CPUFREQ] Longhaul - Fix up powersaver assumptions. · 264166e6
    Rafa Bilski authored
    ACPI PM2 register was fallback for "Longhaul ver. 1" CPU's.
    My assumption that this register isn't present at
    "PowerSaver" motherboards is so far true, but current code
    will not work correctly in other case. There are three possible
    supports: ACPI C3, PM2 and northbridge. That was my assumption
    that ACPI C3 and northbridge is for PS and northbridge and PM2
    is for V1. In current code we can only check if it is ACPI
    support or not by port22_en. So remove port22_en and add
    longhaul_flags. If USE_ACPI_C3 and USE_NORTHBRIDGE are both
    clear then it means ACPI PM2 support. Also change order of
    support probe from ACPI C3, PM2, northbridge to ACPI C3,
    northbridge, ACPI PM2. Paranoid protection against port 0x22
    cast as ACPI PM2 register. Bit 1 clear in such case - lockup
    on AGP DMA. And obvious (now) fixup for do_powersaver. Use
    cx->address only for ACPI C3 ("PowerSaver" processor using
    PM2 support).
    Signed-off-by: default avatarRafa Bilski <rafalbilski@interia.pl>
    Signed-off-by: default avatarDave Jones <davej@redhat.com>
    264166e6
longhaul.c 21.3 KB