Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2542444lqb; Tue, 28 May 2024 03:17:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWGtp/XSHX7cxXjRg6BEL34BlwZioe6HercXQyoIRGgLSJa1R7YnzLoXiySA6DARl4WQ4s4vuBqMPiCClx+O1l+YJd4Yb5W2DgHNNwmjw== X-Google-Smtp-Source: AGHT+IH/ddQghX9WGqs0PZjkc0tYLcXU0ENER/QbRjxz4mzKKYRJA8e4HULmDRh5xF0JqFlvs+9/ X-Received: by 2002:a05:6a20:3242:b0:1b1:f321:47ff with SMTP id adf61e73a8af0-1b212d0a7d4mr9910425637.17.1716891473537; Tue, 28 May 2024 03:17:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716891473; cv=pass; d=google.com; s=arc-20160816; b=dySElZsnnj5Xgqzr2qJo4LHqxXJP5gMrYHMeMdrgfS7i2nMHFD4nJnHRxB9Y+w/5qf lHDghr3r17sLJR7FEgTnMkpUo5TP09AW794wvy2y44GLqEbjmASz4/yQJzNymypm7yrj zl5j/Su5ICN8t3O12U+uOLglzbnpUrU6ZDei2vEB6H/WROQzNjBHgtuWSDcQbF87nVcY VGjnm5J+50xJqBl5ARMOytsVAzvqaphB0co26A6SQEJPNX96SJrSmADWVpX9fUq9AbG4 6CkPvceA2n0aw/D4J/wSQKoEatjGMKphlKmUMy3GWg8eGJtY0AKxCk5y3B90aOG1ZNzj AkMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=d0aISgCh4COJAaNSxf9GiLx9gPfwSU3DX1Gqw14Y4kY=; fh=Dpg1LodUIvgPt6sDX1fgUiTZGTXQxniHPX8vFlEm6JU=; b=PDSPSXIjvs/i2V7Rb8qeD/fPJ5Y7JvSXw4//7R5z1ThxDd9G3JF1Sqf/CEoek8G48N CpVslHrdZUlRH0uqccZ203GoTh1rBOCB1ds4wuBNzdXoYwU/K4aKFP3sGRe2+b0WJ618 acQEtncgJlBMx6erd8TOicn53BJERP+WlsZy6MtNGB0sNSRLz7YR6FhSYa9QFli6iXNM wTIT0VADYl2AEaXt6VLS8kSqbZXl7K9idNkjuQ+8cRT0YJCyDKijmMLUmss3UrEyUjSJ On5FglAy1QfeUAfpUalYO1DameAVmHdMDVu0i36hzf9xl8TDEDSfpVeLLBgHF4y4+TF2 ZkPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=Jl1E3YfY; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-192082-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192082-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-701e0dcf0bdsi361942b3a.365.2024.05.28.03.17.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 03:17:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192082-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=Jl1E3YfY; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-192082-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192082-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 972B228DE65 for ; Tue, 28 May 2024 10:10:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2725B16132B; Tue, 28 May 2024 10:10:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="Jl1E3YfY" Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4308317E8F4 for ; Tue, 28 May 2024 10:10:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716891026; cv=none; b=ek3Ak1YCqKZMOkHk9TjB4grpeKhUYa1YUWLbqlO0qd0NGpgVDhMW2/26n4r4PrC+klx6qFv2ykTSyhxmQmgyIsCjvB/2koPqDornulm16RpOEaXtahTCOJBqoQH7SFHe/ce8yu+hnUzJCq5SspXSLHH3+TT2gDjUyHvP6sa9Mb8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716891026; c=relaxed/simple; bh=KEyBvNv3y5FXKnuQWWl8Z+2elYl7IvopwqOdihU2JBY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NufHtVr+Z35+YGn95QnurH3P52LOAmK6pcqdExvnYY+SFi3uaPScvtKa9pOQZdlGlAL2etVMEBPxTF2TCjtzapn0eFQMu/lwp31/Czq3Xo6+ZsHBRvZfX4vHeMS2ChIu4Z1y0Wy4UeXiwDHWUEut+PKs+XU93sm7NpWJRRAWuAc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=Jl1E3YfY; arc=none smtp.client-ip=209.85.208.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-5766cd9ca1bso856030a12.0 for ; Tue, 28 May 2024 03:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1716891023; x=1717495823; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=d0aISgCh4COJAaNSxf9GiLx9gPfwSU3DX1Gqw14Y4kY=; b=Jl1E3YfY3k3KaFeL30MZkZEtR0ywImFGRLLfyfVUwbLa3c3GP9+4Mmpjvp0zD2R9km /Y5ok24jr0BzhgU0IotapE0d7pL4JI0RNqPLML7ae1FB8F0ziEwUN93QgHFtmSJxBiT4 F8OcOmXa1V9fQfCRjhOxM8PuURagNpKJ1mg4jGKrXr7MbY74k8/wNTNcHWW+WagD1DrL qZS15AQUr/JTcrEOQS+YfmIE7a3xSvJ8VomPnmCwU332cJUCItSdT0AQ0e/GLr/LNhan 3sR6x4lwb7uV4wU1Rh9ZdXuzfVPqBoiC6YwgXSfibnyqIcjPIWmvQqbZNpJjA9t8JyAM Dchg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716891023; x=1717495823; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=d0aISgCh4COJAaNSxf9GiLx9gPfwSU3DX1Gqw14Y4kY=; b=dPGHWUDOStPOSs8yWq3cXzXXL8+itQuKnwfVDyh+yWRAw5C6ypvESGT9XYne5N+M3a wAsGzJMQWz7blCbikDthzWltFly5/TMqyhm2z+t6DbyenSIt+3gJW6I1SMY0HYbHyY60 w5oGOnkSOjA1RFQX9zyn25bIfbZvIy8FxrzJn0VxIv9aWO5GCO3m6enBjTe58M1Ijo6N 4nzxxTM3ViLP+anA55rrR8xG2DcPXbl83zHJ5pxncb9dEGm1vaPXvnwieZukn3l4uzsa +mcCNSOODSAjZmEiGbfGKC9hnyCTNu//xEid284iru3ybJnUpQgEMD0/eX3scRBM4Zrl idoA== X-Forwarded-Encrypted: i=1; AJvYcCWqbNZdVSePfbVbL3d6X7GMIFc27Svwk7YyliE3CCrVQp30x1M+jknRtWsJpfu9W4vR2kyA8BEU81M0VmStsjZ8I1BggaiWCqHf99Rm X-Gm-Message-State: AOJu0YwnP8dgNfl2xkCxagErGaqM9BMkQI5lfJeKPLGxpBnDTZeE+8sy Oc6GtUVs9P67xv8q3U0JuwOFqIxJ9kWPryFcASvZCOhmwtD//50xV15XeERhHl0= X-Received: by 2002:a50:8d1a:0:b0:579:cd46:cbfd with SMTP id 4fb4d7f45d1cf-579cd46cce8mr3527712a12.18.1716891022496; Tue, 28 May 2024 03:10:22 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.50]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-578524bbb5dsm7015666a12.95.2024.05.28.03.10.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 03:10:22 -0700 (PDT) Date: Tue, 28 May 2024 12:10:20 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, "Paul E. McKenney" , Miguel Ojeda , Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, Russell King , Tony Lindgren , Andy Shevchenko , Florian Fainelli , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , =?iso-8859-1?Q?Th=E9o?= Lebrun , Linus Walleij , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Fabio Estevam , Lino Sanfilippo , Christophe JAILLET , Arnd Bergmann , Andrew Morton , Uros Bizjak , Lukas Wunner , Kefeng Wang , Ingo Molnar , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Mathieu Desnoyers , Lai Jiangshan , Zqiang , rcu@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long Subject: Re: [PATCH printk v6 00/30] wire up write_atomic() printing Message-ID: References: <20240527063749.391035-1-john.ogness@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240527063749.391035-1-john.ogness@linutronix.de> On Mon 2024-05-27 08:43:19, John Ogness wrote: > Hi, > > This is v6 of a series to wire up the nbcon consoles so that > they actually perform printing using their write_atomic() > callback. v5 is here [0]. For information about the motivation > of the atomic consoles, please read the cover letter of v1 [1]. > > The main focus of this series: > > - For nbcon consoles, always call write_atomic() directly from > printk() caller context for the panic CPU. > > - For nbcon consoles, call write_atomic() when unlocking the > console lock. > > - Only perform the console lock/unlock dance if legacy or boot > consoles are registered. > > - For legacy consoles, if nbcon consoles are registered, do not > attempt to print from printk() caller context for the panic > CPU until nbcon consoles have had a chance to print the most > significant messages. > > - Mark emergency sections. In these sections printk() calls > will only store the messages. Upon exiting the emergency > section, nbcon consoles are flushed directly. If legacy > consoles cannot be flushed safely, an irq_work is triggered > to do the legacy console flushing. > > This series does _not_ include threaded printing or nbcon > drivers. Those features will be added in separate follow-up > series. > > Note: With this series, a system with _only_ nbcon consoles > registered will not perform console printing unless the > console lock or nbcon port lock are used or on panic. > This is on purpose. When nbcon kthreads are introduced, > they will fill the gaps. The series seems to be ready for linux-next from my POV. I am going to push it there so that we get as much testing as possible before the next merge window. Best Regards, Petr