From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 52B9913D887 for ; Tue, 28 May 2024 10:10:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716891026; cv=none; b=ecryllfR3tWxkUBheX1lAovlTGecSN7McczSV/2M4uaMgk52ArC8bEMpl+DCb63kRaCGbQ8KsV6asKwSO5dW1Z/zAVqETSCA3+EYGOskbG5dFp3bzWdWBl8MQoD7DTCdNmPMkBVJpQ7HLselPIC0fvgBggju1KMvLM5xmC+AHk4= 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=MX5cFsM8; arc=none smtp.client-ip=209.85.208.54 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="MX5cFsM8" Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-5786988ae9bso787469a12.3 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=1716891022; x=1717495822; 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=MX5cFsM8DAz5xhcou82Su3v5uCrIK3Hpz0uhevuE2hvh9zGo6G6cgCCvAwUqArhhIz GFNEnstvr1iLKdfD/EIp0HrVi1zN8DaLgj8KERytuoP9hqVW8cZ5sWp/ELW7Xo3v60+I +oiR7QuZDvpplTCv36Igw2thrlrePtTDolmYUOqYuSVvi/Em6i2H6dXsga5O11xGZD1w drqdpRrUPvKE9+rJvIQtTHxNE413KHuPfz5kkOs7ZacgSamgaztaI+lwKfrr+Ile0ECY soRru54GQ4KyNToaB6QHRE5F6laZhuYnLvAVwR/g4XOnZAC9P4LB8xlIfYro70+Z2vbn lMrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716891022; x=1717495822; 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=U6cKLCgh9CEU/S96TiY7AZXg6M/YBFylTbuxP1wpGFFuYz92LM5UzRyIdWRumlbNUh NNt+BzPuLpGlyrEX6GITzNM2Y2478Pma3e8wlxIvGsNcVzB7znwMgev1KKBHrQVgj1KR mGaMLuwpkyBX5mAK0WAa9a2+rRqqFc0QkXrHpch55P0NgeeJE827Uyaf+ge8cSFOLHHr k69Ud5HfsB6sC1A1jTnL4Mt1XzoHPBljetZDs9BfwFqq4xsTkWuw6UDGjkJnNwyROodD 5FyD1uYgqFkjTpdY2xcgfhu4arJbRKJOuYMB4u7mRTfriCxB6R+nWRB0fuhfGMXonnnp Ycgw== X-Forwarded-Encrypted: i=1; AJvYcCXLJ0X2teh0JnXAEfCN11+mCJoN+OVtFn/KvT39xt3qj7Qs9h7So7IE94tew4s++UHA4b2mKdHo2HQJMzvM8V29lTmj+Rp3xLFDduzn X-Gm-Message-State: AOJu0Ywm4XMmzUfxaLBixHKlsFZv0iiE02enXzJNI82fo6PgojYBgbhI nuZgdQEG1onbe1rR9MG62WzBCAViVcmebcSEQ14cEQk3vPUPDcDwN9VW4oT3A0U= X-Google-Smtp-Source: AGHT+IGpgS+uwKuH2Bpx+dmo3enX8lwr6VN0F4YXbxpz7rHlyHJJKgB6YVNlH7G8nqLwYOL9zLGHxQ== 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-serial@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