[PATCH RESEND v2] acpi-cpufreq: make the freq_table store the same freq value

2014-12-26 Thread Wang Weidong
freqs to 2000, the data->acpi_data->state is 2 (data->freq_table[1].driver_data), So when call get_cur_freq_on_cpu, we get the freqs is data->freq_table[2].frequency,the value is 1600. we can make the freq_table store the same value to fix this case problem. Signed-off-by: Wang Weidong

Re: [PATCH 0/2] fix some problems for cpufreq

2014-12-02 Thread Wang Weidong
On 2014/12/2 12:38, Viresh Kumar wrote: > On 30 November 2014 at 13:53, Wang Weidong wrote: >> No, there are not utilities and scripts relying on it. > > How can you be so sure about it ? There might be scripts/utils you > aren't aware of > and are depending on this..

[PATCH v2] acpi-cpufreq: make the freq_table store the same freq value

2014-11-30 Thread Wang Weidong
freqs to 2000, the data->acpi_data->state is 2 (data->freq_table[1].driver_data), So when call get_cur_freq_on_cpu, we get the freqs is data->freq_table[2].frequency,the value is 1600. we can make the freq_table store the same value to fix this case problem. Signed-off-by: Wang Weidong

Re: [PATCH 0/2] fix some problems for cpufreq

2014-11-30 Thread Wang Weidong
On 2014/11/30 6:30, Rafael J. Wysocki wrote: > On Saturday, November 29, 2014 09:40:02 AM Wang Weidong wrote: >> On 2014/11/29 9:26, Rafael J. Wysocki wrote: >>> On Friday, November 28, 2014 10:43:37 AM Wang Weidong wrote: >>>> Hi Rafael and Viresh >>>&g

Re: [PATCH 0/2] fix some problems for cpufreq

2014-11-28 Thread Wang Weidong
On 2014/11/29 9:26, Rafael J. Wysocki wrote: > On Friday, November 28, 2014 10:43:37 AM Wang Weidong wrote: >> Hi Rafael and Viresh >> >> Sorry to trouble you again. As for: >> "acpi-cpufreq: get the cur_freq from acpi_processor_performance states" >

[PATCH 2/2] cpufreq: show the real avail freqs with the freq_table

2014-11-27 Thread Wang Weidong
Some time, the policy's max_freq and min_freq will change, so the avail freqs is not from the cpuinfo_min to cpuinfo_max. Just add the check for the freq_table. Signed-off-by: Wang Weidong --- drivers/cpufreq/freq_table.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --

[PATCH 0/2] fix some problems for cpufreq

2014-11-27 Thread Wang Weidong
s The progress will change the policy's min_freq and max_freq while it won't change the set of states(freq_tables). patch #2: cpufreq: show the real avail freqs with the freq_table when the min_freq and max_freq change, we should sync the availble freqs. Regards, Wang Wang Weidong (2):

[PATCH 1/2] acpi-cpufreq: make the freq_table store the same freq value

2014-11-27 Thread Wang Weidong
the freqs_table's index should be 2. So when call the get_cur_freq_on_cpu, the freqs value we get is 2400. So, make the freq_table store the same value as well. Signed-off-by: Wang Weidong --- drivers/cpufreq/acpi-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Problem: A divide error 0000 occured when rcv_mss is 0

2014-10-22 Thread Wang Weidong
Hi everyone, my kernel is based on linux-stable-3.4.87. And when I do some testing, I got this Bug: <4>[18042.394823] divide error: [#1] <4>[18042.395178] SMP <4>[18042.734309] CPU 2 ... <4>[18042.734309] RIP: 0010:[] [] tcp_send_dupack+0x54/0xe0 <4>[18042.734309] RSP: 0018:8801c18

Re: [RESEND PATCH] acpi-cpufreq: get the cur_freq from acpi_processor_performance states

2014-09-30 Thread Wang Weidong
On 2014/9/28 4:01, Rafael J. Wysocki wrote: > On Saturday, September 27, 2014 01:32:59 PM Wang Weidong wrote: >> On 2014/9/27 7:21, Rafael J. Wysocki wrote: >>> On Thursday, August 21, 2014 01:55:15 PM Wang Weidong wrote: >>>> As the initialized freq_tables may

Re: [RESEND PATCH] acpi-cpufreq: get the cur_freq from acpi_processor_performance states

2014-09-26 Thread Wang Weidong
On 2014/9/27 7:21, Rafael J. Wysocki wrote: > On Thursday, August 21, 2014 01:55:15 PM Wang Weidong wrote: >> As the initialized freq_tables maybe different from the p-states >> values, so the array index is different as well. >> >> p-states value: [2400 2400 2000

[RESEND PATCH] acpi-cpufreq: get the cur_freq from acpi_processor_performance states

2014-08-20 Thread Wang Weidong
x should be 2. So when call the get_cur_freq_on_cpu, the freqs value we get is 2400. So, fix the problem with the correct tables. Signed-off-by: Wang Weidong --- drivers/cpufreq/acpi-cpufreq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/acpi-cpufreq.c b

[PATCH] cpufreq: get the cur_freq from acpi_processor_performance

2014-08-01 Thread Wang Weidong
x should be 2. So when call the get_cur_freq_on_cpu, the freqs value we get is 2400. So, fix the problem with the correct tables. Signed-off-by: Wang Weidong --- drivers/cpufreq/acpi-cpufreq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/acpi-cpufreq.c b

Re: [PATCH] ARM: Thumb-2: Fix out-of-range offset for Thumb-2 in, proc-macros.S

2014-06-16 Thread Wang Weidong
On 2014/6/16 21:49, Will Deacon wrote: > On Tue, Jun 10, 2014 at 08:00:01AM +0100, Wang Weidong wrote: >> The STR Instruction Encoding T4 points that the is in the >> range 0-255.So split the instruction into two for Thumb-2. Just >> like commit 874d5d3ccc("ARM: 6623/1:

[PATCH] ARM: Thumb-2: Fix out-of-range offset for Thumb-2 in, proc-macros.S

2014-06-10 Thread Wang Weidong
The STR Instruction Encoding T4 points that the is in the range 0-255.So split the instruction into two for Thumb-2. Just like commit 874d5d3ccc("ARM: 6623/1: Thumb-2: Fix out-of-range offset for Thumb-2 in proc-v7.S"). Signed-off-by: Wang Weidong --- arch/arm/mm/proc-macros.S | 4 ++