Received: by 2002:a05:7412:d024:b0:f9:90c9:de9f with SMTP id bd36csp43264rdb; Wed, 20 Dec 2023 06:00:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEv+ym7wtPimCCx+LHZaKulodNCuu4On+cJEbabOgPDDOKRUWMVZMfTjAtgdAXFOa0yXz8d X-Received: by 2002:a17:906:c2:b0:a26:97fb:a410 with SMTP id 2-20020a17090600c200b00a2697fba410mr380070eji.88.1703080847678; Wed, 20 Dec 2023 06:00:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703080847; cv=none; d=google.com; s=arc-20160816; b=VRCysUjIuyKAuscwJ3c5vA+wwm0hYChljbT7mNcuyVPK6v+tsZT6lXGbZaWmnZK208 gunQULO9YJipam5siU+acO34Vqc5w0yiJdw3x4lWKfOCiMq19bx57X2ivzJtmpzwI3J4 GGMlXu1N0OzmHgCwyIm1HPLltF+JD6ZxuXR3XJoyVsnLTpNUvIZtirGRLytsbEILLJWg a3vJFfCMTgyhC2quZsU/nsTWdw42iPTe10qlszqDSTS/F74CQq8M+KIa9e1T6klnnZe9 uofO9P/3NVwX9MUW4NCT03+DFHezFWJs1FdWBFJiMmtP4aYc2lYS2VL8oT3NpmWDVmHF azig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:from :dkim-signature; bh=GORz2Rp468DG/BOConaMtErEasFxTme5lVfMMQP4MUs=; fh=WfhEBtoirUj60isDiTFhKzipas6rVFTEJSuKWbpB99o=; b=RekWazK43ZdsEVCG3FX7sSHkCs/2tm0zZV7G0Kv5S0Qrm6P2IGzlQLdr85OdaTk6FN 3PAAzEPHue5yXbomueRBxhEbhQybyNWP4ov/qQfKG6FbL/6TZZ/0pQP8v7KBfZJYsGjy HS7C5G9NxaRiOKa1dt8gg13nPDYuY/zDC5Mj2cUhh14HpTVJUa3tywZlUkq+iAyEb9NY PV6bvi4s/ZX0TptAwbyMKdUIZ7fuSHPSZLuFKYiCGrgYPMeoMeg+zsb7dfl8uaDRGfXG HPYsFeFy8Wsd7uvNDJImaoRVDjf75mWQgL3wdNxzIEyo82j9DU/ehLXxycsED66ISwRM DnKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=hnMlaTWX; spf=pass (google.com: domain of linux-kernel+bounces-7012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7012-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g20-20020a170906595400b00a234e27f31fsi2954695ejr.293.2023.12.20.06.00.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 06:00:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=hnMlaTWX; spf=pass (google.com: domain of linux-kernel+bounces-7012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7012-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6E8EE1F22B32 for ; Wed, 20 Dec 2023 14:00:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B91403AC20; Wed, 20 Dec 2023 13:59:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="hnMlaTWX" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4734539AF7 for ; Wed, 20 Dec 2023 13:59:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 21CA53F73C for ; Wed, 20 Dec 2023 13:59:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1703080779; bh=GORz2Rp468DG/BOConaMtErEasFxTme5lVfMMQP4MUs=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=hnMlaTWXATqxlutyL15CYB/jXzsNvxV3DyelCltS8S6JwzOSaJxMP9pgmtPJtcFvD ZpC7WFNUslAhETHJYItj0RxRZ/rr0XZbjNl85g5CaT20rrMO2zPvoFfG2So4mQuTIx zRNZaNPqZ8bZ0GGyi9gSpeIZvQnWY3cak0Bh91Y0JYuQeCdUUDBqQr3indLq9lFMLH L47CZfgJMk30BAaB3RYtb4y5QC9A+4BR6sZdTy0f874oJ3Q5xlvlAqupOpFQpZfSgu bv8DnVdmc1ji616+zbSbCWHQxEWkdvjV9NrW4KwBCsnBgWMOANzEw8gZZd4IDKARzx pRaxaKcB/1ESw== Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-4277e532d24so20534091cf.1 for ; Wed, 20 Dec 2023 05:59:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703080778; x=1703685578; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GORz2Rp468DG/BOConaMtErEasFxTme5lVfMMQP4MUs=; b=gxXYGfzz3A+kUZK/EK1DWLJpk6r4FPzwe/IMO8IpDM2PR28jE5xF5buuDzjtzttmy0 T0gKbQF9H6RH0W70p8IqIAhIHVHvU5lPb3R3nBmYJwtWGoM3G+kuPmgW3H4msRSp14Ub mjfD360XXyQDSMoVoq2UvcXb0qSNi+YoTApr+ED882LI7l4XCHleeiGJvA2R6TZGnM0h LcGpEQvsV8V05vpOBE6iy9PU1GZv1mHGdbrLmAPrEoIJRZT80rvGY3FhOkZbWh9cg+mu pslWojGjSgTbbyMY4uhRDdJfXkBWTUPgbj+qo9Cq5F63BThwwKvB+sYkABN6bqUz9svE ouqg== X-Gm-Message-State: AOJu0YyKem3LtipKpZg6r4iCb0B+s58sC8wmys3x6mWWVlCogEy4hlUt GOog6XUq5QIE9LvYw769qcYv4FaIcI9l0EzcD4JpsF2oKtEklAli80paLixGRvtlEFUctfhxOSt oZhkk0n8GLWlGKThNPphpDUusbV9rcxeJpfpBCQoB/DAYvMf1fMSXkHBVjQ== X-Received: by 2002:ac8:7f48:0:b0:423:93ce:bde2 with SMTP id g8-20020ac87f48000000b0042393cebde2mr29365875qtk.63.1703080778008; Wed, 20 Dec 2023 05:59:38 -0800 (PST) X-Received: by 2002:ac8:7f48:0:b0:423:93ce:bde2 with SMTP id g8-20020ac87f48000000b0042393cebde2mr29365861qtk.63.1703080777739; Wed, 20 Dec 2023 05:59:37 -0800 (PST) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Wed, 20 Dec 2023 05:59:37 -0800 From: Emil Renner Berthing In-Reply-To: <20231219145402.7879-3-xingyu.wu@starfivetech.com> References: <20231219145402.7879-1-xingyu.wu@starfivetech.com> <20231219145402.7879-3-xingyu.wu@starfivetech.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Date: Wed, 20 Dec 2023 05:59:37 -0800 Message-ID: Subject: Re: [PATCH v8 2/3] clocksource: Add JH7110 timer driver To: Xingyu Wu , Daniel Lezcano , Thomas Gleixner , Emil Renner Berthing , Christophe JAILLET Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Walker Chen , linux-kernel@vger.kernel.org, Conor Dooley Content-Type: text/plain; charset="UTF-8" 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 > +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