Signed-off-by: Russell Leidich --- linux-2.6.24-rc5.orig/arch/x86/kernel/cpu/mcheck/mce_amd_64.c 2008-02-03 21:17:58.186613000 -0800 +++ linux-2.6.24-rc5/arch/x86/kernel/cpu/mcheck/mce_amd_64.c 2008-02-03 21:51:38.810989000 -0800 @@ -742,13 +742,20 @@ static void smp_thermal_northbridge_init */ pci_read_config_dword(k8_northbridges[nb_num], THERM_CTL_F3X64, &therm_ctl_f3x64); - therm_ctl_f3x64 |= PSL_APIC_HI_EN | HTC_EN; + therm_ctl_f3x64 |= PSL_APIC_HI_EN; therm_ctl_f3x64 &= (~PSL_APIC_LO_EN); pci_write_config_dword(k8_northbridges[nb_num], THERM_CTL_F3X64, therm_ctl_f3x64); - printk(KERN_INFO "CPU thermal throttling interrupts enabled in " - "PCI bus 0x0, device 0x%x, function 0x3, register 0x64." - "\n", k8_northbridges[nb_num]->devfn >> 3); + if (therm_ctl_f3x64 & HTC_EN) + printk(KERN_INFO "CPU thermal throttling interrupts " + "enabled in PCI bus 0x0, device 0x%x, function " + "0x3, register 0x64.\n", + PCI_SLOT(k8_northbridges[nb_num]->devfn)); + else + printk(KERN_WARNING "CPU thermal throttling disabled by" + " the BIOS in PCI bus 0x0, device 0x%x, " + "function 0x3, register 0x64, bit 0x0.\n", + PCI_SLOT(k8_northbridges[nb_num]->devfn)); } } @@ -835,7 +842,7 @@ static void smp_thermal_early_throttle_c * corresponding APIC initialization on each core. * * Due to an erratum involving the thermal sensor, this code does not work on - * any CPU prior to Family 0x10. + * CPUs with certain northbridge device IDs, as coded below. */ static int smp_thermal_interrupt_init(void) { @@ -844,13 +851,15 @@ static int smp_thermal_interrupt_init(vo if (num_k8_northbridges == 0) goto out; /* - * If any of the northbridges has PCI ID 0x1103, then its thermal - * hardware suffers from an erratum which prevents this code from - * working, so abort. (This implies that it only works on Family - * 0x10.) + * If any of the northbridges has any of the device IDs in the following + * loop, then the hardware suffers from an erratum which prevents + * this code from working, so abort. */ for (nb_num = 0; nb_num < num_k8_northbridges; nb_num++) { - if ((k8_northbridges[nb_num]->device) == 0x1103) + __u32 device_id; + + device_id = k8_northbridges[nb_num]->device; + if ((device_id == 0x1103) || (device_id == 0x1203)) goto out; } /* --- linux-2.6.24-rc5.orig/arch/x86/Kconfig 2007-12-11 14:30:52.708983000 -0800 +++ linux-2.6.24-rc5/arch/x86/Kconfig 2008-02-12 11:01:24.860123000 -0800 @@ -564,6 +564,7 @@ config X86_MCE_INTEL config X86_MCE_AMD bool "AMD MCE features" depends on X86_64 && X86_MCE && X86_LOCAL_APIC + select K8_NB default y help Additional support for AMD specific MCE features such as @@ -1559,8 +1560,7 @@ endif # X86_32 config K8_NB def_bool y - depends on AGP_AMD64 || (X86_64 && (GART_IOMMU || (PCI && NUMA))) - + depends on AGP_AMD64 || (X86_64 && (GART_IOMMU || (PCI && NUMA))) || X86_MCE_AMD source "drivers/pcmcia/Kconfig" source "drivers/pci/hotplug/Kconfig"