Received: by 10.223.185.116 with SMTP id b49csp201044wrg; Tue, 13 Feb 2018 19:50:48 -0800 (PST) X-Google-Smtp-Source: AH8x224/nPCM7ZBYUZp1T8gBVQrQhVqw2JToSsjWG88LUuMLWl/extB7f+qZSg2GQ3UuhlA7Bn8K X-Received: by 2002:a17:902:6bc6:: with SMTP id m6-v6mr3238418plt.100.1518580248517; Tue, 13 Feb 2018 19:50:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518580248; cv=none; d=google.com; s=arc-20160816; b=YRRHYkt2dJwaWktjE9hZ6PASM8ACkjOaBWOxYtiXEvUd5P8mwhNZo4qwDKnrZceDCe 6MVonSC4IXM7zZ03s0u38ropsihmILLpuat9NoDjU5knHR7AskSOB1Q21NPdud8LpfpA 0H7zainoaT3pZIN74UhwWHJ6sCKMQHRefozpunGFeJlFKf9OypXlhNVvJ0oD+AnDO+es QL2C3d/HX4LjKUC8VzrgtX8L9y3m2jDv+mkSIOetr7lulUwQYXOMwVPzfRFMKrlW1lfv p4DHyY/6rxY98qSB71u9rZ6jW5NsbUlfQKM8zhqbTXjZAXv/fDwTzNMJ3ghp82JScO8W GlCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=nTSTBTTF7ngoepdelBzITPoZ4pI4x8S20f3dfUzb6iA=; b=hdYkeQtZ4FejT6J1Zhv9avRCGxJaE3DKIEMor4vp46w74nNkfTnUIJ4RaoMM7P5W4t Z0ZD+JQJZErG3xmjSaBPZSrvewDw0HMY6qB0nGzrw0y/zQQX3DZfz6OAoj+DsasFgxKt nOtgNdhfI3aDV2797Nf4fyx++4o5ngt5Vc8ZpfH+rwZDazBSi7D+eNKirmb0w8TznGxe eE4192TT4Hrrh0q/CejzTRtMM3vlE1JPgICILdxUQntXVRU0oOv1ljGsZ5Xn+f1ooogJ QsZajD4irURfLx+mgWF/mxeAnKv9rZRtG+wKcWx9ZN0fvk5ydMyt3ZR8dJEJiAW6VDdw 9LDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RC6PEX7w; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3-v6si2223621plb.117.2018.02.13.19.50.33; Tue, 13 Feb 2018 19:50:48 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=RC6PEX7w; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966790AbeBNDtL (ORCPT + 99 others); Tue, 13 Feb 2018 22:49:11 -0500 Received: from mail-ot0-f194.google.com ([74.125.82.194]:40484 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966671AbeBNDtK (ORCPT ); Tue, 13 Feb 2018 22:49:10 -0500 Received: by mail-ot0-f194.google.com with SMTP id s4so19244447oth.7 for ; Tue, 13 Feb 2018 19:49:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nTSTBTTF7ngoepdelBzITPoZ4pI4x8S20f3dfUzb6iA=; b=RC6PEX7wOwG5m1at1JS9E8qYC5o5YOmBQ2my/mnSFc6TW/RjIT4TWfaNejVoOFogtp Qp3gsGJw7QwWvN9ZAHry/fN/kU0Xh7zn77mIjNKKljrV6t4vXNAn/hy+XDi/k7DC7B3X NoOyiSdAtCOxTmNh9s+JaT2hTG0qhPRUZIKUk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nTSTBTTF7ngoepdelBzITPoZ4pI4x8S20f3dfUzb6iA=; b=SkdMYTZwXtgDht1gV/1qUCWomXCJN7CgUVDq060tbC4CJjPu2vEPEVMc7GcuRlwcI6 9aIyAfI0ChEVs+NOt5+agujuE3Nlk5bq7umedhqERWIrt9gRfVJeBFSgTSxCZDEIoztE KpRm2WFDHKrDQe6UIMKWddDbsQqwY8H50uaxObDPdvQ9uZh9vrJbD4uJHvglxxkXe0UP nvmovWSMXzqoVlsPQQxV3wIu4VdpDvnb3UHkAPUqUedUwMoDMV5Ha94/GddrOJZyprmj 2Oaz4ORTvl4d8SIyoSB2bLeYgsLugSOP9+i6p8WQNeLBvxvLNCLntRgj+VAxHucFIyVS 5nyw== X-Gm-Message-State: APf1xPDYOrWcwjtes1PVBTzllb0Xh5PWIcK0SDk6lk1GP2n+QebYVk6T xnTB8Buv1HVqtEjuxqEWYzIwbNqKLr/Mo59DYjUtAA== X-Received: by 10.157.46.46 with SMTP id q43mr2504081otb.127.1518580149470; Tue, 13 Feb 2018 19:49:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.28.174 with HTTP; Tue, 13 Feb 2018 19:49:09 -0800 (PST) In-Reply-To: References: <6fff71482ed7bb63afa46c024638c0a72810ce29.1517913264.git.baolin.wang@linaro.org> From: Baolin Wang Date: Wed, 14 Feb 2018 11:49:09 +0800 Message-ID: Subject: Re: [PATCH] arm64: Enable SPRD_TIMER To: Chunyan Zhang Cc: Catalin Marinas , Will Deacon , Arnd Bergmann , Linux ARM , Linux Kernel Mailing List , Mark Brown , =?UTF-8?B?T3Jzb24gWmhhaSAo57+f5LqsKQ==?= , nianfu.bai@spreadtrum.com, Geng Ren Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chunyan, On 11 February 2018 at 19:41, Chunyan Zhang wrote: > Hi Baolin, > > On 7 February 2018 at 11:12, Baolin Wang wrote: >> On 7 February 2018 at 10:31, Chunyan Zhang wrote: >>> Hi Baolin, >>> >>> On 6 February 2018 at 18:36, Baolin Wang wrote: >>>> Enable Spreadtrum timer driver for Spreadtrum plaform, which will be used >>>> as tick broadcast device. >>>> >>>> Signed-off-by: Baolin Wang >>>> --- >>>> arch/arm64/Kconfig.platforms | 1 + >>>> 1 file changed, 1 insertion(+) >>>> >>>> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms >>>> index fbedbd8..3e0bbb0 100644 >>>> --- a/arch/arm64/Kconfig.platforms >>>> +++ b/arch/arm64/Kconfig.platforms >>>> @@ -224,6 +224,7 @@ config ARCH_TEGRA >>>> >>>> config ARCH_SPRD >>>> bool "Spreadtrum SoC platform" >>>> + select SPRD_TIMER >>> >>> Do we have to select SPRD_TIMER here? SC9836, SC9860 have been working >>> with a minimum system without SPRD TIMER. >> >> Yes, we need register this timer as the tick broadcast device, >> otherwise we will use one hrtimer to be registered the broadcast >> device, which will affect the No-Hz of CPU attaching the >> broadcast-hrtimer. > > Again, Spreadtrum's two boards - SC9836/SC9860 - can run into console > without SPRD_TIMER, we can also debug some kernel origianl feature or > some basic drivers on these two boards, such as CoreSight, clock > driver, etc. Ii think you misunderstood my meaning, I did not say it can not work without the SPRD TIMER. Let me try to explain it again, it we did not select the Spreadtrum timer, we will use one hrtimer to be the tick broadcast device, so in this situation, the cpu attaching the broadcast-hrtimer can not be entered into No-Hz to save power to avoid dead-lock issue. But if we register one timer as the tick broadcast device, then all cpus can be entered No-Hz to save power. So that's why we need select the SPRD_TIMER. > > In my opinion we should keep the kernel as simple as possible, the > above information can go to the 'help' graph of SPRD_TIMER in its > Kconfig. That's one optimization, not the issue of making the kernel more complicated. OK, I will add some kerneldoc to explain that. -- Baolin.wang Best Regards