Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp664240rdh; Wed, 14 Feb 2024 08:00:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVhpwoC13oq3lOUlsPg9irZg7NFN6cM1jSg3yXf4aBGvBHldxf/u4kzcIjsza6BwBPaA5k/ZskaoFlixQOs4F2ujw7kg5OEHdPFVEUnTw== X-Google-Smtp-Source: AGHT+IGyuFG8YWHN79zNRHuowHRUD615wNlaR6z262IDyO7wgBs0bHMm9lhkoIdY1nHrnGK//R0m X-Received: by 2002:aa7:848f:0:b0:6e0:eef8:b82f with SMTP id u15-20020aa7848f000000b006e0eef8b82fmr3093772pfn.14.1707926422378; Wed, 14 Feb 2024 08:00:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707926422; cv=pass; d=google.com; s=arc-20160816; b=pTNWPbHrnSQJvHheECgA5iaoHKuLcdn7uY6RRzp1jC8lsRaTAhotBVs964w6DihYXa libskSCzmficL50xnB7rpvmDq8FYUo3g2UNyITyYYoZis4rML1piZZq0AzkxmtDgDjW5 z2YaSCPO4UTvhoNFL/NhKL5I8Qp/MTIpgAmM7ZBsejQmwV8Ypio/9th9k0m/OKNoPJJu gEsMM0GPC2sFgPdIsSfsgHDjS5BlYQYQL7speP6AirCCgoLlSVkKjM47b9JDNsE+1sLA O5N/OiBrGoqjUhoGuxseHFdZ6yEjQKtUCDs0CxvNPHQb29gCCY/5Go2rwsSbbvxKsp4c nbYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:cc:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject :dkim-signature; bh=rsMZabPqQdOyGUzvRmcq12qy26eK1NK8IC3lX9TP0EM=; fh=seIL1NUcoToP0hxQkjK7Mya4hdtXF0BkuNYbhucf6sg=; b=XoBIp+BIVsPPnQSNDiXOkUCnRlFhDQtJu+ZUHGXCGV8uxa9iJQAYECzc3TDmN2WWOI WIiQAo1KSAx9v5Uw1w1VefpZNQWnZhj/yD4RR+GBLDWRaG05Wgk2UwcsTVoXbpXs093d qgDH+ZiedN7byV5po6GYgbeZyW0RkwuO6SDBEmtUomJ0HOG3QkJXQv+dutBF9ECc/qmk k9urimkAfg5QsKRRnYmLFaMLBkg+CPCTStQQs/eCTuo3WfQze1HDYwtLqsM05BisiQ4n pgVOyXkndLH0QVi3xlNHoj414eETY0jBbqjBdcHELut8/L6aspByKyc1Pp1qkcqmjjd6 6cQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b="pq/wuvah"; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-65436-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65436-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCU1WlZarh4W2kCI+1TtInC+3yFGOMhZ8miW6lLg13Im5uKR4mCwT/bp2ow+ArIUfdZ1VK8zDfGBcNeLxptJ4Q43fl5sGYeAzHvxSkjLBw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 13-20020a056a00072d00b006e0f438e98fsi3650320pfm.208.2024.02.14.08.00.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 08:00:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65436-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b="pq/wuvah"; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-65436-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65436-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 635ADB24C03 for ; Wed, 14 Feb 2024 15:36:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12F771CABA; Wed, 14 Feb 2024 15:36:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="pq/wuvah" Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 8552D5A4E1 for ; Wed, 14 Feb 2024 15:35:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707924961; cv=none; b=PmBSUo2jql6ry39xPMc1Bn/wnQ1hHw8x68T0arj3lyzfj1ZGVythLLcbETzWX9FJdv/m6QJPU6onjcvnA2zT1Jt2y+qMhXtzKVNvOC8uI4cWViFGaEmKINp1NxVG8uM2gY3xl69JcpNRRwFg/GC8j3bXNeO3gxcvYHnZSFHr6yc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707924961; c=relaxed/simple; bh=1gmLICY6cDXg+Ka/QqauVuAr4yd4plrFZsbMBLjzbnI=; h=Subject:Date:Message-ID:MIME-Version:Cc:From:To; b=BV1deRK6PQusTOQkzP18rUXcpGna2WAZqcfC0Kfe2HPJjsaCcZWZ+3hBNL1xLIrfEVTCvd6jFnwAGXQRQaqXpsZ607bkdfmWcb8W9H/KysxGVEc3xXjiQas7C+zuw8ALFyDXP3XoEIJ5ya3DR1RPIqAELsqRpsq4dGhfYe3nOj4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=pq/wuvah; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6e0a4c6c2adso2226670b3a.1 for ; Wed, 14 Feb 2024 07:35:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1707924959; x=1708529759; darn=vger.kernel.org; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:from:to:cc:subject:date:message-id:reply-to; bh=rsMZabPqQdOyGUzvRmcq12qy26eK1NK8IC3lX9TP0EM=; b=pq/wuvahjd8AOz9Gc9wozSoDZAk24MbPabeObkjDmcTV5HXnyK2mDuNY6wU4sJoPIn wm+VJJ04kJg4Vvl+vt1A0SPkRvqvIgFCQGUJph0QkJTV4ttQkxF6yXyCvZpI1kC2IlY/ B+PsEtYP4gKYZB/y4CqhgUBZzpWGsDJWmqgJ9hYbplDTFZ/Z75XfUvL4IFE5GDDLL5wq c3A5ru2Qj0LSqVD9DXo6mDm8A3n0/oMAh76QVi8aUomKP9ciE5TQpu7v8nOnXyF5m2bI 4RJW1RJRT4I64aQrA+Jr/SS4K+sLUIuCfa4QuLuBxET2D0YBjaWZtr9iXm8js7WKOxzr F2pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707924959; x=1708529759; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rsMZabPqQdOyGUzvRmcq12qy26eK1NK8IC3lX9TP0EM=; b=S4RMJnk8mvflo30ftk1tVSSyI6UZUsLnlTPKMswuTv3YJzmMOlQVJS7RdG7UliqTXk i/uavOx2Bv9oodJPWzE2OnZLSPTXoHtrnmzmaIWrgURbCk7c4gYnscwL/r81QjZ6ToLh QHKIa7WwLTyCMYYDmbEwYYgjfHLIVhX7iKGfXBt9h1xyE3zV81lxhRIZy8GOYH3AAvCh jzK/UMBrV3eOt2a/+1NWVpn5AUIUcud2M1Gbrp6IlkvtcE8yXclauoD/FsvA6eSAgJWe n+rOxoxbYjjjbfCx/Sm1NGarOae0G+ousz4PljY1RNGSP7bu9uX8PfyzeF4cvXI2oQOH RUPQ== X-Forwarded-Encrypted: i=1; AJvYcCUOcidR/Z5XuBj86EhCPpukpYH3VibKlpxOQw/dg9isD/o7z88+5EaPbMj2brNxSettveufuZMcnVR0TIWB/CW/Ch4EE1bS+ehIveQE X-Gm-Message-State: AOJu0Yx7wZS9s8nBTIDo3CL/+MG/qEtknr/EzqDp9mbCHG3Ygj0S1U+Y c7w7kpFGJtgUj37tpERsG54k0W3jN6Cb0/zXvgA4zZYC+x48MXCMLcG1+NWTQLw= X-Received: by 2002:aa7:8b8e:0:b0:6e0:5281:e0d1 with SMTP id r14-20020aa78b8e000000b006e05281e0d1mr2385582pfd.1.1707924958554; Wed, 14 Feb 2024 07:35:58 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVi2q1qLmAsiIATfz24ig+iFdorSpWUIiVssALGUs9LyD/SA8Svg+RLskFF9Q3UBkfSIXUaqNAHSMROGt6rGhEjBIg8i400pd+JHT7D7ZPZig5ML1gXfZtiDwZSLuOr2IkB5OzqIQu5QHPMiC38TLbMz70t7m9sw126jWAF0Pi8QHsfIZT0cwIeMyzRoPB2O2IuROzwxS/cNdZ4lsd+3Snpc4Q2rdGzDCIMbRaCrt/hh6J393hnZIhkBWLUHHl8xpwy/bHH5iorENgQzCDaVoJKIAmtPkCrSkGDdd2JoKia20r/7sCfPQDtw3KMONjAkn80c8+y8aeq+1rCcVgx+jld/U14DkTxaAae39nF Received: from localhost ([192.184.165.199]) by smtp.gmail.com with ESMTPSA id h28-20020a056a00001c00b006dbe4452741sm9508749pfk.72.2024.02.14.07.35.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 07:35:57 -0800 (PST) Subject: [PATCH] tty: hvc: Don't enable the RISC-V SBI console by default Date: Wed, 14 Feb 2024 07:34:30 -0800 Message-ID: <20240214153429.16484-2-palmer@rivosinc.com> X-Mailer: git-send-email 2.43.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 Cc: Greg KH , jirislaby@kernel.org, Palmer Dabbelt , Atish Patra , ajones@ventanamicro.com, apatel@ventanamicro.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Emil Renner Berthing From: Palmer Dabbelt To: linux-riscv@lists.infradead.org From: Palmer Dabbelt The new SBI console has the same problem as the old one: there's only one shared backing hardware and no synchronization, so the two drivers end up stepping on each other. This was the same issue the old SBI-0.1 console drivers had, but that was disabled by default when SBI-0.1 was. So just mark the new driver as nonportable. Reported-by: Emil Renner Berthing Fixes: 88ead68e764c ("tty: Add SBI debug console support to HVC SBI driver") Signed-off-by: Palmer Dabbelt --- drivers/tty/hvc/Kconfig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/tty/hvc/Kconfig b/drivers/tty/hvc/Kconfig index 6e05c5c7bca1..c2a4e88b328f 100644 --- a/drivers/tty/hvc/Kconfig +++ b/drivers/tty/hvc/Kconfig @@ -108,13 +108,15 @@ config HVC_DCC_SERIALIZE_SMP config HVC_RISCV_SBI bool "RISC-V SBI console support" - depends on RISCV_SBI + depends on RISCV_SBI && NONPORTABLE select HVC_DRIVER help This enables support for console output via RISC-V SBI calls, which - is normally used only during boot to output printk. + is normally used only during boot to output printk. This driver + conflicts with real console drivers and should not be enabled on + systems that directly access the console. - If you don't know what do to here, say Y. + If you don't know what do to here, say N. config HVCS tristate "IBM Hypervisor Virtual Console Server support" -- 2.43.0