Message ID | 20231020072140.900967-2-apatel@ventanamicro.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp881285vqb; Fri, 20 Oct 2023 00:22:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGgLBdwRB94hVHqw/RLDUibkgKGNsOpgu84kv4VevhPqFNnX59GRiTpV3vSIoic3Ucqejj/ X-Received: by 2002:a17:902:f681:b0:1bd:aeb3:9504 with SMTP id l1-20020a170902f68100b001bdaeb39504mr1177955plg.15.1697786540803; Fri, 20 Oct 2023 00:22:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697786540; cv=none; d=google.com; s=arc-20160816; b=C46blYaDZ+4JxzWi6h+necM1677j5CYHNkhauRxAhNm3OJKLEX7A/cba9Vr3NxOp2Q LNa5lQrrKVSi9qY61AJnWEBhaDQN/q2yG80fepln6B6w3sWCiIdhagb2pv2gOtmiYFAS x/qiPoMekvgFhYh5OhK/wfUD7JHU6teoosKYdePRit+Ug4/dbxXzabn+hWP8QlRVXBG9 nQ/Rz9zLSSvzSZSL9aCPEi75hP6ZYkdelyQO1r8oNZ/2HR9PQN8MS1qKLH0oJAIjzD3n A0iU52kjgRnhkisuj2F4ctogLke5BZpYv2nuQBwAkEnRpaBIODU1hXpmzHhVaCfOsI4r NN5A== 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 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id g19-20020a170902869300b001be025f8407si1190839plo.37.2023.10.20.00.22.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 00:22:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; 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 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 2AA79826A058; Fri, 20 Oct 2023 00:22:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376408AbjJTHV7 (ORCPT <rfc822;lkml4gm@gmail.com> + 25 others); Fri, 20 Oct 2023 03:21:59 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; Fri, 20 Oct 2023 00:21:55 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3af6bd48093so311529b6e.3 for <linux-kernel@vger.kernel.org>; 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 <apatel@ventanamicro.com> To: Paolo Bonzini <pbonzini@redhat.com>, Atish Patra <atishp@atishpatra.org>, Palmer Dabbelt <palmer@dabbelt.com>, Paul Walmsley <paul.walmsley@sifive.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org> Cc: Conor Dooley <conor@kernel.org>, Andrew Jones <ajones@ventanamicro.com>, 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 <apatel@ventanamicro.com> 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 groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 20 Oct 2023 00:22:15 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780258219860243718 X-GMAIL-MSGID: 1780258219860243718 |
Series |
RISC-V SBI debug console extension support
|
|
Commit Message
Anup Patel
Oct. 20, 2023, 7:21 a.m. UTC
We add SBI debug console extension related defines/enum to the asm/sbi.h header. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> --- 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