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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0A274ECAAD8 for ; Wed, 31 Aug 2022 05:08:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0951C8489D; Wed, 31 Aug 2022 07:08:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1661922505; bh=NgExwMupziv/t5gHcaPwQD+jbcHt+nBRtchhsk728HU=; h=Date:Subject:From:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=wuA+G8DxtvoX9b1hKj9SgjQgAQgaZiRKDl4lmZzwrO/nWTWrG9fcKKXov77hrf5Nv MB/lN+eF1tsqUW2am/OVy7+/PAZJgRZwSvi1fFFdVagt0uEPSwZUjZEXGBJVibywYc d1SVN1EuqKh1yNSn4PIaAOfnoAhA1L9R97D8Ey3oHXtqhzP8VMGQ9WZapX+WWoTkXc kP7ahH3KOjJPr6NAOqlfzqSAT9WqoLn3V7tlutGxRmcJFdyaivA2YvYlCdfjZVpClV Cu7ZyB8BrIGBo5+MsLMxai+nuDZeRB7SFFhqWsF2nJjtqn8OSwu1XrL9tN0qU/LLU7 QOdl2rSMc6Rag== Received: by phobos.denx.de (Postfix, from userid 109) id C9CDC84994; Wed, 31 Aug 2022 07:08:23 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [IPv6:2001:67c:2050:101:465::107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AF50884898 for ; Wed, 31 Aug 2022 07:08:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4MHXJ35vwNz9sR4; Wed, 31 Aug 2022 07:08:19 +0200 (CEST) Message-ID: Date: Wed, 31 Aug 2022 07:08:18 +0200 MIME-Version: 1.0 Subject: Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards Content-Language: en-US From: Stefan Roese To: Tony Dinh Cc: U-Boot Mailing List , =?UTF-8?Q?Pali_Roh=c3=a1r?= , Michael Walle References: <20220830115317.410812-1-sr@denx.de> <282eefe1-58d4-89cd-f940-2428bdd42b59@denx.de> In-Reply-To: <282eefe1-58d4-89cd-f940-2428bdd42b59@denx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4MHXJ35vwNz9sR4 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Hi Tony, On 31.08.22 07:02, Stefan Roese wrote: > Hi Tony, > > On 31.08.22 00:15, Tony Dinh wrote: >> Hi Stefan, >> >> On Tue, Aug 30, 2022 at 4:53 AM Stefan Roese wrote: >>> >>> This patchset enhaces the recently added Orion Timer driver to support >>> all other Kirkwood & 32bit MVEBU Armada platforms. Additionally, this >>> timer support is then enabled per default for those platforms, so that >>> the board config files don't need to be changed. Also necessary is >>> some dts hacking, so that the timer DT node is available in early >>> U-Boot stages. >>> >>> I've successfully tested this patchset on an Armada XP board. Additional >>> test on other boards and platforms are very welcome and necessary. >> >> I've run some tests with the following 2 Kirkwood boards: Cloud >> Engines Pogo V4 88F6192 (with CONFIG_DM_RTC and CONFIG_RTC_EMULATION), >> and Marvell Sheevaplug 88F6281 (with CONFIG_DM_RTC and CONFIG_RTC_MV). >> >> It seems that it was either frozen or the timer did not expire at some >> subsequent sleep commands. Sometime it happened at 2nd command, some >> time at a later sleep command. For example, >> >> === Pogo V4 (the 1st sleep command works correctly at 10 seconds on my >> stopwatch) >> >> U-Boot 2022.10-rc3-00048-g66ccd87a9c-dirty (Aug 30 2022 - 13:38:24 -0700) >> Pogoplug V4 >> >> Hit any key to stop autoboot:  0 >> Pogo_V4> sleep 10 >> Pogo_V4> sleep 31.5 >> > > Does the cmd interface support fractial numbers? Please test again with > 31 or other integral numbers. > >> === Sheevaplug (RTC battery is old, so the date was not updated, but >> the clock seems OK) >> >> U-Boot 2022.10-rc3-00048-g66ccd87a9c-dirty (Aug 30 2022 - 14:14:24 -0700) >> Marvell-Sheevaplug >> Hit any key to stop autoboot:  0 >> => date >> Date: 2000-01-01 (Saturday)    Time:  0:02:55 >> => sleep 10 >> => date >> Date: 2000-01-01 (Saturday)    Time:  0:03:18 >> => sleep 10 >> => sleep 20.1 >> >> >> Please let me know what I can do (i.e. perhaps running a debug patch). > > Please see above. I assume that the fractional numbers result in very > long numbers internally, which result in a frozen / hanging system. I just tested fractional numbers on another board and hey, it just works. Learned something new. So we seem to have a problem here. Let me see, if I can find something. Thanks, Stefan