Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6634999rwd; Mon, 19 Jun 2023 09:57:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6L1fxDWfMl1ibX1/1uKroF122ReYyjiWqk34wTmYHPC5W7LWHCoBAFqEdOPwWe/8weXmZT X-Received: by 2002:a17:902:ed41:b0:1b3:d6c8:7008 with SMTP id y1-20020a170902ed4100b001b3d6c87008mr5722681plb.57.1687193821311; Mon, 19 Jun 2023 09:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687193821; cv=none; d=google.com; s=arc-20160816; b=wZH5IXipuenwcp61z/1LoqnUiAtUZt0HukfW3CsV4CyMvtNYE3rvJ4a1fzkUmxblHr fLMPyNlQrP93qgJbfGyXVrHNFrcpd9nBJAJHi2/TFfWr0u/Yk0fpd2doUN44vP94/vbn L4sTwvd30kqhdnBEVKgZU6EIHfZimwLAw+O2UKamwk5hATn/dT1t6aX5tvyABgUJInsx sden2Ljj42LKhF7Gi68XaTz9dQHEzJiNXRxmAmWk5mAKA7Eikfa/MP4iOObvlqrvT6il 7wBaS0iMcUC11YrjYgc0SwxQYo5qXKNp7lUTLErcL2VjnTzWaHW1q61KQN3wD0/vSrRr cR4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=NHM0B0vYW8Moj4jOHMcKxrRBWR7x0bZGC3l3qr2YTGA=; b=UXgYr2pKcurbkCcePIWS3Ixaxi0oeYSBP4MRnNEFe7ssJwCGqqOmOVXqPtACjtb14t xhHcECCRLNnbTp5JpdcHKE56XqfomdWSsCyEBKuntuaYH7Ei5MEsYrhTSKOolDA3juSg nnY9U61o5LrS06XegU0A8YD46Jbulvw8GzpLcT77I3dfyXhQBMIDksbj0hviUcfmluwW mw8bdEaN7fH7MtoxA06Asrhp2TmWiR4YzY0azgY73ZJX2FzlVH7NyZMuF9iNpdFvi8ag e7YahW6JzeCAPQAhLr/baxWTU3Iq4C1xbwt8YxGzDC0fDXalVnDbQzApvA6HmoMEcsYb uBUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sKgybTji; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j7-20020a170903024700b001b66f1fcf0csi183896plh.174.2023.06.19.09.56.32; Mon, 19 Jun 2023 09:57:01 -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=@linaro.org header.s=google header.b=sKgybTji; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231636AbjFSQoT (ORCPT + 99 others); Mon, 19 Jun 2023 12:44:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjFSQoS (ORCPT ); Mon, 19 Jun 2023 12:44:18 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70D39DD for ; Mon, 19 Jun 2023 09:44:17 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4f640e48bc3so4676186e87.2 for ; Mon, 19 Jun 2023 09:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687193056; x=1689785056; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=NHM0B0vYW8Moj4jOHMcKxrRBWR7x0bZGC3l3qr2YTGA=; b=sKgybTjikwRKb87FUK/rDmBirvzBAJ8OQsgp4ESmA/XVMMy/qpWWE9dl6SwkFbgFCA QSh0tTX2N+l9Gdf/Rt5rMkDPVGlnHJyVQuEU82HnAYpjQlP2tcJJk9QnXV3TrbaqGBzz hjCnclfEJYtIkYGoZXCDFrNJfyRJnbZ/5Zc6444ePEp2Vvj+NHYrJEu2l9Ogc1x7mBpf T7QI4E9gnh+8kg5aFUOEQ4ZrLmCjHrQaJGbTl0Lr+Us38KdRROKxbneCV16VXcaYNsGq tAWDwrzcoRFEX6/thBNZhisAxe4/jU52Cn+YZ8jpOiTVzcjCalj0rzt9clRHtaktly5l gasQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687193056; x=1689785056; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NHM0B0vYW8Moj4jOHMcKxrRBWR7x0bZGC3l3qr2YTGA=; b=SYETIpSlIigbmRKPKVEbymlfiqRY8lEJrFfZ9yVf2s3EaMii35TYItKl5lOvVeOc4U LVp7DItN3U/PpUJFAA/xcQPHPSGva2iGTcVK7Kt4V8ZEYR4YurTa/IGBQlXgQXWLsVT7 GEHRlx5ecxcm+yrbHsxn7OGVcRYGHWPZJJATYLc0fowEXAxgnNQWF43hcd2k8aCXHcR9 amYNpK5BlQ0WRPaG1XvshzICt7lueCtfWcIhgWbSjWnR05SxSH3iy6+9YYCkJErOqSh1 MCOm7rxW0a2ZdCnlrWrvq79Vw2enl+RlG/4M/ZuRWGk+9uX2E7IpJHxptJjZPNLmbwva tmJA== X-Gm-Message-State: AC+VfDwFNerMGmaJCD1MibllT18f0cbhVsKkS/QT+sM77muIn7bkfP+X lN5dXAM1Mr4pKTIhQYm1cqry9g== X-Received: by 2002:ac2:4647:0:b0:4f4:d324:8b14 with SMTP id s7-20020ac24647000000b004f4d3248b14mr5600175lfo.14.1687193055446; Mon, 19 Jun 2023 09:44:15 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:13d0:1b6c:ce40:5429? ([2a05:6e02:1041:c10:13d0:1b6c:ce40:5429]) by smtp.googlemail.com with ESMTPSA id d22-20020a1c7316000000b003f80946116dsm11237825wmb.45.2023.06.19.09.44.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Jun 2023 09:44:15 -0700 (PDT) Message-ID: <4c2f66f1-2623-306f-f1d3-83a32a0c2885@linaro.org> Date: Mon, 19 Jun 2023 18:44:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v5 0/4] Support timer drivers as loadable modules Content-Language: en-US To: walter.chang@mediatek.com, Thomas Gleixner , Matthias Brugger , AngeloGioacchino Del Regno , "Maciej W . Rozycki" , John Stultz Cc: wsd_upstream@mediatek.com, stanley.chu@mediatek.com, Chun-hung.Wu@mediatek.com, Freddy.Hsin@mediatek.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20230517022557.24388-1-walter.chang@mediatek.com> From: Daniel Lezcano In-Reply-To: <20230517022557.24388-1-walter.chang@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 As I already said, I'm not very comfortable with these changes and the potential impact it can have on the overall time framework. I will pick the series if Thomas gives its Acked-by Thanks On 17/05/2023 04:25, walter.chang@mediatek.com wrote: > From: Walter Chang > > This set of patches aims to make SoC related timer drivers, such as > timer-mediatek.c become loadable modules for the Generic Kernel Image > (GKI). > > This driver registers an always-on timer as tick_broadcast_device on > MediaTek SoCs. If the system does not load this module at startup, > system will also boot normally by using built-in `bc_hrtimer` instead. > Besides, the previous experiment [1] indicates that the SYST/GPT, in > combination with a loadable module, is fully operational. > > The first three patches export functions and remove __init markings to > support loadable timer modules. > > The fourth patch makes timer-mediatek.c become loadable module for GKI. > > [1] > https://lore.kernel.org/all/32777456f8e0f98e4cd5b950f421d21f71b149cf.camel@mediatek.com/#t > > [v5] > - Add Signed-off-by tags in all patches > - Add Acked-by tags and Reviewed-by tags > > [v4] > - Fix review comments pointed by Angelo > > [v3] > - Rebase on linux-next > > [v2] > - Convert timer-mediatek.c driver to loadable module > > Chun-Hung Wu (4): > time/sched_clock: Export sched_clock_register() > clocksource/drivers/mmio: Export clocksource_mmio_init() > clocksource/drivers/timer-of: Remove __init markings > clocksource/drivers/timer-mediatek: Make timer-mediatek become > loadable module > > drivers/clocksource/Kconfig | 2 +- > drivers/clocksource/mmio.c | 8 ++++--- > drivers/clocksource/timer-mediatek.c | 33 ++++++++++++++++++++++++++++ > drivers/clocksource/timer-of.c | 23 +++++++++---------- > drivers/clocksource/timer-of.h | 6 ++--- > kernel/time/sched_clock.c | 4 ++-- > 6 files changed, 56 insertions(+), 20 deletions(-) > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog