Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2410097ioo; Sat, 28 May 2022 12:43:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRdpng4jA1taGNMzLzMDSSeu23V4nuOVK5VCZ7P8AOa95d2ef2u9EVpCzoNbOVzSQYs1Vk X-Received: by 2002:a63:1164:0:b0:3fb:e680:365c with SMTP id 36-20020a631164000000b003fbe680365cmr2011386pgr.327.1653767037085; Sat, 28 May 2022 12:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653767037; cv=none; d=google.com; s=arc-20160816; b=OoG3/c/EDwB9HkhdMaqlY0P+I/c1V5nodZskhTXd865x8A/MgS9TR9b3TECGPvt3AQ ACPSYfHgpj1pDB8AMkplw1QYmEj3FUZ4n2dmMUDBs1fRdBSx3j1Lz5aADFdhO6aXhZj1 B7ulK1C8y1mTQ8fhi5MIh/4SWlrsqyxhK22zAsEgmZCuX9mHvMf0wFo1sU7eoQIClvW4 MZoWJS79xOFUgKWI2r1iER7R8vCbL6n0euUQMmL1uD1GjmkrABGz59yqthL2penBbEsF FKxF7kxKIvo5DxjDfk0cDHh5HVnLr0FeghAS/OP+kbCPeWfg2s+OgLV5PrHAJ/oxQUPy tSrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=ZiStZ62kTMetBTZYFuwPo3IHsjUKw8tDe9G2BGo6de4=; b=VD+GMzAyBaCjPptR4M3POayY/wISXitKubWw1dfyNFaDcmhvKnGSfPiDN/j1/m3p0Z cvMpp7b8OYOO/8O5B3Q0zsiD/VYcYmhuTBJE8XQf0KAr/JXntzvP4XOOFy2C/JjakoyN lEt/d3ReqEobp/io9s8j7gm6yE3t/BVDaHjS4CMnyo0tG52W+65hnKztEwc2GgCjcoPq NR4wbzzbNnkxaPQome7YX2wtB2LWsmjujYSpKW2q0CLeqMSjjHZGN+S2j3/OddI7OVNC DrFocGGdhM7KpE1+xKUo1nvv0/N2o4azNqvpAkAxLCey+oT4qU+1bdILk3NQFDcO3EnE nA8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=NGPBHrjR; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x9-20020a170902ec8900b001622e02a816si12151896plg.498.2022.05.28.12.43.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 12:43:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=NGPBHrjR; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C03A9DE82; Sat, 28 May 2022 12:07:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349821AbiE0IhQ (ORCPT + 99 others); Fri, 27 May 2022 04:37:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349745AbiE0IgJ (ORCPT ); Fri, 27 May 2022 04:36:09 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94CF0FF5B2; Fri, 27 May 2022 01:36:04 -0700 (PDT) Date: Fri, 27 May 2022 08:36:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1653640563; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZiStZ62kTMetBTZYFuwPo3IHsjUKw8tDe9G2BGo6de4=; b=NGPBHrjRJCsYDalSl661x0rNVBKmt5zM6GmbBmQCZHMGpsX08hOJmH/Oyiew+/akhqqkA+ PUpM/Pni/C3lom/qTRwZhxlUImoGgocB6zdTJBQqQWKyvkT35ZrMgfywxoG7eXEwu1EDOT AwBK1YFKnPaOSGCJ7PyhbRnkI3edtd9EWJb3G/0gL/VJUe1It0fX/aj6nZsNiHc2+lEjeN 7fB5g5xkBkb5F4CtoJ/2rTxk4ykzuvS8iG7HZduGxUWT8v3J5bs23GPl0621+Z30vO0wEJ KmMXojgQpXsVM9Qn0UORYbNaGNDnOepGg4271/78kcLqkIftOijxfBomN0Uxzg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1653640563; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZiStZ62kTMetBTZYFuwPo3IHsjUKw8tDe9G2BGo6de4=; b=g8ph4PbJVRnzgY3bC+0OTnrYrlMqKbhTRDslc8r9TDOq5AYWrmya1ICV3BpN4Ggb/Zp2fC aauyisZiqArR97CQ== From: "tip-bot2 for Samuel Holland" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/riscv: Events are stopped during CPU suspend Cc: Samuel Holland , Anup Patel , Daniel Lezcano , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220509012121.40031-1-samuel@sholland.org> References: <20220509012121.40031-1-samuel@sholland.org> MIME-Version: 1.0 Message-ID: <165364056209.4207.17309950751359309277.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 The following commit has been merged into the timers/core branch of tip: Commit-ID: 232ccac1bd9b5bfe73895f527c08623e7fa0752d Gitweb: https://git.kernel.org/tip/232ccac1bd9b5bfe73895f527c08623e7fa0752d Author: Samuel Holland AuthorDate: Sun, 08 May 2022 20:21:21 -05:00 Committer: Daniel Lezcano CommitterDate: Wed, 18 May 2022 11:08:52 +02:00 clocksource/drivers/riscv: Events are stopped during CPU suspend Some implementations of the SBI time extension depend on hart-local state (for example, CSRs) that are lost or hardware that is powered down when a CPU is suspended. To be safe, the clockevents driver cannot assume that timer IRQs will be received during CPU suspend. Fixes: 62b019436814 ("clocksource: new RISC-V SBI timer driver") Signed-off-by: Samuel Holland Reviewed-by: Anup Patel Link: https://lore.kernel.org/r/20220509012121.40031-1-samuel@sholland.org Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-riscv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-riscv.c b/drivers/clocksource/timer-riscv.c index 1767f8b..593d5a9 100644 --- a/drivers/clocksource/timer-riscv.c +++ b/drivers/clocksource/timer-riscv.c @@ -34,7 +34,7 @@ static int riscv_clock_next_event(unsigned long delta, static unsigned int riscv_clock_event_irq; static DEFINE_PER_CPU(struct clock_event_device, riscv_clock_event) = { .name = "riscv_timer_clockevent", - .features = CLOCK_EVT_FEAT_ONESHOT, + .features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_C3STOP, .rating = 100, .set_next_event = riscv_clock_next_event, };