Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp285021rdg; Tue, 10 Oct 2023 10:07:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9ixGl7tEwdClPGl+KtucSJIac+/InKslQrhsnl9XFyhEXv3MEJFPDRJM3GU9fzLsp9pjh X-Received: by 2002:a17:90a:ea01:b0:27c:f845:3e3f with SMTP id w1-20020a17090aea0100b0027cf8453e3fmr1245964pjy.1.1696957643397; Tue, 10 Oct 2023 10:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696957643; cv=none; d=google.com; s=arc-20160816; b=vtBL6VLZxVJIyyHFzh+Dye0LFmY2kRXTXQGw0zGIrOF0pWyP2jIdqtERqAhDQpmb72 CQb8rpPDfvyYE/dwR0UKQj5uKUZJiG2WT4gkngaM/9QPZ7TFVOZ6GNnLuzB5y42SnbFN sHr7x4tj06UhvdaRhEvavBFYv/gzPA8erPTDIQGdJR3pX1RvzE+Cp9tv3tIs1EcUSaGo dneZEWgj9z0C+yL4qwBhbihC2Qq9yT+FaOigPQaZmuaP3a3X0VxfWzkND0utw+uzQjai 0JAOz66InCGfynSHCGciK0pT12oXxkICTWHReaA+Tsp4SEibEIm1GEnXVz5YkK31/GiZ xZJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OF/0DZOVOE1sZojsrN9hmq2DR3MNn3xhzg86O8Xb4xI=; fh=7GYORjoWw1oF4BCDuq40hd+MOEKRwzNqXwnZ/K2vS9Q=; b=aHQWlhOSO8JsIbodTLj/1YdbFr88eAcdJ4apshQ2Hx4L+VvMOoYMrJLJJAErGa/TDs Whi1+zYwYTW4VMjyuqtRgphFltWBCISkwUQKMBj53qJ+pJlfT2wXp5T+qQAixrJQR1eW 2KzZGdBTfW84R21a5aD8z8uz4WOb3DOVAiCNJg01Yan41GpwsKQ4bp0weDSWqozobDqs iHbn/rd6TEV72ifIptLkF6Y7zNwHCqQRb4HuJ/LpWfuur0fhVudDJ1FXC/0Bi25A8z1n /dZk3wlvnpBEEVg2affdcrkDL4dxfF3D8wm5460t+1i2WUIluZvI4SFyVqB4dutTpMVA CBtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=gzuJ05BH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id lk17-20020a17090b33d100b00277453e82fesi13267816pjb.87.2023.10.10.10.07.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 10:07:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=gzuJ05BH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id EE46A807E446; Tue, 10 Oct 2023 10:06:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234238AbjJJRG0 (ORCPT + 99 others); Tue, 10 Oct 2023 13:06:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234060AbjJJRGA (ORCPT ); Tue, 10 Oct 2023 13:06:00 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65B8218B for ; Tue, 10 Oct 2023 10:05:47 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1c724577e1fso46637365ad.0 for ; Tue, 10 Oct 2023 10:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1696957546; x=1697562346; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OF/0DZOVOE1sZojsrN9hmq2DR3MNn3xhzg86O8Xb4xI=; b=gzuJ05BHsBpfeRoMHWR26s0956U/nteB5pForucJtcHhDFRBXHR0SGK4os/xRl6z2W SA56yVp4pAd/Q2HOzXUk3vEUrX4bVYhS/ugwPAZjDworecKoJGBCR6HmP56lqPm9EbxX AWYNJM/CjI8fJIAhJZI3uAKOtq59Lj0Y8qwbnS9kWsgNvOypdilchNNWEYXFn9WQXHOd FioZ8wfuddJX2ns6sRZSafTolhZCWCsmJ5y6eDqZG0ytBbwEoiJo0OVZAKRMRnBi0NCl tZSJi+TsuvxyQNVF8i5m/GnEgWsk2UR//kOxmU1IaiHvSuY0w05Rc0Jq1WMEm6ecKPbj un6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696957546; x=1697562346; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OF/0DZOVOE1sZojsrN9hmq2DR3MNn3xhzg86O8Xb4xI=; b=SDRNML6gAG5mgJtIBDrKUw9LaeP5DM/MlMVwzIbj6H9EjsPptmTfvxI8adIzERoh9q WgbAFHfm5NDhbhnNvjqy/fyL373jJ4xAD1ACEMOhyWZKsAJW9aU9x6lBpUGTuPmy5EtN Iqfz/aaOhvV1Dxy5ZoTXabE/f/aTUIBkjrsTG1HuUZZyCvgmVAGE545YfPv7g3XbPOLu DZDVrI8LpanlI2ITyisyA6h8BRNlLFsuGxNuckTJQz7h+eRgLkUtQEm1oq6ru/cVuXIc kDA+NUBtJXD9Ef0d+vmjQTp8CGSTudHSHKMPhIoJyH8k75rBzEkIW9ipALLtHAE/r0Li ke3A== X-Gm-Message-State: AOJu0YwQPryStSL7zc0j0jhBep3enmguv/4psfcKwJs2asW4rYo/Oo64 Lhfp7oaxxe1H4qlM2bfKSI1oMA== X-Received: by 2002:a17:903:230a:b0:1c7:7e00:8075 with SMTP id d10-20020a170903230a00b001c77e008075mr23570340plh.66.1696957546442; Tue, 10 Oct 2023 10:05:46 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([103.97.165.210]) by smtp.gmail.com with ESMTPSA id w19-20020a1709027b9300b001b89536974bsm11979868pll.202.2023.10.10.10.05.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 10:05:45 -0700 (PDT) From: Anup Patel To: Paolo Bonzini , Atish Patra , Palmer Dabbelt , Paul Walmsley , Greg Kroah-Hartman , Jiri Slaby Cc: Conor Dooley , Andrew Jones , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Anup Patel Subject: [PATCH 6/6] RISC-V: Enable SBI based earlycon support Date: Tue, 10 Oct 2023 22:35:03 +0530 Message-Id: <20231010170503.657189-7-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231010170503.657189-1-apatel@ventanamicro.com> References: <20231010170503.657189-1-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 10 Oct 2023 10:06:56 -0700 (PDT) X-Spam-Level: ** Let us enable SBI based earlycon support in defconfigs for both RV32 and RV64 so that "earlycon=sbi" can be used again. Signed-off-by: Anup Patel --- arch/riscv/configs/defconfig | 1 + arch/riscv/configs/rv32_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index ab86ec3b9eab..f82700da0056 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -132,6 +132,7 @@ CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_8250_DW=y CONFIG_SERIAL_OF_PLATFORM=y CONFIG_SERIAL_SH_SCI=y +CONFIG_SERIAL_EARLYCON_RISCV_SBI=y CONFIG_VIRTIO_CONSOLE=y CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_VIRTIO=y diff --git a/arch/riscv/configs/rv32_defconfig b/arch/riscv/configs/rv32_defconfig index 89b601e253a6..5721af39afd1 100644 --- a/arch/riscv/configs/rv32_defconfig +++ b/arch/riscv/configs/rv32_defconfig @@ -66,6 +66,7 @@ CONFIG_INPUT_MOUSEDEV=y CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_OF_PLATFORM=y +CONFIG_SERIAL_EARLYCON_RISCV_SBI=y CONFIG_VIRTIO_CONSOLE=y CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_VIRTIO=y -- 2.34.1