From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f13.google.com (mail-wm2-f13.google.com [74.125.225.141]) (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 C1A8836DA0D for ; Tue, 22 Sep 2026 07:26:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790061980; cv=none; b=mqYmtZee10IgdysQbFtnhbOyJictvuwwKgVQlvYKHXn/8ijaavdd5cCrUWZ+H3e5oJXdT5aMpu+dR6CmZCou2KpoXwwkI92Puu0RCRmb3jmNrz4eu8qZbNmAYjprkgcdu4C0lpxf4H2LS104DEAaNn7rar2cA5NOx/wic33IlSI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790061980; c=relaxed/simple; bh=NpaZsBG3v2ONu7MpNQhDjFvyJTphrtdxhYVx1AWKONI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mW9adU5E/ANSq9rKx0juGNENxoB8ftegx40qO31htkPn06Y4tfWaAzgFkI9MGdA/vYn9KHz/TUiv9JsWODjah4yUopchFAxLtl85YX3iaQOzm8SSA2AlCnz6bd293pdTPK/wDgpB43a6DMExz+NPe0rtdrGP8Op1wRY2Jc5T6e8= 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=J5djkjGh; arc=none smtp.client-ip=74.125.225.141 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="J5djkjGh" Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49b912e2406so19450775e9.1 for ; Tue, 22 Sep 2026 00:26:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1790061977; x=1790666777; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=tV9ZgiYFru+aj6sJhaLwXAzLv5SWqi7Zpbwcao5o810=; b=J5djkjGhJpFYM2GSd23sDjDtrOemOb+cAnYke12JKUc613u6GSjBOUbYrRutLPOact 6laArDOc3JtzpKziY2lSdHPzNJfrBxUFa7H3Qr+8XScDlyxBklT7JE/sQEnZBUDCg+tY bswMRsdOmHsT+aQZ372QzZvnGmb9LNEHZU8BjATySaK/zEIgaqWIfzZJ6gnODe43K2+h cVGrKTHPz5sWOgR015yfEja7eSKANP8c/Rjm1gdlWcgSIN3I5PLnpuzZSQ6PhIR/QwTX FLWVcpQLuWwswleJKM0YU2T+WnwNg1D3MRPPqwB2AOj4cnDjKiJ1KQBfMnzrwYiI8RsS mI+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790061977; x=1790666777; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=tV9ZgiYFru+aj6sJhaLwXAzLv5SWqi7Zpbwcao5o810=; b=kdnLVLysTlcaSsrlWEd66MK/9BK0vOU4+migFoFua2hqbKykoM/wiaFohyLaBIY74+ pWqB4/hMAtvEe1e4brCFBSS3fS9Oz1OFIGyLonWyVOk+D8ux3wuUMV7cBRaKu4ZH/pVp brxYC/Lpc6HWweQ/sHWQRCjfMqCwG+oZ9RB3hSWBO5mrjgIx/J9JxQuaYT8aU48+ChuW E65HVWw6ymCHN19TF190fBbygKVQoXIY8stagLS3KrOpOejIEQnyArsNwUqn+q/4cRv9 KOWqqdT5WubrDKwqyFWxBIaucyAPeatr7cvRsbfZ8vnfusxvECTilypPiHq2BaBzIKUa EfSg== X-Forwarded-Encrypted: i=1; AKwUvBwcezSwaJKlPBT6Zsjuqh1K799CAzhByrpOuBw8teYjzmL+fIyzu6L+jbeQ5wvGEHvNKlp4C1mg5m6fxs0=@vger.kernel.org X-Gm-Message-State: AFuF++mEyolhBoz8zvHANHTWsF5mcMjEETSFmGtqTUgyb/0oZYZrej0j PUIq/X3RDxEkgzNn6gMZWs1BbTs4fwNR1qfQxNUjlmLjuoJ6MahRSsAgtG48EmIPiM8= X-Gm-Gg: AYBFou0FiW+fgVcPq4FKRumlCT+dvYD4fVR5/OvK7AhghoQjdOgt7jFPXWnsr/eXRZM kGw1ZFNOr6BFKKd1rA90ywT3vH6d0MoCFNZJtOoFXrob1Wtdif67LQNINpQ+HfTX2ihHFTsruyS NUbWV8QYOPb4Pv2RPYQl9yaHkB5xs0cSCQIiY27FXFnZiAyMV0lG3UivYqBeyoqrsht2mW/KgFb SV3suwELpIxs89zBeK5d7mhWWay5Py87avW4d7ICpK1wwcj1w9og5ET9kkk/IZdq0qtcS9Tfro3 Ntp5vQs0Aof/22uKUMLpgLXU/NxegXuLqn3VJFtszpc8mCs8r23cBgs9XPnhHxgWiOBxtiUBEuA cEi0WuinoTmbmQeQwGByHzR+T/WVYzDEo1QNwZ5EF0hfTWztYwaLkiCa/vTByedgL0JMFewN9S1 DPSrgJXdRyDvi+gbHc+6c4DUzVKPXEAKlJOIbk/xlua2uJna8DzW0H8ZiqUm+zk4o/Jx9IqDTs X-Received: by 2002:a05:600c:4592:b0:49e:6836:5386 with SMTP id 5b1f17b1804b1-49fd8517e22mr33087645e9.0.1790061976974; Tue, 22 Sep 2026 00:26:16 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.130]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fd8ce2646sm59215695e9.14.2026.09.22.00.26.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2026 00:26:16 -0700 (PDT) From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Marcos Paulo de Souza , Samuel Thibault , Greg Kroah-Hartman , Jiri Slaby , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Hugo Villeneuve , Fushuai Wang , Kees Cook , Stepan Ionichev , linux-serial@vger.kernel.org, Manuel Lauss , linux-kernel@vger.kernel.org, Petr Mladek Subject: [PATCH 0/2] braille: nbcon: Allow using a serial driver converted to nbcon API as a Braille console Date: Tue, 22 Sep 2026 09:25:56 +0200 Message-ID: <20260922072558.98854-1-pmladek@suse.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, I have been working on v5 [1] of the patchset cleaning console registration code and I found that the system did not boot when I selected a Braille on the command line, for example: console=brl,ttyS0,115200 console=tty0 Bisection went down to the commit d3539347022a ("serial: 8250: Switch to nbcon console, take 2"). I found that the Braille console driver called braille_co->write() internally where braille_co pointed to the uart 8250 driver. I added the support for the nbcon console API similar way as we did for kdb [2]. Note 1: I believe that we have a bug in the kdb patch because we call con->write() atomic callback after entering the unsafe mode. But we should do so in the default "safe" mode. Note 2: I am not completely sure about the locking. It might be better to use NBCON_PRIO_PANIC in panic(). Also I thought about using con->write_thread(). But I think that we have to use the atomic variant because the Braille console can be called from printk() via the VT code, aka graphical console. Note 3: I do not have any device to read the Braille output so I am not sure if the output is correct. I just checked the output on the serial console and it is a bit suspicious. It looks like it prints every message N-times when N is the length of the string. And it adds one character in each iteration, for example: E>[ E>[ E>[ O *>[ OK A>[ OK A>[ OK A>[ OK ] <>[ OK ] <>[ OK ] R N>[ OK ] Re >[ OK ] Rea J>[ OK ] Reac >[ OK ] Reach A>[ OK ] Reache D>[ OK ] Reached @>[ OK ] Reached @>[ OK ] Reached t But I think that this is not caused by the NBCON console API. [1] https://lore.kernel.org/all/20260604101459.393162-1-pmladek@suse.com/ [2] https://lore.kernel.org/all/20251016-nbcon-kgdboc-v6-0-866aac60a80e@suse.com/ Petr Mladek (2): printk: nbcon: Introduce Braille helpers braille: nbcon: Use nbcon atomic console callbacks .../accessibility/braille/braille_console.c | 38 +++++++++++- drivers/tty/serial/8250/8250_port.c | 5 +- include/linux/console.h | 8 +++ kernel/printk/nbcon.c | 59 +++++++++++++++++++ 4 files changed, 107 insertions(+), 3 deletions(-) -- 2.55.0