From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 7F6A8491591 for ; Fri, 9 Oct 2026 09:16:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791537421; cv=none; b=L1j6VeleABB8oKGx1Jymbah3XWXIPtWHPig421E49bl/PmUuNqom6fnywWWi5Esj5gOs51M3z2zk0tjU9Bcx/jQox302NS4ECy9QAr5pBz9JJxdqjBhkQir6xvpnAmCqyJVkLDTSoSSvPYer9vLaJ4VKjMa1hHPNLQU8qClDDAA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791537421; c=relaxed/simple; bh=hjUeeF84zGQeCguNxWT1DSh/V288K62/667n4VCMYNc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=vGrzrFNgpegcY3ZziH4XDiSaH6fast7BuyrTtFN3ka8l9QZJeNOMExDSPu1vKwM2/Z3EU2Zpr9UbQk3v7khAIvopMjFrSS5SyiD9hDYJqUvUPw2j2iJsWaAv0pq4qE8+KcD3piWWlavzjDdZLpmdEUyO28QrtcWCxXtC+2dZNgo= 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=M8gtNqgh; arc=none smtp.client-ip=209.85.221.53 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="M8gtNqgh" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-48c4207ac26so2996932f8f.0 for ; Fri, 09 Oct 2026 02:16:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1791537415; x=1792142215; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=YtSEU7OloYM/ik260iA76jMOjTaXd/5ywnlmhTJRsTM=; b=M8gtNqghg13xJu/Cjxo5cFqD4V+WuiPvFAx9Dch4zp6MC6yg6TYexR3fWOhyas7jt3 n6cHMGLjgVxcfZUl8MsEOqWvx0CW0IdOMaExWoJwuNA20VAvZU1S8iUJ3MxNGTZqnpA+ PkpTI/Rss07wuVZFwvuJpetbw92hzUuqcGeX5oy8qaJSEVdEBY2jEppt8jtEaQ/8//yJ 9E09UR0tbLrTYLfToB5yTLpleWRU9Ft1By6dGyJeihHnIy+cLZg7Ary9wq11NXG2Rz1b B6W4olC0E+lVhoILqIZ5LEXCDfGomp3A+t30BfHW4s4kQimxKwXoh+vb86zkB7x7Igix o+bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791537415; x=1792142215; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=YtSEU7OloYM/ik260iA76jMOjTaXd/5ywnlmhTJRsTM=; b=e81Hcr+iYKWa/I/jZVHFug8HTCwyW9urz6BeQ+/7GjpnpjPKhMDliuh7wfwEQ6uMMi 1pvPikq+FYNsu1E+ylJg5RC76njrHWhjhKpSGhQwn7VEItHaQyZIor7KbwWo/uQO8Xs0 pcu9AIRoRjMKiKjLDvQ7E6qudAEO+RuzhTw2z+r+pieXncHqPnWIJPVvdIj8nTedh1uS ze+mFjfRqV0xj0he/yKQxS9XGBnA1rMjCV/SbGg9PmWcVtD/FMc5Zbf/uknAZJxB77g5 hEG8kzehOXNinI4X/U7Gwr23wNUuRJpN3lRGReB3dYeamuXNxgA7J+q9ZfBticwFRZZr 8qCQ== X-Forwarded-Encrypted: i=1; AKwUvBxUf6AcXZbXtP26wD1+tCkp0iamxYz4YwZ8reRL2VugtgzbG/soW8g19sYH9I8DlNmS8hAC2Shz0qkklFk=@vger.kernel.org X-Gm-Message-State: AFuF++n2uNsoypaiBkc8DXdOOlW0szazWi/xwfPOU/cQ4OyZuXXwSoO9 4V8nkxFwlC6138YJTceQDA2r7UWUbASR/E2B8V7vKMUEBkqm+Cr9UlSUiyFhcHXeps0= X-Gm-Gg: AYBFou1GzIsCMNec7y/AL3twhkcmMGl4B9uY0LzMplQxlK87PxzGGxnT6ybxuHNSkAw vwYkvKnRhx7Rml8VdTpywSG8jcIjCwgY1eaorybWycIYJNiziI+VrwkQBkineeOgU/W1a+C9DLv gfCzN5nzkT7M/zF3kWQeEgctvwMoPkrj7JgR1R3dYUgxhO7i3jbpi7Wftt5vTEkunFQw+rXcNuX rdljE8szk/vdd/9w3Lp4SJYOiZyhGfX7EdhXptyt1EYzlwKc4nzRyiAHXm/YjBkZf3AAzrukJND xIr/paiSxTQ/K08+6RxfBYm8MJJfrWJ70IzqznzlTELQVPvfQ8LkwheP8nqE4npLecvF2Q+mHR7 heIvar7svVvypgoEqp/VN9Jwa789TzFTDMq82Iy0K//bfBnYBkCe3QINWjXDY+aD8I3vo21bnfU HZ/RpTTu7/T9nnzOYQjxP/y6EZjtoL232wP7oZdzLQTETytz0LO2WQrIQZIsTHXMjrmsgs8AXHQ A== X-Received: by 2002:a05:600c:a00f:b0:4a1:6c0c:ab93 with SMTP id 5b1f17b1804b1-4a18e4e24c7mr24231075e9.28.1791537415265; Fri, 09 Oct 2026 02:16:55 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.130]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a18bea1021sm42237545e9.10.2026.10.09.02.16.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2026 02:16:54 -0700 (PDT) Date: Fri, 9 Oct 2026 11:16:51 +0200 From: Petr Mladek To: Bradley Morgan Cc: bigeasy@linutronix.de, brauner@kernel.org, john.ogness@linutronix.de, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, lkp@intel.com, oe-lkp@lists.linux.dev, oleg@redhat.com, oliver.sang@intel.com, ptikhomirov@virtuozzo.com, rostedt@goodmis.org, senozhatsky@chromium.org Subject: Re: [PATCH] nbcon/reboot: Flush nbcon consoles synchronously on reboot Message-ID: References: <20261008150852.8286-1-pmladek@suse.com> 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 Thu 2026-10-08 16:19:03, Bradley Morgan wrote: > On 8 October 2026 16:08:52 BST, Petr Mladek wrote: > >NBCON consoles emit messages in a dedicated kthreads when the system > >is working properly. printk() tries to flush them synchronously in > >explicitly marked emergency context and in panic(). > > > >Another situation where printk() could not rely on kthreads are the > >various > >reboot and halt code paths. They can be detected by the `system_state` > >variable. > > > >Let's default to NBCON_PRIO_EMERGENCY for the post-running states. > >printk() will automatically try flushing the consoles synchronously. > >Also do not rely on printk() and explicitly flush the consoles > >after these states are set. > > > >Note that suspend code paths have already been handled, see > >console_suspend_all() and console_suspend(). > > > >Reported-by: kernel test robot > >Closes: https://lore.kernel.org/all/202608061008.48a1e76e-lkp@intel.com/ > >Suggested-by: John Ogness > > Hi, this looks good to me reboot.c ended! :) > > Reviewed-by: Bradley Morgan Honestly, I am more or less ignoring Reviewed-by: Bradley Morgan. I can't recall any problem reported by this person. And the excited, AI-generated, acks do not add much value. > >Signed-off-by: Petr Mladek > >--- > >Hi, > > > >ah, this somehow fallen through cracks. > >I am sending it as a proper patch finally. > > > >I am sorry I have been somehow too busy before > >the Plumbers conference. > > That's ok :) I'm too unlucky as to not go to any conferences :c I am not sure if there will be any conferences when robots will be ready to attend them. Best Regards, Petr