xen-devel
RE: [Xen-devel] [PATCH]ACPI: re-enable mwait for xen cpuidle
To: |
Jeremy Fitzhardinge <jeremy@xxxxxxxx> |
Subject: |
RE: [Xen-devel] [PATCH]ACPI: re-enable mwait for xen cpuidle |
From: |
"Wei, Gang" <gang.wei@xxxxxxxxx> |
Date: |
Sat, 3 Apr 2010 22:07:11 +0800 |
Accept-language: |
zh-CN, en-US |
Acceptlanguage: |
zh-CN, en-US |
Cc: |
Keir, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Fraser <keir.fraser@xxxxxxxxxxxxx>, "Yu, Ke" <ke.yu@xxxxxxxxx> |
Delivery-date: |
Sat, 03 Apr 2010 07:08:28 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<4BB6385D.4090404@xxxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<E6467867A6B05E4FA831B7DF29925F5C40E677DD@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4BB58353.5000008@xxxxxxxx> <E6467867A6B05E4FA831B7DF29925F5C40E67932@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <E6467867A6B05E4FA831B7DF29925F5C40E67A39@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <E6467867A6B05E4FA831B7DF29925F5C40E67A90@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4BB6385D.4090404@xxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
Thread-index: |
AcrSkv61YK5BjH5VQ0+6a1V5IbSfUAAoP4Eg |
Thread-topic: |
[Xen-devel] [PATCH]ACPI: re-enable mwait for xen cpuidle |
On Saturday, 2010-4-3 2:33 AM, Jeremy Fitzhardinge wrote:
> On 04/02/2010 09:27 AM, Wei, Gang wrote:
>> Updated the 2nd patch, only set MWAIT feature for dom0.
>>
>> Jimmy
>>
>> ACPI: re-enable mwait for xen cpuidle
>>
>> Xen hypervisor doesn't export mwait feature to dom0, but latest
>> Linux kernel start to check this feature while initializing _PDC
>> object. Modify xen_cpuid to re-enable mwait for xen cpuidle.
>>
>
> What if the CPU really doesn't have MWAIT?
If the CPU really doesn't have MWAIT, BIOS should know it and BIOS acpi code
should not give C state table with MWAIT entry method. Even the BIOS give the
wrong MWAIT C state info, xen cpuidle will refuse it and mark that C state as
invalid.
> But I agree with your original assessment that setting MWAIT just to
> get a couple of paths in ACPI parsing enabled is probably overkill,
> but I don't like the idea of putting xen-specific tests into the acpi
> code.
I don't like it too. But some time we have to accept a workaround temporarily
even we don't like it, until we find a graceful solution.
> Would it be possible to change the parser code to parse
> unconditionally and then ignore the MWAIT-specific stuff later on?
> (I haven't looked at the structure of the code, so I'm not sure if
> this suggestion even makes sense.)
That means to turn back to old change set. In 2.6.18, this check doesn't exist
in the parser code path. I have to say, these checks made Linux kernel itself
more robust. I am not sure whether we can find a better way which is also
compatible with Xen's need.
Jimmy
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH]ACPI: re-enable mwait for xen cpuidle, Wei, Gang
- RE: [Xen-devel] [PATCH]ACPI: re-enable mwait for xen cpuidle, Wei, Gang
- Re: [Xen-devel] [PATCH]ACPI: re-enable mwait for xen cpuidle, Jeremy Fitzhardinge
- RE: [Xen-devel] [PATCH]ACPI: re-enable mwait for xen cpuidle,
Wei, Gang <=
- Re: [Xen-devel] [PATCH]ACPI: re-enable mwait for xen cpuidle, Jeremy Fitzhardinge
- RE: [Xen-devel] [PATCH]ACPI: re-enable mwait for xen cpuidle, Wei, Gang
|
|
|