Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp344185pxb; Tue, 1 Feb 2022 00:45:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSlCyKsGnxvxFi4GEfZd2bl2Rj3ysn4isRy7va0V93BF30OgaKX7cVbEDppk5o+U5FMsPK X-Received: by 2002:a17:902:a509:: with SMTP id s9mr25405321plq.134.1643705101529; Tue, 01 Feb 2022 00:45:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643705101; cv=none; d=google.com; s=arc-20160816; b=bAnRr2g4sXhgrB89qABxaRQEnpH8EUwDrsQpexB2/ykMbSBe5xj2L9GQ8x1wanhT/a nTa0XygfZ0XhHt0XgGJFPlNCfXT6im+feM8hg6W5D509kJxNmfOmjhjHYNvNPIXAmGO5 ecUuZgB6Vb327hR5DxIkiAxd5riiSXm0DWsHASSTkEWUO26OkHvT46y6ronZ9ZCoeajb 93pOoYf1YHcEZLm4T8TcAcMPVSGSYGFC9cR0BZBgtWKI2fDNq1NmNO2sI5xtGFkyFjJs X4kHk4Np9ULtaQs+UkFEhLHYQ7SW+VlEN0iXvRCHstFDfoYqT+We7pOarqP0bA76oSwT /Ehw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hUntcolkKoG81YeeiCT2Ivi3zNzCUdhrxI8/sMLFU2E=; b=Qul5UTB73AYJpjKJaQyacrechsMtt3SoFxKQ37MKjXMpa9GxvITDN9Lots7s57Xfln C6LNyJ3muZrs1wAfXZ60ofObrgFScoCqUZFdXiuswMor/bc3uM1dQHJagdl3QO4w7koq 7Mj/80PZ/Q4wg4WlztNTB70cloeMqysacEqRjOvqYwSDGT4w6SNq8Bl/DfIlA8v8+meO FGVcYeZjdoiLJH40ORw4+u+L+7gmkpJWS4Meum7rNUujYHuO8xBmk3dir0KF7ojojlBu K/Ee89scaNkh+1D1a/VFljobhzEtMDEg8Rsqpc8w4jGU0h6e+hLXGQCiJ68bZuA2tW2x q7IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=G3AzFjJJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r186si16095336pgr.655.2022.02.01.00.44.49; Tue, 01 Feb 2022 00:45:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=G3AzFjJJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353212AbiA2VFK (ORCPT + 99 others); Sat, 29 Jan 2022 16:05:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346309AbiA2VFI (ORCPT ); Sat, 29 Jan 2022 16:05:08 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8825EC061714 for ; Sat, 29 Jan 2022 13:05:08 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id j16so9214239plx.4 for ; Sat, 29 Jan 2022 13:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=hUntcolkKoG81YeeiCT2Ivi3zNzCUdhrxI8/sMLFU2E=; b=G3AzFjJJ92ol7qLFDRRFSLfp/CLaSfxoqvRBEUwKQpdQHZLFvCJkOnS08WK68jfAIe GNSwYfv/zfiRiwJdVfwDklXj0ALbg9RZixiie8z+SReymEqrbbIqckj/W7GtDnRANA4/ ZcaXGVYH/u6VCjmvU7qEAJAcCzOj60u1qzEfDJ/e6RWmtBhVvocYJy81jzNC4BDLDOIL 1a3nHaA/bBkmYr3zZ9uXE2C8uCF5IoOmAn+J5OxWWgPELVDD5yEOjFQv+W3qN9tpHVPJ kV4sIQzINoZPDkTpK+ecwyf/9HOtO9bfQDmueFsGRWagkW3AgqDlSzJLjfFFxpmyzkcK AU5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hUntcolkKoG81YeeiCT2Ivi3zNzCUdhrxI8/sMLFU2E=; b=8PCQ+qEWQ1nJrEXCygBOCrOthfb36rJjrYisDSi8CzgcvQPPyB4VddVha08tQhRucy aHRrbrRSDs2gtYo6BJd5Z24FHiDTaVXtM5ZqMKv32/NRV0lmaQ7i51qlVh+VVXpZtHvp GrD5q7yLbcj4/ncz0+hDPcxw8/AG3kVM2GcT0Mtkdg19M8PEQkfFXzcGexksVTJLn66j I4D6CrFBw4pir47lTre3iAetI5+eTdOdEmGba7FChHiVI0ncGvS3kWurLrjeNny4/vPz zCU9tK0QiD/ntERa4b780in+WJ6UtvstdFvsXuGJekQmJOsqwcHB5wevTNEonkOgkEQs mr3Q== X-Gm-Message-State: AOAM532EbRFMK87UmptBApfApDf8cp+bbXV+XyPvLSU+29D223P8ZJDN wiFWvTQLPHrtbCxLiZUqlgHuJw== X-Received: by 2002:a17:90b:23d4:: with SMTP id md20mr21278863pjb.199.1643490308052; Sat, 29 Jan 2022 13:05:08 -0800 (PST) Received: from x1 ([2601:1c2:1001:7090:638f:aa01:c56a:78da]) by smtp.gmail.com with ESMTPSA id j14sm13857007pfj.218.2022.01.29.13.05.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 13:05:07 -0800 (PST) Date: Sat, 29 Jan 2022 13:05:31 -0800 From: Drew Fustini To: Tony Lindgren Cc: Daniel Lezcano , Thomas Gleixner , Keerthy , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tero Kristo , Suman Anna Subject: Re: [PATCH 2/2] clocksource/drivers/timer-ti-dm: Handle dra7 timer wrap errata i940 Message-ID: References: <20210323074326.28302-1-tony@atomide.com> <20210323074326.28302-3-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210323074326.28302-3-tony@atomide.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 23, 2021 at 09:43:26AM +0200, Tony Lindgren wrote: > There is a timer wrap issue on dra7 for the ARM architected timer. > In a typical clock configuration the timer fails to wrap after 388 days. > > To work around the issue, we need to use timer-ti-dm percpu timers instead. > > Let's configure dmtimer3 and 4 as percpu timers by default, and warn about > the issue if the dtb is not configured properly. Hi Tony, This causes a conflict for IPU2 which is using timer 3 and 4. From arch/arm/boot/dts/dra7-ipu-dsp-common.dtsi: &ipu2 { mboxes = <&mailbox6 &mbox_ipu2_ipc3x>; ti,timers = <&timer3>; ti,watchdog-timers = <&timer4>, <&timer9>; }; I noticed an error ("could not get timer platform device") when booting mainline on a BeagleBoard X15 (AM578): omap-rproc 55020000.ipu: assigned reserved memory node ipu2-memory@95800000 remoteproc remoteproc1: 55020000.ipu is available remoteproc remoteproc1: powering up 55020000.ipu remoteproc remoteproc1: Booting fw image dra7-ipu2-fw.xem4, size 3747220 omap-rproc 55020000.ipu: could not get timer platform device omap-rproc 55020000.ipu: omap_rproc_enable_timers failed: -19 remoteproc remoteproc1: can't start rproc 55020000.ipu: -19 I switched this errata fix to use timer 15 and 16 instead which resolves the error. Do you think that is an acceptable solution? If so, I will post the patch to the list. Thanks, Drew