Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4038277ybl; Mon, 3 Feb 2020 11:19:04 -0800 (PST) X-Google-Smtp-Source: APXvYqwuITB9KZpd+upFn7hEG34nBx8VyXAAwynG6ywxEAZ15uNkh87dnikn3flFWQmzBqf54+YV X-Received: by 2002:aca:b808:: with SMTP id i8mr408817oif.66.1580757544666; Mon, 03 Feb 2020 11:19:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580757544; cv=none; d=google.com; s=arc-20160816; b=seAQUGXr7SnHXZ0LGhZAcxfJq6zehv7mleCoLYqpwzAWLtIOKgwDspB427qisi0wyk VNnY2q2Hj4t2YKMGnedmqUWQBo8Lu57NSsnqTE2wV2d+F7ucdyOB7MEJu95uNBU5EOg4 nMS67nkhn15OHrcCrigO6828x+laVE9Xdapc58l9jbAlVvYPojw+KAFCB5KRqf5bQY+/ WW1U+UIKgpuUB0kqDSzw+99RmkvCmmU2KsoVzUh4hIyLWpr2MhBFTNPAYIJik3QEDKhE CXWDiqO+yuRFX0MtypPDe1MO7ZqbD8PNKzWrdNEV5hSL7X9O1tKj1euS3JWTsWEaItJK gs7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=MIHnjW9DTdjLYVHpcrscLaDzrNCRTs/nAxT99qNhpRk=; b=V0QmNYTN8GjW98lkA8N0lYhgr7cNCY/9dq0xHAlRm6YDixcy3HvFA9hOMg/ucG+tZV AgpEl3C/ttjWozOcdFG5uErJCH2TzBoWH8A76ghK9ar2ceSINr1gtkM/8kOFhHhEF+k5 jvz/V45yXKCePMgz4SJz+ab5DuSl7Vp7Rtinwe/9IItLost5b+ysss8z45jn3w/zOOw3 Mz/WCr5S+DqfImmQfSb7Mn49wAQgUiWBCWp+mz9uSL4pSsR52S6zYCsjQlXBw7lp7mZV SdEfkYPZeo8X+1qgKxWxzuUKeACnpgGUfMa9YgKYnLFxM6gxU0OAp9UjOzt+nKlsQS0V aTMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si9055604otq.112.2020.02.03.11.18.52; Mon, 03 Feb 2020 11:19:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727128AbgBCTKZ (ORCPT + 99 others); Mon, 3 Feb 2020 14:10:25 -0500 Received: from mx2.suse.de ([195.135.220.15]:47770 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbgBCTKZ (ORCPT ); Mon, 3 Feb 2020 14:10:25 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 056FFB061; Mon, 3 Feb 2020 19:10:23 +0000 (UTC) Message-ID: Subject: Re: [PATCH] serial: 8250_early: Add earlycon for BCM2835 aux uart From: Nicolas Saenz Julienne To: Lukas Wunner Cc: Matthias Brugger , matthias.bgg@kernel.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger , Scott Branden , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Ray Jui , Stephen Boyd , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-serial@vger.kernel.org, jslaby@suse.com Date: Mon, 03 Feb 2020 20:10:21 +0100 In-Reply-To: <20200131152414.73tgwsfhzgu4apkx@wunner.de> References: <20200128141958.vwbxoqglt5gw4xj5@wunner.de> <20200131152414.73tgwsfhzgu4apkx@wunner.de> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-rxZ/SqVaphyyjrFeqQty" User-Agent: Evolution 3.34.3 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-rxZ/SqVaphyyjrFeqQty Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2020-01-31 at 16:24 +0100, Lukas Wunner wrote: > On Thu, Jan 30, 2020 at 05:11:55PM +0100, Nicolas Saenz Julienne wrote: > > BTW did you had the oportunity to have a go at the patch? >=20 > I've just performed a quick test and it doesn't work for me. > If I add stdout-path =3D "serial1:115200n8"; to the chosen node, > I only get a regular console with this patch, not an earlycon. That's surprising, you're using u-boot isn't it? and the upstream device tr= ee? > > > The problem is that in mainline, bcm2835_defconfig contains: > > > CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE=3Dy > > >=20 > > > Likewise in the Foundation's downstream tree, bcmrpi_defconfig as wel= l > > > as bcm2711_defconfig and bcm2709_defconfig contain: > > > CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE=3Dy > > >=20 > > > In contrast to this, we set the following on Revolution Pi devices: > > > CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=3Dy > > >=20 > > > Downclocking influences not only the uart1 baud rate but also the > > > spi0 clock. We attach Ethernet chips to spi0, throughput was > > > significantly worse with the ondemand governor (which is what we > > > used previously). We felt that maximum Ethernet performance > > > outweighs the relatively small powersaving gains. > >=20 > > In that regard I suggest you use the upstream cpufreq driver which > > behaves properly in that regard. It disables GPU freq scaling, so as to > > change CPU frequencies without SPI/I2C/UART issues. >=20 > Okay, I'll take a look. But the uart1 baudrate will still be wrong > if the firmware downclocks because of overheating, right? You're right, it might happen. The way I understand it you're bound to leav= e the GPU at it's lower frequency if you want to use those peripherals and fo= r them to be reliable. You could technically try to empirically fine tune the= CPU thermal trip point so as to make sure the upstream kernel cpufreq downclock always kicks in before videocore's one. I'd actually like to see someone tr= y that. However short of using an RT kernel It think you'll never be 100% sur= e it can never happen. Regards, Nicolas --=-rxZ/SqVaphyyjrFeqQty Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl44cB0ACgkQlfZmHno8 x/4OKwf+KvsKB8pRgfFS6tQGkcjn5+7rl7qXYEndk80sawqCUn4/ZHkxPdoqD5cO bU8iTyaNfFQQb9uq8RoWcJrFMKQJhxGe8sjDNkZNqvbTUr3oM8ltCrjVWX7D5wfG eDSxB7hZqwE+BkdJaK3G5kicCfPl21opnQwZUn7R/0e0bYIuzMu/hq1xk7XiRaLU hL30AwUY3DLZtOVEeNIeVW9TVuVdnbu219TXZjtwuD+iZ9u2xbkh83fne8s0nW7O 79/Gejgu/e5PDH3CTnbheLNpl9Fws8fGiERnwXNbAD2XSj2kOfTitCVVNK2Efup5 txMswkwfPEC1JsGHkHgANzz5Z5UOVQ== =AW10 -----END PGP SIGNATURE----- --=-rxZ/SqVaphyyjrFeqQty--