From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 75BCB3CFF62 for ; Fri, 9 Oct 2026 15:27:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791559630; cv=none; b=LyfSZdAKIIJ0L3MpfTO/yFVnq35yk8cBzA3bT6HpA0/UJPT90ogMtUIkAU6BaOPmdM3ApSmh4wC3ZhEqzX776gR6h47Q/CaeFEU+ukitWQ0cMxiT8n7vN0A6iLZI+DjUJaV1WPa7bp0V9tHD29BBr8EEsrw9uzUsL4R5RQcAWN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791559630; c=relaxed/simple; bh=KwZjs64/rTuFe0HBKIyW10VbcdJrpzSWVqBnN+zFKDI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KJTEEsGlknDgxscftTfK1dVl5yZmTTPJhQsI/neGqJ4LnBimAdc0jJOnP9JVZW3MmtzDf+OAKoB2kxKAGQlPwaf4fAM1AqZMjXdirDQ1bjgKEGOchvZaXSiUCZjF30hPC1IpVqjVGBodawGdOydOtTILQRpVCtDG0Lddbw5EAVo= 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=UB/1uD29; arc=none smtp.client-ip=209.85.128.48 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="UB/1uD29" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4a1698ea378so36821035e9.2 for ; Fri, 09 Oct 2026 08:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1791559628; x=1792164428; 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=40jmrkdv9yTSAmdr7iVbfZIED5uVomcFd8fALW8sm6A=; b=UB/1uD29POMtua/TFSmvLQecBxQzsgZ0sdD6kG6YK9yXV8/xbhffxtDRMcarmY7ORx Fvncys5suZkthRtfxxyllkZCBIh7dQMtlTGyoLbynFFnaZpd7N4OcHxOYpYezTYkZ3zL uBa9G7Zpvp3b1ptGB15Sx1nhj+F5Dg142LuR2ZTxNV5mf7nR2RdQyJDyQ+/EIHSy7syV iH/Dkf83jq+lTTvMtz9ZANkTu5rWtzvAKFqpvYi6mGX6mYahrsmyIn6PKhE54rWTUAIN 06oYwFdBXgN+DPygEfoLnyhzL1K2EVbMHbRYAzXdbqg/KYR1Me4OUm1ApEilv5V3IhaX MlbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791559628; x=1792164428; 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=40jmrkdv9yTSAmdr7iVbfZIED5uVomcFd8fALW8sm6A=; b=P1+zVt6whWrzD+Vchl8X1/M/7mP2k3H7d9K5cV0ld/qd8p8apdbe8dJG77tuGvnaW4 3HzLcC16NNjAEUPL3dBG5eMASPPBL3pnItcAUx2U/MIWsQDly7VaPubZG656l2iJTwQv Zj8lGLWUr3UcApVxPgUvkVYjWr3p3rNk8IRiP1pWf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ct 2026 08:27:07 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.130]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a18bea1fefsm75191635e9.11.2026.10.09.08.27.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2026 08:27:07 -0700 (PDT) Date: Fri, 9 Oct 2026 17:27:04 +0200 From: Petr Mladek To: John Ogness Cc: Sebastian Andrzej Siewior , Sergey Senozhatsky , Steven Rostedt , Pavel Tikhomirov , Oleg Nesterov , Christian Brauner , oe-lkp@lists.linux.dev, lkp@intel.com, linux-serial@vger.kernel.org, oliver.sang@intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nbcon/reboot: Flush nbcon consoles synchronously on reboot Message-ID: References: <20261008150852.8286-1-pmladek@suse.com> <20261009065152.udyfFRHx@linutronix.de> <87qzhzxatd.fsf@jogness.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: <87qzhzxatd.fsf@jogness.linutronix.de> On Fri 2026-10-09 15:34:30, John Ogness wrote: > On 2026-10-09, Petr Mladek wrote: > > Anyway, IMHO, we should switch to NBCON_PRIO_EMERGENCY for the post-running > > states and flush the pending messages immediately. It is more > > reliable. It is easy to find the locations when system_state() is set. > > And all follow-up printk() calls will try the direct flush so that > > they won't rely on an explicit flush. > > We need to be careful about abusing CPU state in order to get certain > functionality. We already have things in place to gracefully switch to > atomic after shutting down the printing kthreads. This explains why I see the messages even without this patch. I wonder what is actually going on in the test. The log contains: LKP: ttyS0: 256: LKP: tbox cant kexec and rebooting forcely I see this message in lkp-tests/bin/lkp-setup-rootfs: lkp_reboot() { local tbox_state="rebooting" [ -n "$1" ] && tbox_state="rebooting_$1" set_tbox_wtmp $tbox_state # Avoid get stuck in yocto minimal rootfs. # LKP: rebooting # [ 8.124081] LKP: rebooting # # (shell prompt) is_virt && [ -e '/proc/sysrq-trigger' ] && { sync echo s >/proc/sysrq-trigger echo b >/proc/sysrq-trigger } start_reboot_watchdog reboot_tbox 2>/dev/null exit } [...] if tbox_cant_kexec; then echo_to_tty "LKP: tbox cant kexec and rebooting forcely" lkp_reboot "cant_kexec" fi so, it ends with reboot_tbox which is: reboot_tbox() { reboot } BUG: kernel reboot-without-warning in test stage I might need to try reproducing it with the lkp-test framework. But it has to wait for the next week. Best Regards, Petr