Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp855179rwb; Tue, 29 Nov 2022 06:14:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf4rfjuVhEIDMzE7wfABM6jHNoCyQHsP94uDFqHJFVubf3fPrh/AoVHoN9+IPsx8zxrZRbrz X-Received: by 2002:a17:906:4b18:b0:7c0:8102:25de with SMTP id y24-20020a1709064b1800b007c0810225demr4792734eju.476.1669731288428; Tue, 29 Nov 2022 06:14:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669731288; cv=none; d=google.com; s=arc-20160816; b=XZmi8XWkenGAxqcUUtCIWlG+jpjA04AprRgqLXWZQ1Qg/oK/D4s73c/tryxQ8ffa8Z JxyZqHeL08G2JkcT8avW8q2R0YuMURr3hOGPqA3JtSIyWUBtJKouxoWnWJkZ9wPX5bLL GwWPZoMMASMroox/Kj4O0dvKUHMOgwJmQxQ3i6I+1rFHY0MQEbC7tuEMqifd2f/VAXJ+ GR4yQMuQCLIkrcrm5BmW/um7v5q50TprwliMhjhXTRY/z/8sYVcm2AnD5XRrsONk7REC 3WM9RodN6nltNUb+fDNsvwSVn9j7c25Z/DbQJyVY/x0kgqyIIe+BVFxsUD5DgtEVZfPQ rbPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pjq0SJx9GK7fi74EZz816s2rBUHtlCxatQJYtnjVbuM=; b=dH5vQDNY7SOPZq9XgzwQrmdzyh8stNal+zNT7QAj5/ugNdXJWyalqCfIxotwaKNRep XkxIN8Hv9npqyrMbsIrL+anXpzhrwaGJRnaiSJDD9iAuahd8pJse7HnfTdqzEGrDj6oF ITDO3E1QmgiTYVQZitKijV001PzdiDXN5pBXURdCLl1Yl03caekgJ/MHF7QlarbWfvg+ p8hyjwC8g+/5Rw2aN1bLCXsQ6lDqrFL+cx6giPSKUoyU7HlBMBZdQD8WlxRZ6oOnjKBM /M4xu3QWxJz01w3j25XDYqvqnp7HgXMycFVPpGEvXVLToWvYh3hJFBqjtNcz51Xh7WnU 8cWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=HRYib5uK; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j9-20020a05640211c900b0046acab646ecsi12023990edw.81.2022.11.29.06.14.27; Tue, 29 Nov 2022 06:14:48 -0800 (PST) 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 header.i=@ventanamicro.com header.s=google header.b=HRYib5uK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234716AbiK2ODo (ORCPT + 84 others); Tue, 29 Nov 2022 09:03:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234639AbiK2ODY (ORCPT ); Tue, 29 Nov 2022 09:03:24 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1066418B37 for ; Tue, 29 Nov 2022 06:03:24 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id b21so13478553plc.9 for ; Tue, 29 Nov 2022 06:03:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pjq0SJx9GK7fi74EZz816s2rBUHtlCxatQJYtnjVbuM=; b=HRYib5uKKfPx9dsXiXvzZ9/38Ir8ibfurUtJJpxA8EOiMLOSgoQHFo0Q/WYnFHaSTl BzDPFLTRFg2fHnyZBhxdlCj+Qe9hPUU0iFaM2kuBv46oMQYrqT40aZ/sx6zCL3/GrX9W 8zO/EqcFiYmP0xGdhLWtk4LJmfOG5rnhWIDQvb5ORxKoCP6K1bgd9AK7HkpoQZfGVI1O 20i54mss0essruIsuaaEnRJ1sFHCBT5j4OwNc53MDDMJqBL/h2zZyXQcANvlkqy5yqrg kCbVXVcWHFV8UD1naeeLA26+g43l0Wyx4KDkAtm1udPorYm9S/8OSIb5ie87X1aYLr5l DYGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pjq0SJx9GK7fi74EZz816s2rBUHtlCxatQJYtnjVbuM=; b=OVzYwiLKYZSfBslTAPZp4Q9c2/y4dDDBkdfWoOfu6843eKRu5TDpkDFwR6hr+IrffJ 4UzO06E8D8nCzlpf8G5a1MCphX81jZb7X2rM2Jh177h7Q83tCR4zM7MXvsqRnh9sFAoJ akr6yQvKF1/F/oqlSK2Ab8fK7aatoK2s8K2L4GAp/oenf5a5FVIH3Ds3wP4G0NAdluLz gg3oCLZ0jUd0L//RnHarDZTCmnm6qWbQkfJTwcuxBjDz2cin2MwOTTHbE8CWViLKTDp+ LtRc/tJo+tZtk8H5H+ByAAT/7Sk6ZUOycN6HHUET3h7ygNLsXn6CksV4w3mhob+XTcpx 8rsw== X-Gm-Message-State: ANoB5pkhODCvGwTPGHBhO7v4kFAqQyA7lk4+H8ERW262bO0t3EoFYhyK lglJkYWjfDwFVKsIf3KIGq6AzjT9vY7HWQ== X-Received: by 2002:a17:90a:c68d:b0:219:80b:6ea with SMTP id n13-20020a17090ac68d00b00219080b06eamr24396424pjt.212.1669730603217; Tue, 29 Nov 2022 06:03:23 -0800 (PST) Received: from anup-ubuntu-vm.localdomain ([171.76.84.98]) by smtp.gmail.com with ESMTPSA id k30-20020aa79d1e000000b00574f83c5d51sm6013747pfp.198.2022.11.29.06.03.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 06:03:22 -0800 (PST) From: Anup Patel To: Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Daniel Lezcano , Thomas Gleixner Cc: Andrew Jones , Atish Patra , Samuel Holland , Conor Dooley , Anup Patel , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Anup Patel Subject: [PATCH v4 0/3] Improve CLOCK_EVT_FEAT_C3STOP feature setting Date: Tue, 29 Nov 2022 19:33:10 +0530 Message-Id: <20221129140313.886192-1-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 This series improves the RISC-V timer driver to set CLOCK_EVT_FEAT_C3STOP feature based on RISC-V platform capabilities. These patches can also be found in riscv_timer_dt_imp_v4 branch at: https://github.com/avpatel/linux.git Changes since v3: - Rebased on Linux-6.1-rc7 - Replaced PATCH1 with a patch to initialize broadcast timer Changes since v2: - Include Conor's revert patch as the first patch and rebased other patches - Update PATCH2 to document bindings for separate RISC-V timer DT node - Update PATCH3 based on RISC-V timer DT node bindings Changes since v1: - Rebased on Linux-5.19-rc8 - Renamed "riscv,always-on" DT property to "riscv,timer-can-wake-cpu" Anup Patel (2): dt-bindings: timer: Add bindings for the RISC-V timer device clocksource: timer-riscv: Set CLOCK_EVT_FEAT_C3STOP based on DT Conor Dooley (1): RISC-V: time: initialize broadcast hrtimer based clock event device .../bindings/timer/riscv,timer.yaml | 52 +++++++++++++++++++ arch/riscv/kernel/time.c | 3 ++ drivers/clocksource/timer-riscv.c | 12 ++++- 3 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/timer/riscv,timer.yaml -- 2.34.1