MIPS: Ingenic: Fix bugs when detecting X1000's parameters v4

2019-08-02 Thread Zhou Yanjie
v1->v2: Use "set_c0_config7(BIT(4))" to simplify code and add comment. v2->v3: Split patch and use "MIPS_CONF7_BTB_LOOP_EN" to instead "BIT(4)". v3->v4: Change the commit title.

MIPS: Ingenic: Fix bugs when detecting X1000's parameters v3

2019-08-01 Thread Zhou Yanjie
v1->v2: Use "set_c0_config7(BIT(4))" to simplify code and add comment. v2->v3: Split patch and use "MIPS_CONF7_BTB_LOOP_EN" to instead "BIT(4)".

Re: [PATCH v2] MIPS: Ingenic: Fix bugs when detecting X1000's parameters.

2019-08-01 Thread Zhou Yanjie
Hi Paul, On 2019年08月01日 04:34, Paul Burton wrote: Hi Zhou, On Wed, Jul 31, 2019 at 12:39:03PM +0800, Zhou Yanjie wrote: 1.fix bugs when detecting L2 cache sets value. 2.fix bugs when detecting L2 cache ways value. 3.fix bugs when calculate bogoMips and loops_per_jiffy. This should be split in

Re: [PATCH v2] MIPS: Ingenic: Fix bugs when detecting X1000's parameters.

2019-07-31 Thread Paul Burton
Hi Zhou, On Wed, Jul 31, 2019 at 12:39:03PM +0800, Zhou Yanjie wrote: > 1.fix bugs when detecting L2 cache sets value. > 2.fix bugs when detecting L2 cache ways value. > 3.fix bugs when calculate bogoMips and loops_per_jiffy. This should be split into 2 patches - one that fixes the L2 cache detec

[PATCH v2] MIPS: Ingenic: Fix bugs when detecting X1000's parameters.

2019-07-30 Thread Zhou Yanjie
1.fix bugs when detecting L2 cache sets value. 2.fix bugs when detecting L2 cache ways value. 3.fix bugs when calculate bogoMips and loops_per_jiffy. Signed-off-by: Zhou Yanjie --- arch/mips/include/asm/mipsregs.h | 1 + arch/mips/kernel/cpu-probe.c | 7 +++ arch/mips/mm/sc-mips.c

MIPS: Ingenic: Fix bugs when detecting X1000's parameters v2.

2019-07-30 Thread Zhou Yanjie
v1->v2: Use "set_c0_config7(BIT(4))" to simplify code and add comment.

Re: [PATCH] MIPS: Ingenic: Fix bugs when detecting X1000's parameters.

2019-07-30 Thread Zhou Yanjie
Hi Paul, On 2019年07月31日 02:02, Paul Cercueil wrote: Hi Zhou, Le mar. 30 juil. 2019 à 10:55, Zhou Yanjie a écrit : 1.fix bugs when detecting L2 cache sets value. 2.fix bugs when detecting L2 cache ways value. 3.fix bugs when calculate bogoMips and loops_per_jiffy. Signed-off-by: Zhou Yanjie

Re: [PATCH] MIPS: Ingenic: Fix bugs when detecting X1000's parameters.

2019-07-30 Thread Paul Cercueil
Hi Zhou, Le mar. 30 juil. 2019 à 10:55, Zhou Yanjie a écrit : 1.fix bugs when detecting L2 cache sets value. 2.fix bugs when detecting L2 cache ways value. 3.fix bugs when calculate bogoMips and loops_per_jiffy. Signed-off-by: Zhou Yanjie --- arch/mips/kernel/cpu-probe.c | 7 ++- arc

[PATCH] MIPS: Ingenic: Fix bugs when detecting X1000's parameters.

2019-07-30 Thread Zhou Yanjie
1.fix bugs when detecting L2 cache sets value. 2.fix bugs when detecting L2 cache ways value. 3.fix bugs when calculate bogoMips and loops_per_jiffy. Signed-off-by: Zhou Yanjie --- arch/mips/kernel/cpu-probe.c | 7 ++- arch/mips/mm/sc-mips.c | 18 +++--- 2 files changed, 2

MIPS: Ingenic: Fix bugs when detecting X1000's parameters.

2019-07-30 Thread Zhou Yanjie
1.fix bugs when detecting L2 cache sets value. 2.fix bugs when detecting L2 cache ways value. 3.fix bugs when calculate bogoMips and loops_per_jiffy.