Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4459400iob; Sun, 8 May 2022 13:32:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzq45k856cxrXCvnjeCBJ51OmJhlAehpYY7UfVIx4zJb4yO00raz/ZKjHbC9/X0fCAFRM4V X-Received: by 2002:a17:907:c02:b0:6df:fb64:2770 with SMTP id ga2-20020a1709070c0200b006dffb642770mr12041251ejc.221.1652041972220; Sun, 08 May 2022 13:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652041972; cv=none; d=google.com; s=arc-20160816; b=n1dXw+WpZLRjTrNjs6+I5iDQuc3RLEPEPAVd8QW2SIlRUtEzQIZVwRUgjLL95IlKCL OW+1au/bjt5E2W63o25+YwQ1X5R9CdyNiQvNywXeIKu6+DP9BVuaMT4gBpWm426cbY68 wEb8T7P1uQ/vJyZ3LAXb0SCEVP60w0zx1nO2KWwPqpV2gjLbCjEJ1wndp23Xa9DvJcTn tTuzcFUfoiH5/IEMaZMFASZnjTopgHQJHRIsn3UJ949+xZj9sfWBYn/ePpNr45X6WFRN AyGqo8qpcezhRQYl07G0PEqDcTPtP4M4h0p+f/J1UA50fb/QX0nFf4khn7j3yk68mzsg 94EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=fGiYCF2iw5t4VtH5jxb71hCLielghGLBGlvL9ckdnuk=; b=jbKmQOTdzEaRHb7HMnyOHMGatAWD4wjRfztgHLM21cYqbnBo1OBfI4ux1qJzRq5Ajb 5t53rD/cuyH1dJ0/WXUJSO53PzvaGfu+wk2pfkOb4mNYO8V4yR8TrMT28tclZKThv9U7 O9WW4zCUmJTIH6dS1fljIYNO4S7ZoLunAUKxDZEa8zAwQ28UTv2cT8y+KE1T15Mxt8b4 UWxMjlipz7yLGZuiZ+ciHptdhGpM02o7cNR+XGc2tEcLzaHoBB79YgoekFP4FbgGjGhz pNJpjmU5H2W1EopwHhZerCZR0+9XgJrlZjwnmiNGMLVT/ktQd+Tu//jNn9TVJ4S9o+If lpbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=HDf5cH9w; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk24-20020a170907767800b006f4cebf2c1bsi8382836ejc.806.2022.05.08.13.32.28; Sun, 08 May 2022 13:32:52 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=HDf5cH9w; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389750AbiEFH66 (ORCPT + 99 others); Fri, 6 May 2022 03:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386640AbiEFH6w (ORCPT ); Fri, 6 May 2022 03:58:52 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27DB267D0B for ; Fri, 6 May 2022 00:55:09 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id p7-20020a05600c358700b00393e80c59daso4856290wmq.0 for ; Fri, 06 May 2022 00:55:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=fGiYCF2iw5t4VtH5jxb71hCLielghGLBGlvL9ckdnuk=; b=HDf5cH9w7G+JBlziGdc4NZXV/Bl8VMVD4v/0jrGsIwWz5NYvLAQiFnPEmBoFsefeYO sztyl5l3CnuKRyfgcmlntK3uO2Uh9qRQ2WVhIS+x3SMuT64wNnk7r/pLCTYNUSYIfyUa GgQS6XxeKpAkTkvg1zvrVI7ngmX6YfRKyw9eWZ1eoi5BD2v5M+HqyipHoAE26Y48TGAE oujwYlhZJBPJYX1VZP3NZZd0iizRFCD5qGVVtvr++gjmvLLoYFZUqq5+5xVj8iixhKGO 46xpw2wOlxEc0haZbvZ9x3LUU3d1/MiRGsHt6zDrTSugr6+ECDUHhI4Lg0cYDE7T9MT2 RI8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=fGiYCF2iw5t4VtH5jxb71hCLielghGLBGlvL9ckdnuk=; b=qVEqTosD4EAYZTmBy6K7m1CUVFDKW+XF8GrSs8+UZzhu0RVSGelMS9opIXYokZ85s5 Ns0+rTt6apSGNbNloH4rAfkOtXXytpWiBmYJGJrlrzBD2N04EeeIlxASzJw7LG3vQZja XN1IqGURz5QAwe9/9GrhXaiu1vb406AHoOUf5wAVdGFzmhz4yXTmbE5fHsqFQrHo2AeZ y0mrWlISePMk3VNAihrHQcxn9O+AqA6RotyqmNd2P6Szb2b4tJ3vfFEF45EEdZfCw8I6 Gd+7gnomoloWXaNjBftTgxsa7aSc0GTGthwRUULwAir4PTldVzo0BUQHWICN1fFjAwtU jm1g== X-Gm-Message-State: AOAM532UGGNNELR3B5Xmob9I6HXhpPXExYjpN8A+MqLr0H7xK1g1vbe+ 7Jmw+IFMPMosRTASshYQYtIrMw== X-Received: by 2002:a05:600c:3b24:b0:394:7b59:dfd9 with SMTP id m36-20020a05600c3b2400b003947b59dfd9mr1343514wms.129.1651823707491; Fri, 06 May 2022 00:55:07 -0700 (PDT) Received: from ?IPV6:2001:861:44c0:66c0:56b7:4b6b:7ed:112a? ([2001:861:44c0:66c0:56b7:4b6b:7ed:112a]) by smtp.gmail.com with ESMTPSA id l13-20020a7bc34d000000b003942a244ebfsm3373135wmj.4.2022.05.06.00.55.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 May 2022 00:55:06 -0700 (PDT) Message-ID: Date: Fri, 6 May 2022 09:55:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH printk v5 1/1] printk: extend console_lock for per-console locking Content-Language: en-US To: Marek Szyprowski , John Ogness , Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , linux-amlogic@lists.infradead.org References: <2a82eae7-a256-f70c-fd82-4e510750906e@samsung.com> <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> From: Neil Armstrong Organization: Baylibre In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 Hi, On 06/05/2022 08:43, 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. >> >> 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 > > Best regards Thanks all for figuring out the issue, perhaps other uart drivers could fall in the same issue if startup code isn't protected with lock ? Neil