Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4783007iob; Mon, 9 May 2022 01:15:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUcv7tggHqSsMncaJgy8fEyLM7A+y2rsUpIc/6i+grL0DgdEAU9YBjDxnEb26VNTgbtc/x X-Received: by 2002:a17:902:bb02:b0:15e:d294:8d0f with SMTP id im2-20020a170902bb0200b0015ed2948d0fmr15411588plb.35.1652084120738; Mon, 09 May 2022 01:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652084120; cv=none; d=google.com; s=arc-20160816; b=SvIUkS0KaVeIcdIsY988NAlkWRMviAa81n9tHn3DYzPGW+m7ZOsA/lkZ/wMkuIt3AX pXCGWO+wx8TLs5sDa4J0zEq+r+86bsRwJorO3e/h3XNNqtSv3+UUGkA8ldJxlYSupo1K ENqwgpnWLr7as/LAh428IGZKJdse29s/YavYbs0jYk8nIfQbyhlCtr94ZRI+PHtmXuXh XvKs4k2vb+ygDmrLFD4px7++qGqf0bFXG78I1aOAr8Z+c/t2Ec1TUK2NqUP8acg35Ld+ ZUjSumxD0O2YkwAAI17iX1LtED0U51Ib5owYRVPsabNVClnW6dPIKGTBv3zk54spDF2H XEvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vMtR9RH4hTYIsMANbyKvgkBZPC808rHyRFlpC3fYLRo=; b=dJ+/ZpQDpnumJHGW02giP2tjJtDuDBAy3Ow2AoS71nISZIIsZ3x4/d873xu6KN4CUW IO2n0LGjHSoQ8E7YQxgjOMixxVFCxUg0BSjwIIqmMdpmP2EnrIn2jo+5oUrEpn1VLX2g Y49Qh6SqllZCMjHoBGmmPA/vKNcsPW4rpgLcxc76R1vP5yAhwHJAj0sObuUuxaU+AS/E kcTZpgeUbfWMqo/ioNTLNRzLxk3vWF6M78hjh66YTr6MWBo7JTyPeKnyKREfkHQ1jjGX R9nqZzq+bOf7/AHxh8b5xi9mFLuqPtwAROjsIk2r1hj1zq3qKQ+Qq/wqT6apdTpPdf0g wtPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="BDN/cKlw"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id lx3-20020a17090b4b0300b001dc74d0c8f2si17930094pjb.3.2022.05.09.01.15.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 01:15:20 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="BDN/cKlw"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 287F81D6752; Mon, 9 May 2022 01:05:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390025AbiEFIUN (ORCPT + 99 others); Fri, 6 May 2022 04:20:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1390048AbiEFIUE (ORCPT ); Fri, 6 May 2022 04:20:04 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5731368333 for ; Fri, 6 May 2022 01:16:15 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 96AD01F910; Fri, 6 May 2022 08:16:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1651824974; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vMtR9RH4hTYIsMANbyKvgkBZPC808rHyRFlpC3fYLRo=; b=BDN/cKlwvO99GE7qhWLk8USYXX45YH1F8Sy30e3vxmtG4E3B6lAp9+pe0VDCuA3jQJXAq8 09OWYYPDLZtCK3iTfGb2Fr9k6sgJbBQOKNa4REs7Bb455QeO8QWOXXKAOAHBnojDeb5esX P70Rn/O1tBYx6sw0icRrV5yH/BLX1Wg= Received: from suse.cz (unknown [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 3A0D22C142; Fri, 6 May 2022 08:16:13 +0000 (UTC) Date: Fri, 6 May 2022 10:16:13 +0200 From: Petr Mladek To: Marek Szyprowski Cc: John Ogness , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , linux-amlogic@lists.infradead.org Subject: Re: [PATCH printk v5 1/1] printk: extend console_lock for per-console locking Message-ID: References: <87fslyv6y3.fsf@jogness.linutronix.de> <51dfc4a0-f6cf-092f-109f-a04eeb240655@samsung.com> <87k0b6blz2.fsf@jogness.linutronix.de> <32bba8f8-dec7-78aa-f2e5-f62928412eda@samsung.com> <45849b63-d7a8-5cc3-26ad-256a28d09991@samsung.com> <87pmktm2a9.fsf@jogness.linutronix.de> <87a6bwapij.fsf@jogness.linutronix.de> <87zgjvd2zb.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri 2022-05-06 08:43:02, Marek Szyprowski wrote: > Hi John, > > On 06.05.2022 00:33, John Ogness wrote: > > On 2022-05-05, John Ogness wrote: > >> I will go through and check if all access to AML_UART_CONTROL is > >> protected by port->lock. > > The startup() callback of the uart_ops is not called with the port > > locked. I'm having difficulties identifying if the startup() callback > > can occur after the console was already registered via meson_uart_init() > > and could be actively printing, but I see other serial drivers are > > protecting their registers in the startup() callback with the > > port->lock. I guess that it is used by the early console before the racy code is called. > > Could you try booting the meson hardware with the following change? (And > > removing any previous debug changes I posted?) > > Bingo! It looks that the startup() is called when getty initializes > console. This fixed the issues observed on the Amlogic Meson based boards. > > Feel free to add: > > Tested-by: Marek Szyprowski Uff, it is a huge relief that it has got fixed. Best Regards, Petr