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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E5708CD98D2 for ; Thu, 11 Jun 2026 07:56:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0JJRQDfwFlySaJlWRSDpfSAl2Vf46aH/2FA/Y0ddwyc=; b=SYzXhMDCEvHaf0mM3X/KrZgi92 yfqGwc97OAnB5klBawVNZDJjZSyAxLNyvz9RXQGruWqYLfOWtOoYs8at7FRzcuQHIdT7v3UXosqMr bSfcT6lVcR3hotMbv9F4bMybuO4qPXc3NUoE/nhwEz3otyu4GxgiRKkACRfJ7M4i2zmcMsyQC9qfk 3dcx5/HPCL36BymNlrjNG/WT0Hhlbm2jkN8ENpqbz1SJLgos244fPsaqhFKOnpNOI1LQxclQD+IJI jWoj7+2mSuciPAXxmisIpqXKZif7cZiGdmz1q66LvkXAvajMgHsCLPwYp466Dmk5/elpBN+AfCbkQ oIhraalw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wXaGr-00000008vAU-2vF2; Thu, 11 Jun 2026 07:56:13 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wXaGq-00000008v9n-2NZM for linux-arm-kernel@lists.infradead.org; Thu, 11 Jun 2026 07:56:13 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 03F66600AA; Thu, 11 Jun 2026 07:56:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AADFD1F00893; Thu, 11 Jun 2026 07:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781164571; bh=0JJRQDfwFlySaJlWRSDpfSAl2Vf46aH/2FA/Y0ddwyc=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=ZivF/jAa3LXIyu+8lwjnjq7Tx9EpszTJdfGEGCfHvmeKdWuvJbfcXV4jhiADOWW8F R6DSsSeyA/SlETFyjKHZL1qTWieUUnb5Ehlpj3xXUPSVyj9vQ6TDztHWy2SYoZias0 gVHMqLeXDrAopCoDMO8mBjrRQxOiyJVfEI3jYtU3a9Ef+qppdIUt1KLZh/oTTLyQI+ a66xMaI7BbjhemNbNcG9QTiPqHRWJh+DEm0m0/igf0ds4xnN2IHnmvc44SKBDSbDCa YqK7w6WqChGSa5VAFfJCgHJTZstVfsP1YbM22xhipZpFIYR0q0yMJbZYgzLihsh5G6 uhw0OGn20DrIw== Received: from sofa.misterjones.org ([185.219.108.64] helo=lobster-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wXaGm-0000000Bemv-3P9i; Thu, 11 Jun 2026 07:56:09 +0000 Date: Thu, 11 Jun 2026 08:59:19 +0100 Message-ID: <87se6t8q3s.wl-maz@kernel.org> From: Marc Zyngier To: Stephan Gerhold Cc: Mark Rutland , Daniel Lezcano , Thomas Gleixner , Sudeep Holla , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Jack Matthews Subject: Re: [PATCH 0/2] clocksource/drivers/arm_arch_timer_mmio: Restore support for early init In-Reply-To: <20260610-arm-arch-timer-mmio-early-v1-0-ac17218ec8b4@linaro.org> References: <20260610-arm-arch-timer-mmio-early-v1-0-ac17218ec8b4@linaro.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: stephan.gerhold@linaro.org, mark.rutland@arm.com, daniel.lezcano@kernel.org, tglx@kernel.org, sudeep.holla@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, jack@jackmatthe.ws X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 10 Jun 2026 18:53:09 +0100, Stephan Gerhold wrote: > > Jack reported a regression for some single-core Qualcomm platforms (e.g. > MDM9625, MDM9607) that no longer boot because no timers can be found during > early boot [1]. Again, this is *not* a regression. These machines were *never* supported upstream. > These platforms rely on an obscure timer setup where the > global Arm MMIO timer (arm,armv7-timer-mem) is used as the only available > timer for the CPU. This setup used to work fine until commit 0f67b56d84b4 > ("clocksource/drivers/arm_arch_timer_mmio: Switch over to standalone > driver") when the early timer initialization using TIMER_OF_DECLARE() was > removed when moving to the standalone MMIO driver. > > There doesn't seem to be any other usable CPU timer on those platforms, so > this series restores the early timer support using TIMER_OF_DECLARE() > inside the new standalone arm_arch_timer_mmio driver. This is pretty ugly, > but I could not think of a better solution so far. I tried to keep the > ugliness for the two probe paths as limited as possible. :-) > > If someone has a better idea how to solve this, I would be happy to try it. I would suggest finding out what is the latest point in the init sequence where the timer can be probed without preventing boot. M. -- Jazz isn't dead. It just smells funny.