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 X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB895C433E3 for ; Wed, 22 Jul 2020 16:03:58 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A6C90206F5 for ; Wed, 22 Jul 2020 16:03:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="x3jXDRoi"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NxFwb6bR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A6C90206F5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=veYEK2Bv5ZAX/eUs40rp7E/qyf8EdaAxMtz7rxPQCFM=; b=x3jXDRoiwQpCfyTBWyjDSWxN1 nm3+eoeWYGkvsax07QGO3n3NKcRnazrFymTOmy5ML3IDRIkg9n/sW/Ms4/UN8j3iy7ZI4feFQdMbx lJVhk9ZW4EH1Usninrb79K3z59ROFrmdgEKMjVtrIbYuqSioYgOHPrQLfHQadQx2Y1YULrvZyrwLn vXuZxRNl06TBuzTkwRP6wb+OP92MVWHEpJ+W05nru/IE+4MkHU+gj53OKOSvMRYLxSHOsHiR6D2RL iJ+6JoQ2CeeJX682xRcE8YJqXMeUqcgleOfJRD+1wMsoxcZBKAAMIv2ghkCJc1alWRDKyLx6Lo4rO yJNg0vIxQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyHCO-00049r-0o; Wed, 22 Jul 2020 16:02:28 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyHCI-00046o-4w; Wed, 22 Jul 2020 16:02:23 +0000 Received: by mail-qk1-x742.google.com with SMTP id z15so2433815qki.10; Wed, 22 Jul 2020 09:02:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=cQAs5qWYH5tvFyAjJQPeK6Pr6MnPPzszHXb7DwOUV/Q=; b=NxFwb6bRCAC+XVDPLhOt+xkyoBIkKThfEf/JbYERysQowT+RMzEC5ZT8HUvhlTqQeu frDuxLkQ4NwQqPM6+JpzPeV0NzRp9LlRTjVI4FGfcGCQpT2EIFs5NlyFBQZ58z6q04Q7 K1NV6/lzILUAjBv6i4pON73hqVc/qz3fG1AXFidmdOOH/hzpIba+8sqn4S9NHtOfcfRE RP3+u98hoNK1hs7XnFUgKfYW2G1SWexciNzT6HyvhpFoSsRBZPBVKAJEIIIrTBQ2bHRn iqJivd0tiM2855PvYxEPCCjHtTNszNF1NzNMiteHsZwLdHBHDSWRC3m0xNpUnLJ3f2cv 2Iew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=cQAs5qWYH5tvFyAjJQPeK6Pr6MnPPzszHXb7DwOUV/Q=; b=lIo/gC5uZpoQi8yyzLW6ylFPDlk6YcoFbhln6dIBQQuaAZTsU68HPm/toC3zgOVXVj CiizcgXUh9T+NlRPphSsaVeKb3m6JG+uclu3n4xNKwzc2okmcTtsdZDz5e6rvG0E+ig5 n5f2nj1K0Z5J232BiPnZYhMTw9vbFgUJLv1gvSh87loU/PI4eCLSWwX495csEPLLUFcb bzQqy4QVK5LmdFfjBniTDrizD4y8jgfJxDZvbDJ58NcSOkd4ncXfhfTYArCajkNrdsXo /0ReSO8NIqOnj5Owf4phl7mfILLP41z6sKHZLfwbCra8VxZi7lcRESBvrEFRA05TkDuU HvYA== X-Gm-Message-State: AOAM530Ody5YE1K05fudtSixKIsg+EZ26308Kq1hBrRNK7F5WIK6gyTf ifB0cwWxqGU49tnRwbKnUrk= X-Google-Smtp-Source: ABdhPJxAvJH4BoiYNs6AzFwNcrxxdv3r+f8vZwSvmI73wvXtz8+7msX3XUEaXgrLCeA7QjPayjpMzQ== X-Received: by 2002:a37:66d7:: with SMTP id a206mr603185qkc.495.1595433740138; Wed, 22 Jul 2020 09:02:20 -0700 (PDT) Received: from ubuntu-n2-xlarge-x86 ([2604:1380:45d1:2600::1]) by smtp.gmail.com with ESMTPSA id z60sm80601qtc.30.2020.07.22.09.02.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2020 09:02:19 -0700 (PDT) Date: Wed, 22 Jul 2020 09:02:18 -0700 From: Nathan Chancellor To: Nicolas Saenz Julienne Subject: Re: Issues attempting to use Raspberry Pi 4 serial console on mainline Message-ID: <20200722160218.GA1016797@ubuntu-n2-xlarge-x86> References: <20200721225724.GA1005852@ubuntu-n2-xlarge-x86> <63244277a1c8989f87906746742141eba01d8bb5.camel@suse.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200722_120222_302610_8B632C47 X-CRM114-Status: GOOD ( 25.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: clang-built-linux@googlegroups.com, bcm-kernel-feedback-list@broadcom.com, Peter Robinson , linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jul 22, 2020 at 05:46:22PM +0200, Nicolas Saenz Julienne wrote: > Hi Nathan, Peter, > > On Wed, 2020-07-22 at 15:41 +0100, Peter Robinson wrote: > > [...] > > > On Wed, Jul 22, 2020 at 2:27 PM Nicolas Saenz Julienne > > > For reference I just booted linux-next with this setup: > > > > > > boot partition: > > > ...Latest firmware files taken from the RPi firmware repo [1]... > > Natan, it seems I lied here and been using an outdated firmware version. I've > just validated what Peter comments below, and the last working firmware release > with this setup is Feb12[1]. Given your use case I'd just use that and forget > about it. Excellent, that worked perfectly with the settings that I had initially. > > > Image #Copied from linux build > > > bcm2711-rpi-4-b.dtb #Copied from linux build > > > config.txt > > > cmdline.txt > > > > > > config.txt: > > > kernel=Image > > > enable_uart=1 > > > arm_64bit=1 > > > > > > cmdline.txt: > > > console=tty console=ttyS1,115200 text root=/dev/nfs > > > nfsroot=10.42.0.1:/home/nico/netboot/root,vers=3 rw ip=dhcp > > > rootwait > > > elevator=deadline > > > > > [...] > > > > > > > The issue with the mini UART is its clock, which is derived from VPU's, which > > > is itself controlled by RPi's firmware. Changes might happen behind the > > > kernel's back, and the mini UART divisors will not be updated accordingly. > > > This is an area the we could do better, but no one found a good solution yet. > > > That said, for now, when using the upstream kernel, VPU's clock should be > > > stable as we forbid the firmware from performing frequency scaling on that > > > clock. > > > > There has actually been a regression in the firmware here, prior to > > mid April if the enable_uart=1 I always had clean output on the serial > > console, since that date on the rpi3/3b+/4 I get a whole bunch of > > junk, revert to an older firmware (I've been using April 1st ) and it > > all goes back to being fine. I've not had time to actually report it > > yet, and it's still a problem with the latest firmware but a quick > > look it likes similar to this issue reported in late April: > > > > https://github.com/raspberrypi/firmware/issues/1376 > > Thanks for pointing it out! I missed that bug report. I'll try to get the gist > of it. > > Regards, > Nicolas > > [1] https://github.com/raspberrypi/firmware/releases > Same goes for me as Peter, let me know if you need any information or debugging info. Cheers, Nathan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel