From mboxrd@z Thu Jan 1 00:00:00 1970 From: marek.vasut.n900@gmail.com (Marek Vasut) Date: Sun, 27 Mar 2011 17:34:49 +0200 Subject: [PATCH RFC] ARM: PXA27x: CPUFREQ: Don't use fastbus mode In-Reply-To: <201103271756.19262.anarsoul@gmail.com> References: <1301169103-23968-1-git-send-email-anarsoul@gmail.com> <201103271745.15216.anarsoul@gmail.com> <1301237445.10630.2.camel@konomi> <201103271756.19262.anarsoul@gmail.com> Message-ID: <1301240089.10831.2.camel@konomi> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org > On Sunday 27 March 2011 17:50:45 Marek Vasut wrote: > > > On Sunday 27 March 2011 13:09:20 Igor Grinberg wrote: > > > > On 03/27/11 11:48, Vasily Khoruzhick wrote: > > > > > On Sunday 27 March 2011 12:09:21 Igor Grinberg wrote: > > > > > > Possibly, but Z2 is not the only one using PXA27x. > > > > > > And of course you lose performance, unless you don't care, > > > > > > because if it does not work at all, you don't care about > > > > > > performance, but again it is wrong to force all PXA27x based > > > > > > boards to this. > > > > > > > > > > Ok, that's why I've sent this patch with RFC in subject - Z2 is > > > > > the only PXA270-based device I own :) > > > > > > > > > > > cm-x270 and em-x270 work well with fast bus bit set with > > > > > > userspace governor and with the above frequencies. > > > > > > > > > > What about ondemand and conservative governors? > > > > > > > > I haven't tested those and I don't think I will have an > > > > opportunity in the near future, but is it really important also to > > > > test those? Are they different in any special way? > > > > > > They switch freq rapidly, so they can be used as stability test for > > > cpufreq? ? implementation. > > > > Aren't you seeing a locking issue during the switch instead of fastbus > > problem then? > > I don't see any problems with conservative governor. What symptoms > should? point to locking issue(s)? Probably some hardware didn't finish the transition, while the cpufreq layer thinks the transition is complete and can initiate another one. So two transitions quickly following each other will in this case cause a race. Disabling fastbus might only change the timing so you're not seeing this issue. Another possibility is the cpu/system is suffering from undervolt. Or the regulator is unstable when it's switching voltages so fast. So it might even be a regulator issue -- try also configuring the regulator so it doesn't switch at all during frequency change and so it's running on higher, fixed voltage. Simple hack should accomplish that. > > Regards > Vasily