Message ID | 20240916182357.24545-4-debug@rivosinc.com |
---|---|
State | New |
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=HCgViakt; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=Z1SGGpwl; 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 4X6tbg04jQz1y2c for <incoming@patchwork.ozlabs.org>; Tue, 17 Sep 2024 04:24:12 +1000 (AEST) 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pI9DrSFI1BvPAq8fEvO3PXd1DFQJlStMCiH9g6o1yIE=; b=HCgViakt1Vw67o 2oHP6Yzu/fZACosYEizijfcKxap8ULvqBu6MXOd4iV1xkA9M4SEVBbCVloVkUVtBc4MiEjx4l+kcL IIfigCQF9ruWTgriOgsyF7l6sxCGZOQeuY4uHfiA72ER6cP5G9ut5JAPRnxIIahv3fx57t+RDANKD PhLApsz+yD3x7G/GGH4Q256ZPeA0yybVtq8Sc7EB3Tbb+U7/ZOMaVAt4fQXBE3bVWiuOf/gU1O084 7TKXycJxdmRT2hg6l7Vh4KrRHOK4gUxOtm+sFYzmW04EDFVaZb3f0ORmxzYgAk3Eak3v6jNHx6hKH y8iahmIl42MJq1Uzxfpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqGOO-00000004gPD-3tEw; Mon, 16 Sep 2024 18:24:08 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sqGOL-00000004gMy-31vg for opensbi@lists.infradead.org; Mon, 16 Sep 2024 18:24:07 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-205722ba00cso40017955ad.0 for <opensbi@lists.infradead.org>; Mon, 16 Sep 2024 11:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1726511044; x=1727115844; 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=x/DM3dQ7Ydrmc4maDFrpm0B27qekKwPIYPYPndRdJsc=; b=Z1SGGpwlqtQE2TIzTxmzXC74fR1La5Q6ywpiGrPZeq1JZkUh7f2WlhmFVlLs3GrF3F kzmUaZKPHJYph/T1y2wM6Nw3Ddg4SwXjzWEp6EVZhtK2uo1Yh7eq7aNciGlKMsBhnmVf WSL6NGJtUn1xEPDAVIVJbxC/RVZ7qZZJU5vuanZARTD9PhRGd57LCkVrBoMMsetGLPrI PlWigINYX0FItptYnaMBbvraCEC3TFajiFu67xjp+gxnl2d37XWvm4bDlvlTgZEPaXbR Iqsi0dJ9XNmTzhIBc/aft1ixTWBfUo6+k3osGSGAOl9zvd6ad3AZzwHzn4snbzdIUC2H caUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726511044; x=1727115844; 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=x/DM3dQ7Ydrmc4maDFrpm0B27qekKwPIYPYPndRdJsc=; b=jtLl2yzrFZKwvKB6lUvzwaDpUecabORrU/LPj0U+sAzFPPu4R++sTjYmVD9362F0Ml CsbLs+oaV68+ulTvpC6wQ41NYcELVrzlrWPHpmSYueQ5ALUAxx5tY6d87MLoZqJONPVi gEELmfaodKRlQGvRmM0FfAJOUPKSvU0CmQDSwJO9xXWYKgerSIoEDnaDx2ZPa2tzpnpO 5VZJHZn6nB6mGvvqUsYpw9knBJtkKyNiHeXczecMuNz5q18EeZowEOFr2PVlCHQHo00Z NQsGtJ+yLucwsA0gxyI5H4Oaxyd0W0CK3tdJOZfaQes4j+rzRXg5fHx0mUnMiUzSYsYd 7wAw== X-Gm-Message-State: AOJu0Yy7DLYeNwEPraAGqcKVDG0yIbAVBI5sTyutDaQ8r1GjQOUYkDIe 0tsZRDF6XHMQ0NctgAxWwRxeyvQef5q7GTKuSafQwqGME8u7bNfcEd2tXLhLt5cbRb11Ubb1n/9 p X-Google-Smtp-Source: AGHT+IEC+KXRb7JH/JSWAS+heMLkKeIhagmpUFqDkzosXa4bcCTpX6f1jphgMhZGcESD39xUwi1R1Q== X-Received: by 2002:a17:902:da84:b0:206:c911:9d75 with SMTP id d9443c01a7336-2076e3b2654mr217737685ad.20.1726511044227; Mon, 16 Sep 2024 11:24:04 -0700 (PDT) Received: from debug.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20794600fadsm39203865ad.70.2024.09.16.11.24.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2024 11:24:03 -0700 (PDT) From: Deepak Gupta <debug@rivosinc.com> To: opensbi@lists.infradead.org Subject: [PATCH v6 3/4] lib: sbi: sw check exception delegation Date: Mon, 16 Sep 2024 11:23:56 -0700 Message-ID: <20240916182357.24545-4-debug@rivosinc.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240916182357.24545-1-debug@rivosinc.com> References: <20240916182357.24545-1-debug@rivosinc.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240916_112405_792887_6AD3AD37 X-CRM114-Status: UNSURE ( 8.30 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) 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: zicfiss and zicfilp introduces new exception (cause=18). Delegate this exception to S mode because cfi violations in U / S will be reported via this exception. Signed-off-by: Deepak Gupta <debug@rivosinc.com> Reviewed-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Atish Patra <atishp@rivosinc.com> --- lib/sbi/sbi_hart.c | 3 ++- 1 file changed, 2 [...] Content analysis details: (-1.9 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:636 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -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 -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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> Cc: apatel@ventanamicro.com, anup@brainfault.org, atishp@rivosinc.com, cleger@rivosinc.com, Deepak Gupta <debug@rivosinc.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "opensbi" <opensbi-bounces@lists.infradead.org> Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
zicfilp and zicfiss support in opensbi
|
expand
|
diff --git a/lib/sbi/sbi_hart.c b/lib/sbi/sbi_hart.c index e1bc346..54c261f 100644 --- a/lib/sbi/sbi_hart.c +++ b/lib/sbi/sbi_hart.c @@ -207,7 +207,8 @@ static int delegate_traps(struct sbi_scratch *scratch) if (sbi_platform_has_mfaults_delegation(plat)) exceptions |= (1U << CAUSE_FETCH_PAGE_FAULT) | (1U << CAUSE_LOAD_PAGE_FAULT) | - (1U << CAUSE_STORE_PAGE_FAULT); + (1U << CAUSE_STORE_PAGE_FAULT) | + (1U << CAUSE_SW_CHECK_EXCP); /* * If hypervisor extension available then we only handle hypervisor