From: "Jan Beulich" Subject: [PATCH 2/3] mwait-idle: update support for Silvermont Core in Baytrail SOC Date: Mon, 18 May 2015 13:55:04 +0100 Message-ID: <5559FD48020000780007B1F9@mail.emea.novell.com> References: <5559FBFF020000780007B1DA@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartBD89BC38.1__=" Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YuKZc-00052s-M7 for xen-devel@lists.xenproject.org; Mon, 18 May 2015 12:55:12 +0000 In-Reply-To: <5559FBFF020000780007B1DA@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Andrew Cooper , Keir Fraser List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartBD89BC38.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On some Silvermont-Core/Baytrail-SOC systems, C1E latency is higher than original specifications. Although C1E is still enumerated in CPUID.MWAIT.EDX, we delete the state from intel_idle to avoid latency impact. Under some conditions, the latency of the C6N-BYT and C6S-BYT states may exceed the specified values of 40 and 140 usec, respectively. Increase those values to 300 and 500 usec; to assure that the hardware does not violate constraints that may be set by the Linux PM_QOS sub-system. Also increase the C7-BYT target residency to 4.0 ms from 1.5 ms. Signed-off-by: Len Brown [Linux commit d7ef76717322c8e2df7d4360b33faa9466cb1a0d] Signed-off-by: Jan Beulich --- a/xen/arch/x86/cpu/mwait-idle.c +++ b/xen/arch/x86/cpu/mwait-idle.c @@ -196,28 +196,22 @@ static const struct cpuidle_state byt_cs .target_residency =3D 1, }, { - .name =3D "C1E-BYT", - .flags =3D MWAIT2flg(0x01), - .exit_latency =3D 15, - .target_residency =3D 30, - }, - { .name =3D "C6N-BYT", .flags =3D MWAIT2flg(0x58) | CPUIDLE_FLAG_TLB_FLUSHED, - .exit_latency =3D 40, + .exit_latency =3D 300, .target_residency =3D 275, }, { .name =3D "C6S-BYT", .flags =3D MWAIT2flg(0x52) | CPUIDLE_FLAG_TLB_FLUSHED, - .exit_latency =3D 140, + .exit_latency =3D 500, .target_residency =3D 560, }, { .name =3D "C7-BYT", .flags =3D MWAIT2flg(0x60) | CPUIDLE_FLAG_TLB_FLUSHED, .exit_latency =3D 1200, - .target_residency =3D 1500, + .target_residency =3D 4000, }, { .name =3D "C7S-BYT", --=__PartBD89BC38.1__= Content-Type: text/plain; name="mwait-idle-Baytrail-no-C1E.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="mwait-idle-Baytrail-no-C1E.patch" mwait-idle: update support for Silvermont Core in Baytrail SOC=0A=0AOn = some Silvermont-Core/Baytrail-SOC systems,=0AC1E latency is higher than = original specifications.=0AAlthough C1E is still enumerated in CPUID.MWAIT.= EDX,=0Awe delete the state from intel_idle to avoid latency impact.=0A=0AUn= der some conditions, the latency of the C6N-BYT and C6S-BYT states=0Amay = exceed the specified values of 40 and 140 usec, respectively.=0AIncrease = those values to 300 and 500 usec; to assure=0Athat the hardware does not = violate constraints that may be set=0Aby the Linux PM_QOS sub-system.=0A=0A= Also increase the C7-BYT target residency to 4.0 ms from 1.5 ms.=0A=0ASigne= d-off-by: Len Brown =0A[Linux commit d7ef76717322c8e2d= f7d4360b33faa9466cb1a0d]=0ASigned-off-by: Jan Beulich = =0A=0A--- a/xen/arch/x86/cpu/mwait-idle.c=0A+++ b/xen/arch/x86/cpu/mwait-id= le.c=0A@@ -196,28 +196,22 @@ static const struct cpuidle_state byt_cs=0A = .target_residency =3D 1,=0A },=0A {=0A- .name =3D = "C1E-BYT",=0A- .flags =3D MWAIT2flg(0x01),=0A- .exit_laten= cy =3D 15,=0A- .target_residency =3D 30,=0A- },=0A- {=0A = .name =3D "C6N-BYT",=0A .flags =3D MWAIT2flg(0x58) | = CPUIDLE_FLAG_TLB_FLUSHED,=0A- .exit_latency =3D 40,=0A+ = .exit_latency =3D 300,=0A .target_residency =3D 275,=0A = },=0A {=0A .name =3D "C6S-BYT",=0A .flags =3D = MWAIT2flg(0x52) | CPUIDLE_FLAG_TLB_FLUSHED,=0A- .exit_latency =3D = 140,=0A+ .exit_latency =3D 500,=0A .target_res= idency =3D 560,=0A },=0A {=0A .name =3D "C7-BYT",=0A = .flags =3D MWAIT2flg(0x60) | CPUIDLE_FLAG_TLB_FLUSHED,=0A = .exit_latency =3D 1200,=0A- .target_residency =3D 1500,=0A+ = .target_residency =3D 4000,=0A },=0A {=0A .name =3D = "C7S-BYT",=0A --=__PartBD89BC38.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__PartBD89BC38.1__=--