From patchwork Wed Jul 10 21:09:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregor Haas X-Patchwork-Id: 1959018 Return-Path: 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=h9xEzWVo; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=cWRfh+p+; 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 4WK9VL5LsYz20MP for ; Thu, 11 Jul 2024 07:10:00 +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: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:In-Reply-To:References: List-Owner; bh=ZqiV6PLCfLLaRbb4eOwdywh4NRATjtM/HjijQrAv9T8=; b=h9xEzWVoUPh9BN NociN72u8ia1Ha0XmEFj3Qw5vozVDCYmtHpOlBmYsGi9hu6PL8hpv50x30We2up+zmZwPY1/XBbEg jQOXd1VrbxBBRUK6ZuCF7aTdqIFTieEGArmUU6rSM1RiufRAez14vHCuOkOBcG+b+822Hy0IPcJEm aJTZnNA8/DTUScMk091R0i1KwClqXtFSbHkcE2Gfuhva4GTsDjWlhMW+fC11YMiad2DZqUHlh8PdY hx+GWC8TWX/v+IJDDPIej3A8mf/pmRlQeAQsiAcZjtb2HWa2SG+TKtmpc79b2r3+g26f1PoZM+8eg T19adJXPw+8lR1iFVKKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sReZU-0000000Bjws-1PtN; Wed, 10 Jul 2024 21:09:52 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sReZA-0000000BjqY-2SQh for opensbi@lists.infradead.org; Wed, 10 Jul 2024 21:09:33 +0000 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1fb0d88fdc8so1107705ad.2 for ; Wed, 10 Jul 2024 14:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720645771; x=1721250571; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=reEKsgm9iIUvA+SGdqul4vYWRyBb4OiDdOBmGYe4Pjs=; b=cWRfh+p+RenOkfqIsbn2mmGhuwb460lv3iBF+sjeMcv9hAyjDKxMV6OiveqbfYzFA/ b90mw3UIRG/HZQ1dotZ1XEJZ0Q2/YUdsHj78PmTkDuVduQUaSfvBLnIZD383cvIP2y0s XLPBmhnOs9JMlzcdup+FlHV0jSa6P30apNUyczujIJN1WP2vhtecNRiZr1qtcO64NNVZ 51wSM3GvWLznTExqG0kgJaLJnNBPzxOh1HtA8cDZ21rHrfSSotF4NCUtyxi8Ea0KnAyK lAc5+rHLRXvyoDn49PCyhdVZ9vM8gEMVmQD9HaNFJvcYEHKyxrUvkNpN4wR6aICLjQzU Re7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720645771; x=1721250571; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=reEKsgm9iIUvA+SGdqul4vYWRyBb4OiDdOBmGYe4Pjs=; b=mrGkaiWdN9QehwjgNAeeQEglDD3rwgcrVmYTWvOvzaMD+FqlIePhw7oi5cvdWuZGQQ mKTcc7TjSPvNQYAFnN5spSvV3mO6e1qpZBIGgp+iv+1IL++2mjjJ8BMC4tVPQw5vdqic LxmXHcAQ+JpthuEN1F+cAwUZCA6BwzGGUbUyhl7OkYqE5krIukKD/3VGOQxhrrS5nHL1 MjDGlSKCl2dcXxaWe+Fg6Ma7XnN46e6Sba7peaZUcZCSGvnQ/vTgQkkO2LAk45Y/z09o 2nITKO7npjvpGgcexPYPm7PJ0qfEicUeXNm73xJNCeBLzH29ZJj0bq9GIxLOnl95LVlB dFzQ== X-Gm-Message-State: AOJu0YxS+ANjQfZ+IZBWDaFGun2ZVa35VfCDWMPcusn3457xs2to4VnD rc7vgONbXKG6/ICdpDTqBU6kOaUxvmVJNV2QzEr7LhJ9+nMcsZlNMYBCL5M8 X-Google-Smtp-Source: AGHT+IGD+3Wnb2xAruolQ+sWUHkDMb/W5CTXD94zo3CWfZjrECM0xWbfV5EMOnrM7pkJn8Pn97BFrw== X-Received: by 2002:a17:90a:f0d6:b0:2c8:6a9d:5060 with SMTP id 98e67ed59e1d1-2ca35be1129mr5374191a91.7.1720645771015; Wed, 10 Jul 2024 14:09:31 -0700 (PDT) Received: from localhost ([205.175.106.198]) by smtp.gmail.com with UTF8SMTPSA id 98e67ed59e1d1-2c99aab0787sm12367560a91.55.2024.07.10.14.09.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Jul 2024 14:09:30 -0700 (PDT) From: Gregor Haas To: opensbi@lists.infradead.org Cc: atishp@rivosinc.com, Gregor Haas Subject: [PATCH v2 0/2] lib: sbi: Heap improvements for SMMTT Date: Wed, 10 Jul 2024 14:09:22 -0700 Message-ID: <20240710210924.817753-1-gregorhaas1997@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240710_140932_663564_ACAA790B X-CRM114-Status: UNSURE ( 7.00 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.8 (-) 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: This patch series includes two changes to the SBI heap implementation, primarily to enable future work on the SMMTT implementation. First, it enables allocations from multiple independent heaps on sep [...] Content analysis details: (-1.8 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:62a 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_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -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 -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [gregorhaas1997(at)gmail.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [gregorhaas1997(at)gmail.com] 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 This patch series includes two changes to the SBI heap implementation, primarily to enable future work on the SMMTT implementation. First, it enables allocations from multiple independent heaps on separate memory regions. Then, it adds a simple implementation for sbi_memalign for use in allocating aligned memory. See the individual commit messages in this series for more technical details. Gregor Haas (2): lib: sbi: Support multiple heaps lib: sbi: Implement aligned memory allocators include/sbi/sbi_heap.h | 23 ++++++ lib/sbi/sbi_heap.c | 181 +++++++++++++++++++++++++++++------------ 2 files changed, 151 insertions(+), 53 deletions(-) --- 2.45.2