Re: [RFC PATCH-for-6.1 v2 6/6] hw/mips/loongson3_virt: Raise CPU clock to 2 GHz

2021-04-10 Thread Philippe Mathieu-Daudé
Hi Huacai, On 4/10/21 4:43 AM, Huacai Chen wrote: > Hi, Philippe, > > On Fri, Apr 9, 2021 at 5:36 PM Philippe Mathieu-Daudé wrote: >> >> Commit cd3a53b727d ("clock: Add clock_ns_to_ticks() function") >> removed the limitation of using clock with a frequency of 1 GHz >> or more. >> >> The previou

Re: [RFC PATCH-for-6.1 v2 6/6] hw/mips/loongson3_virt: Raise CPU clock to 2 GHz

2021-04-09 Thread Huacai Chen
Hi, Philippe, On Fri, Apr 9, 2021 at 5:36 PM Philippe Mathieu-Daudé wrote: > > Commit cd3a53b727d ("clock: Add clock_ns_to_ticks() function") > removed the limitation of using clock with a frequency of 1 GHz > or more. > > The previous commit converted the MIPS CP0 timer to use this > new clock_n

[RFC PATCH-for-6.1 v2 6/6] hw/mips/loongson3_virt: Raise CPU clock to 2 GHz

2021-04-09 Thread Philippe Mathieu-Daudé
Commit cd3a53b727d ("clock: Add clock_ns_to_ticks() function") removed the limitation of using clock with a frequency of 1 GHz or more. The previous commit converted the MIPS CP0 timer to use this new clock_ns_to_ticks() function. We can now use a clock of 2 GHz with the Loongson3 virt board. Sig