Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2583284rwo; Thu, 3 Aug 2023 11:31:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlFAk0oJqvRilFsUzswpZZsX9IQJeehshEPVJxRxJrOMIFnarSDiIlxw+Zl+bQDmNsepEunC X-Received: by 2002:a17:906:748a:b0:99c:20f0:deaf with SMTP id e10-20020a170906748a00b0099c20f0deafmr7109535ejl.77.1691087488856; Thu, 03 Aug 2023 11:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691087488; cv=none; d=google.com; s=arc-20160816; b=rySS71lZU3Cl3kAxXrlOM034g8JEzLC2sCmUDrkXRxOzj0KSkQ6VcnNlFLT9xO52x1 vfHSbk8SiVHF3JeR9lJ93k749Wt3fByn9IZf7qGS11GUk83enFJW32iLiigurb/eQ5hx GysPD6pWYv1afdIEPY2g38GvB8oZTH3i9TptM/kQU6WIUWTLyE7Vp6fMlRmmlE+Ceh7i 4jjkj/SPDL+bfXhq7iaiUpXM32CIq7FgtswoGr2SepHfWmKlrK2PdGessFRWaKAMbVUo CKrV/83SaQCu2BmmyNTZfifTCKrjL1I+/zI29ND3wQWGr5iDjcCowpvaXWE90UBbwI3S 4d3w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LwCzqc1PMCRcx2h1vYzs9FDmhl8QjorV5J8xX30vpfA=; fh=dzn7FZXuyjRD/SsADoLVmv8ajN6bypv0shpvYBNDmUc=; b=zNVu3uhj2l84Ktfe5YCS+LUDKQRAyT9h/2f2vzfIRTCBKCKUZhvtHH9/PP8oP9rT5Q 5IsDu5VCIGhhltxY1qpOxD27erHFLG2FfC2m6v3M1iTuExG9H4/q8BfnEjJCoDAXfD59 k+AULmWcV7BNX+H6CWndfvYfIe53/qjaWQj6w3uKzVRnBIOftcrAZ7gITeFykRZY5AjB JQhDJfMpa/3wkspAnrAU7FHWbZ5KFvKYeVoWNAqVr3w6NBFV7BFccPa2UrRin/SWWQLO r+R3/t8IU3EKCHHOv7RGFPHYdm8SeMwcxqLVXndgWo8ZS3PfYxqLT3f0aPuDANvsYU29 EKkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=lGptm+1F; 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 k22-20020a1709065fd600b0099b45b7c984si167032ejv.528.2023.08.03.11.31.03; Thu, 03 Aug 2023 11:31:28 -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 header.i=@ventanamicro.com header.s=google header.b=lGptm+1F; 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 S235336AbjHCSCW (ORCPT + 99 others); Thu, 3 Aug 2023 14:02:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234870AbjHCSBx (ORCPT ); Thu, 3 Aug 2023 14:01:53 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6B6849E4 for ; Thu, 3 Aug 2023 11:01:03 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-686b643df5dso901022b3a.1 for ; Thu, 03 Aug 2023 11:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1691085648; x=1691690448; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LwCzqc1PMCRcx2h1vYzs9FDmhl8QjorV5J8xX30vpfA=; b=lGptm+1FaVB2szu9+1FrX5AfEizhjltUyo0aBH0MmslTFeM8tX/ihvgQP5IVG7Tg7A TBFasNuPmX1HxnupljC5J7LAW031DE7hpjg43EwE0xDPU/lp/UPU+kc+wx4Dk9R1qb5t 7jDVmYJE9VCa4riLTon3hZNN5NOLOY08WqDcPqdaOX8wu39mZPD6VF0osJ32v9gvrbfY XACNR92dJTW4PA3wpYNW/UJoNaiuDBuB6RIXDK48vy2YclaDlPWCQiIFi0kIXCFjOqjQ 6Ca8u30WmNCuPrp25cbilzk20B3sOHrjBX7H62pImD4I+4KWuK1qabDwfjQuxSkrh1iP XS3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691085648; x=1691690448; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LwCzqc1PMCRcx2h1vYzs9FDmhl8QjorV5J8xX30vpfA=; b=Qi5a5htrayOm7+cETyNbUIGPxqI8fQ3f30arTRe7HJuzwoKTgnjDq/OJBL/VTyv2HG x3G4Bpsh32nxjpNe2mJxgtJXZtiTsIgSCHm7Ku5jQEEIxp0AlUpkNrpS1uutl/VSXHXu BxgvFS0fcuvA1zXLeGhIuuyMMncitlx2eNpL/BttbnMzoq6k81Tzmf3kRSa1Jq3JtlaX N8aEOz6JIjY0R+7trmN6ay/R5ffGRYxdvo2F6VnjT9THCsgvLLZnd4f9e2hOOneH699n tfznGCYLnxMU04n3rrf2c+QMeLlV1ZeC4TkBtY4z6GslYs3at6422pGle7OtLmwTQCGB jGMQ== X-Gm-Message-State: ABy/qLa3o3DSVQ8E44NrMfm5QR5y4pt6930gAq1gP5JbtvKKttmEwCcB AKaewih1hYGKPeXvadm0OA8rQlpFsO3avTA2hI0= X-Received: by 2002:a05:6a00:14d1:b0:63d:260d:f9dd with SMTP id w17-20020a056a0014d100b0063d260df9ddmr21845288pfu.33.1691085648649; Thu, 03 Aug 2023 11:00:48 -0700 (PDT) Received: from sunil-pc.Dlink ([106.51.190.143]) by smtp.gmail.com with ESMTPSA id s8-20020aa78d48000000b0065a1b05193asm134952pfe.185.2023.08.03.11.00.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 11:00:48 -0700 (PDT) From: Sunil V L To: linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org Cc: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Catalin Marinas , Will Deacon , "Rafael J . Wysocki" , Len Brown , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , Daniel Lezcano , Thomas Gleixner , Anup Patel , Marc Zyngier , Bjorn Helgaas , Robert Moore , Haibo Xu , Andrew Jones , Conor Dooley , Atish Kumar Patra , Sunil V L Subject: [RFC PATCH v1 10/21] clocksource/timer-riscv: ACPI: Add timer_cannot_wakeup_cpu Date: Thu, 3 Aug 2023 23:29:05 +0530 Message-Id: <20230803175916.3174453-11-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230803175916.3174453-1-sunilvl@ventanamicro.com> References: <20230803175916.3174453-1-sunilvl@ventanamicro.com> 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 timer capability to wakeup the cpu irrespective of its idle state is provided by the flag in RHCT. Update the timer code to set this flag. Signed-off-by: Sunil V L --- drivers/clocksource/timer-riscv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clocksource/timer-riscv.c b/drivers/clocksource/timer-riscv.c index da3071b387eb..50198657230e 100644 --- a/drivers/clocksource/timer-riscv.c +++ b/drivers/clocksource/timer-riscv.c @@ -212,6 +212,10 @@ TIMER_OF_DECLARE(riscv_timer, "riscv", riscv_timer_init_dt); #ifdef CONFIG_ACPI static int __init riscv_timer_acpi_init(struct acpi_table_header *table) { + struct acpi_table_rhct *rhct = (struct acpi_table_rhct *)table; + + riscv_timer_cannot_wake_cpu = rhct->flags & ACPI_RHCT_TIMER_CANNOT_WAKEUP_CPU; + return riscv_timer_init_common(); } -- 2.39.2