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 EA8E9C433FE for ; Sun, 12 Dec 2021 19:05:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232113AbhLLTFA (ORCPT ); Sun, 12 Dec 2021 14:05:00 -0500 Received: from 49-237-179-185.static.tentacle.fi ([185.179.237.49]:48332 "EHLO bitmer.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231902AbhLLTE7 (ORCPT ); Sun, 12 Dec 2021 14:04:59 -0500 Received: from jarkko by bitmer.com with local (Exim 4.89) (envelope-from ) id 1mwU9X-0000o6-Rv; Sun, 12 Dec 2021 21:04:55 +0200 Date: Sun, 12 Dec 2021 21:04:55 +0200 From: Jarkko Nikula To: Tony Lindgren , linux-omap@vger.kernel.org Cc: =?iso-8859-1?Q?Beno=EEt?= Cousson , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Lezcano , Thomas Gleixner , Rob Herring Subject: Re: [PATCH] ARM: dts: Fix timer regression for beagleboard revision c Message-ID: <20211212190455.qbggbhmr5nquw7bw@bitmer.com> References: <20211125144834.52457-1-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 11, 2021 at 05:30:57PM +0200, Jarkko Nikula wrote: > Hi Tony > > On 11/25/21 16:48, Tony Lindgren wrote: > > Commit e428e250fde6 ("ARM: dts: Configure system timers for omap3") > > caused a timer regression for beagleboard revision c where the system > > clockevent stops working if omap3isp module is unloaded. > > > > Turns out we still have beagleboard revisions a-b4 capacitor c70 quirks > > applied that limit the usable timers for no good reason. This also affects > > the power management as we use the system clock instead of the 32k clock > > source. > > > > Let's fix the issue by adding a new omap3-beagle-ab4.dts for the old timer > > quirks. This allows us to remove the timer quirks for later beagleboard > > revisions. We also need to update the related timer quirk check for the > > correct compatible property. > > > > Fixes: e428e250fde6 ("ARM: dts: Configure system timers for omap3") > > Cc: linux-kernel@vger.kernel.org > > Cc: Daniel Lezcano > > Cc: Thomas Gleixner > > Cc: Rob Herring > > Reported-by: Jarkko Nikula > > Signed-off-by: Tony Lindgren > > --- > > > .../devicetree/bindings/arm/omap/omap.txt | 3 ++ > > arch/arm/boot/dts/Makefile | 1 + > > arch/arm/boot/dts/omap3-beagle-ab4.dts | 47 +++++++++++++++++++ > > arch/arm/boot/dts/omap3-beagle.dts | 33 ------------- > > drivers/clocksource/timer-ti-dm-systimer.c | 2 +- > > 5 files changed, 52 insertions(+), 34 deletions(-) > > create mode 100644 arch/arm/boot/dts/omap3-beagle-ab4.dts > > > I must have some error in my methodology since I cannot see the issue > being fixed with your patch :-( > Facepalm, as I was expecting I had error in my methodology... see below > cat arch/arm/boot/dts/omap3-beagle.dtb >>arch/arm/boot/zImage This I used years before your patch and by some reason I confused to use new omap3-beagle-ab4.dtb when testing your patch yesterday: > cat arch/arm/boot/dts/omap3-beagle-ab4.dtb >>arch/arm/boot/zImage without realizing my Beagle Board version is not between A to B4 but C2. So when using the omap3-beagle.dtb your patch fixes the regression I found. Tested-by: Jarkko Nikula