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 F41C3C54E94 for ; Wed, 25 Jan 2023 16:41:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E0CD7856A4; Wed, 25 Jan 2023 17:41:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="BXorCpoC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 46B39854C2; Wed, 25 Jan 2023 17:41:17 +0100 (CET) Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B8E9285666 for ; Wed, 25 Jan 2023 17:41:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=thierry.reding@gmail.com Received: by mail-ed1-x530.google.com with SMTP id s3so22438317edd.4 for ; Wed, 25 Jan 2023 08:41:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=8zIr30Fs8UgJRH36Yf4qNGWTDk54AZw3UPlHxeaKsIo=; b=BXorCpoCGyVn9CQTPuKhBg+qps45y9F7pPXX4Q4TXeT84tvciqoOQJHJKkCOaq4i/r LubuS/OzxXmvsAPhEeZ1wsV6rrzru8FAmlTvo2/zUXAsOq4dDaahIiBN4w+rHxAOOtv4 7Dt+ukyrlmv0wAAR3bNLXYemy+KAoChJYGfb73ME8NovmsgqeysXBjCcA3GR5DwVcAo9 C92OKdKeduPuovqAhb+PZpTqHdzdWxr2vBi5t6csecHoBfOvBHum6WAJ803dIyqHToXT b134GVRJ3yHmnwjOnMHbeCIIKZ/R0qBw1Z+u4emQwodZeG9WMEPM+DBMvSa/6YI/aVtA cPQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8zIr30Fs8UgJRH36Yf4qNGWTDk54AZw3UPlHxeaKsIo=; b=zHMNxGnYK9SR8FbhgfaZWCIdnhwuR8OrDiSZIQDLFC5FpQk4T+FED90QF6rgA6+tRC Z9D4UbumB5ERCIxbgEykByBgm4mlLMVFLdsEW25hOXHn0V3ou2se7EXvYI3yvKcG4h8R ZGQf2uqOoASs4V5ESfbLb8yldDfMoWEDQlAhYAdFHHQsajQCoSf5sKhxFXtokyu+hssI 7SaHy6Z0EMUwb0epRkgedLSZPC50Yc7yBjpTn+XSAhxDx89dZ/fKl6i00Zv/nlqbuJv3 rRIEfT+8xfXBcOsEiru70yEchIC8yd2AiEXoK2dYdsYaGZb8eDmHYjjIa/AGtyTEhDDB oVYg== X-Gm-Message-State: AFqh2koNXV2AyV6BJRWGlO82EunPcWsBvTvv5EljbyMcXf3IcoZWonLB BkDTjaUZO5yGJTLv51ej1v0= X-Google-Smtp-Source: AMrXdXu5ycGXS6zeH+mC/U7zeihNCJ+18CjXdFRC6iupko/IiMOgA0y+kFhc0JBLPK44y4+W8+5Y/Q== X-Received: by 2002:a05:6402:28ca:b0:499:70a8:f91a with SMTP id ef10-20020a05640228ca00b0049970a8f91amr34066798edb.19.1674664871186; Wed, 25 Jan 2023 08:41:11 -0800 (PST) Received: from orome (p200300e41f201d00f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f20:1d00:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id r11-20020aa7d14b000000b0046ac460da13sm2093770edo.53.2023.01.25.08.41.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 08:41:10 -0800 (PST) Date: Wed, 25 Jan 2023 17:41:08 +0100 From: Thierry Reding To: Svyatoslav Ryhel Cc: Rayagonda Kokatanur , Tom Warren , Marek Vasut , Maxim Schwalm , Dmitry Osipenko , Heinrich Schuchardt , Michal Simek , Stefan Roese , Eugen Hristev , Michael Walle , Simon Glass , Jim Liu , William Zhang , Rick Chen , Stefan Herbrechtsmeier , Andre Przywara , Jaehoon Chung , u-boot@lists.denx.de Subject: Re: [PATCH v6 0/3] Timer support for ARM Tegra Message-ID: References: <20230124065751.5973-1-clamor95@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RtLOELIvX7llx0us" Content-Disposition: inline In-Reply-To: <20230124065751.5973-1-clamor95@gmail.com> User-Agent: Mutt/2.2.9 (2022-11-12) 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 --RtLOELIvX7llx0us Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 24, 2023 at 08:57:48AM +0200, Svyatoslav Ryhel wrote: > - ARM: tegra: remap clock_osc_freq for all Tegra family > Enum clock_osc_freq was designed to use only with T20. > This patch remaps it to use additional frequencies, added in > T30+ SoC while maintaining backwards compatibility with T20. >=20 > - drivers: timer: add timer driver for ARMv7 based Tegra devices > Add timer support for T20/T30/T114 and T124 based devices. > Driver is based on DM, has device tree support and can be > used on SPL and early boot stage. >=20 > - ARM: tegra: include timer as default option > Enable TIMER as default option for all Tegra devices and > enable TEGRA_TIMER for TEGRA_ARMV7_COMMON. Additionally > enable SPL_TIMER if build as SPL part and drop deprecated > configs from common header. >=20 > P. S. I have no arm64 Tegra and according to comment in=20 > tegra-common.h > Use the Tegra US timer on ARMv7, but the architected timer on ARMv8. >=20 > Svyatoslav Ryhel (3): > ARM: tegra: remap clock_osc_freq for all Tegra family > drivers: timer: add timer driver for ARMv7 based Tegra devices > ARM: tegra: include timer as default option This causes a regression on Tegra210 (Jetson TX1). I'm trying to investigate, but it's complicated by the fact that I'm not getting out any debug prints, so I suspect the issue is happening quite early. Thierry >=20 > arch/arm/Kconfig | 1 + > arch/arm/include/asm/arch-tegra/clock.h | 9 +- > arch/arm/mach-tegra/Kconfig | 2 + > arch/arm/mach-tegra/clock.c | 17 +++- > arch/arm/mach-tegra/cpu.c | 70 ++++++++++--- > arch/arm/mach-tegra/tegra114/clock.c | 13 +-- > arch/arm/mach-tegra/tegra124/clock.c | 13 +-- > arch/arm/mach-tegra/tegra20/clock.c | 4 +- > arch/arm/mach-tegra/tegra210/clock.c | 22 +---- > arch/arm/mach-tegra/tegra30/clock.c | 10 +- > drivers/timer/Kconfig | 8 ++ > drivers/timer/Makefile | 1 + > drivers/timer/tegra-timer.c | 126 ++++++++++++++++++++++++ > drivers/usb/host/ehci-tegra.c | 46 +++++++-- > include/configs/tegra-common.h | 6 -- > 15 files changed, 269 insertions(+), 79 deletions(-) > create mode 100644 drivers/timer/tegra-timer.c >=20 > --=20 > 2.37.2 >=20 --RtLOELIvX7llx0us Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmPRW6IACgkQ3SOs138+ s6FL5BAAto1ffjsfQMAdCv0B0vxy9Ll+OxzobASmy+k5rP4703ZqpzvLtFAnaLnO e8fus6xit79KdyAmmg9ni6UxpLdyGQBFKq03kp9rK6w8aOVw62HfQ3L/uM+neCtz qRQ0V1uPJ723J76uAzO3lthB0G1l7CvN+QGakT3vcmE57mr7/v5BHDU6cnOABfwt VWST2DgJZqoDiMe2um9yk28Bf8PNZSQkzXI+KXhU8ENspMOjk2bEbqWBVATR+c4H IYHgTTo8y/MKP1Sw1HNGi9PzBf+gkebw5DwksmtICvnlH8tDFxaQIA0qGGSW3Jg9 R6sQuqzROIaxkBEW+6Jo+s+X3pDlSbLt24AU805XS3jGxdL9pqnsVz+SmNSeXN0D xgzh7Ogjz7V8aZjK07D/tibcbNttaMUc9QqQavK2Lg251TocHNFhFqKVY25A57Cc 9rkqA545RGFELyhK/K9ZPKcI8VOBxEKcnEk+xS142Ogg1Nn34RoGLcGXH/9NcLpg 6blN6MPYwLhSrranH0Q3ON+Nid2D4Qr+0n2gA+5xtZfEi9nzArgorlq/i8Rb2S2Z 9Qr9t+yz/i/FHvEJgTRqxpRqoWpRuMPOHBXssOaBVsEZBiSjIjh/Fr1GZ6zwTGCE XyV0QviOW1E8koLMCoh1J7hLaPsLE93NuHQ92dN+1XQteLXb1Ls= =Mtnh -----END PGP SIGNATURE----- --RtLOELIvX7llx0us--