* [PATCH] acpi: Use the ARB_DISABLE for the CPU which model id is less than 0x0f.
@ 2009-12-06 12:20 yakui.zhao
2009-12-07 21:01 ` Pallipadi, Venkatesh
2009-12-10 13:41 ` Stefan Bader
0 siblings, 2 replies; 3+ messages in thread
From: yakui.zhao @ 2009-12-06 12:20 UTC (permalink / raw)
To: lenb; +Cc: linux-acpi, Zhao Yakui, Pallipadi, Venkatesh
From: Zhao Yakui <yakui.zhao@intel.com>
ARB_DISABLE is a NOP on all of the recent Intel platforms. For such platforms,
reduce contention on c3_lock by skipping the fake ARB_DISABLE.
The cpu model id on one laptop is 14. If we disable ARB_DISABLE on this box,
the box can't be booted correctly. But if we still enable ARB_DISABLE on this
box, the box can be booted correctly.
So we still use the ARB_DISABLE for the cpu which mode id is less than 0x0f.
http://bugzilla.kernel.org/show_bug.cgi?id=14700
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
cc: Pallipadi, Venkatesh <venkatesh.pallipadi@intel.com>
---
arch/x86/kernel/acpi/cstate.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/acpi/cstate.c b/arch/x86/kernel/acpi/cstate.c
index 59cdfa4..2e837f5 100644
--- a/arch/x86/kernel/acpi/cstate.c
+++ b/arch/x86/kernel/acpi/cstate.c
@@ -48,7 +48,7 @@ void acpi_processor_power_init_bm_check(struct acpi_processor_flags *flags,
* P4, Core and beyond CPUs
*/
if (c->x86_vendor == X86_VENDOR_INTEL &&
- (c->x86 > 0xf || (c->x86 == 6 && c->x86_model >= 14)))
+ (c->x86 > 0xf || (c->x86 == 6 && c->x86_model >= 0x0f)))
flags->bm_control = 0;
}
EXPORT_SYMBOL(acpi_processor_power_init_bm_check);
--
1.5.4.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] acpi: Use the ARB_DISABLE for the CPU which model id is less than 0x0f.
2009-12-06 12:20 [PATCH] acpi: Use the ARB_DISABLE for the CPU which model id is less than 0x0f yakui.zhao
@ 2009-12-07 21:01 ` Pallipadi, Venkatesh
2009-12-10 13:41 ` Stefan Bader
1 sibling, 0 replies; 3+ messages in thread
From: Pallipadi, Venkatesh @ 2009-12-07 21:01 UTC (permalink / raw)
To: Zhao, Yakui; +Cc: lenb@kernel.org, linux-acpi@vger.kernel.org
Acked-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
On Sun, 2009-12-06 at 04:20 -0800, Zhao, Yakui wrote:
> From: Zhao Yakui <yakui.zhao@intel.com>
>
> ARB_DISABLE is a NOP on all of the recent Intel platforms. For such platforms,
> reduce contention on c3_lock by skipping the fake ARB_DISABLE.
>
> The cpu model id on one laptop is 14. If we disable ARB_DISABLE on this box,
> the box can't be booted correctly. But if we still enable ARB_DISABLE on this
> box, the box can be booted correctly.
>
> So we still use the ARB_DISABLE for the cpu which mode id is less than 0x0f.
>
> http://bugzilla.kernel.org/show_bug.cgi?id=14700
>
> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
> cc: Pallipadi, Venkatesh <venkatesh.pallipadi@intel.com>
> ---
> arch/x86/kernel/acpi/cstate.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/kernel/acpi/cstate.c b/arch/x86/kernel/acpi/cstate.c
> index 59cdfa4..2e837f5 100644
> --- a/arch/x86/kernel/acpi/cstate.c
> +++ b/arch/x86/kernel/acpi/cstate.c
> @@ -48,7 +48,7 @@ void acpi_processor_power_init_bm_check(struct acpi_processor_flags *flags,
> * P4, Core and beyond CPUs
> */
> if (c->x86_vendor == X86_VENDOR_INTEL &&
> - (c->x86 > 0xf || (c->x86 == 6 && c->x86_model >= 14)))
> + (c->x86 > 0xf || (c->x86 == 6 && c->x86_model >= 0x0f)))
> flags->bm_control = 0;
> }
> EXPORT_SYMBOL(acpi_processor_power_init_bm_check);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] acpi: Use the ARB_DISABLE for the CPU which model id is less than 0x0f.
2009-12-06 12:20 [PATCH] acpi: Use the ARB_DISABLE for the CPU which model id is less than 0x0f yakui.zhao
2009-12-07 21:01 ` Pallipadi, Venkatesh
@ 2009-12-10 13:41 ` Stefan Bader
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Bader @ 2009-12-10 13:41 UTC (permalink / raw)
To: yakui.zhao; +Cc: lenb, linux-acpi, Pallipadi, Venkatesh
I think, this should go to stable, too.
-Stefan
yakui.zhao@intel.com wrote:
> From: Zhao Yakui <yakui.zhao@intel.com>
>
> ARB_DISABLE is a NOP on all of the recent Intel platforms. For such platforms,
> reduce contention on c3_lock by skipping the fake ARB_DISABLE.
>
> The cpu model id on one laptop is 14. If we disable ARB_DISABLE on this box,
> the box can't be booted correctly. But if we still enable ARB_DISABLE on this
> box, the box can be booted correctly.
>
> So we still use the ARB_DISABLE for the cpu which mode id is less than 0x0f.
>
> http://bugzilla.kernel.org/show_bug.cgi?id=14700
CC: stable@kernel.org
> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
> cc: Pallipadi, Venkatesh <venkatesh.pallipadi@intel.com>
> ---
> arch/x86/kernel/acpi/cstate.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/kernel/acpi/cstate.c b/arch/x86/kernel/acpi/cstate.c
> index 59cdfa4..2e837f5 100644
> --- a/arch/x86/kernel/acpi/cstate.c
> +++ b/arch/x86/kernel/acpi/cstate.c
> @@ -48,7 +48,7 @@ void acpi_processor_power_init_bm_check(struct acpi_processor_flags *flags,
> * P4, Core and beyond CPUs
> */
> if (c->x86_vendor == X86_VENDOR_INTEL &&
> - (c->x86 > 0xf || (c->x86 == 6 && c->x86_model >= 14)))
> + (c->x86 > 0xf || (c->x86 == 6 && c->x86_model >= 0x0f)))
> flags->bm_control = 0;
> }
> EXPORT_SYMBOL(acpi_processor_power_init_bm_check);
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-10 13:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-06 12:20 [PATCH] acpi: Use the ARB_DISABLE for the CPU which model id is less than 0x0f yakui.zhao
2009-12-07 21:01 ` Pallipadi, Venkatesh
2009-12-10 13:41 ` Stefan Bader
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox