Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp462556ybl; Tue, 28 Jan 2020 06:21:14 -0800 (PST) X-Google-Smtp-Source: APXvYqwh+ZQ6w90dwA4eHls97GrAc+QSYzFrUrwQPdt0PXTJdh1IC80OhX5xs3xUS1nFEzruavi4 X-Received: by 2002:a9d:53cb:: with SMTP id i11mr16926161oth.158.1580221274399; Tue, 28 Jan 2020 06:21:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580221274; cv=none; d=google.com; s=arc-20160816; b=lrQrAmfFDJDS0Y1MYwl7CwBajyqacntdmIw7IuNwqNbOST9gTZEG1/U/YS24uFWVXF ks95uxmkCa8NQRslLk/LjLNIjvJVSCtWV5+Xz46ye+HZp4gaazt9gWN9Y48bLxcU09Zq XVS2MoFLOjG7b6qXKCmR3F+pBIokxRfOwag6T5LhlqTAX0G002hbdW1TCEeTdfzuHNCj fcAXiivdGvKd4wb//rXFY07diyvQpeMtDvlxkqRUQwLqr97eS6pjGUFztNE3jDY+oLNJ HsKNpiVn9+vvDNBThgIAD26FVSiM/m83EZykZAiSLZRekc9fu3xTdD0Z2yedWwpkuuzF T+eQ== 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=eqqiyyJOUhd4Be3Pn6lH8oICGBjefA/4eatSQjLyzgk=; b=b/3PSH7gQzXR4Movm5vMnSF4hCI4GCqRY0WZfcNzev9UtTDXtn94Ox/xSn4xVcpbDl 8PEQi4ikB1m/DwJgBuEtxnUNdZjiKWPxDRjwGa4e87IQ1UxAr5Ch9GFTPNwpDrUPtA6n nLNwJnGJkk5ptY+Xz2vVAtKDLaJj6Gc3QDu+YA7BLVYMHL/CZ9m1InZ4uM93RsXA+sbb jA9Q+euZ09ViACmhkNAhgbtIeZrViQOUEHews/CRybFGm8QBkUgSRyV58dDrRLQcU6am wLHGP5liZI1NHNp6y6hwqKqTddd8hp12lFbKjondLzIFso3iYqtzhFE1zyllqhEdDY0e 1Ung== 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 j16si9160701otq.23.2020.01.28.06.21.02; Tue, 28 Jan 2020 06:21:14 -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 S1731022AbgA1OUJ (ORCPT + 99 others); Tue, 28 Jan 2020 09:20:09 -0500 Received: from bmailout2.hostsharing.net ([83.223.78.240]:58897 "EHLO bmailout2.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730339AbgA1OUB (ORCPT ); Tue, 28 Jan 2020 09:20:01 -0500 Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (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 bmailout2.hostsharing.net (Postfix) with ESMTPS id D4A1A2800BC20; Tue, 28 Jan 2020 15:19:58 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 9B1141EB447; Tue, 28 Jan 2020 15:19:58 +0100 (CET) Date: Tue, 28 Jan 2020 15:19:58 +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: <20200128141958.vwbxoqglt5gw4xj5@wunner.de> References: <88af0fca-90d1-58ff-406d-73f185eb8b7e@gmail.com> 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 Tue, Jan 28, 2020 at 01:42:21PM +0100, Nicolas Saenz Julienne wrote: > I'm testing this by booting directly from RPi4's bootloader. And it > works as long as I add this to config.txt: > > enable_uart=1 > gpu_freq=500 > > Which AFAIK blocks frequency scalin on the GPU and fixes the clock to a > point where the serial is set at 115200 bauds. > > Ideally it'd be nice to be able to query the clock frequency, and > recalculate the divisors based on that. But I don't know if it's > feasible at that point in the boot process. Well, we don't even support adjusting the baudrate *after* the kernel has booted. 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. Thanks, Lukas