Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp763247ybl; Fri, 31 Jan 2020 07:35:39 -0800 (PST) X-Google-Smtp-Source: APXvYqzOTOkmCjiihWEHweuxH7M53u7BDQrLF79x25RoYfFpGLJrUzGqqyM3Ay99WKgEJSAxpstG X-Received: by 2002:a05:6830:15d2:: with SMTP id j18mr8295989otr.187.1580484939729; Fri, 31 Jan 2020 07:35:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580484939; cv=none; d=google.com; s=arc-20160816; b=NFyyJi+dmHTdpgb0cDEc+66niynHo1xGzPP5qppP93x+vwbgIkEICepLundi+eamC3 vL3aQiBkaEJ80tBikgXZY/q5LWOOqnBucdewBKZmLkihH6k+5cScDJvQPmiAaqxdeiGF Z5TtAB0cvTfAcT0RA6K8wCG9KhP4VAC2ZFrp+o+EqNlZQKsnbWgOjO5Cz6KGdvOkh2KM PSa0KY+H8GKRO3fBtccNTi72q/Tt+8YXQkbsEN/KG1Kzl2lBCN6QQX+/VNrO+kuVL4PX Wz08/Wqsr9i20tCMC/N8OvD4x33uKP1Hg4zWNDDkw3x3wVRIE/xfzoAnIrqKRL6FssE4 hoCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=O4XULSNJgcU1LwriU57yj0CwvdfHI1IZ9B95HAWrd9s=; b=IcWhzGC3f80WaUTK2KGy5IuZNtLSD94/03JSV7U/vie9tchla9zdJcll2tbSNFyU5j UsZDhrZX+bYVKY2x2kUwwX4v7l+68Mq3bMXlCZSJo8a9D+9eXtpD0uRlAmME/9yhmSAK 07gjrYkm8oYUUCQY6SoqenMsOgQ2CPxLJ1plLIgG+/NwX+cvjg177GCoQyzwti4d8tg4 YWiVDZz2ZGY50ubIAVyoMA1Eo9YYw6P/pB35QRFUXpL8lhJTmHSWKqsxlxDNe6Zp59jT dl0u/33eoIKmr/LdKbJVlPmz3pDS4NmhpfGII51AVozaOX+D8G0tOLuJXZQsGTfLgERd fc6A== 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 l10si2863650oth.243.2020.01.31.07.35.11; Fri, 31 Jan 2020 07:35:39 -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 S1729008AbgAaPdQ (ORCPT + 99 others); Fri, 31 Jan 2020 10:33:16 -0500 Received: from bmailout1.hostsharing.net ([83.223.95.100]:44233 "EHLO bmailout1.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728860AbgAaPdQ (ORCPT ); Fri, 31 Jan 2020 10:33:16 -0500 X-Greylist: delayed 540 seconds by postgrey-1.27 at vger.kernel.org; Fri, 31 Jan 2020 10:33:15 EST Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id 7222330008C8C; Fri, 31 Jan 2020 16:24:14 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 2E8DC22B001; Fri, 31 Jan 2020 16:24:14 +0100 (CET) Date: Fri, 31 Jan 2020 16:24:14 +0100 From: Lukas Wunner To: Nicolas Saenz Julienne 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 Subject: Re: [PATCH] serial: 8250_early: Add earlycon for BCM2835 aux uart Message-ID: <20200131152414.73tgwsfhzgu4apkx@wunner.de> References: <20200128141958.vwbxoqglt5gw4xj5@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? I've just performed a quick test and it doesn't work for me. If I add stdout-path = "serial1:115200n8"; to the chosen node, I only get a regular console with this patch, not an earlycon. > > The problem is that in mainline, bcm2835_defconfig contains: > > CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE=y > > > > Likewise in the Foundation's downstream tree, bcmrpi_defconfig as well > > as bcm2711_defconfig and bcm2709_defconfig contain: > > CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE=y > > > > In contrast to this, we set the following on Revolution Pi devices: > > CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y > > > > 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. > > 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. Okay, I'll take a look. But the uart1 baudrate will still be wrong if the firmware downclocks because of overheating, right? Thanks, Lukas