Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2649588lqb; Tue, 28 May 2024 06:37:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWuvo6Edrg9otA0Mdx6MzdoqAqSyfhlU4v1atgWfZxZmYEtMaVEU3WM7ephthBWZ9g2c7Nzc6mTNmFxCoF5iBRXiF8bpXbDUKJJHPmUvg== X-Google-Smtp-Source: AGHT+IHi+WLRS0SvT7hCy4AhF/b8eZ0nOoR3rFUOyCc45w9AoT/GTdw/lVnwFY8SvXvK8seo91mJ X-Received: by 2002:a05:6a20:5519:b0:1af:a469:75aa with SMTP id adf61e73a8af0-1b212df052fmr10693914637.46.1716903437615; Tue, 28 May 2024 06:37:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716903437; cv=pass; d=google.com; s=arc-20160816; b=hcBRtqI5fvHEW3+JQYBr1iZwSDNlayjS5iszcc9Ntoqr9czg17Zbb1J5Omi8GFPr+O XiRbjhOWs/5z+bV/05eO5A1WAM7jobIelxPTVHoofD/aVm+ec5cMnsYcZN1S/qpNGR+u ZaCBesSQ7Mg24Q9HEqvd+hYXOkeB7vrpbNOcdprRllrIYF0GXpcbMb4IaJWJzt+PcZzS N//3g7XHPUAfsmeToXBPwUex3DBqAB9Q8EtqCjh8pRHUkqK/q8MeBreMTOrgpUqjxZGg HAjsQagTnJFpGxSxGzdWR7gLH18Qr+a+HHYdBC8H5QQKlmELfPH+eq9L93K9VhvcSX3f Ux/Q== 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=tW6M0gf7saQEvTU4yjSGcUXDr2NTy1Qf8dzKr23/MaQ=; fh=V8MMjbJTF5dqQm18g6yS/AhQ462jdM0sP4Z9iV2aXO0=; b=0ZX7oE4NxIGgCbqnmKNr8QIYis2owDP6F2woF2qXFCbZdW2XsUvcWVccAJ9TBaBzri Y8A23HatYbfqe0jl2eIRGkQEKOYQOPHHVmBWJWRTEvAstWLmVIcFRqXbTcdpnqGT3rL3 fKWUW6n/vkWxrm7AeV/gbJDRUzIc2nlhwhHLEtct0DRGDXTWsqvWnp+Whcc2amisdTv/ SlMUyKyYIlEak5RNm6l+Ilscg7/41AozdkbyBzrsm4DHOQ6UUSuYca3coUOCfVK77E61 XaFVxBo5Y72BwjXm5LUSn94EaANvtxoisLtsDJceqrkqcsKbF7Iq4pGEGldiLCzTbGDd 2YTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=TqJdRyXC; 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-192433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192433-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-68222db0e38si8233618a12.203.2024.05.28.06.37.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 06:37:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=TqJdRyXC; 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-192433-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192433-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 1FC1C2845FD for ; Tue, 28 May 2024 13:36:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 643C016F278; Tue, 28 May 2024 13:36:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="TqJdRyXC" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 95C9114386F for ; Tue, 28 May 2024 13:36:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716903363; cv=none; b=i+FshSpIsr3H8uyaYpYUEmXD8Ehlmv/N1TQfE/svOe5wQdWbzUKKkPyGovHvNWNUcXY18WJ9d7EKFj6YCwmKV2C+rz2VO9PjCpH6YYMx10G7D6JCrsXlTj44IdZIEIogqBYn4HYLcKR/KNFSvGhQmelUpBBG/lB/go4W/jkkw8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716903363; c=relaxed/simple; bh=JWtHlmtusIhLMWgbZyZG5cDMUrRubiSJG0EqXMgnYnU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DRh7C7NfBdvrAmpbEXP7nR/ubCKQ0+Asa4WDoZnznQAYBLt6etoB9NSIn4ci5wWvbB4ILUhWG3hGsCHMjfqUfk39/Z47xO0SvbYxgxq1U/Xg6nDNbKFxtivHoHWpIQaoX7KNj8me2HNbKN7nS6/4G/XGLYOBWaUPTTp58Ok3v8E= 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=TqJdRyXC; arc=none smtp.client-ip=209.85.218.49 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-ej1-f49.google.com with SMTP id a640c23a62f3a-a635a74e0deso24216366b.0 for ; Tue, 28 May 2024 06:36:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1716903360; x=1717508160; 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=tW6M0gf7saQEvTU4yjSGcUXDr2NTy1Qf8dzKr23/MaQ=; b=TqJdRyXCTQpLGFNp/a470s5Gco0RCyVozVHwMyhUMiLZ8jYHncwPd9lzibOxmiG4Xf qleLq70gWLOrJ7NP5YZUGZrqF4lEDOMZ79ypKp5K/eb+EGtCiU33Kytj0qWtGBVzO03j whGYmjgppxHni7cy7Np3RULbdSj7+I/HowltPo7a19TWe8V3aMX23BVPSP0CiN6UiyuA htVjIYrHa1dFLYFeqUpkN2grMK9VxCUaqWp9GcGVYVvPrbm9I/fJbFkn4p2UnRlKfrsr uD332eE9qEYeSgUOyYJ6lLFt46mUnZ6imZ2tzjLApz40h2HZ+TFFa3zSnZiknpceHs6K gtYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716903360; x=1717508160; 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=tW6M0gf7saQEvTU4yjSGcUXDr2NTy1Qf8dzKr23/MaQ=; b=i+OB+0SxIcNexdW22MKd9ToyNbuK2Sa36RVBF+XkSEyWWfW9qx9kueS8hYEP54HZIL MRdVXbIrz+Cfy7VeVAh5mFHXTHQNGnayXzMf+IUCkvz1vM5vdkdDv7tKJqHe7Pn3pGna TW0LyUMYU7vyKiKD1e6V/rAkdbWncmJHv/X7BMstZGvi1oFjXjC6NG0cbB3OOUSVvS4F o8qL1tVljwJquUZEQTq9ozd2alaHzDcwEchOJ0m79blq0nK+SiG319nbVJALs5DIenv3 wGzb33/jyx1NS3He5g2Ez117cd1O5U1eMiAgKcuDodnqjdGVSzk7tNBRtTIhtwBuHGmt QduA== X-Forwarded-Encrypted: i=1; AJvYcCV49geZ7E3/wmogcySHFMaHrhszPL7zuFsdBqkFgNz68Iif0ZFb5O1LB2/CiYaOFk29iQaHfEsrBzmK7PIl3EfmqasVXuimAUSBoA95 X-Gm-Message-State: AOJu0Yw/PUDBxiR5JqFFU2y0u7Smd5XQNWQ6eYHQoRX0fX0qFbyh6uRP Q2UzMs83E9J2i+lFYzUcPg6O8R8vAK2n3GpuQSQ+S8cBmEXYsqERQdy9KrB03t0ooGrMW6EDFnI tGx4= X-Received: by 2002:a17:906:2789:b0:a59:9ad2:a7f8 with SMTP id a640c23a62f3a-a626511490fmr837850666b.72.1716903359901; Tue, 28 May 2024 06:35:59 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.50]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626cc514e5sm616549866b.103.2024.05.28.06.35.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 06:35:59 -0700 (PDT) Date: Tue, 28 May 2024 15:35:57 +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: On Tue 2024-05-28 12:10:22, Petr Mladek wrote: > 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. JFYI, the patchset has been committed into printk/linux.git, branch rework/write-atomic. Best Regards, Petr