Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753274AbdLHMvy (ORCPT ); Fri, 8 Dec 2017 07:51:54 -0500 Received: from mail-wm0-f42.google.com ([74.125.82.42]:46904 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752965AbdLHMvu (ORCPT ); Fri, 8 Dec 2017 07:51:50 -0500 X-Google-Smtp-Source: AGs4zMZb6TgN2GTIgWHn2ULuVOi62oTlpunm99TYqmiBJ0DjpW1GRqBRqnNfaXKStP/tG9xToCKzNg== Subject: Re: [PATCH v9 3/6] clocksource: stm32: only use 32 bits timers To: Benjamin Gaignard , robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, tglx@linutronix.de, arnd@arndb.de Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20171208113250.359-1-benjamin.gaignard@st.com> <20171208113250.359-4-benjamin.gaignard@st.com> From: Daniel Lezcano Message-ID: <56efa18e-481b-bd1b-7a54-db4a21073313@linaro.org> Date: Fri, 8 Dec 2017 13:51:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171208113250.359-4-benjamin.gaignard@st.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1706 Lines: 48 On 08/12/2017 12:32, Benjamin Gaignard wrote: > From: Benjamin Gaignard > > The clock driving counters is at 90MHz so the maximum period > for 16 bis counters is around 728us (2^16 / 90.000.000). > For 32 bits counters this period is close 47 secondes which is > more acceptable. > > When using 16 bits counters the kernel may not be able to boot > because it has a too high overhead compare to the clockevent period. > Downgrading the rating of 16bits counter won't change anything > to this problem so this patch remove 16 bits counters support > and makes sure that they won't be probed anymore. Benjamin, there is an inconsistency in this description and the patchset. This is why it is so confusing to review and understand the purpose. Why are you preventing the clockevents to work with 16bits while the issue is related to the clocksource you introduce in the next patch ? Also, why are you removing the DT nodes ? Accept to register the clocksource only if it is a 32bits timer. Let the clockevents to register themselves and have the rating to sort out the this. I do believe that is what Thomas asked you the first time. You can keep the hardware description in the DT and boot gracefully with the first 32bits timer succeeding the init. Take the time to think about it, comment and let's reach an agreement before you send another version, I'm tired to review again and again these stm32 timers. Thanks. -- Daniel -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog