[tip: ras/core] x86/mce: Add _ASM_EXTABLE_CPY for copy user access

2020-10-07 Thread tip-bot2 for Youquan Song
The following commit has been merged into the ras/core branch of tip: Commit-ID: 278b917f8cb9b02923c15249f9d1a5769d2c1976 Gitweb: https://git.kernel.org/tip/278b917f8cb9b02923c15249f9d1a5769d2c1976 Author:Youquan Song AuthorDate:Tue, 06 Oct 2020 14:09:07 -07:00 Committer

[tip: ras/core] x86/mce: Pass pointer to saved pt_regs to severity calculation routines

2020-10-07 Thread tip-bot2 for Youquan Song
The following commit has been merged into the ras/core branch of tip: Commit-ID: 41ce0564bfe2e129d56730418d8c0a9f9f2d31b5 Gitweb: https://git.kernel.org/tip/41ce0564bfe2e129d56730418d8c0a9f9f2d31b5 Author:Youquan Song AuthorDate:Tue, 06 Oct 2020 14:09:05 -07:00 Committer

[PATCH 14/24] x86/speculation: Move firmware_restrict_branch_speculation_*() from C to CPP

2018-04-17 Thread Youquan Song
: pbonz...@redhat.com Cc: rkrc...@redhat.com Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar Signed-off-by: Youquan Song [v4.4 backport] --- arch/x86/include/asm/nospec-branch.h | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/arch/x86/include

[PATCH 14/24] x86/speculation: Move firmware_restrict_branch_speculation_*() from C to CPP

2018-04-16 Thread Youquan Song
: pbonz...@redhat.com Cc: rkrc...@redhat.com Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar Signed-off-by: Youquan Song [v4.4 backport] --- arch/x86/include/asm/nospec-branch.h | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/arch/x86/include

[PATCH 14/23] x86/speculation: Move firmware_restrict_branch_speculation_*() from C to CPP

2018-04-16 Thread Youquan Song
: pbonz...@redhat.com Cc: rkrc...@redhat.com Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman [Youquan Song: port to 4.4] Signed-off-by: Youquan Song --- arch/x86/include/asm/nospec-branch.h | 26 ++ 1 file changed, 14 insertions

[PATCH 1/3] dmar: Fix domain id not update to newly create

2013-12-12 Thread Youquan Song
tlb, and free/release wrong domain. Tested-by: Zhiyuan Zhou Signed-off-by: Youquan Song --- drivers/iommu/intel-iommu.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 43b9bfe..9cd522f 100644 --- a/driv

[PATCH 2/3] dmar: Move the confuse comments to proper place

2013-12-12 Thread Youquan Song
the "found=1" should be "there are other device owned by the domain", the comments is put at wrong place and make the code reviewing confuse, so move it to the correct place. Signed-off-by: Youquan Song --- drivers/iommu/intel-iommu.c |8 1 files changed

[PATCH 3/3] dmar: reduce loop to find multi-devices owned by IOMMU

2013-12-12 Thread Youquan Song
device, so save the loop time and make the code more clear. Signed-off-by: Youquan Song --- drivers/iommu/intel-iommu.c | 15 ++- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index aa821fc..9f3bf3f 100644

Re: [PATCH 1/2] dma: Add interface to calculate data transferred

2013-10-14 Thread Youquan Song
On Sun, Oct 13, 2013 at 08:56:33PM +0530, Vinod Koul wrote: > On Fri, Oct 11, 2013 at 06:33:43AM -0700, Greg KH wrote: > > On Fri, Oct 11, 2013 at 05:42:17PM -0400, Youquan Song wrote: > > > Currently, the DMA channel calculates its data transferred only at network > > >

[PATCH 2/2] dma: calculate the data tranferred by 8250

2013-10-11 Thread Youquan Song
When using UART transfers data by DMA mode, but it always shows 0 at /sys/class/dma/dma0chan*/bytes_transferred. Call the new function to calculate how many the data has been transferred after doing it by DMA mode. Signed-off-by: Youquan Song --- drivers/tty/serial/8250/8250_dma.c |2

DMA: Calculate how many data transferred by DMA

2013-10-11 Thread Youquan Song
Currently, the DMA channel calculates its data transferred only at network device driver. When other devices like UART or SPI etc, transfers data by DMA mode, but it always shows 0 at /sys/class/dma/dma0chan*/bytes_transferred. It will possibly mislead user that the DMA engine does not work. This

