Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp485038imm; Fri, 5 Oct 2018 07:04:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV62DLfoUsnWcOOtEFhPfW9rvvDrHMDqUVGqZSWounJ5nL4/7pV0bDWfEofFggqdP2MXRIFYk X-Received: by 2002:a17:902:720b:: with SMTP id ba11-v6mr11564045plb.199.1538748241298; Fri, 05 Oct 2018 07:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538748241; cv=none; d=google.com; s=arc-20160816; b=Zi3QEFTMOWLpziYRQTGbS2jdVpO/Xof/RozrE9A0cZ/cIW0aBvaHEBNB25BpbT832R dBDZjXY5fhLmkDpDQBxP8t1o0HDQt2itPaHFDvtU9oivmtmf6rzdo2+RlMa7EfUN9PFs wJcQblewHNR5deyfLROEl+l9VeEf/eM5vhUs9krJ6dWKpmgl4volO2QtFbFjCbIVQ1JX Nty8xirQtEUQA0dqp+LZeRunNTPSSSjsdh8ttQu05OHY9GfxlBjdvGr96GKdWXGdPb03 8CRx3ZRgtfKu4xcmuiMzVl2Sh86ZNADY5LurefneWskcYN/gmyXKK/m47f/Ob5nq8Rz+ U7Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=VgnTLNfAsVaMoNBJ0E6BsJmvma9Mk/7osTgu44uS5UY=; b=KsvaXLnBONyYjaYvyzglY0I288bTcP40mOZbAL7Uighmv4eXaGmrBGub34foIuPoB7 7X3SdSpjYiLUh8BftOy6GZydhiwncuDMYBPBqLW5Nnehr8USDLiGqEow508E8ZdDGb3F QObH8ryCrp6Tllpk+Auut2if0cRJ5M0+nwK/psxZHcnf4PhdRf+vTReaqJuNZVeVVCcI z4o3SzoMW1t8WukpCNIlC04bV+OpAWdXRr+RlTtbs2RncXWhWqJzXq5CA6W6V4eI+kX9 ZvVFQWM46Xe+KEqkUvt4rOl5EULPAcgpBsStKWmwh7tTy4Lc3Z1tr/0KEJKOfhB0eZA6 qq/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h17-v6si8249984pgh.202.2018.10.05.07.03.42; Fri, 05 Oct 2018 07:04:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728407AbeJEVCa (ORCPT + 99 others); Fri, 5 Oct 2018 17:02:30 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:43918 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727581AbeJEVCa (ORCPT ); Fri, 5 Oct 2018 17:02:30 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08064312|-1;CH=blue;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03278;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=16;RT=16;SR=0;TI=SMTPD_---.CzlU2l5_1538748200; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CzlU2l5_1538748200) by smtp.aliyun-inc.com(10.147.41.120); Fri, 05 Oct 2018 22:03:20 +0800 Date: Fri, 5 Oct 2018 22:03:19 +0800 From: Guo Ren To: Daniel Lezcano Cc: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, robh+dt@kernel.org, mark.rutland@arm.com, anurup.m@huawei.com, Jonathan.Cameron@huawei.com, will.deacon@arm.com, zhangshaokun@hisilicon.com, jhogan@kernel.org, paul.burton@mips.com, peterz@infradead.org, arnd@arndb.de, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH V10 5/8] clocksource: add C-SKY SMP timer Message-ID: <20181005140319.GA6789@guoren-Inspiron-7460> References: <76f127a22faf8f110f102ee3534792b2b84a7d78.1538672812.git.ren_guo@c-sky.com> <4ec284a4-0cff-91b8-bd0a-6eb578b28432@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4ec284a4-0cff-91b8-bd0a-6eb578b28432@linaro.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, On Fri, Oct 05, 2018 at 03:48:58PM +0200, Daniel Lezcano wrote: > On 04/10/2018 19:22, Guo Ren wrote: > > This timer is used by SMP system and use mfcr/mtcr instruction > > to access the regs. > > > > Changelog: > > - Add rollback for timer_of_cleanup. > > - Use request_percpu_irq separate from time_of. > > - Remove #define CPUHP_AP_CSKY_TIMER_STARTING. > > - Add CPUHP_AP_CSKY_TIMER_STARTING in cpuhotplug.h. > > - Support csky mp timer alpha version. > > - Just use low-counter with 32bit width as clocksource. > > - Coding convention with upstream feed-back. > > > > Signed-off-by: Guo Ren > > --- > > drivers/clocksource/Kconfig | 10 +++ > > drivers/clocksource/Makefile | 1 + > > drivers/clocksource/timer-mp-csky.c | 173 ++++++++++++++++++++++++++++++++++++ > > include/linux/cpuhotplug.h | 1 + > > 4 files changed, 185 insertions(+) > > create mode 100644 drivers/clocksource/timer-mp-csky.c > > > > diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig > > index a11f4ba..826a2e8 100644 > > --- a/drivers/clocksource/Kconfig > > +++ b/drivers/clocksource/Kconfig > > @@ -620,4 +620,14 @@ config RISCV_TIMER > > is accessed via both the SBI and the rdcycle instruction. This is > > required for all RISC-V systems. > > > > +config CSKY_MP_TIMER > > + bool "SMP Timer for the C-SKY platform" > > + depends on CSKY > > + select TIMER_OF > > + help > > + Say yes here to enable C-SKY SMP timer driver used for C-SKY SMP > > + system. > > + csky,mptimer is not only used in SMP system, it also could be used > > + single core system. It's not a mmio reg and it use mtcr/mfcr instruction. > > > ... COMPILE_TEST :) Ops... I forgot it, should be: bool "SMP Timer for the C-SKY platform" if COMPILE_TEST Thx for remind and any other review is welcome. Best Regards Guo Ren