From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D62BC433ED for ; Thu, 20 May 2021 18:47:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 152016121E for ; Thu, 20 May 2021 18:47:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235874AbhETSss (ORCPT ); Thu, 20 May 2021 14:48:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:39352 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235810AbhETSsp (ORCPT ); Thu, 20 May 2021 14:48:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E640E606A5; Thu, 20 May 2021 18:47:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621536442; bh=Ty9aIb6o8gMXPzSHHmrqzigJgT7fYJt18EsmQyx3I/E=; h=From:To:Cc:Subject:Date:From; b=mnjyjb+xJtr4Y5Cw27i7TaA0OR+QqHDEcNQFd+NiV0PTYkXSwj/zDu7+goGcqpvRR LTfJL9AvGUYVd50dkbRkqeTLWtzadPYumAErEqxzDYad+Asa7/LihhvSdqPz7+MRpB TozXQbKF1XxQFx1o8NQSUQH3yohNut70zZhi+SQ+J0ikG3S3h2Q88LSWStlsfDNAAy Asfo4SvRdcHcg+HZqlSJ5EjQ+JdoDxUMvoYBZeqWeGvkFPXjVRbbFTPCSZkMeOYIDd OPpei2nCIIQjXwXHgNyWdnAZWdGa7qz4+FwoSw6zzEvzmS/mEIL9/ihuzwXcgGuCYa g9Ly+kytmXWtg== From: Will Deacon To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Will Deacon , Frederic Weisbecker , Thomas Gleixner , Marc Zyngier , Lorenzo Colitti , John Stultz , Stephen Boyd , kernel-team@android.com Subject: [PATCH 0/5] tick/broadcast: Allow per-cpu timers to be used instead of broadcast Date: Thu, 20 May 2021 19:47:00 +0100 Message-Id: <20210520184705.10845-1-will@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This patch series adds support for hardware where the per-cpu tick timer cannot wake up from deep idle states (i.e. CLOCK_EVT_FEAT_C3STOP is set) yet there is a secondary per-cpu timer which is generally less preferable (i.e. slow to access) yet capable of delivering the wakeup. The meat and potatoes are in patches 3 and 4, but since I've not hacked on this part of the kernel before I would appreciate feedback on any of the changes I'm proposing. Cheers, Will Cc: Frederic Weisbecker Cc: Thomas Gleixner Cc: Marc Zyngier Cc: Lorenzo Colitti Cc: John Stultz Cc: Stephen Boyd Cc: kernel-team@android.com --->8 Will Deacon (5): tick/broadcast: Drop unneeded CONFIG_GENERIC_CLOCKEVENTS_BROADCAST guard tick/broadcast: Split __tick_broadcast_oneshot_control() into a helper tick/broadcast: Prefer per-cpu oneshot wakeup timers to broadcast tick/broadcast: Program wakeup timer when entering idle if required timer_list: Print name of per-cpu wakeup device kernel/time/tick-broadcast.c | 135 ++++++++++++++++++++++++++++++----- kernel/time/tick-common.c | 2 +- kernel/time/tick-internal.h | 5 +- kernel/time/timer_list.c | 11 ++- 4 files changed, 133 insertions(+), 20 deletions(-) -- 2.31.1.818.g46aad6cb9e-goog From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40D54C433ED for ; Thu, 20 May 2021 18:49:30 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F4041611AE for ; Thu, 20 May 2021 18:49:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F4041611AE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=J2L5voXD8nfeOevZPBn8J43cSsu94jQBLhvRn5bxNLo=; b=ITDuadzK5NLfAstG6cn2LXUZdh X3wDA0RzyaWiAAySRobm5+eTXNht1jZjQqh4z8w/PtcA93Jhg5BUaqeQE/kJYZv4pqHiuY4fckZjr jOaCjCKj9WK3xHCA/n4QmrPOW/PTSDNfCbrlebd4haTK31OKDxU+Vf1iILwBYspgjbCQCthN0DRvt myVeaJP44IyU9viNIRd1pybgNNOJBgL4Dq+gMFA1aYCoHQOltodqE3ZrNkj8SECljWiEdhgwp1oKL XPKldIYBcyU8Bu95GI4kzzP/Vw7ckqgMOE3d9yFI2HcDvLnbe5RJEpkvao+V2UVLAbFovjkFlbpBV z01tBX/g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ljnhh-002Jlu-Mj; Thu, 20 May 2021 18:47:29 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ljnhd-002Jkn-Eo for linux-arm-kernel@desiato.infradead.org; Thu, 20 May 2021 18:47:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=4IeqRze6LqoFntvBJQwYFAUxsGaW8tPS/g5/AWJMqAY=; b=4D/LjUF5O/TyuMsOTARSmfu38/ ldatXDQX5XuZbDmRuM/bpwIvjm+SS/m+FYjR3YDe+xUFkiyBevYx/etJUnEqPeniEIkZ1OFxpEr+T 9PEk2/vZMhL25dwkTK7Z1+g16l68UZV9obmvQ3pmGPcCBaHu+Z4LRUzFmXnf65k6EDmArMyTcgXjx 3MR0tFEG80Jg57kd+0HP9yaEVhfpNP7xt0741We14dxHWJflZsE/1uaKJa+xLiSDT1DupTHaww2xl zD0kuBIqtUn6MM68Vm1dd5i0HM8E4unVDqE+lPN8C+gOJPcOkTRob2lMUL6bxYbndqxlCNfaBnevg 8lFThYiA==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljnhb-00GaDV-1Q for linux-arm-kernel@lists.infradead.org; Thu, 20 May 2021 18:47:24 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id E640E606A5; Thu, 20 May 2021 18:47:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621536442; bh=Ty9aIb6o8gMXPzSHHmrqzigJgT7fYJt18EsmQyx3I/E=; h=From:To:Cc:Subject:Date:From; b=mnjyjb+xJtr4Y5Cw27i7TaA0OR+QqHDEcNQFd+NiV0PTYkXSwj/zDu7+goGcqpvRR LTfJL9AvGUYVd50dkbRkqeTLWtzadPYumAErEqxzDYad+Asa7/LihhvSdqPz7+MRpB TozXQbKF1XxQFx1o8NQSUQH3yohNut70zZhi+SQ+J0ikG3S3h2Q88LSWStlsfDNAAy Asfo4SvRdcHcg+HZqlSJ5EjQ+JdoDxUMvoYBZeqWeGvkFPXjVRbbFTPCSZkMeOYIDd OPpei2nCIIQjXwXHgNyWdnAZWdGa7qz4+FwoSw6zzEvzmS/mEIL9/ihuzwXcgGuCYa g9Ly+kytmXWtg== From: Will Deacon To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Will Deacon , Frederic Weisbecker , Thomas Gleixner , Marc Zyngier , Lorenzo Colitti , John Stultz , Stephen Boyd , kernel-team@android.com Subject: [PATCH 0/5] tick/broadcast: Allow per-cpu timers to be used instead of broadcast Date: Thu, 20 May 2021 19:47:00 +0100 Message-Id: <20210520184705.10845-1-will@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210520_114723_122919_6D60E3F9 X-CRM114-Status: GOOD ( 12.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, This patch series adds support for hardware where the per-cpu tick timer cannot wake up from deep idle states (i.e. CLOCK_EVT_FEAT_C3STOP is set) yet there is a secondary per-cpu timer which is generally less preferable (i.e. slow to access) yet capable of delivering the wakeup. The meat and potatoes are in patches 3 and 4, but since I've not hacked on this part of the kernel before I would appreciate feedback on any of the changes I'm proposing. Cheers, Will Cc: Frederic Weisbecker Cc: Thomas Gleixner Cc: Marc Zyngier Cc: Lorenzo Colitti Cc: John Stultz Cc: Stephen Boyd Cc: kernel-team@android.com --->8 Will Deacon (5): tick/broadcast: Drop unneeded CONFIG_GENERIC_CLOCKEVENTS_BROADCAST guard tick/broadcast: Split __tick_broadcast_oneshot_control() into a helper tick/broadcast: Prefer per-cpu oneshot wakeup timers to broadcast tick/broadcast: Program wakeup timer when entering idle if required timer_list: Print name of per-cpu wakeup device kernel/time/tick-broadcast.c | 135 ++++++++++++++++++++++++++++++----- kernel/time/tick-common.c | 2 +- kernel/time/tick-internal.h | 5 +- kernel/time/timer_list.c | 11 ++- 4 files changed, 133 insertions(+), 20 deletions(-) -- 2.31.1.818.g46aad6cb9e-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel