Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp842652rdb; Fri, 20 Oct 2023 00:22:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFmD7V3vZDRZbpfOasmlC1PYzEuOxAbfmq+LyP3mAadYzl4oggxsLGiH3Cr74Nz/fxeuT4s X-Received: by 2002:a9d:4815:0:b0:6b9:67e4:eba7 with SMTP id c21-20020a9d4815000000b006b967e4eba7mr1107473otf.23.1697786534288; Fri, 20 Oct 2023 00:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697786534; cv=none; d=google.com; s=arc-20160816; b=nnfSsgD40vqGxFLuC4u0wq5LUbjFhx1LU9T1QbQwmi2SJSGa9CdE3OKlaZuXOlouJ3 7wkjTgPK745nCaLWrRcV73aCUA7JlQbKNYQcU/X3HZjOAZYAgrAy5xifzNQPtYhCbbhz iwEXdUD6PiEjPvYeGhgVuWiTs2X6UQ8vjc8hpV+zdJXLICvVuIy5g+eiX6cy43H1QC3+ F3F1r4mFVLhLLXZm8rq7Lk7yStP+kaAGvNKmOg7erNXoBvHVJIb6aT38G0qVW/OcEtTp hktLGfINUQwK1je1tNHM+r/VW5NZ/mKZA0Tnb8fUBJVoSecslP8mWEhZt/m7QojpEJ5w voag== 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=vFjlFx01Ut+IIk7lMz+iwDuvVBUbWHCR3u/gBbk/FU0=; fh=7GYORjoWw1oF4BCDuq40hd+MOEKRwzNqXwnZ/K2vS9Q=; b=ZTK1xoSiBIKTWkm3TyM/uTW+knyJFHElYqn06X/tC/SF/OTCGCD1vGVOiUuKsk+peO 3YKnIwTKihl9ppdbWTjYfm/o+gJp/GOAeGZ66MPepf76aO8EkZOwg65TlAtnAluKW4mV Sv8K6UI9K89zXztG9j7RFjdiv7gQs6vyCA1K3BYXZmHC5dVu/KRrpeUg9hcYWRafPG/T V9nSGViSecN0UL0KDQOKH140HHr4vqh2Xt/cKHF2bzgYytWHWSKPz8x4KbKSDyKy1nIq bZWxPu4Nc1OMpsHILvyBG1YfA4zW/ZLMRolLD0rbEdFrvtsRdGv+3WqII4GLgFlld/V1 KC0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=cb8kwDbf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id g10-20020aa796aa000000b006b728259b67si1313040pfk.177.2023.10.20.00.22.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 00:22:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=cb8kwDbf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id D5187801BB7A; Fri, 20 Oct 2023 00:22:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376407AbjJTHV6 (ORCPT + 99 others); Fri, 20 Oct 2023 03:21:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376403AbjJTHV4 (ORCPT ); Fri, 20 Oct 2023 03:21:56 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 468AB1A3 for ; Fri, 20 Oct 2023 00:21:55 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3af6bd48093so311529b6e.3 for ; Fri, 20 Oct 2023 00:21:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1697786514; x=1698391314; 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=vFjlFx01Ut+IIk7lMz+iwDuvVBUbWHCR3u/gBbk/FU0=; b=cb8kwDbfcMYKuSbeSM4vmK4dk5HzH6+UGU9Z4Cm9buYLbisAywChN7kMLnISn5KVCX 4iEg08DokJN7xvb1BkDT73ttxPDnbStGLtP/6xk0fZaF1syrUmO1QYmkRXv8jbLIqPGI 7g8Fv5F/gIwBBHj59qwC3zPpZC5m9kKpl6dNSQpenDmKNCFPLr0RMNrcAX4wXpCNBrvW eqk79GYyEO9VH4V8sC52dBFkZr60OL+mAUu7j9ytcxNFJF7NHpm9yIMJO7aiWPZwAHkv q45YENrxvOIK0hLlEQSOwLCkrqjqbKDiBokIL35OGLchAHkXvgTwUgqFi5BI9UU6NkIV 74UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697786514; x=1698391314; 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=vFjlFx01Ut+IIk7lMz+iwDuvVBUbWHCR3u/gBbk/FU0=; b=G6rSjhstIF5YfzxecRE3Sos1QSO2reuOFKUHC4gb059JHQQPNnRjiS40j8e/yJNbnI 1kbkGMxYalOmWEdp0sfmiNxPXt7WnLxZzcszSrQc+9Z/F9RE8ccIVJTyRMfM8OzUORiW pdhj6Pc2USDD1T1GehEnHggbo0RkyosWOq0tjkMqYnz+DEakHJ3sEw3hg/O6l54mxMzC xVRFktMFuvqCbF7E/IrFr6wTmulMUAeEhHphAl1/U+wmRPSlm/I58NsdqVduyOQk/WI+ QOAtqwUdR/QdsbfgPCdE1bgS8l3URL0C6bQT9Mcvd3RgcxpJr2YaX1TMs3lA2vZYk3LY szgw== X-Gm-Message-State: AOJu0YzvCTxfenxNWSSOvZeSJ8oJXpqPZnqRLTa696N6EEnvCMFKBGHG 5A15LVLQpoNqyad+NTHuNNLS0Q== X-Received: by 2002:a05:6808:15a3:b0:3ad:ffa4:dfee with SMTP id t35-20020a05680815a300b003adffa4dfeemr1187937oiw.51.1697786514419; Fri, 20 Oct 2023 00:21:54 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([171.76.83.81]) by smtp.gmail.com with ESMTPSA id v12-20020a63f20c000000b005b32d6b4f2fsm828204pgh.81.2023.10.20.00.21.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 00:21:54 -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 v3 1/9] RISC-V: Add defines for SBI debug console extension Date: Fri, 20 Oct 2023 12:51:32 +0530 Message-Id: <20231020072140.900967-2-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231020072140.900967-1-apatel@ventanamicro.com> References: <20231020072140.900967-1-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 20 Oct 2023 00:22:12 -0700 (PDT) We add SBI debug console extension related defines/enum to the asm/sbi.h header. Signed-off-by: Anup Patel Reviewed-by: Andrew Jones --- arch/riscv/include/asm/sbi.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h index 5b4a1bf5f439..12dfda6bb924 100644 --- a/arch/riscv/include/asm/sbi.h +++ b/arch/riscv/include/asm/sbi.h @@ -30,6 +30,7 @@ enum sbi_ext_id { SBI_EXT_HSM = 0x48534D, SBI_EXT_SRST = 0x53525354, SBI_EXT_PMU = 0x504D55, + SBI_EXT_DBCN = 0x4442434E, /* Experimentals extensions must lie within this range */ SBI_EXT_EXPERIMENTAL_START = 0x08000000, @@ -236,6 +237,12 @@ enum sbi_pmu_ctr_type { /* Flags defined for counter stop function */ #define SBI_PMU_STOP_FLAG_RESET (1 << 0) +enum sbi_ext_dbcn_fid { + SBI_EXT_DBCN_CONSOLE_WRITE = 0, + SBI_EXT_DBCN_CONSOLE_READ = 1, + SBI_EXT_DBCN_CONSOLE_WRITE_BYTE = 2, +}; + #define SBI_SPEC_VERSION_DEFAULT 0x1 #define SBI_SPEC_VERSION_MAJOR_SHIFT 24 #define SBI_SPEC_VERSION_MAJOR_MASK 0x7f -- 2.34.1