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 D4A68C433F5 for ; Sat, 29 Jan 2022 21:06:44 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=g9nHPNif9fYnDEUtet6vOUnOpaeUL1vatZJMqHYyN4s=; b=it/HE71Ob62o7K oIs6mb09VMQOD41VQ0Kj8rHH2lf8/oMNSC7/xKe5tnVcic0vVMx+coN+6rUfUHZExLmM/EaXaNFMj q2PRNOlHnYKviS/puvxu16VGOJmu4buC4686B+A2kUCgUofYFTLwCJoHi2JeJBs5f+CY/YNGcS3Qs pFsz/fXYpUboPSzgYPeOtlsHWw7NZUxEiFTg8r/PtkJPQsYrMkZwxmhebd3FGrNtfnEgV1TKwBqj8 nG9ilZfpH2c2z7SVnvA1oq43uRDhdAEjqIRnvOlpvaoUGKOJotduMIrbfoV3Ab9L9QO0FlSPry1Sv MAu2It3LiM1wf1FCjsUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDuuH-005QaU-RI; Sat, 29 Jan 2022 21:05:13 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDuuD-005QZo-Dx for linux-arm-kernel@lists.infradead.org; Sat, 29 Jan 2022 21:05:11 +0000 Received: by mail-pl1-x636.google.com with SMTP id y17so9196948plg.7 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=H7osl682WqgB9itGOsr+7rJ4/cdLs4E0Dms3CtctxE2AAueMbw5DrR7nlAOTYj5XIL SZsRCSciJa+O4OYD7j9OU9Bt3xXqC8FgT7hsM5xYSOzwdwnvP1cHZqTmVbIcB5K67Uqt rpRT1DQs7HC3sSJLkGXYlITQgp37Krg1XO4q4PtDKFGJt5YlRBOuv/SWBP2x8PPSzSAE 92Fhhc7mEW1FnJT6lR0+Y/hyvVYuRAGWZbmkuix75FyUcslxv0/BJMAwKSlUddRFssnv WzMGEpmQx+/cSM/21qW0XC5HjZuZcDliIkR07HXr+uQJbLY1+suH+uGXTytNcXC7WygQ HvfA== X-Gm-Message-State: AOAM533Z+iAnLe7qQbP7yI/iRNGMj4C4Zg2YfJNcoSa4EWtPo/hLWx2o O+uf9feqi9DiiAgMhVCkeIv82g== X-Google-Smtp-Source: ABdhPJwjpG3OiPfI97msJffsJIBxd35YRlUPDoyKmkHH7MxwyWq/knvXfXMs/N182qeFHWduDIH2qw== 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 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-Disposition: inline In-Reply-To: <20210323074326.28302-3-tony@atomide.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220129_130509_521014_B9B2CCE2 X-CRM114-Status: GOOD ( 14.38 ) 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: , Cc: Tero Kristo , Keerthy , Daniel Lezcano , linux-kernel@vger.kernel.org, Thomas Gleixner , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel