Message ID | 20230907114947.1705425-4-mchitale@ventanamicro.com |
---|---|
State | Accepted |
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=ABg15ZNF; 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=m9GQM11C; 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 4RhHcQ0ZHCz1yh5 for <incoming@patchwork.ozlabs.org>; Thu, 7 Sep 2023 21:50:27 +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: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=VOBfi7Hq8xomw1hUF9sMMw3pD3sOGRySVdFzresHyg8=; b=ABg15ZNFFMycdS 2xmS+mRqThvkmQ8nm0PpEmN0GZe+malUnjjSYqQA2HGkt1NcDhcQPTUhuk4vJtPPxwdS4QRZSTl56 c50mmB3xXVHqk/88ZmNv1LTXTi5njVfh3dFjPMZLJHEZW0YCbWRJXObxqsq2KQ1m5BhRr/GjOAjvo HZdbbT+tPmBTaaqQ1EAxJXltOscMgcmAxZDFBDA0Q8YTIJKfyQRzCApe9osyaD1g7y8iw8gdkLOD2 512fw5AF57z422myrgNtYjnEy48s9+oo21PqGfoGRr/FRmwnOyIMGr0KDcRFRBYH8Vjf5KHdp2ZzM 4SeBqqDeHO7gohSovZ9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qeDWU-00C1W2-1y; Thu, 07 Sep 2023 11:50:10 +0000 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qeDWR-00C1Um-2R for opensbi@lists.infradead.org; Thu, 07 Sep 2023 11:50:09 +0000 Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3a8614fe8c4so570355b6e.1 for <opensbi@lists.infradead.org>; Thu, 07 Sep 2023 04:50:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1694087406; x=1694692206; 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=COEACg6f324iX1sPANA4tksOme4HNxnPzKI2+otWx98=; b=m9GQM11CE9Fja8ARD6bSIzntgvGEbcAoPuUy62A088luk7Fxw1UFBGOt0RlMjwYIEZ wIKehK7z0iKjvSQCC6EW4v/GcHdgqBgBm2WqVw64tcmFqzccOxaYy6wmMCCl0vvyLyGY WFZ9BtMEMhwKk8aYP8mb+/Iyfkl97xIC/i0qsqc/Of21i0HPiyfZdDkG/wC/8fkBlnoK 2TO6tkqGGxAOd/oi12V90jwIniYK8+uDgBvP3SwZrKGIJD0ozN5maEnAu2roNNZ7sC3a xeyLwzl+NsbKJ029xmdvxMNeWIteMTnCE+qsQU1V0gS2DqQdyk7hruJ6h+lhCqJIflm9 0r7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694087406; x=1694692206; 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=COEACg6f324iX1sPANA4tksOme4HNxnPzKI2+otWx98=; b=al9n5V78iLiFcFsTixLcnfvSX6ftPPKcS7wVWaCYw/6DhXf1Do3XAi/VgLxBowMr+U MA0rmKpIp6DhoDmBwn6GF8AiOlinxIT2T0cOJ0VHV4zDL7qycpljsxK6u6M8BnbFX/nb W+EpDC/Sr4kc1C6ptY3xlu4r3KvF/5h6HBDlYphn2rXsv7bEjkyjEg2XCMKfQzMbZkHk fGL+IRUHAWOzhCTgHilZYFaOX+6CdB4+yWw7KphcvbME/+9p8S9lB+632a+3zuKlp9QL 1qsX/E3r9x4exdXmcmVmYU9QRtyJz0X6KrIrkmOJgyTxGOoAKo3SqBRxYAkl92ZAQ+Aq R1EQ== X-Gm-Message-State: AOJu0YxeTfV1GSirCjRdO05zD4aJrCXudWJXvSoXk2LrWveMDsH7I8BG /UX91Ccdrh+JnmyIhlFP4vB+aD0v6lF8EnHBSHbmok/OSTY= X-Google-Smtp-Source: AGHT+IFigt2pYQnUaGEence4RjpBmI1108Zgfq17nIu6/FEonG5LMngl/n5bGpwdZz+5RUe6UQwvsw== X-Received: by 2002:a05:6808:2a76:b0:3a3:95f9:c99b with SMTP id fu22-20020a0568082a7600b003a395f9c99bmr17955725oib.35.1694087406374; Thu, 07 Sep 2023 04:50:06 -0700 (PDT) Received: from mchitale-vm.. ([103.97.165.210]) by smtp.googlemail.com with ESMTPSA id k128-20020a633d86000000b0056ae1af610asm12556243pga.58.2023.09.07.04.50.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Sep 2023 04:50:06 -0700 (PDT) From: Mayuresh Chitale <mchitale@ventanamicro.com> To: opensbi@lists.infradead.org Cc: Anup Patel <apatel@ventanamicro.com>, Anup Patel <anup@brainfault.org>, Atish Patra <atishp@rivosinc.com>, Mayuresh Chitale <mchitale@ventanamicro.com> Subject: [PATCH v1 3/7] lib: sbi: Don't clear mseccfg.MML bit in sbi_hart_smepmp_configure() Date: Thu, 7 Sep 2023 17:19:43 +0530 Message-Id: <20230907114947.1705425-4-mchitale@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230907114947.1705425-1-mchitale@ventanamicro.com> References: <20230907114947.1705425-1-mchitale@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230907_045007_793516_0654AE45 X-CRM114-Status: GOOD ( 10.83 ) 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: From: Anup Patel <apatel@ventanamicro.com> The mseccfg.MML bit is a sticky bit which remains unchanged once set so no need to clear it in sbi_hart_smepmp_configure(). Signed-off-by: Anup Patel <apatel@ventanamicro.com> Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com> --- lib/sbi/sbi_hart.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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:22d 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: <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="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 |
Smepmp fixes and improvements
|
expand
|
diff --git a/lib/sbi/sbi_hart.c b/lib/sbi/sbi_hart.c index 48784c8..6320ea6 100644 --- a/lib/sbi/sbi_hart.c +++ b/lib/sbi/sbi_hart.c @@ -360,12 +360,10 @@ static int sbi_hart_smepmp_configure(struct sbi_scratch *scratch, unsigned long pmp_addr; /* - * Set the RLB and clear MML so that, we can write to - * entries without enforcement even if some entries - * are locked. + * Set the RLB so that, we can write to PMP entries without + * enforcement even if some entries are locked. */ csr_set(CSR_MSECCFG, MSECCFG_RLB); - csr_clear(CSR_MSECCFG, MSECCFG_MML); /* Disable the reserved entry */ pmp_disable(SBI_SMEPMP_RESV_ENTRY);