From patchwork Tue Mar 1 10:43:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 12764543 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 1605FC433EF for ; Tue, 1 Mar 2022 10:45:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=dp2fsgjdXSBMh9KIa54s0hcKDsPqJMgBhN/NmOepckc=; b=LyqzRAhOJQFxiP I4dUPSbOfamWD9L0il3lyta2HVqgFFFEwL4fvi3Ms/LWPmSxRrf++EACbF/ItNMA6jhcI32I0HbR/ d2Ptp34j6w6n2JJ6u3oZxLAMsQ2NEWSOUewNVvWfvXdDzW3iRT1jhH+L/RrgpwUDrRRRjFXlzqMeZ iTadqnjG8gHIH2POfK/b0LWDmUF9OnI8vGo5rMiMIQ/hQIBuYAkHFlE4nOScfdcscvcxeAK6wa3lc NV+UksKVGgXtnkDUOdTVtAaHW905HxgB9dzCFE1h6QC380oa1o2O4kMwHZTmMh80bsnn4nPk9XGiS R9B2dQ2KqbF1cg2raPEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOzzB-00GBHU-V3; Tue, 01 Mar 2022 10:44:06 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOzz8-00GBGZ-FQ for linux-arm-kernel@lists.infradead.org; Tue, 01 Mar 2022 10:44:04 +0000 Received: by mail-pl1-x62b.google.com with SMTP id s1so13100952plg.12 for ; Tue, 01 Mar 2022 02:44:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qmdWZ0Ngl9nlWWgEJzu97RHRmPhanMjm7buTdrAowbQ=; b=QnSZWYzZdu9pqqIrseh0j/wMKrMxCoz1ovhyc32RMroAy9PX81dIaqyWXzuBcd+Ing 38+fyN5e1R5RX5MjBQ2hFz81qRwouo2brDxy+SavYZ15NksmlfWinKxuEjsCXLX1twnK 2M/vcNiXIbmFtFvCY2cHvFLR2XHsbBdBzUOL4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qmdWZ0Ngl9nlWWgEJzu97RHRmPhanMjm7buTdrAowbQ=; b=wAhhMS2ZYUHljxFrb0LbGgHPFBOE8/BJ7NnTY1xQKGpdLqF5YJifPWbur7BMW/e/Dp Fzivh1e+rxcNg/bbfPViWyP7t5nrfMhXOEMUJxAsbV7jdi9Au0AZQE0mX1M/Mait7lsK hzw7VrJRRu44N6MOgewwSsdS2ft8aN1ojM13l+Ar49SwIcYE29yg/2ziqs6eSuUZv9QY N5zNA0bhQ+YjF9XXNyaPQYrN/G8A9rrCly7EExNTruSgIAN/SQ5qRStxNw1dNptS7v7E YeuagySyTuouPHnKZtlLjG5rdwayJWTBPEV6RZkhjwdF8BgVZ6nXJTeohdd4obY3bpAg Op3g== X-Gm-Message-State: AOAM530Mf0nIObnSQWcISXBTquF5+bnHmfdSHgQZv+tdwTZkclfD/IFS 0hWzLuJNeBE3lBJKnIqNHoCVVnl7JtfGWA== X-Google-Smtp-Source: ABdhPJwrSX2GUxypOi5r5JZLVm6VZm/peM4ozIYt2gLhPM/CN+YBAry5prx9rHsksurFwbXdzwGRCg== X-Received: by 2002:a17:902:cf02:b0:14f:e0c2:1514 with SMTP id i2-20020a170902cf0200b0014fe0c21514mr25090497plg.90.1646131440627; Tue, 01 Mar 2022 02:44:00 -0800 (PST) Received: from shiro.work ([2400:4162:2428:2f01:7285:c2ff:fe8e:66d7]) by smtp.googlemail.com with ESMTPSA id m20-20020a634c54000000b003739af127c9sm12832867pgl.70.2022.03.01.02.43.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Mar 2022 02:44:00 -0800 (PST) From: Daniel Palmer To: soc@kernel.org, arnd@arndb.de, olof@lixom.net, romain.perier@gmail.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH] ARM: mstar: Select HAVE_ARM_ARCH_TIMER Date: Tue, 1 Mar 2022 19:43:49 +0900 Message-Id: <20220301104349.3040422-1-daniel@0x0f.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220301_024402_648453_30E2FDCF X-CRM114-Status: GOOD ( 12.70 ) 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 The mstar SoCs have an arch timer but HAVE_ARM_ARCH_TIMER wasn't selected. If MSC313E_TIMER isn't selected then the kernel gets stuck at boot because there are no timers available. Signed-off-by: Daniel Palmer --- I moved one of my CI builds from a 5.16 based tree to a 5.17 based one and it stopped booting. At some point I had broken my DTB so the MStar timer wasn't getting probed anymore and at the same time the arch timer driver wasn't getting built in. I'm not entirely sure why the arch timer driver was built before but isn't now. Anyhow, all of the other ARMv7 machines seem to do this so I guess it's right. Arnd/Olof, please apply directly if acceptable. Maybe this should be in 5.17 as a fix? arch/arm/mach-mstar/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-mstar/Kconfig b/arch/arm/mach-mstar/Kconfig index cd300eeedc20..0bf4d312bcfd 100644 --- a/arch/arm/mach-mstar/Kconfig +++ b/arch/arm/mach-mstar/Kconfig @@ -3,6 +3,7 @@ menuconfig ARCH_MSTARV7 depends on ARCH_MULTI_V7 select ARM_GIC select ARM_HEAVY_MB + select HAVE_ARM_ARCH_TIMER select MST_IRQ select MSTAR_MSC313_MPLL help