Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2737015iog; Mon, 20 Jun 2022 03:46:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u4MZHbzigbZ/kvUmU0gvfuyUcLqYp2hjY4SYXC/8zskbIvS6147JzYTlCrOjsiu/I54whY X-Received: by 2002:a05:6402:50d2:b0:435:8c44:8715 with SMTP id h18-20020a05640250d200b004358c448715mr1798896edb.49.1655721987015; Mon, 20 Jun 2022 03:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655721987; cv=none; d=google.com; s=arc-20160816; b=w1sLKiWu6r0U6xtR20txNXd6qdZOGpP/40t2IqntlbG/ZOutHUIaF6wtp9QL38zE1x +EadMVHSYbsxeUH9DFLhUDxrmv8vUfpS0SS2Ws688SwVEeUv9xD5WLwaaY4Dg3TQCzDO c0UbDpPlALEuCfols0QbrsD3RRHMomNYk5DtJAQyE0C3mCQm+JWHOHIKRjfUG29iqFpQ ohnENXqaTMXVa1a3+abrXNzcteuk/Lo15WULJaJjbO0r4jUDHbmSzODLTmWUBln3ELTl ELa5e9FW+x7gGzSMTkQ4gD2v/IDAj2c+ivMRSZ8lnVHqQyRC8947ZpLatsjtKHX+bNPk 70Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ynmpZ70OviGNPUo+rdOgPqWA82IiKGWNN4nSQzdXwTc=; b=AioJYONy5Oow47X7LbdDRrqeCz9SJtomHb/jcUHL5s+Hip1yKQiGEICQgOmfwDM5qB iDmCo+0Lb105M7K7brTbAlvNJOznJCtwDRO4Dbew3US6FzHRgrKjZkZ/3cOJ6Ynd4LrA afra+nwoHgeTmHagazKj1balJj/WCM33oiwW5Mf+8W1TkPP+bIKFfa7ihSNopnJQd2Im x7G0Y22kBy6PDKyDAnwDdkCsKWhpRzvO39tBGGzb7LczPYhmhuIbdfcuhCkOJk1KKF/w /gRbwu5OFNYGFOoP5gmV86nYL6BJuXgz+MvE/e+psBW5BCaJUVObg4WVd8vmVgyIkfHN GN5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mcmlT9Nj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s15-20020a056402520f00b0042fafec8901si410731edd.130.2022.06.20.03.46.02; Mon, 20 Jun 2022 03:46:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mcmlT9Nj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240318AbiFTK3i (ORCPT + 99 others); Mon, 20 Jun 2022 06:29:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240321AbiFTK30 (ORCPT ); Mon, 20 Jun 2022 06:29:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC4F714037 for ; Mon, 20 Jun 2022 03:29:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5E30EB81015 for ; Mon, 20 Jun 2022 10:29:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46F9DC3411C; Mon, 20 Jun 2022 10:29:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655720958; bh=k/cfrxW1y5fQVkYFe7aqp8xYU2NtiTYd7uNodGG4c3Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mcmlT9NjEjG2YgqIp2JdN/d+SHL1kw4w6Rxr4hf6KsWRqUKlKZzXuFBSL46dIeRK4 srcoEAFWEeamz/chlHQDNOh52ocyiBLPiHIByAK3DbDjSxZP6qasJG/7I4b5wNYJgn 4zwfbYuzJ2lWoLj+6S8LHXjkfk3DdkbH/o7N8BPWOOkAL9YAF8bmnX62xmU7x+l/ex pJUo2+bEUNEXrAIIZ0WmOLkkmFQUfAC+ii/CC7pf82KDNHY2xY7XXbs9px+joCwRlp 0js5dEkiJuUmewpIvIFcgYUKl9hWB0z7EiYLJRz8jI0gYzZfjdv3i8/ODH18WnGWTp titt2W96mpX+g== Date: Mon, 20 Jun 2022 12:29:04 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Sergey Senozhatsky Cc: John Ogness , Petr Mladek , Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: Boot stall regression from "printk for 5.19" merge Message-ID: <20220620122904.30c06c4e@thinkpad> In-Reply-To: References: <20220619204949.50d9154d@thinkpad> <20220620120234.5a65ac97@thinkpad> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Jun 2022 19:13:37 +0900 Sergey Senozhatsky wrote: > On (22/06/20 12:02), Marek Beh=C3=BAn wrote: > > > On (22/06/19 20:49), Marek Beh=C3=BAn wrote: > > > [..] =20 > > > > causes a regression on arm64 (Marvell CN9130-CRB board) where the > > > > system boot freezes in most cases (and is unusable until restarted = by > > > > watchdog), or, in some cases boots, but the console output gets man= gled > > > > for a while (the serial console spits garbage characters). =20 > > >=20 > > > Can you please try disabling console kthreads and see how the boot > > > process goes? Just `return 0` from printk_activate_kthreads() (I think > > > this should do the trick). =20 > >=20 > > This indeed makes the problem go away... =20 >=20 > Oh... OK. Didn't expect that :) >=20 > > > > The garbage example: > > > >=20 > > > > ... > > > > [ 0.920951] raid6: using neon recovery algorithm > > > > [ 0.921228] iommu: Default domain type: Translated > > > > % > > > >=20 > > > > gb@k+cFL/[ 4.954974] DSA: tree 0 setup > > > > [ 4.955286] cfg80211: Loading compiled-in X.509 certificates f= or regulatory database =20 > > >=20 > > > This is pretty suspicious. I don't see how console kthreads would > > > corrupt the output. I suspect that something else is going on, some > > > memory corruption, etc. =20 > >=20 > > Maybe multiple threads are writing to serial registers, or something...= =20 >=20 > That's possible. Console drivers usually should grab port->lock for > write(), but maybe something is missing in the driver you use. What > console driver are you using? compatible =3D "snps,dw-apb-uart", so drivers/tty/serial/8250/8250_dw.c seems that the function dw8250_serial_out() does not use the spinlock... Marek