[PATCH 1/2] dma: Add interface to calculate data transferred

2013-10-11 Thread Youquan Song
has been transferred after doing it by DMA mode. It can be used by other modules and also simplify current duplicated code. Signed-off-by: Youquan Song --- drivers/dma/dmaengine.c | 35 +++ include/linux/dmaengine.h |3 +++ 2 files changed, 22 insertions

Re: [PATCH] x86, apic: Enable x2APIC physical when cpu < 256 native

2013-08-17 Thread Youquan Song
> Firstly, please use the customary (multi-line) comment > style: > > /* >* Comment . >* .. goes here. >*/ > > specified in Documentation/CodingStyle. > > Secondly, please send a patch against a vanilla (e.g. > v3.11-rc5) kernel, as I've already zapped your previous > pa

Re: [PATCH] x86, apic: Enable x2APIC physical when cpu < 256 native

2013-08-16 Thread Youquan Song
in the local APIC units. This reverts commit 3d1acb49d22fbbae96524040e9e2d4cbbb3adbef, do not use x2apic_pysical mode if interrupt remapping is not enabled even at CPU number fewer than 256. Signed-off-by: Youquan Song --- arch/x86/kernel/apic/apic.c |7 +-- 1 files changed, 5 insertions(

Re: [PATCH] x86, apic: Enable x2APIC physical when cpu < 256 native

2013-08-13 Thread Youquan Song
> In order to make sure the patch without involving unexpected issues beyond > I can understand, I will confirm with our expert about it. > > so please pend the patch going to mainline. If the patch can move on, I > think I will also provide other patch changing, like direct EOI. Hi Yinghai and I

Re: RFC: revert request for cpuidle patches e11538d1 and 69a37bea

2013-07-29 Thread Youquan Song
Hi Jeremy, I try reproduce your result and then fix the issue, but I do not reproduce it yet. I run at netperf-2.6.0 at one machine as server: netserver, other machine: netperf -t TCP_RR -H $SERVER_IP -l 60. The target machine is used in both client and server. I do not reproduce the performance

Re: [PATCH] x86, apic: Enable x2APIC physical when cpu < 256 native

2013-07-28 Thread Youquan Song
> Yes. It would be great, if Youquan can point out where is the intel doc > about the change. > > Also if the patch can move on, hypervisor_x2apic_available() related > declaration and define > could be dropped. Hi Yinghai, Sorry I do not know the document change but I also do not find the word

Re: [PATCH] x86, apic: Enable x2APIC physical when cpu < 256 native

2013-07-28 Thread Youquan Song
> > Thanks Ingo! > > The machines will be affected: CPU support x2APIC and CPU number < 256, > > chipset does not support VT-d2 or VT-d is disabled in BIOS. > > I mean, can you guess what rough percentage of new systems > shipping (or significant number of older systems already > shipped) will

[tip:x86/apic] x86/apic: Enable x2APIC physical mode on native hardware too, when there are fewer than 256 CPUs

2013-07-23 Thread tip-bot for Youquan Song
Commit-ID: 3d1acb49d22fbbae96524040e9e2d4cbbb3adbef Gitweb: http://git.kernel.org/tip/3d1acb49d22fbbae96524040e9e2d4cbbb3adbef Author: Youquan Song AuthorDate: Thu, 11 Jul 2013 21:22:39 -0400 Committer: Ingo Molnar CommitDate: Tue, 23 Jul 2013 11:15:42 +0200 x86/apic: Enable x2APIC

Re: [PATCH] x86, apic: Enable x2APIC physical when cpu < 256 native

2013-07-23 Thread Youquan Song
On Tue, Jul 23, 2013 at 11:17:29AM +0200, Ingo Molnar wrote: > > * Youquan Song wrote: > > > x2APIC extends APICID from 8 bits to 32 bits, but the device interrupt > > routed from IOAPIC or delivered in MSI mode will keep 8 bits destination > > APICID. In order

[PATCH] x86, apic: Enable x2APIC physical when cpu < 256 native

2013-07-11 Thread Youquan Song
APIC mmio - x2APIC only ICR write to deliver interrupt without polling ICR deliver status bit and xAPIC need poll to read ICR deliver status bit. - x2APIC 64 bits ICR access instead of xAPIC two 32 bits access. Signed-off-by: Youquan Song --- arch/x86/kernel/apic/apic.c |7 ++- 1 file

[PATCH] ata: Fix DVD not dectected at some platform with Wellsburg PCH

2013-07-11 Thread Youquan Song
deliver a similar patch to fix it by disables 32bit PIO in IDE mode. Signed-off-by: Youquan Song Cc: sta...@vger.kernel.org --- drivers/ata/ata_piix.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index 9a8a674..424b

[PATCH] ata: Fix DVD not dectected at some platform with Wellsburg PCH

2013-07-02 Thread Youquan Song
deliver a similar patch to fix it by disables 32bit PIO in IDE mode. Signed-off-by: Youquan Song --- drivers/ata/ata_piix.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index 9a8a674..424bcbe 100644 --- a/drivers/ata/

[PATCH] ata: Fix DVD not dectected at some platform with Wellsburg PCH

2013-06-27 Thread Youquan Song
deliver a similar patch to fix it by disables 32bit PIO in IDE mode. Signed-off-by: Youquan Song --- drivers/ata/ata_piix.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index 9a8a674..424bcbe 100644 --- a/drivers/ata/

Re: cpu hotplug: possible_cpus broken (again?) next-20130607

2013-06-12 Thread Youquan Song
soft limit or initial online nr. > > > > we already have nr_cpus= for hard limit. > > > > So need to drop > > commit 3e275a5ba367ab74b3a4e49114307baed989fcac > > Author: Youquan Song > > Date: Fri Jun 7 10:07:08 2013 +1000 > > > > driv

Re: cpu hotplug: possible_cpus broken (again?) next-20130607

2013-06-11 Thread Youquan Song
> On 06/12/2013 05:03 AM, Youquan Song wrote: > > +#ifdef CONFIG_SMP > > + /* return when cpu number greater than maximum number of > > CPUs */ > > + if (setup_max_cpus <= num_online_cpus() + 1) { > > +

Re: cpu hotplug: possible_cpus broken (again?) next-20130607

2013-06-11 Thread Youquan Song
t fix > > in > > linux-next. > > I believe the problem was introduced by the following change. From the > description, though, this is exactly what this patch was trying to > change... Adding Youguan to the list. > > commit 3e275a5ba367ab74b3a4e49114307baed989fcac

[PATCH] core: Fix maxcpus boot option broken

2013-05-29 Thread Youquan Song
sys/devices/system/cpu/online Signed-off-by: Youquan Song --- drivers/base/cpu.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 3d48fc8..c7d603a 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -272,6 +272,10 @@

Re: [PATCH v3] ata: Fix DVD not dectected at some Haswell platforms

2013-03-24 Thread Youquan Song
> > Can you look at the patch which required by some Haswell platforms? > Hi Jeff, What's your opinion about the patch? It block the installation on some new platforms. Thanks -Youquan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord

[PATCH] perf: Fix parameter type mismatch

2013-03-20 Thread Youquan Song
argument 2 has type ‘__u64’ make: *** [util/scripting-engines/trace-event-perl.o] Error 1 Signed-off-by: Youquan Song --- .../perf/util/scripting-engines/trace-event-perl.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/perf/util/scripting-engines/trace-event-perl.c

Re: [PATCH] x86,apic: Blacklist x2APIC on some platforms

2013-03-18 Thread Youquan Song
> > I found this patch after some googling and for the record, it makes my > W520 boot with VT-d enabled and the discrete NVidia card. > Is it still being considered? > Yes. I am still in pushing the patch to upstream. The patch is good and reviewed by Yinghai but it depends on Yinghai's patch

Re: [PATCH v3] ata: Fix DVD not dectected at some Haswell platforms

2013-03-13 Thread Youquan Song
Hi Maintainer, Can you look at the patch which required by some Haswell platforms? Thanks -Youquan On Wed, Mar 06, 2013 at 10:49:05AM -0500, Youquan Song wrote: > There is a quirk patch 5e5a4f5d5a08c9c504fe956391ac3dae2c66556d > "ata_piix: make DVD Drive recognisable on systems

[PATCH v3] ata: Fix DVD not dectected at some Haswell platforms

2013-03-05 Thread Youquan Song
e patch against 3.8-rc7 kernel. Tested-by: Lee, Chun-Yi Signed-off-by: Youquan Song Cc: sta...@vger.kernel.org --- drivers/ata/ata_piix.c | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index 174eca6..4aab5

Re: [PATCH v3] ata: Fix DVD not dectected at some Haswell platforms

2013-03-04 Thread Youquan Song
Hi Maintainer, Can you take the patch which is needed by some new platforms? Thanks -Youquan On Mon, Feb 18, 2013 at 11:00:55AM -0500, Youquan Song wrote: > There is a quirk patch 5e5a4f5d5a08c9c504fe956391ac3dae2c66556d > "ata_piix: make DVD Drive recognisable on systems

Re: [PATCH v2] ata: Fix DVD not dectected at some Haswell platforms

2013-02-17 Thread Youquan Song
> > As to my understanding Sergei did not suggest citing the whole commit message. > I also find the numerous references to Sandy Bridge confusing as this is a fix > for Lynx Point chipset. > > How about rephrasing the commit message in a way similar to the following one? > --8<- > We've

[PATCH v3] ata: Fix DVD not dectected at some Haswell platforms

2013-02-17 Thread Youquan Song
e patch against 3.8-rc7 kernel. Tested-by: Lee, Chun-Yi Signed-off-by: Youquan Song Cc: sta...@vger.kernel.org --- drivers/ata/ata_piix.c | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index 174eca6..4aab5

Re: [PATCH] ata: Fix DVD not dectected at some Haswell platforms

2013-01-31 Thread Youquan Song
>> +{ 0x8086, 0x8c08, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata_snb }, >> /* SATA Controller IDE (Lynx Point) */ >> { 0x8086, 0x8c09, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata }, > >Also, are you sure this one and the following Lynx Point controllers are > not affected?

Re: [PATCH] ata: Fix DVD not dectected at some Haswell platforms

2013-01-31 Thread Youquan Song
> On 30-01-2013 21:19, Youquan Song wrote: > >> There is a quirk patch 5e5a4f5d5a08c9c504fe956391ac3dae2c66556d > > Please also specify the summary of that patch in parens. > >> fix the 4 ports > >s/fix/fixing/ > >> IDE controller 32bit PIO mode. &g

[PATCH v2] ata: Fix DVD not dectected at some Haswell platforms

2013-01-31 Thread Youquan Song
by Sergei Shtylyov. Tested-by: Lee, Chun-Yi Signed-off-by: Youquan Song Cc: sta...@vger.kernel.org --- drivers/ata/ata_piix.c | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index ef773e1..1993e52 100644 --- a/d

[PATCH] ata: Fix DVD not dectected at some Haswell platforms

2013-01-29 Thread Youquan Song
: Youquan Song --- drivers/ata/ata_piix.c | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index ef773e1..1993e52 100644 --- a/drivers/ata/ata_piix.c +++ b/drivers/ata/ata_piix.c @@ -150,6 +150,7 @@ enum

[PATCH] ata: Fix DVD not dectected at some Haswell platforms

2013-01-29 Thread Youquan Song
: Youquan Song --- drivers/ata/ata_piix.c | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index ef773e1..1993e52 100644 --- a/drivers/ata/ata_piix.c +++ b/drivers/ata/ata_piix.c @@ -150,6 +150,7 @@ enum

[tip:perf/urgent] x86/perf: Add IvyBridge EP support

2013-01-24 Thread tip-bot for Youquan Song
Commit-ID: 923d8697e24847000490c187de1aeaca622611a3 Gitweb: http://git.kernel.org/tip/923d8697e24847000490c187de1aeaca622611a3 Author: Youquan Song AuthorDate: Tue, 18 Dec 2012 12:20:23 -0500 Committer: Ingo Molnar CommitDate: Thu, 24 Jan 2013 16:14:04 +0100 x86/perf: Add IvyBridge EP

Re: [PATCH] x86,apic: Blacklist x2APIC on some platforms

2013-01-04 Thread Youquan Song
On Tue, Dec 18, 2012 at 09:42:30AM -0800, Yinghai Lu wrote: > On Tue, Dec 18, 2012 at 9:33 AM, H. Peter Anvin wrote: > > On 12/18/2012 09:07 AM, Youquan Song wrote: > >> Blacklist x2apic when Nivida graphics enabled on Lenovo ThinkPad T420. > >> Also set blacklist x2ap

Re: [PATCH] x86,perf: Add IvyBridge EP support

2013-01-04 Thread Youquan Song
Would you like to take it? It is needed by Linux OSVs. Thanks -Youquan On Tue, Dec 18, 2012 at 12:20:23PM -0500, Youquan Song wrote: > Run in perf utility at Ivybridge EP server, encouter "not supported" event > > L1-dcache-loads > L1-dcache-load-mis

[PATCH] x86,idle: pr_debug information need separated

2012-12-17 Thread Youquan Song
When debug kernel, the the below information is found: intel_idle: unaware of model 0x1a MWAIT 4 please contact lenb@kernel.orgACPI: Device input0 -> No ACPI support so this patch separates it. Signed-off-by: Youquan Song --- drivers/idle/intel_idle.c |2 +- 1 files changed, 1 inserti

[PATCH] x86,perf: Add IvyBridge EP support

2012-12-17 Thread Youquan Song
processor. Reviewed-by: Andi Kleen Signed-off-by: Youquan Song --- arch/x86/kernel/cpu/perf_event_intel.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/cpu/perf_event_intel.c b/arch/x86/kernel/cpu/perf_event_intel.c index 324bb52..aea3503 100644 ---

[PATCH] x86,apic: Blacklist x2APIC on some platforms

2012-12-17 Thread Youquan Song
/bugs/922037 The patches is based on http://git.kernel.org/?p=linux/kernel/git/yinghai/ linux-yinghai.git;a=patch;h=de38757e964cfee20e6da1977572a2191d7f4aa0 Reviewed-by: Yinghai Lu Signed-off-by: Youquan Song --- arch/x86/include/asm/x86_init.h |1 + arch/x86/kernel/apic/apic.c | 51

[PATCH V2 1/4] x86,idle: Quickly notice prediction failure for repeat mode

2012-10-18 Thread Youquan Song
t mode is kept, so it will choose the C1 shallow C-state even though it has chance to sleep 1 second in deep C-state. While after patched the kernel, we find that deep C-state will keep >99.6%. Signed-off-by: Youquan Song Signed-off-by: Rik van Riel --- drivers/cpuidle/governors/

[PATCH V2 2/4] x86,idle: Quickly notice prediction failure in general case

2012-10-18 Thread Youquan Song
-evaluates deeper C-states possibility. Signed-off-by: Youquan Song Signed-off-by: Rik van Riel --- drivers/cpuidle/governors/menu.c | 34 +- 1 files changed, 33 insertions(+), 1 deletions(-) diff --git a/drivers/cpuidle/governors/menu.c b/drivers/cpuidle/governors

[PATCH V2 4/4] x86,idle: Get typical recent sleep interval

2012-10-18 Thread Youquan Song
such a series, while the new code will guess a typical sleep interval just shy of 200. The original patch come from Rik van Riel . Signed-off-by: Youquan Song Signed-off-by: Rik van Riel --- drivers/cpuidle/governors/menu.c | 69 + 1 files changed, 46

[PATCH V2 0/4]: x86,idle: Enhance menu governor C-state prediction

2012-10-18 Thread Youquan Song
V2: Add menu timer status enums depends on Rafael suggestion. The prediction for future is difficult and when the cpuidle governor prediction fails and govenor possibly choose the shallower C-state than it should. How to quickly notice and find the failure becomes important for power saving.

[PATCH V2 3/4] x86,idle: Set residency to 0 if target Cstate not enter

2012-10-18 Thread Youquan Song
, it is not reasonable. So, this patch fix it by set the target C-state residency to 0. Signed-off-by: Youquan Song Signed-off-by: Rik van Riel --- drivers/cpuidle/cpuidle.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle

[PATCH 2/5] x86,idle: Quickly notice prediction failure in general case

2012-10-16 Thread Youquan Song
-evaluates deeper C-states possibility. Signed-off-by: Youquan Song Signed-off-by: Rik van Riel --- drivers/cpuidle/governors/menu.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/drivers/cpuidle/governors/menu.c b/drivers/cpuidle/governors/menu.c index

[PATCH 5/5] x86,idle: Get typical recent sleep interval

2012-10-16 Thread Youquan Song
such a series, while the new code will guess a typical sleep interval just shy of 200. The original patch come from Rik van Riel . Signed-off-by: Youquan Song Signed-off-by: Rik van Riel --- drivers/cpuidle/governors/menu.c | 69 + 1 files changed, 46

[PATCH 4/5] x86,idle: Set residency to 0 if target Cstate not enter

2012-10-16 Thread Youquan Song
, it is not reasonable. So, this patch fix it by set the target C-state residency to 0. Signed-off-by: Youquan Song Signed-off-by: Rik van Riel --- drivers/cpuidle/cpuidle.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle

[PATCH 3/5] x86,idle: Reset correction factor

2012-10-16 Thread Youquan Song
In general case, the expected residency is much larger than deepest C-state target residency, but prediction logic still predicts the small predicted residency, so the prediction history is totally broken. In this situation, reset the correction factor is the only choice. Signed-off-by: Youquan

[PATCH 1/5] x86,idle: Quickly notice prediction failure for repeat mode

2012-10-16 Thread Youquan Song
t mode is kept, so it will choose the C1 shallow C-state even though it has chance to sleep 1 second in deep C-state. While after patched the kernel, we find that deep C-state will keep >99.6%. Signed-off-by: Youquan Song Signed-off-by: Rik van Riel --- drivers/cpuidle/governors/

[PATCH 0/5] x86,idle: Enhance menu governor C-state prediction

2012-10-16 Thread Youquan Song
The prediction for future is difficult and when the cpuidle governor prediction fails and govenor possibly choose the shallower C-state than it should. How to quickly notice and find the failure becomes important for power saving. cpuidle menu governor has a method to predict the repeat pa

Re: [PATCH V2 0/3] x86,idle: Enhance cpuidle prediction to handle its failure

2012-09-17 Thread Youquan Song
> > One case is turbostat utility (tools/power/x86/turbostat) at kernel 3.3 or > > early > > . turbostat utility will read 10 registers one by one at Sandybridge, so it > > will > > generate 10 IPIs to wake up idle CPUs. So cpuidle menu governor will > > predict it > > is repeat mode and there

Re: [PATCH V2 1/3] x86,idle: Quickly notice prediction failure for repeat mode

2012-09-17 Thread Youquan Song
> Could I convince you to try out my variation on > detect_repeating_intervals? :) > > http://people.redhat.com/riel/cstate/cstate-stddev-converge.patch > > I suspect that small change might help your code adapt to changed > conditions even faster. Yes. of course. your patch of cstate-stddev-conve

[PATCH V2 3/3] x86,idle: Set residency to 0 if target Cstate not really enter

2012-09-17 Thread Youquan Song
, it is not reasonable. So, this patch fix it by set the target C-state residency to 0. Signed-off-by: Youquan Song --- drivers/cpuidle/cpuidle.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index 2f0083a

[PATCH V2 2/3] x86,idle: Quickly notice prediction failure in general case

2012-09-17 Thread Youquan Song
initiatively. When the timer is triggered and menu governor will quickly notice prediction failure and re-evaluates deeper C-states possibility. Signed-off-by: Youquan Song --- drivers/cpuidle/governors/menu.c | 48 ++ 1 files changed, 33 insertions(+), 15

[PATCH V2 1/3] x86,idle: Quickly notice prediction failure for repeat mode

2012-09-17 Thread Youquan Song
t mode is kept, so it will choose the C1 shallow C-state even though it has chance to sleep 1 second in deep C-state. While after patched the kernel, we find that deep C-state will keep >99.6%. Signed-off-by: Youquan Song --- diff --git a/drivers/cpuidle/governors/menu.c b/driver

[PATCH V2 0/3] x86,idle: Enhance cpuidle prediction to handle its failure

2012-09-17 Thread Youquan Song
The prediction for future is difficult and when the cpuidle governor prediction fails and govenor possibly choose the shallower C-state than it should. How to quickly notice and find the failure becomes important for power saving. cpuidle menu governor has a method to predict the repeat pat

Re: KS/Plumbers: c-state governor BOF

2012-09-11 Thread Youquan Song
> Your patches could make a lot of sense when integrated with my > patches: > > http://people.redhat.com/riel/cstate/ > However, we should probably get the tracepoint upstream first, > so we can know for sure :) I can not access the patches at this directory. Can you send it to me? I will look at

Re: KS/Plumbers: c-state governor BOF

2012-09-11 Thread Youquan Song
> After talking about my RFC patches to the c-state governor with > Matthew and Arjan, it is clear that the whole concept of how > things are done could use some more discussion. > > Since a good number of us will be in San Diego next week, at > Kernel Summit / Plumbers / etc, I will organize a c-s