From patchwork Mon Sep 23 11:56:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1988564 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=u3KKqutw; 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=TSW8VsEA; 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 4XC1h56CPLz1xsg for ; Mon, 23 Sep 2024 21:57:23 +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=LgS2F5Zb+uxELJoGz/AkR3kg4etGNc5UflRuDAvYSco=; b=u3KKqutw2vaolO 9Sk9YwLF+8wmlObHxtEjSJRK84yBQwzT+hJQZ0gkIUsfs4atJJpG18BFdtNZAfJHH1scJ0Yj+vPYj k5h8z8MERHaxIR5MCbHNYLSXNdCodoEb4TAry83UcrGNUx0kdKZzF3Gtz8gc7Sx+6OJZaByruADVb kZdJxOqq5VfFj9c7oT8sthy+eHyyqSj8dpqXX1e4yEE/hE/tHknRmUPu1fat7TNk1eFoV/VCF0MZ2 rFsasNQRNgRluIUwXuT+7HpoecZUxK0lbNSa7LM1D0uWBP45kwkp3EdLjSoEjz50QEhUG+wSKKd1U bWLulwDyi5XW1kMrnDoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sshgp-0000000H7EE-26vl; Mon, 23 Sep 2024 11:57:15 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sshgl-0000000H7DL-3HzS for opensbi@lists.infradead.org; Mon, 23 Sep 2024 11:57:13 +0000 Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-2d88edf1340so2816019a91.1 for ; Mon, 23 Sep 2024 04:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1727092630; x=1727697430; 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=8h9cvR6aCI9qkTVjcuxx/IDt/Bni/mOL6RvNfA343hY=; b=TSW8VsEAjuP2WDG3HZ0Q6bWjrud/GaYdXHbI5zJBg/YE1pUrGJsfC8lHorKSsGjOUf 0TQhIDq58QVrOdA4uqbHulbcwfIMd5dPheAALXe4IML6cvWCG2k+Pgtvf9uQuH9IYG0C +xypRVN2GG7cqhDemh+TsyaviWjSTmaDiqkyYWkCxmu96elwFC9D2nNRwZRvpyhiGRHe 3k9sVDxAy21yHg+f4y3U6Y4j5k7tPuqBV05Jd652QtpwNpq5+e0nPp1ku+o2sc5xpFiW lY6TXpxjzaUJinozhY8f1z7N+PthX13QIazldgzq2Px8tcBaMCrd+K26ueZKxomYsJWJ 8p3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727092630; x=1727697430; 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=8h9cvR6aCI9qkTVjcuxx/IDt/Bni/mOL6RvNfA343hY=; b=bfmq8GNH/Zc+x5WmLwQE9XehTcTHs1+LYbnToYZ2oCgtToiiupbzuYSxK8vtiv2X6w UZFRpUL9mbmFoykdbVcfonKaJEyFwyW5s3ncddKZgmcCKWQBpcGz+MLMED3whGdwZWQP 2zl1LsQHaSR332WpJtw8KY0MrgMidkRJLt9U9UsVapSDbkoB9P8hYpCkgfaX/YAERDYo 2N6dkDL0t4LM3ukZAMIRadqudqf43Gn9kdcW8OsIFXUDvmeHtzWkskrFc9M2a55qMwrs 71ry/qN9BOs0xf5euJmKDImX3dzdpZbMNyzzFes4xcJ3BjOlpr3IFhSohVzbbea9/QHu hj4w== X-Forwarded-Encrypted: i=1; AJvYcCUalG0fdi13zVnbtWxTv+LRQJoF0hViGxvY9cNyzJ8VI9+NLx8qG5tmtclngEsduc5ebYVn/Sky@lists.infradead.org X-Gm-Message-State: AOJu0YycXudHUvZ6p/DWX+zqslkciu4cOT+Lk+8a1XXlp8gF5shzW+OM 0DBN7wu8bDD1wiEk0xbS6LkkKP+2rISSfxp4Yl4l+jX1uxm+0QlGdq+Jy/+wZ6wU52jqKfLwJLt AIjU= X-Google-Smtp-Source: AGHT+IELrQb5iyKiikfo5FTCrPv4F0zX/JhSBQ4lpf5L4+EvokyGoFML1PFztb9mnfam+bqMW0aryg== X-Received: by 2002:a17:90b:354c:b0:2d3:c6dd:4383 with SMTP id 98e67ed59e1d1-2dd7f428339mr14653034a91.16.1727092629728; Mon, 23 Sep 2024 04:57:09 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([103.97.165.210]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dd6ef361b0sm9252106a91.44.2024.09.23.04.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Sep 2024 04:57:09 -0700 (PDT) From: Anup Patel To: Atish Patra Cc: Andrew Jones , Anup Patel , opensbi@lists.infradead.org, Anup Patel Subject: [PATCH 0/9] OpenSBI domain data support Date: Mon, 23 Sep 2024 17:26:51 +0530 Message-ID: <20240923115700.381916-1-apatel@ventanamicro.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240923_045711_848406_2D0530BD X-CRM114-Status: UNSURE ( 9.57 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) 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 series extends the OpenSBI domain support to allow per-domain data from different parts of OpenSBI. Also extend OpenSBI domain context as the first user of OpenSBI domain data support. The first 7 patches of this series are miscellaneous improvements which were pending for quite some time. Content analysis details: (-2.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 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_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 -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1032 listed in] [list.dnswl.org] 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 series extends the OpenSBI domain support to allow per-domain data from different parts of OpenSBI. Also extend OpenSBI domain context as the first user of OpenSBI domain data support. The first 7 patches of this series are miscellaneous improvements which were pending for quite some time. These patches can also be found in the sbi_domain_imp_v1 branch at: https://github.com/avpatel/opensbi.git Anup Patel (9): lib: utils/ipi: Use sbi_domain_root_add_memrange() for ACLINT mswi lib: utils/irqchip: Use sbi_domain_root_add_memrange() for IMSIC lib: utils/irqchip: Use sbi_domain_root_add_memrange() for APLIC lib: sbi_domain: Make sbi_domain_root_add_memregion() as local function lib: utils/fdt: Use sbi_domain_memregion_init() when parsing domains include: sbi: Remove cyclic include in sbi_domain_context.h lib: sbi: Introduce domain data lib: sbi_domain: Use domain data support for per-domain hart context docs: Remove hartindex_to_context_table from domain_support.md docs/domain_support.md | 2 - include/sbi/sbi_domain.h | 15 +--- include/sbi/sbi_domain_context.h | 58 +++---------- include/sbi/sbi_domain_data.h | 93 +++++++++++++++++++++ lib/sbi/objects.mk | 1 + lib/sbi/sbi_domain.c | 24 +++++- lib/sbi/sbi_domain_context.c | 106 +++++++++++++++++++++--- lib/sbi/sbi_domain_data.c | 138 +++++++++++++++++++++++++++++++ lib/utils/fdt/fdt_domain.c | 14 ++-- lib/utils/ipi/aclint_mswi.c | 20 ++--- lib/utils/irqchip/aplic.c | 11 +-- lib/utils/irqchip/imsic.c | 14 ++-- 12 files changed, 384 insertions(+), 112 deletions(-) create mode 100755 include/sbi/sbi_domain_data.h create mode 100755 lib/sbi/sbi_domain_data.c