Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2274927pxa; Mon, 17 Aug 2020 05:53:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2/D+fLOo7iR9Wa25JQEyRz4OKqcTTdAeuFd8pD14U5O+TaAXbVeIYbzFJS7dxqxjxr6P4 X-Received: by 2002:a05:6402:b45:: with SMTP id bx5mr14987994edb.214.1597668799926; Mon, 17 Aug 2020 05:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597668799; cv=none; d=google.com; s=arc-20160816; b=vqCn8Y6DscSfelbzhC/yOlTNZ8lxFQ+TdRDQblEOjr1FcYeWSwBuugLAwao0+aHXeC CxSVxli+33/i87siI3qYRN+jNTRiVx23a5E52flN3yMHqUIMW9OqjqR8JbU9onWHafvR 0R8PahSvrmjCb0DY3xRv3ksR7Frse/1nGi0AOU+UbjGI7gJbhJ6TfhipbHSt1jOMHyKe jLPkj7aJMkDwJiaHsxJGUMY01L7JXEZjXSKMqG8IBqy4EObvkcWaGRdPOaKp3K8GVls2 zt8v6ZBnB7ginxFaROaTCQGQnkCGd7BoVAwHI9OizUDxSX1YZrIIwATkht3xpbpKVpvA GzGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=5yIsZLIn+ksER/V121u9SXvNfoOTGtaI9kvdA7UOWy8=; b=uC6ecrW2FIUmtR3wTC0vAQNFzJmtFmXBgOh24PTrLM1mHtBg/0t+z8Kkcy9CDfJjLa 4I+WaaHxVfNIMyQew6F8pCWYep+Z7nZQDZRm1ZpmCbzr21eEX3fFfSV4QzXz6hqIfUMz cmNB8PZfkbFEawe9FYal6YX2WzMK+QJzE4g2ne/ZIFGGAdnm9zx3vh6+u17u47Vs7Lp1 J5ug/6MYHZrIBwp+Mhwfzja2hFMR37bzQIappDAiFGSmNXweLLKcZQ5clm8gPXu5LXeO FBbxBnOx5i+/Q8vBVYMlA199OoJAz4mILT1tMlU715f3mniaJaTbrV6QrC382MjBS+9l 1Z9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pUHLfV+s; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c5si11429562edq.89.2020.08.17.05.52.55; Mon, 17 Aug 2020 05:53:19 -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=@kernel.org header.s=default header.b=pUHLfV+s; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728431AbgHQMwQ (ORCPT + 99 others); Mon, 17 Aug 2020 08:52:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:40734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbgHQMwN (ORCPT ); Mon, 17 Aug 2020 08:52:13 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BA53020789; Mon, 17 Aug 2020 12:52:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597668732; bh=LCkDhp0yrQ1H4GBGLsPDHG1MxDxVdl9KXyWjwLTvWPI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pUHLfV+s8fddXGPPQLHHqlb1z8AbfUZG7NYwsP6qnq5K2IVfcprGJsRrncpdFA9ra 0yWmrmbHicohobmmQJY+O/OkOVFL+9FwbcCNn8IymvQarItwreniFbq0rqYpjzwCEx WpS6O+f+OLhmp7XvP9Rx93u16E0rFw/5ea5eTJsA= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k7ecV-003ZH0-B9; Mon, 17 Aug 2020 13:52:11 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 17 Aug 2020 13:52:11 +0100 From: Marc Zyngier To: Keqian Zhu Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, Steven Price , Andrew Jones , Catalin Marinas , Will Deacon , James Morse , Suzuki K Poulose , wanghaibin.wang@huawei.com Subject: Re: [PATCH 1/2] clocksource: arm_arch_timer: Simplify and fix count reader code logic In-Reply-To: <20200817122415.6568-2-zhukeqian1@huawei.com> References: <20200817122415.6568-1-zhukeqian1@huawei.com> <20200817122415.6568-2-zhukeqian1@huawei.com> User-Agent: Roundcube Webmail/1.4.7 Message-ID: <267c5f9151c39fd2dcd0ce0b09d96545@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: zhukeqian1@huawei.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, steven.price@arm.com, drjones@redhat.com, catalin.marinas@arm.com, will@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, wanghaibin.wang@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-17 13:24, Keqian Zhu wrote: > In commit 0ea415390cd3 (clocksource/arm_arch_timer: Use > arch_timer_read_counter > to access stable counters), we separate stable and normal count reader. > Actually > the stable reader can correctly lead us to normal reader if we has no > workaround. Resulting in an unnecessary overhead on non-broken systems that can run without CONFIG_ARM_ARCH_TIMER_OOL_WORKAROUND. Not happening. > Besides, in erratum_set_next_event_tval_generic(), we use normal > reader, it is > obviously wrong, so just revert this commit to solve this problem by > the way. If you want to fix something, post a patch that does exactly that. M. -- Jazz is not dead. It just smells funny...