Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933886AbbGHWh3 (ORCPT ); Wed, 8 Jul 2015 18:37:29 -0400 Received: from s1l1v.rtu.lv ([213.175.90.140]:55524 "EHLO mail.pbx.lv" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753849AbbGHWgC (ORCPT ); Wed, 8 Jul 2015 18:36:02 -0400 X-Greylist: delayed 379 seconds by postgrey-1.27 at vger.kernel.org; Wed, 08 Jul 2015 18:36:02 EDT To: Arnd Bergmann Subject: Re: [1/2] RTC: Add core rtc support for Gemini Soc devices MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_67088d988b0a24aeb73414770ae6e224" Date: Thu, 09 Jul 2015 01:29:39 +0300 From: Roman Yeryomin Cc: linux-arm-kernel@lists.infradead.org, Felix Fietkau , rtc-linux@googlegroups.com, Linus Walleij , linux-kernel@vger.kernel.org, Alexandre Belloni , Russell King , Hans Ulli Kroll In-Reply-To: <2131951.l0j0CIttAZ@wuerfel> References: <1292339307-14336-2-git-send-email-ulli.kroll@googlemail.com> <2349062.9v3Zz7HPLu@wuerfel> <0701f75c1c42f74fd58845bc0ed41c38@advem.lv> <2131951.l0j0CIttAZ@wuerfel> Message-ID: User-Agent: Roundcube Webmail/1.0.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4638 Lines: 88 --=_67088d988b0a24aeb73414770ae6e224 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 2015-05-08 19:08, Arnd Bergmann wrote: > On Thursday 07 May 2015 12:03:25 Roman Yeryomin wrote: >> On 2015-05-06 22:22, Arnd Bergmann wrote: >> > On Wednesday 06 May 2015 19:21:21 Roman Yeryomin wrote: >> >> >> >> > Thanks to point that, I'll merge that one which seems clean enough: >> >> > http://git.openwrt.org/?p=openwrt.git;a=blob;f=target/linux/gemini/files/drivers/rtc/rtc-gemini.c;h=587d8122b2fbb1230437eadcce4789a53aa60ee5;hb=4c637410a2a1ab45988e8ca6202554a502102039 >> >> >> >> For 3.18 (and up) to work on gemini 160-gemini-timers.patch is vital. >> >> Without that timers are broken and cpu is super slow. >> > >> > Do you know what part of the patch is the actual bug fix? We should >> > probably >> > merge that separately and mark it for stable backports, while the bulk >> > of that >> > patch seems to just rearrange code. >> > >> > Arnd >> >> Sorry, didn't try to extract the exact lines it but I guess it's that >> part which touches the scheduler clock code. >> Because without that patch sched clock runs at 100Hz instead of 25MHz. >> I can dive into this deeper if you want, I just didn't see the need. > > I think that would be helpful, yes. > OK, here are the minimal changes required (see attachment). Tested on 4.1.1 Let me know if you want me to submit it in some other way. Regards, Roman --=_67088d988b0a24aeb73414770ae6e224 Content-Transfer-Encoding: base64 Content-Type: text/x-diff; name=160-gemini-timers.patch Content-Disposition: attachment; filename=160-gemini-timers.patch; size=1986 LS0tIGEvYXJjaC9hcm0vbWFjaC1nZW1pbmkvdGltZS5jCisrKyBiL2FyY2gvYXJtL21hY2gtZ2Vt aW5pL3RpbWUuYwpAQCAtMTUsNiArMTUsNyBAQAogI2luY2x1ZGUgPGFzbS9tYWNoL3RpbWUuaD4K ICNpbmNsdWRlIDxsaW51eC9jbG9ja2NoaXBzLmg+CiAjaW5jbHVkZSA8bGludXgvY2xvY2tzb3Vy Y2UuaD4KKyNpbmNsdWRlIDxsaW51eC9zY2hlZF9jbG9jay5oPgogCiAvKgogICogUmVnaXN0ZXIg ZGVmaW5pdGlvbnMgZm9yIHRoZSB0aW1lcnMKQEAgLTM0LDkgKzM1LDE3IEBACiAjZGVmaW5lIFRJ TUVSXzNfQ1JfRU5BQkxFCQkoMSA8PCA2KQogI2RlZmluZSBUSU1FUl8zX0NSX0NMT0NLCQkoMSA8 PCA3KQogI2RlZmluZSBUSU1FUl8zX0NSX0lOVAkJCSgxIDw8IDgpCisjZGVmaW5lIFRJTUVSXzFf Q1JfVVBET1dOCQkoMSA8PCA5KQorI2RlZmluZSBUSU1FUl8y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1c2UgVElNRVIz IGFzIGNsb2NrIHNvdXJjZSAqLworCXdyaXRlbCgwLCBUSU1FUl9DT1VOVChJT19BRERSRVNTKEdF TUlOSV9USU1FUjNfQkFTRSkpKTsKKwl3cml0ZWwoMCwgVElNRVJfTE9BRChJT19BRERSRVNTKEdF TUlOSV9USU1FUjNfQkFTRSkpKTsKKwl3cml0ZWwoMCwgVElNRVJfTUFUQ0gxKElPX0FERFJFU1Mo R0VNSU5JX1RJTUVSM19CQVNFKSkpOworCXdyaXRlbCgwLCBUSU1FUl9NQVRDSDIoSU9fQUREUkVT UyhHRU1JTklfVElNRVIzX0JBU0UpKSk7CisJd3JpdGVsKFRJTUVSXzNfQ1JfRU5BQkxFIHwgVElN RVJfM19DUl9VUERPV04sCisJCVRJTUVSX0NSKElPX0FERFJFU1MoR0VNSU5JX1RJTUVSX0JBU0Up KSk7CisJaWYgKGNsb2Nrc291cmNlX21taW9faW5pdChUSU1FUl9DT1VOVChJT19BRERSRVNTKEdF TUlOSV9USU1FUjNfQkFTRSkpLAorCQkJCSAgIlRJTUVSMyIsIHRpY2tfcmF0ZSwgMzAwLCAzMiwK IAkJCQkgIGNsb2Nrc291cmNlX21taW9fcmVhZGxfdXApKQogCQlwcl9lcnIoInRpbWVyOiBmYWls ZWQgdG8gaW5pdGlhbGl6ZSBnZW1pbmkgY2xvY2sgc291cmNlXG4iKTsKKwlzY2hlZF9jbG9ja19y ZWdpc3RlcihnZW1pbmlfcmVhZF9zY2hlZF9jbG9jaywgMzIsIHRpY2tfcmF0ZSk7CiAKIAkvKiBD b25maWd1cmUgYW5kIHJlZ2lzdGVyIHRoZSBjbG9ja2V2ZW50ICovCiAJY2xvY2tldmVudHNfY29u ZmlnX2FuZF9yZWdpc3RlcigmZ2VtaW5pX2Nsb2NrZXZlbnQsIHRpY2tfcmF0ZSwK --=_67088d988b0a24aeb73414770ae6e224-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/