Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp404018pxb; Thu, 7 Apr 2022 08:33:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYl/NbcgXgQ2SNK1xjYxkeIKqreYTS/27IFVB+dsQHguYxCYd4obMmVzl9UhbqyBegId8g X-Received: by 2002:a17:907:3f86:b0:6db:b745:f761 with SMTP id hr6-20020a1709073f8600b006dbb745f761mr13781613ejc.610.1649345580617; Thu, 07 Apr 2022 08:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649345580; cv=none; d=google.com; s=arc-20160816; b=XaDPx24ZhgCgJhKl972rFc5bs/lnDVFl3vAvT7+QTDfQq3cU7VJcVuBQ0LuNUorck8 HgRn+CYVrsOhyRNsTMonX8oEK5Ln/nn4e6xVDe1Zxy5wfe1jwGBYGKfPKc6TDhPNeoU0 xXFKNylcdwbK4RW5V8pRU8y8/L7iHJ+F9pmDKscxiTpU2UzhJC7oRKGtoS/6w4Gu+zOi VMDbKTVAxF//XgZ2NTFF5CZmR/bdjfgVlGGVMcKWXR/mom59QcjhDNYNwKyE1wqcqS9v 0RHhctDbwPKsJFPOtFGQNEx3sq84ZNF2mRrIINGf5AqOBidS8i4BhrbttEgvKu4zvJDd nfxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=65cq+04D2t91MgXQs2FV1LSZ91INmcsG6pr3WgD2E7M=; b=SZyNqzQcvO6jEBJYEMBQuyhFMvPRgT5c54QhWuZ99e90AHalvbdBFc6XRWtvEUzr5B NYOyAVSbvYCNHRpkFVb6tzzZ8j5BhZIQc+Gb7WGdMQUih0Ye1Zyqt2nTOxuGrEgL6+1O 4NyAJAS6pY+0PYmt0uFvs93W51biDpbuTS5s55b72Rp8aZeDe4fqnQsu+eaqiErRrDQQ yhGlVMniz8B47+Jlt5Ho3N3yaFWPDZ1Jz9DS3i4RgQS/wVltD+zGnIOL6rLmdxYKfESy umqNRIWf8s7D80NsTkAeIBE5snzEXRePgyXMNBpsOEt81G4IuW4zP7YELVO+1j7YYBU+ Eopw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=bQzducTe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e17-20020a17090724d100b006e1aeffceefsi2211447ejn.361.2022.04.07.08.32.33; Thu, 07 Apr 2022 08:33:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=bQzducTe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242167AbiDGHud (ORCPT + 99 others); Thu, 7 Apr 2022 03:50:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232646AbiDGHua (ORCPT ); Thu, 7 Apr 2022 03:50:30 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 023B346141; Thu, 7 Apr 2022 00:48:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1649317712; x=1680853712; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=65cq+04D2t91MgXQs2FV1LSZ91INmcsG6pr3WgD2E7M=; b=bQzducTedCmQckTwZX1IlWeB9H+3fnDxErNGSv0UqoYECY1mAV0iLDGj ccIXbqu4qZpJamltH5XlBMFaBgOjaIjISpDPtXghLFWvWE1wJ/2RdTKvG kVnFMjDt8I0SAP5JyX+ZRRm0c+JhqbehKve6bUmbooP1ClbKrYhT/52B1 F8vQVcI0SShLOuvc38+4KwKI1r0Yy216y0N915mP7He93wyjx8V8yojdA mJTrcykmve5LG4kvX/BIvvNIRF3dRjdjTpw8sVjJxbcgDSHYuf1MM8Hss JxEilDw+OCQ7uYCBwLiJj1kN7AB9JOkE7aFZtNBAuoisfJCGRq1tqvwEL Q==; Date: Thu, 7 Apr 2022 09:48:29 +0200 From: Vincent Whitchurch To: Marek Szyprowski CC: "devicetree@vger.kernel.org" , "linux-samsung-soc@vger.kernel.org" , "daniel.lezcano@linaro.org" , "linux-kernel@vger.kernel.org" , "robh+dt@kernel.org" , kernel , "alim.akhtar@samsung.com" , "tglx@linutronix.de" , "linux-arm-kernel@lists.infradead.org" , Subject: Re: [PATCH v2 3/4] clocksource/drivers/exynos_mct: Support local-timer-index property Message-ID: <20220407074829.GA31389@axis.com> References: <20220308142410.3193729-1-vincent.whitchurch@axis.com> <20220308142410.3193729-4-vincent.whitchurch@axis.com> <226dcb1b-d141-f0d3-68c4-11d2466ca571@canonical.com> <20220311113543.GA17877@axis.com> <69be9f88-b69b-c149-4387-c5002219bf0a@canonical.com> <20220330082137.GA21079@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220330082137.GA21079@axis.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 30, 2022 at 10:21:37AM +0200, Vincent Whitchurch wrote: > On Mon, Mar 21, 2022 at 09:00:08AM +0100, Marek Szyprowski wrote: > > Right, I've played a bit with MCT on some older Exynos SoCs (ARM 32bit > > based and even Exynos5433) and it looked that none of it enabled MCT FRC > > timer in their proprietary firmware. I've even proposed a patch for this > > once ([1]), but such approach has been rejected. I think that calling > > exynos4_mct_frc_start() unconditionally won't hurt. > > Thank you for looking into this. The proposal was however not to avoid > changing when exynos4_mct_frc_start() is called, but to instead skip the > write to the Timer Enable bit of the G_TCON register if it is already > set, like in the below patch. (This is needed to avoid races when the > FRC is shared between CPUs in an AMP configuration, since TCON can be > modified for other reasons from the CPU which is using the global > comparator.) > > If I understand your comment correctly, such a change should not cause > any difference at least on the platforms you looked at since there > MCT_G_TCON_START will not have been set at startup. I needed the frc-shared property anyway to prevent registration of the clock events so I followed Krzysztof's suggestion of doing this conditionally and also clearing the resume callback.