Received: by 2002:a05:7412:a9a8:b0:f9:92ae:e617 with SMTP id o40csp104902rdh; Wed, 20 Dec 2023 17:58:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZBeZsGmOZQS77Yq5tooWsTFHZdGReC8RO1Fm5rcgtv5FvaBfHFiL4GSQuV8NOClyhgGyU X-Received: by 2002:ac8:5a87:0:b0:425:4043:50ec with SMTP id c7-20020ac85a87000000b00425404350ecmr26880607qtc.123.1703123926123; Wed, 20 Dec 2023 17:58:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703123926; cv=none; d=google.com; s=arc-20160816; b=Trz2LMk5m9aZJPE5DxlmZLqWLp+0LCx+hczptYxVspN6elFuYaMIsqVAHR+q68MZ2R MkkS40mxzh7y9cWXLkDOg8RJI8ZSieY5Vi42RuaVmUcpwy8rdtuodnkwMFMG7PvAmlFF ji0pXu00wzxKRzgw7tMhTIx3VKYKp0r2CO6IpAc5cCT+CweMpELytnmIT77z/ZD9DtgB FELv4ZniO0yU3LcMO3L7b1fNb6kh24FAmpIkwYs4RDgtk9059He/ADfGrLekhFUqJiYs kZktEOCjXL5AYjibQyDAXe5jpFn8IOk9QqS0ylFDq7E4o/VtZ8RLFiCC6fgrxMB/kTDN VmRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=vj2f2mKO5S11s9A6rJn3P9K1UopDdzLSpllCURrcPAo=; fh=VxmGS0kAxprbMHM6aXnnAtG2ILB0crQGtOHQtHDLHZI=; b=OzSxMvGc06Ew2t5GTxPwiayhvsYWHyg0t8wjB48fz3OB6HYcW3+XubVl6bL06nd/An wGt+Ieij0niJNOXXePdou3k5oLbc9WrR1ntf72Yogiw1JgmX19nRTkaahic6bkOWwqxD SHg8cwXlTIzQvPbjAclCSL3fHTeAp1IOE/c5rJd3nS5SrUfBegJtqhUf5exEZbFV72QW poCB150Nc3jfcERcldyPN91D9xYPGjGfCoJkSSDPKCQ6XWrrJukTBA19jIJPJIJZ/jUJ yT+oGK5Lu+axsuEoqchry63H2Lho7uPTu8AhVxGxwhRzJ6Uz7QSeu1TlXRa4uIo8tajt W6aQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-7737-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7737-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u28-20020a05622a199c00b0042550288beasi1053625qtc.609.2023.12.20.17.58.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 17:58:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7737-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-7737-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7737-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A1ED31C22639 for ; Thu, 21 Dec 2023 01:58:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA1AC4685; Thu, 21 Dec 2023 01:58:38 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 646AE3D86; Thu, 21 Dec 2023 01:58:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 3DCDF7FFC; Thu, 21 Dec 2023 09:58:32 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 21 Dec 2023 09:58:32 +0800 Received: from [192.168.125.131] (113.72.145.47) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 21 Dec 2023 09:58:31 +0800 Message-ID: Date: Thu, 21 Dec 2023 09:50:10 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 2/3] clocksource: Add JH7110 timer driver To: Emil Renner Berthing CC: Daniel Lezcano , Thomas Gleixner , Christophe JAILLET , , , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Walker Chen , , Conor Dooley References: <20231219145402.7879-1-xingyu.wu@starfivetech.com> <20231219145402.7879-3-xingyu.wu@starfivetech.com> Content-Language: en-US From: Xingyu Wu In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: EXCAS061.cuchost.com (172.16.6.21) To EXMBX061.cuchost.com (172.16.6.61) X-YovoleRuleAgent: yovoleflag On 2023/12/20 21:59, Emil Renner Berthing wrote: > Xingyu Wu wrote: >> Add timer driver for the StarFive JH7110 SoC and select it by >> CONFIG_SOC_STARFIVE. >> >> This timer has four free-running and independent 32-bit counters. >> Each channel(counter) can trigger an interrupt when timeout even >> CPU is sleeping. So this timer is used as global timer and register >> clockevent for each CPU core after riscv-timer registration on the >> StarFive JH7110 SoC. >> >> Signed-off-by: Xingyu Wu >> --- >> MAINTAINERS | 7 + >> arch/riscv/Kconfig.socs | 1 + >> drivers/clocksource/Kconfig | 9 + >> drivers/clocksource/Makefile | 1 + >> drivers/clocksource/timer-jh7110.c | 360 +++++++++++++++++++++++++++++ >> include/linux/cpuhotplug.h | 1 + >> 6 files changed, 379 insertions(+) >> create mode 100644 drivers/clocksource/timer-jh7110.c >> >> diff --git a/MAINTAINERS b/MAINTAINERS >> index 9104430e148e..fe0e803606a5 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -20617,6 +20617,13 @@ S: Maintained >> F: Documentation/devicetree/bindings/sound/starfive,jh7110-tdm.yaml >> F: sound/soc/starfive/jh7110_tdm.c >> >> +STARFIVE JH7110 TIMER DRIVER >> +M: Samin Guo > > Last time I sent a mail to samin.guo@starfivetech.com it bounced. Was that just > a temporary error? > > /Emil Oh, This email has been deactivated and I don't have his other personal email. I had dropped it in the driver but forget it here. Will fix. Thanks, Xingyu Wu > >> +M: Xingyu Wu >> +S: Supported >> +F: Documentation/devicetree/bindings/timer/starfive,jh7110-timer.yaml >> +F: drivers/clocksource/timer-jh7110.c >> + >> STARFIVE JH71X0 CLOCK DRIVERS >> M: Emil Renner Berthing >> M: Hal Feng