Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp234439lqe; Tue, 9 Apr 2024 23:36:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtPiTXmdJGNgnPrSgPVjY2sy1QFWCPx6MXFiIyTfooopHtK3LMFdR1wNK4WD2Uw0BrUbWtFAaqbZE+SeUHYSgQSt0MUjL/HYTYJBXMlA== X-Google-Smtp-Source: AGHT+IGh50MHMWrBr+et3Mslt0+upxcULkCTcER66NvY4gmNynKeN9FJ+z3yM/snS/q8dFGzvu7i X-Received: by 2002:a9d:734b:0:b0:6ea:f76:df70 with SMTP id l11-20020a9d734b000000b006ea0f76df70mr2061303otk.35.1712730971116; Tue, 09 Apr 2024 23:36:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712730971; cv=pass; d=google.com; s=arc-20160816; b=GBm6rHaYWxdfj1qMezmAeUDYi5luc5crZyU+Zwxk6EaaPwhxj7oeyNiodcExyg6frA FJha/Nj1jaPse2CLokLoZclWKVt1hJYKLYRos9CNlG8alI4//1kMBKcDzy4eIMCdixBA W1XyWJ4+Pbwaj4nR6N6guuVALi8JyXRAb3B0yuFaY0LdwnE4McIF0rw2165bn7p5zRla ME4GR3JOHrxMikEVte/2WqSzbpaHipNyX1K/HC45+//w7IJ2Oj7u5LyZp0gXagYM5x4v UkmEOo2gGq0DsvLzepiDGTRsK4DCuYLZFxpW/k96FL+jNySh/CSaABZYYDmUpAsDAGwk tP1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=HXlX9Ne5K5Oh01raodlrHaN9TtGcWeogtf3YXHWKJUY=; fh=5FOMqvpTdDbC4nTMe1TviMZp/mItQrJU1sIzVJ0NYUE=; b=tIbuLl7RAvc+Lx9B2U9SmDi+Qng3+GUHKwLkomb04rIb9flYAMnPRA3WIwdErZNkTD 3rXVtc3lTlZvElWLc35z67k7jwCLtAtm1L7F3LkU7skjjJ8ULwzbf6eWtHoTkuvifPPp oe1m9J3kdgZriby21DCR6qGO/1DzdnRzv/3Jvz+j8RHxJSXR5mRjqJOSR9sWBflOrUL5 JlZtYisy0wTiOb6vD9QK+nbxeXBUpeM3H6kkuPNMcx3b7AvTYwZcrK1M0c0gxoX49hMO BVJPm1BMV/37TaG4lRDA+AfpSYGjDuvfInlNrhMQP+yKBLj0O6ixuS/jKIIZm1N0A6U3 1pQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-137996-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137996-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q14-20020a63e20e000000b005dc4a68d52esi10128820pgh.878.2024.04.09.23.36.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 23:36:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137996-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; arc=pass (i=1 spf=pass spfdomain=shingroup.cn dmarc=pass fromdomain=shingroup.cn); spf=pass (google.com: domain of linux-kernel+bounces-137996-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137996-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=shingroup.cn 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 9A772B21052 for ; Wed, 10 Apr 2024 06:36:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85F351F602; Wed, 10 Apr 2024 06:36:00 +0000 (UTC) Received: from smtpbgbr1.qq.com (smtpbgbr1.qq.com [54.207.19.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 078ABAD39 for ; Wed, 10 Apr 2024 06:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.207.19.206 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712730960; cv=none; b=ZI7wPkqeRe65DpQdM78YJTOoa2JM+0O5F4FpGebOE76C5pbBW4lC/9D1JOmyVPM6ZVfPiXa/jvZDh9q8aem4oHU5dh2virFm3EP/Kt8Li7QgSePJoU4Qpjhws6h+8zRBWrleKTt410OWDiyrIuZlPLxSkKD5mte0rX/xQMeu44s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712730960; c=relaxed/simple; bh=Wbk7+tt5B+KjHhhiI2wSv4G+x2qk5YCSrg5cYvP/3d8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=FGkTJl226jEzbRmEl2kTykLVfDtDr1Vl4C12Antv73RgfhFmDcx37OZD/yfoOeK0ZumwiSX0uTXaHSVE3f5XR3IV7/zxuLkJq0LuiCQbeI4p4/ljbsTdmMYEMmBEF1R7V+EdkAtmJDzl9gZaeC4HfbI0OkYnP3RNsY98hob45w0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn; spf=pass smtp.mailfrom=shingroup.cn; arc=none smtp.client-ip=54.207.19.206 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=shingroup.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shingroup.cn X-QQ-mid: bizesmtp86t1712730877tdxfamr5 X-QQ-Originating-IP: XMC/Y2Cff99dY9PQbikRSBmS4897mos9i3ewMrbtgHA= Received: from HX01040082.powercore.com.cn ( [14.19.197.107]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 10 Apr 2024 14:34:36 +0800 (CST) X-QQ-SSF: 01400000000000B09000000A0000000 X-QQ-FEAT: LE7C6P2vL8QcpsM0XxE6roUsBBlPUMTUXBLuXMBDE/CETF9FiznKeqh03oOnY M0Qw4nvC45lLsSp2KTiohwk3Md8pj3He3/RNlXxl6qsh0VZW4nmsTHqOG/k3xMHNd+98SiQ 4AXDYlAwyljrezLrsEZCfyWKrbPqoulb1KXTR1rQKAppiYr07C7dlBAyw57vIurjQLngyt/ mWGF4wTTzBwIklwl2uY5zCZqjpI25KhEW0TpNbxBsXlq3Eui2FcbIPh2ZGKPLmEvkvVilZJ Kslifj+HIXWgKWM9cQN4mPlPIBjkhX0kNw75PJ9MtnteXeFSK0+0etopbWLj1yCT3SnBiSB qqAuaG2ieslEQ5EMUXnFavqyG5C7iF7EIzgaLWzsshBDF0UVd8xsaRVdaKI41F0afh9Sqkb 7XD/9mG/m4g= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 1382288310512996310 From: Jinglin Wen To: palmer@dabbelt.com Cc: paul.walmsley@sifive.com, aou@eecs.berkeley.edu, gregkh@linuxfoundation.org, atishp@rivosinc.com, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Jinglin Wen Subject: [PATCH 0/3] Add early console functionality Date: Wed, 10 Apr 2024 14:34:29 +0800 Message-Id: <20240410063432.23058-1-jinglin.wen@shingroup.cn> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:shingroup.cn:qybglogicsvrgz:qybglogicsvrgz5a-2 The following patch series implements support for the early console on the RISC-V platform. Jinglin Wen (3): riscv: Support for early console. riscv: Support SBI as the interface for the RISC-V early console riscv: Add information for MAINTAINERS MAINTAINERS | 6 ++ arch/riscv/include/asm/early_console.h | 23 ++++++ arch/riscv/kernel/Makefile | 1 + arch/riscv/kernel/early_console.c | 108 +++++++++++++++++++++++++ arch/riscv/kernel/setup.c | 2 + drivers/tty/hvc/Kconfig | 12 +++ drivers/tty/hvc/hvc_riscv_sbi.c | 29 +++++++ 7 files changed, 181 insertions(+) create mode 100644 arch/riscv/include/asm/early_console.h create mode 100644 arch/riscv/kernel/early_console.c -- 2.25.1