Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2303611pxb; Thu, 4 Nov 2021 18:08:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzThZV6GQcSDNxraQzQkQoPaoOfB427BC5mSpybQXu6SmgEcGcvuhVgQAUf5ZQhNhNaadHS X-Received: by 2002:a05:6638:268c:: with SMTP id o12mr6593522jat.93.1636074530913; Thu, 04 Nov 2021 18:08:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636074530; cv=none; d=google.com; s=arc-20160816; b=qFuS/1UODSXyscYtvfUPbr27ZK+D702wc29bzUNWKL1P+PDlDAZPox/+NmHA1SnR7z QEo3IieKATEcGSeQfrhUiHaTnkCSCuEMHx5fGkCs8YYFw2wUWFifleWH6Gx3PQeam+mq qVcnhFOYiQGjxMbJKXhula0GbshHF05rSTL2xENIUW5HeAmFstBpKyZJ9C4dYqO45FvI eDNMm1lobksyowBZbfQ+7jeUUohMHQkEHcnOmmcxX5Xq+Iy73InyEd4WaBszQzVnUfhw 2KPDg2OaTWP71OVWcOlXdd/ZB3BV0y134Cp30kDj3YxGoSFfQ/IXBaKr8LZHIIsrx4wG fOCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:user-agent :in-reply-to:mime-version:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=9+9TvxZL3BgF2EAXL6HNltat3I9nj7xUgaCN1Ak1Xi4=; b=n2HRfATsIDUv5dgJNOuif1cibBzWjZODH6ryMKLToxD4kX1fL96+5lxqafdEqsxFc+ g4WR24EHtXdp0iC3bSdCj8z1YN3sx7hy6k2aieXqr2c3VvFZeeNetHfn6bzDrOTp1Fb2 hk9i0B28txtN2jl6g/l/ob+nUGhjhySrA//sr7TKeJ++z96+hOF2zBOQeeDzHBhRxCYK +Za0Y7Jac1kikJkhqmtvenI2GO0lr9nQCFUVfwwCR6tagsEg5V/zlgQVk1ZsUz9GubyI h3G2T/DsdBnARTqJaw8TMgWZyVNChOQOhibC1B1HZyP16XKpHJrhfnSj5Dw4jNV5PmOV UZZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=mScDorKB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r18si12672837iov.50.2021.11.04.18.08.37; Thu, 04 Nov 2021 18:08:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=mScDorKB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232566AbhKEAWG (ORCPT + 99 others); Thu, 4 Nov 2021 20:22:06 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:21530 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232561AbhKEAWF (ORCPT ); Thu, 4 Nov 2021 20:22:05 -0400 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20211105001925epoutp042784b574d99a795fcfa9daa200e034b8~0fmu2VeUG1530215302epoutp04k for ; Fri, 5 Nov 2021 00:19:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20211105001925epoutp042784b574d99a795fcfa9daa200e034b8~0fmu2VeUG1530215302epoutp04k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1636071565; bh=9+9TvxZL3BgF2EAXL6HNltat3I9nj7xUgaCN1Ak1Xi4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mScDorKBeyzWEOo01PvIseb/yUt3cvClmV+q31Qlkh60Q8/Mm5JZlV79mk6X8DQOJ fcHTmyUWYEsFXwEABll0F7frZ/4RPOgxflnmORDz4PM2+1q7n9yMQdQc2MCtt+d/cS n19W1AtJlS0Of4XXVypjUGdTjPyg963H+InhRihw= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20211105001925epcas2p4c90ae2f0ca9c738507766a6d53901bb7~0fmuNwR831564415644epcas2p4j; Fri, 5 Nov 2021 00:19:25 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.89]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4Hlh2V3fg6z4x9QW; Fri, 5 Nov 2021 00:19:14 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 9C.06.10014.18874816; Fri, 5 Nov 2021 09:19:13 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20211105001912epcas2p30469b097f7c348f0a59251d03cd0075e~0fmin0Pj_0378903789epcas2p3M; Fri, 5 Nov 2021 00:19:12 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20211105001912epsmtrp23a6ba0830321c73896bbf2ae9a944327~0fminAYGg0505805058epsmtrp2H; Fri, 5 Nov 2021 00:19:12 +0000 (GMT) X-AuditID: b6c32a47-489ff7000000271e-bc-61847881a9c4 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 07.8B.29871.08874816; Fri, 5 Nov 2021 09:19:12 +0900 (KST) Received: from perf (unknown [12.36.155.123]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20211105001912epsmtip1adbd31f4da7281add572d22e1a2f5197~0fmiblgSo0689906899epsmtip1f; Fri, 5 Nov 2021 00:19:12 +0000 (GMT) Date: Fri, 5 Nov 2021 09:46:27 +0900 From: Youngmin Nam To: Mark Rutland Cc: Krzysztof Kozlowski , will@kernel.org, daniel.lezcano@linaro.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, pullip.cho@samsung.com, hoony.yu@samsung.com, hajun.sung@samsung.com, myung-su.cha@samsung.com, kgene@kernel.org, kwoo.kang@samsung.com Subject: Re: [PATCH v2 1/2] clocksource/drivers/exynos_mct_v2: introduce Exynos MCT version 2 driver for next Exynos SoC Message-ID: <20211105004627.GA24234@perf> MIME-Version: 1.0 In-Reply-To: <20211104094453.GA58798@C02TD0UTHF1T.local> User-Agent: Mutt/1.9.4 (2018-02-28) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrBJsWRmVeSWpSXmKPExsWy7bCmmW5jRUuiwaLfrBbzPstaNO2/xGxx fO1rVov+x6+ZLTa+/cFk0XjnBZPFpsfXWC0u75rDZjHj/D4mi6XXLzJZLH68gsniX+9BRovN m6YyW7TcMXXg81gzbw2jx6yGXjaPTas62TzuXNvD5vHu3Dl2j81L6j36tqxi9Pi8SS6AIyrb JiM1MSW1SCE1Lzk/JTMv3VbJOzjeOd7UzMBQ19DSwlxJIS8xN9VWycUnQNctMwfoaiWFssSc UqBQQGJxsZK+nU1RfmlJqkJGfnGJrVJqQUpOgXmBXnFibnFpXrpeXmqJlaGBgZEpUGFCdkb3 1yksBf2iFd1HrjM3MJ4X6GLk5JAQMJHYtrGZpYuRi0NIYAejRMevxUwQzidGid0790E53xgl dr55ywbTsuHNTWaIxF5Gid6j/6CqHjFKrF53gxmkikVARe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h37hy7x+Yl9R59W1YxenzeJBfAEcVl k5Kak1mWWqRvl8CVcfnMOfaC80IVsx+3MjUwruDrYuTkkBAwkdjw5iZzFyMXh5DAbkaJW1Om skEkZCRur7zMCmELS9xvOcIKUfSAUWLenlXMIAkWARWJp0+7WUBsNgFdiW0n/jGC2CIC6hI9 u76wgDQwC3xlkni6ew8TSEJYoEri26afYDavgKbEpr1noaZuYZZY8eUZC0RCUOLkzCdgNrOA lsSNfy+BGjiAbGmJ5f84QExOAQuJ61eUQSpEBZQlDmw7zjSBUXAWkuZZSJpnITQvYGRexSiZ WlCcm55bbFhgmJdarlecmFtcmpeul5yfu4kRHGNamjsYt6/6oHeIkYmD8RCjBAezkgjv8w1N iUK8KYmVValF+fFFpTmpxYcYpTlYlMR5L3SdjBcSSE8sSc1OTS1ILYLJMnFwSjUwdTpyPI+t ffd929+Zsp/2BikY9PSY3uHe/UzqWhmL3ZMz0xJT487xeNaKla67td6sSptBqnutsNV1rhDz 0MtHlno1Pnmf2smh6Hph99PXiTKL7LaptdqcYo3TPPa74XCmXLSR+dW759zO5FYvU70U8/a2 7oXKzZ9PeDB8sgvpvLDxtHtLgtGkV4wTvQ5F7FSrlhY8rJzM0coW/L/7zETxb92fo67xL79x zX/Hb06JhJXfVv8sS7O6Ei75RydJNGTB5PeKv3z2cGSJS4nJpYS49KTp/ZRYpl/6edvR2+fN 7p088/fZ4inuvrLGcxSvXPu+8OM8iQXRioVP7+/bqeVutLCsLXXavITvS8tqHnW+VmIpzkg0 1GIuKk4EACDDOqAgAwAA X-CMS-MailID: 20211105001912epcas2p30469b097f7c348f0a59251d03cd0075e X-Msg-Generator: CA Content-Type: multipart/mixed; boundary="----TI73IYgzdP03rYJ9SiN0qM3o3mlayfAqXHuFFMbUzbY.6Ea-=_c65ff_" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20211105001912epcas2p30469b097f7c348f0a59251d03cd0075e References: <20211102001122.27516-2-youngmin.nam@samsung.com> <20211102102802.GA16545@C02TD0UTHF1T.local> <20211103000945.GA48132@perf> <83f6574b-bbab-f0c3-7198-f773c3dcfc63@canonical.com> <20211103092444.GA7013@perf> <20211103095727.GA19093@perf> <20211103100407.GA35817@C02TD0UTHF1T.local> <20211104002102.GA29618@perf> <20211104094453.GA58798@C02TD0UTHF1T.local> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ------TI73IYgzdP03rYJ9SiN0qM3o3mlayfAqXHuFFMbUzbY.6Ea-=_c65ff_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline On Thu, Nov 04, 2021 at 09:44:53AM +0000, Mark Rutland wrote: > Hi, > > On Thu, Nov 04, 2021 at 09:21:02AM +0900, Youngmin Nam wrote: > > On Wed, Nov 03, 2021 at 10:04:18AM +0000, Mark Rutland wrote: > > > On Wed, Nov 03, 2021 at 06:57:28PM +0900, Youngmin Nam wrote: > > > > On Wed, Nov 03, 2021 at 10:04:36AM +0100, Krzysztof Kozlowski wrote: > > > > > On 03/11/2021 10:24, Youngmin Nam wrote: > > > > > > On Wed, Nov 03, 2021 at 09:18:07AM +0100, Krzysztof Kozlowski wrote: > > > > > >> On 03/11/2021 01:09, Youngmin Nam wrote: > > > > > >>> On Tue, Nov 02, 2021 at 10:28:10AM +0000, Mark Rutland wrote: > > > > > > >>>> Previously Will asked you to try CLOCK_EVT_FEAT_PERCPU here, and to set > > > > > >>>> the C3STOP flag on the arch timer via the DT when necessary, rather than > > > > > >>>> trying to override the arch timer like this: > > > > > > >>> Yes, I believe Will's suggestion definitely will work. > > > > > So, how about we control timer rating value with DT ? > > > > Of course the default rating value should be lower than arm arch timer's. > > > > Do you agree with this? > > > > > > No; placing a rating value in the DT is a hack. That should *not* live > > > in the DT because it's linux-internal detail and not a description of > > > the HW. > > > > So, how do we use MCTv2 only for clock event device if there are some > > limitations caused by SoC design implemention ? > > What limitations? Are you thinking of a known issue, or just in case > there is a bug in future HW? > > If there is a problem, we'll need to describe that in the DT somehow, > and we need to know speciifcally what that limitation is. > > Above you said that Will's suggestion will definitely work, which > implies no such limitations. > Using arch timer for event device is highly related with Core power down feature so that it is also related with power saving scheme in SoC. Core power down and power saving depend on SoC design implemention. We can't confirm that using only arch timer can cover all scenario at production level. So we should be able to use MCTv2 as well. Why do you enforce using *only* arch timer ? Why aren't we allowed to use own timer of our SoC ? What I meant that replied to Will was I think this will work generally, but we can't confirm this will cover all cases. > Thanks, > Mark. > ------TI73IYgzdP03rYJ9SiN0qM3o3mlayfAqXHuFFMbUzbY.6Ea-=_c65ff_ Content-Type: text/plain; charset="utf-8" ------TI73IYgzdP03rYJ9SiN0qM3o3mlayfAqXHuFFMbUzbY.6Ea-=_c65ff_--