From patchwork Tue Feb 7 16:53:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mayuresh Chitale X-Patchwork-Id: 1739073 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=) 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=fnyZC/Oj; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.a=rsa-sha256 header.s=google header.b=Uhm6j1Ty; dkim-atps=neutral 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 (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PB8NW13hNz23y5 for ; Wed, 8 Feb 2023 03:54:03 +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=T/XpLZTgX8A9z/jvLtEaqTTE+dDZLPExMkApb3aBo7s=; b=fnyZC/OjmTA4z/ RN84B6aHEnzoOFA/wyGMcg78LK4OVaUBb6UL0EDW6h+BYrFZf+ElP0qSP6bGW1Jh5ehKqdutSpCIQ 6p6zl1ubO/bC+T5PzVNlB8GbF0Y4+Yi+dNTneSXdHZTI2P4lkEcS2uCTWieXnAiDC+fNkyuzNCLAs X/3kzr6hWWHbVTwaGEnSiC6qTJqsMMTK+97e2qMWQYD2K9I+F58MEfFBVjhqBQxSCE6m9I+Y/zYO4 pXP04+eNFjC3r5lRC0iKM56SMxfwKLqAGGY9Qsjm/2wTzje/vnx0TOuDZEk4wn95JIDWsfoo9GO43 CrB+zkwjFJ6mNxbijzYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPRE3-00CrPT-1P; Tue, 07 Feb 2023 16:53:47 +0000 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPRE0-00CrNL-Ly for opensbi@lists.infradead.org; Tue, 07 Feb 2023 16:53:45 +0000 Received: by mail-pj1-x102d.google.com with SMTP id ge21-20020a17090b0e1500b002308aac5b5eso9424659pjb.4 for ; Tue, 07 Feb 2023 08:53:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; 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=+2w6fcMi9SSKzdHrbw5mnGpenqbXo+whfnFO0zXz8qU=; b=Uhm6j1Tyd3MT4XGlwPpZEZmGAeMrKXoF5r3RKzeltWyjNib+Wq2tgiA3xOjobwMxpU rQz5VMajKs9YDcqXsHG3nKNPr8y/hkgnT67/kNolZmNZAo0A3MIaw8X2Mow09c+kuvev pShgomIuJDmG8pm+hsLWVl4hePtu2Ds/+peT8k7V9DD0lbdqPPcp6zY5PDS2i79dJXeR d/1owwFPQutuEnEnokD3ZW2qpgWB8x18DMc5eO3Blp/vH5B2fbG74kGMDyKIQVZYEelr 6pMNrY17IZokg5ts5K5MoaiE+YYww79u5eYY2SY26z/WY3PugaRnjexyNMP2N2AJNkwh CRYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=+2w6fcMi9SSKzdHrbw5mnGpenqbXo+whfnFO0zXz8qU=; b=in/HPawgiaq3H2z+i7FiFZ2Xd+ZiKKPPOjpjE6nNlUEk40LgRLrW9ggxXxx19omaLC thyUWGaWBjMjemqSlBVuIurXyuJVyRcW67YiX7pCYqDZ8KO0DPmjxI4IefA9zgNjK3CM TciVutMLMFv+woFvd/8kpWxZs5JqCHClYvQr6mY+CHaiGn9ykqEkbgcUqcweBgcGdyWF zlfai/AdPecojiIHcY+zU93jIGAxlmBrncq+Hc2m/Wq7p+gVwIs3GOJoiaeWyQLzWuuH XM6DRuYav4+qMxmUtTwMXMQs6wIhQkhXFhiS6JUbf6IPEibMqzvW55naDDF7dUfm6u8U h+vg== X-Gm-Message-State: AO0yUKUcVNfQk+Ui4GUWOTd+URFTa73tZx94KpNR/i3IleK5jnjDa6Xa duBsmzdq1Ss2ovifewT+lppZ3XhiGC2CnIBQQYU= X-Google-Smtp-Source: AK7set+GihMYO9mo/fXfRx8a5EcvFem4E1S2dssCTIarWvGaY8qGfoPYLVxU5cIpspPyBKq3jALLEA== X-Received: by 2002:a17:903:22c4:b0:199:11aa:50d8 with SMTP id y4-20020a17090322c400b0019911aa50d8mr4068468plg.33.1675788821373; Tue, 07 Feb 2023 08:53:41 -0800 (PST) Received: from mchitale-vm.. ([103.97.165.210]) by smtp.googlemail.com with ESMTPSA id d7-20020a170902b70700b001869b988d93sm9145486pls.187.2023.02.07.08.53.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 08:53:41 -0800 (PST) From: Mayuresh Chitale To: opensbi@lists.infradead.org Cc: Mayuresh Chitale Subject: [PATCH 3/3] lib: sbi_pmu: Reserve space for implementation specific firmware events Date: Tue, 7 Feb 2023 22:23:26 +0530 Message-Id: <20230207165326.3205728-4-mchitale@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230207165326.3205728-1-mchitale@ventanamicro.com> References: <20230207165326.3205728-1-mchitale@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230207_085344_733097_533C8BFB X-CRM114-Status: UNSURE ( 9.26 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: We reserve space for SBI implementation specific custom firmware events which can be used by M-mode firmwares and HS-mode hypervisors for their own use. This reserved space is intentionally large to e [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:102d listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org We reserve space for SBI implementation specific custom firmware events which can be used by M-mode firmwares and HS-mode hypervisors for their own use. This reserved space is intentionally large to ensure that SBI implementation has enough space to accommodate platform specific firmware events as well. Signed-off-by: Mayuresh Chitale --- include/sbi/sbi_ecall_interface.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/sbi/sbi_ecall_interface.h b/include/sbi/sbi_ecall_interface.h index f5d6667..32923a8 100644 --- a/include/sbi/sbi_ecall_interface.h +++ b/include/sbi/sbi_ecall_interface.h @@ -182,7 +182,11 @@ enum sbi_pmu_fw_event_code_id { SBI_PMU_FW_HFENCE_VVMA_RCVD = 19, SBI_PMU_FW_HFENCE_VVMA_ASID_SENT = 20, SBI_PMU_FW_HFENCE_VVMA_ASID_RCVD = 21, - SBI_PMU_FW_MAX, + /* + * Event codes from 22 to 127 are reserved for + * SBI implementation specific custom firmware events. + */ + SBI_PMU_FW_MAX = 128, }; /** SBI PMU event idx type */