Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2940019lqo; Tue, 21 May 2024 01:41:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtLjt+MkQmlvpRdapQg9JD8w2lwvmYW41uG3orfmy+20gXOta7XYUbTLyFirOD8ox5IiKOFkzdwCHFrce24SlONjaLlCN5UpZ6L1ilrg== X-Google-Smtp-Source: AGHT+IHMfY+P9bAlPOcgeiSGpn7saoIgZpwFivDtpa8yiXgLRWqAcRyu3S2HMZ5OXth1m0bx0WUW X-Received: by 2002:a05:6808:1241:b0:3c6:e8d:3ef0 with SMTP id 5614622812f47-3c9970d1892mr38602118b6e.49.1716280909940; Tue, 21 May 2024 01:41:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716280909; cv=pass; d=google.com; s=arc-20160816; b=RfcJVqaTN5gAnu6HdK1Am6QRVnIl5mbJPXUGJ20VEXQirXldWRTKb6HQ+SRpyiFfC0 0WbIRSHWFY7t57WQ0lJ5aCNSScSvXvfjjns5J7B5ZX7fMTmmoDIntWAIaV2wdO4WkLT+ FNalBH/McFy8w3HCpDCd5A2BBrtBqoa4pPxuWJp+DDtzw5731sJwfOEFLmtKb1NP+g7P qCdDbFfCFoxVXuUZQ9AGTjRuHI43w0fzIq5xEPy5fbsoLbmtWeyUZmjZJHDQ6evusB/P VqFjpeHgNx8GczfvU6H/tMIg0JbYR/NhT/vA8nX4O4FDAqOn1s3ifoUkdQkXQz6I6ev/ gu0w== 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=ZPC6agpk5iopVfITW8oGp3F+WUrfJXa++l+A0Fj8wr4=; fh=0VM9LQEL6KFZBAuKNUjLQ3IGNGBC3tUsG/medcGFvbs=; b=S1mGJtSXcMmjrBCtSNARJUaLN2gGzoJusE4ioraE5wzrFfGtzKK0hdqu7knInGWuth AXxCmYA5DSxJoMMdbdhd9IJPpJQ5bkimU8Ta3bG6aWgNR40i0gkQWuR+duX1JHW01tMe wmrlIx98RRMgAM+cHugVQ4K+aAp4tZFyQSkm7wWeqB/znRrwsa05I/XwlS3zQ1yZm3Vi 2wAwgzdPoaVETg291xvymHKZKS0vBTLrpzO16L+vmje10lvMPfpiKqMzNgclo/CrcSa/ ap92d0/i8gDk5cUD2svHIA4PyQ/01qpsfxE6zWvCXVZAOdFm/fmNyJM7htJ6BmSHNt5F GuHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=Hw1dhuy5; 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-184661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf38e8basi111588485a.785.2024.05.21.01.41.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 01:41:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=Hw1dhuy5; 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-184661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184661-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A5DA81C20B7E for ; Tue, 21 May 2024 08:41:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6391455E74; Tue, 21 May 2024 08:41:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="Hw1dhuy5" Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 85592C8D7 for ; Tue, 21 May 2024 08:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716280904; cv=none; b=M8+ALj1zEyqRZsjMboxNWA2OZbm8SKyLA4YBp8E3VS9osfXjb56qEtrgJzJ2KiltsNHOzyLDnNZfYYcO0mNSz2aob/7qFYu7f/zh2m/X2VpqwJwrr5SKT8JBuITvkhQ23mPSwEKk5zPpUZIn5s4fJA/5I94PSk2WFi5FZlyuT2A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716280904; c=relaxed/simple; bh=KvTpZ4Yf8yCiZrKxLo/GSRiaO58j+Ysk+2Rz3zu0/Bg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RNW1lujjbTT5uRH6UTDygwUu4PiloVp6tQJkqwu3bRn5lzPYujuOTSlNJ7aFiqpsataPxeQas2+HLwpYtmRKI0Gh8wkBte0nP6Xd0V519mGJnWNwEAD25AdXBEy+hmsU0NmVgFrI+PgGB3hnBTUlysNKY9GcCvDZAVaDLo1McQM= 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=Hw1dhuy5; arc=none smtp.client-ip=209.85.218.41 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-f41.google.com with SMTP id a640c23a62f3a-a59e4136010so862612766b.3 for ; Tue, 21 May 2024 01:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1716280901; x=1716885701; 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=ZPC6agpk5iopVfITW8oGp3F+WUrfJXa++l+A0Fj8wr4=; b=Hw1dhuy5EZvWkFpEvKqn6HSrBaXfVj506EMCyYcGeKQ32A1NfMnFSOlwMhApF9Tzxd it7pwef04wWIabU6j0WjqMhMopjBfW/HLrnqjtgqsv9IC+xFxqOSB/8x8WJGDxhVqgYg vlAAd8GAYLHt0PaNJQ6w9MUp5AAYeQyIDHsbnZIUjLhxSLuRZn+fgQJ7G6aI+oIpdgZN IkM4T4p9w0kYe2s012xKlGUJ4nF3EDsiIFnypmbvAao61KbSO8CfM3a/LMLwB2VAFKfi gLnJ1IDF59fQDURNbo7A3gP0td4QIyZMz0VyHxfkUGJFB8K9pgicAbPgMgn/1VK+nRur hLPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716280901; x=1716885701; 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=ZPC6agpk5iopVfITW8oGp3F+WUrfJXa++l+A0Fj8wr4=; b=XdM1Mhi0ZhkVvaxUG8v7hFwnGs5//uLE5jKc6IbvHaaxxN/K+ZnY1u7oAXG45S+Lfk t4gO4fyuA6vvgT2TPL1zsxIGVVnTx/7l4dx4FelrBlDCttWo8W4jvoD0ohx/JJYGuhY0 m9mZBs7fbGEJfvafvXvl3KOll7PJ4kw32YyrUJWrEHgGr+Mn/KXkZWel644XnyG50jwi vGw2g9Ql6M1ChB6lDD15khKRKREtZn4EGQQIpPMX+ZFpO4+ubYAzqU22qxpuh0P2HySI 64tT7gOCEX8rJG0307H+QoGlh8UfLW3fxSTVIP6sk0tqxgh6GFFnOQwZl09M9JZwa5pJ XDew== X-Forwarded-Encrypted: i=1; AJvYcCV5kOMlBhhquVXeFMUf3MC+sq9kKUgpQph6AdQ5spuKLR453y1To+FQ23HzBRPeRfvvgpZps0ONZqsYT33iUkBHDZUPHWIkvYilQgME X-Gm-Message-State: AOJu0YwN4lpKRSQd79yKLOD8dDspnEm/+dtUL/BD3qY7ao640e6TSTKj H1jOrmeBBvwRhkSiW29n0llrxHiNXu8SW/BwHWx1RJU06T/XVS2zlg9+HDv6iPtttlPEfjrGdU6 z X-Received: by 2002:a17:907:25c5:b0:a5a:6367:717e with SMTP id a640c23a62f3a-a5a6367bc70mr2033181366b.17.1716280900863; Tue, 21 May 2024 01:41:40 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.50]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17894d35sm1567476566b.81.2024.05.21.01.41.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 01:41:40 -0700 (PDT) Date: Tue, 21 May 2024 10:41:38 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v5 21/30] printk: nbcon: Use nbcon consoles in console_flush_all() Message-ID: References: <20240502213839.376636-1-john.ogness@linutronix.de> <20240502213839.376636-22-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: <20240502213839.376636-22-john.ogness@linutronix.de> On Thu 2024-05-02 23:44:30, John Ogness wrote: > Allow nbcon consoles to print messages in the legacy printk() > caller context (printing via unlock) by integrating them into > console_flush_all(). The write_atomic() callback is used for > printing. > > Provide nbcon_legacy_emit_next_record(), which acts as the > nbcon variant of console_emit_next_record(). Call this variant > within console_flush_all() for nbcon consoles. Since nbcon > consoles use their own @nbcon_seq variable to track the next > record to print, this also must be appropriately handled in > console_flush_all(). > > Note that the legacy printing logic uses @handover to detect > handovers for printing all consoles. For nbcon consoles, > handovers/takeovers occur on a per-console basis and thus do > not cause the console_flush_all() loop to abort. > > Signed-off-by: John Ogness Reviewed-by: Petr Mladek Best Regards, Petr