Message ID | 20240327101137.3644359-9-christoph.muellner@vrull.eu |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=E5ZOkfCZ; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=vrull.eu header.i=@vrull.eu header.a=rsa-sha256 header.s=google header.b=S/PapnQl; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V4Msk4ks2z1yXq for <incoming@patchwork.ozlabs.org>; Wed, 27 Mar 2024 21:12:10 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8mVAc6LGmmRo3ybALnXkNI7RUkju8WIRidKwyXL63lA=; b=E5ZOkfCZXh6JQn 0r6NH5NKuvi9LJ8KVT4y1PO0XOhhDE/jJXPg1tVG4kykPGe9DMbqw4un8BJys4vCpNI5B80ptBabA EHub+7EWetESpYjBgbyx8wVtUzROmq2bBB1jorOghvYF32EYeAh4Szpnn3NbJFHQf5I2y10b46tC/ tunSe0YW4M2sJ1ARJCC1u3HyVBE38Xm4zViNep1rMQKVXTgZKGOWLPpmB88EsVzjYPSNa50MAWQuJ XbhwTcoFCqjtHkO0wDJ3c9Y9bFGuMocDpvOnmZNO2Ymd1aaowbxVoYlutj3uRwuCQ5QNDXsAKq2lU YtM5B+3aJICvMgKnlUbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpQGI-00000008MIq-16Nz; Wed, 27 Mar 2024 10:12:02 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpQGA-00000008MCE-1vUS for opensbi@lists.infradead.org; Wed, 27 Mar 2024 10:11:55 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-56c0d1bddc1so3842372a12.3 for <opensbi@lists.infradead.org>; Wed, 27 Mar 2024 03:11:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1711534312; x=1712139112; darn=lists.infradead.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=zdNoZrXKSQBZhzJ7o8gpnVObKqyDlz13e3bX1DnieIU=; b=S/PapnQlvmlEa7OG035i8Mp4DugkeRm6mia+LMPblY816yTL9OJIEQIO0SvzOlLjMZ h4YNIaWTHY73cGb36UECWrHCB4qrIcQUdW6EHkbxDEU1beim45yL6TxGiDQTiCzQdkwF JK+2jFy8SBd52pFoFxlZzdXAGwEO5tFzDPHDufDmWqSTzFT+vj6uga6HwDI7WyHA/4UE L02Iqh5kb5b3IopVg+fNQ50C7Kh3dqboryMjfd3fqjioHHxf7/5dM2LFUkKAaRKqUqPS iHLjVrzcxZBaLe3TVi5nF40bAzsnmftUhOp5tnPubpGNZsoxfUpsdX5jmgQunYfJLxst iGTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711534312; x=1712139112; 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=zdNoZrXKSQBZhzJ7o8gpnVObKqyDlz13e3bX1DnieIU=; b=he7RnF79HmFmHRDpTKpZeFjiOyisB8CPE7Dz9ySwoHc6+FeRHAc/yHHlyNfbtSIDSC X4So+mOXFe+pHKi6y1J417OtrHh+hkNknH77WKH2U+2gJ2j21pZw2a+h3e6Ml5+HOLO3 Gk3U4GrvKuyxAXsEAh8TyqHWigN1QLxNXYumGZGur92yWpdxlQYfU7LHvXdTDKUqTOpA AKVxBcEuP6UMIeJZBW3TgaAJS7vI015/qZ3WL1ZqnLGkY0Hfa6cNu3mLjxa1TGQem6yj 1pkrVnIWVkPAgP5ecDh3lPFH++h6Vrgt2FPC5UDCgLqFjjNacZw64g39eb9eYMXXXKn4 K/+A== X-Gm-Message-State: AOJu0YyWG4j8CQE0ijNGbLzLATt+0lbp1IljuBqWBisu48YQNS0t/T8U KFCqFhSoyWw6Ocs/BQrw/BKY5eYPcOG+5pScgVkgEqWlzKWIakBt8uSRkv+j/CbWOYMLzDcvPgg NdN0= X-Google-Smtp-Source: AGHT+IE55v8qee5T6wvmVfjV+rdZY5+wKLX9QKegIxyiY1uUmPJL7rzus37IdQiDtq09XNd5vLBOCA== X-Received: by 2002:a50:99d3:0:b0:56b:b6a2:2048 with SMTP id n19-20020a5099d3000000b0056bb6a22048mr610911edb.24.1711534312457; Wed, 27 Mar 2024 03:11:52 -0700 (PDT) Received: from antares.fritz.box (62-178-148-172.cable.dynamic.surfer.at. [62.178.148.172]) by smtp.gmail.com with ESMTPSA id dh16-20020a0564021d3000b0056c1c4b870asm2451653edb.16.2024.03.27.03.11.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 03:11:51 -0700 (PDT) From: =?utf-8?q?Christoph_M=C3=BCllner?= <christoph.muellner@vrull.eu> To: opensbi@lists.infradead.org, Philipp Tomsich <philipp.tomsich@vrull.eu>, Cooper Qu <cooper.qu@linux.alibaba.com>, Zhiwei Liu <zhiwei_liu@linux.alibaba.com>, Huang Tao <eric.huang@linux.alibaba.com>, Alistair Francis <alistair.francis@wdc.com> Cc: =?utf-8?q?Christoph_M=C3=BCllner?= <christoph.muellner@vrull.eu> Subject: [PATCH 8/9] platform: generic: thead: Add definition of T-Head's vendor ID Date: Wed, 27 Mar 2024 11:11:36 +0100 Message-ID: <20240327101137.3644359-9-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327101137.3644359-1-christoph.muellner@vrull.eu> References: <20240327101137.3644359-1-christoph.muellner@vrull.eu> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240327_031154_579206_7D9D97A4 X-CRM114-Status: UNSURE ( 8.71 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: =?unknown-8bit?q?Spam_detection_software=2C_running_on_the_sy?= =?unknown-8bit?q?stem_=22bombadil=2Einfradead=2Eorg=22=2C?= =?unknown-8bit?q?_has_NOT_identified_this_incoming_email_as_spam=2E__The_ori?= =?unknown-8bit?q?ginal?= =?unknown-8bit?q?_message_has_been_attached_to_this_so_you_can_view_it_or_la?= =?unknown-8bit?q?bel?= =?unknown-8bit?q?_similar_future_email=2E__If_you_have_any_questions=2C_see?= =?unknown-8bit?q?_the_administrator_of_that_system_for_details=2E?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_preview=3A__This_patch_adds_a_macro_for_T-Head=27s?= =?unknown-8bit?q?_vendor_ID_to_the_C9xx?= =?unknown-8bit?q?_encodings=2E_Signed-off-by=3A_Christoph_M=C3=BCllner_=3Cch?= =?unknown-8bit?q?ristoph=2Emuellner=40vrull=2Eeu=3E?= =?unknown-8bit?q?_---_platform/generic/include/thead/c9xx=5Fencoding=2Eh_=7C?= =?unknown-8bit?q?_2_++_1_file_changed=2C?= =?unknown-8bit?q?_2_insertions=28+=29_?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=28-0=2E2_points=2C_5=2E0_re?= =?unknown-8bit?q?quired=29?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_pts_rule_name______________description?= =?unknown-8bit?q?_----_----------------------_------------------------------?= =?unknown-8bit?q?--------------------?= =?unknown-8bit?q?_-0=2E0_RCVD=5FIN=5FDNSWL=5FNONE_____RBL=3A_Sender_listed_a?= =?unknown-8bit?q?t_https=3A//www=2Ednswl=2Eorg/=2C_no?= =?unknown-8bit?q?_trust?= =?unknown-8bit?b?IFsyYTAwOjE0NTA6NDg2NDoyMDowOjA6MDo1MzQgbGlzdGVkIGluXQ==?= =?unknown-8bit?b?IFtsaXN0LmRuc3dsLm9yZ10=?= =?unknown-8bit?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_0=2E0_SPF=5FHELO=5FNONE__________SPF=3A_HELO_does_not_publ?= =?unknown-8bit?q?ish_an_SPF_Record?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FAU__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from_author=27s?= =?unknown-8bit?q?_domain?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FEF__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_envelope-from_domain?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID_____________Message_has_at_least_one_v?= =?unknown-8bit?q?alid_DKIM_or_DK_signature?= =?unknown-8bit?q?_0=2E1_DKIM=5FSIGNED____________Message_has_a_DKIM_or_DK_si?= =?unknown-8bit?q?gnature=2C_not_necessarily_valid?= X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <opensbi.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/opensbi>, <mailto:opensbi-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/opensbi/> List-Post: <mailto:opensbi@lists.infradead.org> List-Help: <mailto:opensbi-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/opensbi>, <mailto:opensbi-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "opensbi" <opensbi-bounces@lists.infradead.org> Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
T-Head: Allow read access to th.mxstatus CSR
|
expand
|
diff --git a/platform/generic/include/thead/c9xx_encoding.h b/platform/generic/include/thead/c9xx_encoding.h index 58adbef..a4811f6 100644 --- a/platform/generic/include/thead/c9xx_encoding.h +++ b/platform/generic/include/thead/c9xx_encoding.h @@ -1,6 +1,8 @@ #ifndef __RISCV_THEAD_C9XX_ENCODING_H____ #define __RISCV_THEAD_C9XX_ENCODING_H____ +#define THEAD_VENDOR_ID 0x5b7 + /* T-HEAD C9xx M mode CSR. */ #define THEAD_C9XX_CSR_MXSTATUS 0x7c0 #define THEAD_C9XX_CSR_MHCR 0x7c1
This patch adds a macro for T-Head's vendor ID to the C9xx encodings. Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu> --- platform/generic/include/thead/c9xx_encoding.h | 2 ++ 1 file changed, 2 insertions(+)