Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D75EBC64ED6 for ; Wed, 15 Feb 2023 14:47:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229921AbjBOOqv (ORCPT ); Wed, 15 Feb 2023 09:46:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229811AbjBOOqo (ORCPT ); Wed, 15 Feb 2023 09:46:44 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DD68D392A9 for ; Wed, 15 Feb 2023 06:46:34 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 30A1A1042; Wed, 15 Feb 2023 06:47:17 -0800 (PST) Received: from bogus (unknown [10.57.10.143]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 282553F703; Wed, 15 Feb 2023 06:46:30 -0800 (PST) Date: Wed, 15 Feb 2023 14:46:27 +0000 From: Sudeep Holla To: AngeloGioacchino Del Regno Cc: walter.chang@mediatek.com, Daniel Lezcano , Sudeep Holla , Thomas Gleixner , Matthias Brugger , "Maciej W . Rozycki" , John Stultz , Krzysztof Kozlowski , 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 Subject: Re: [PATCH v2 4/4] clocksource/drivers/timer-mediatek: Make timer-mediatek become loadable module Message-ID: <20230215144627.ddjc7x365qdnhymi@bogus> References: <20230214105412.5856-1-walter.chang@mediatek.com> <20230214105412.5856-5-walter.chang@mediatek.com> <20230214222021.k3tsfwezhnh7tdlx@bogus> <996b4e61-8486-d939-7367-1240b3c5c5fa@collabora.com> <20230215131849.mcgz53jf24atialp@bogus> <53f0e612-b5cc-262e-df98-add1e8a06573@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53f0e612-b5cc-262e-df98-add1e8a06573@collabora.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 15, 2023 at 02:30:51PM +0100, AngeloGioacchino Del Regno wrote: > > Both. I mean that these platforms do have architected timers, but they are stopped > before the bootloader jumps to the kernel, or they are never started at all. > > Please refer to: > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/clocksource/timer-mediatek.c?h=next-20230215&id=327e93cf9a59b0d04eb3a31a7fdbf0f11cf13ecb > > For a nice explanation. > Thanks for that. Well then I see no point in making these modules if you can't have generic Image that boots on all the platform. I now tend to think that these are made modules just because GKI demands and it *might* work on one or 2 platforms. One we move this as modules, how will be know the Image without these timers or with them built as modules will boot or not on a given mediatek platform. Sorry, I initially saw some point in making these timers as modules but if they are required for boot on some systems then I see no point. So if that is the case, NACK for these as it just creates more confusion after these are merged as why some Images or even why defconfig image(if we push the config change as well) is not booting on these platforms. It is no longer just for system timer useful in low power CPU idle states as I initial thought. -- Regards, Sudeep