From patchwork Thu Oct 10 09:00:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1995355 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=FFn/Y6BB; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=VeUodpLh; 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=mIAL/Hta; 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 4XPNz74nD1z1xsc for ; Thu, 10 Oct 2024 20:01:23 +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: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=obFv0b/FIvvBKlm3jZ3+aDukfcMDudyIkN695gRRWx0=; b=FFn/Y6BBsBDgZX yuLXsqEVJ0vgPt7gSGvF2WK4KTqiKArK2QQIFs7+/e5jaCd9mbalT8n6sZsLe0uDBG4tQqUa88eQB /7Hu0/DE3/Fj3SolKcRHJ8ASw6cp1jyjhe7x6lBILJ2Ow0hTVnx12MS1FpdLmeo5XhgshM/44I9uM KsKo6nwAwNMWi+kEmr2hZznvp6DymushHKsQwlKNbOo6hpjV46TYJh9kmGCn4OopTo4n7Of38Fyi4 qAYEPszPQkOvMDMWaLxDaOahzqZCeEiBlFMx8AxsbxJkwtFMV61d+lxDabCQc7CWWjHj5P2TkMMlp 9bunRhLLxjNFqaOtSemg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syp2o-0000000C8q8-0dbA; Thu, 10 Oct 2024 09:01:14 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syp2n-0000000C8p2-1BxF for opensbi@bombadil.infradead.org; Thu, 10 Oct 2024 09:01:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=Zgzv3nMA66Dm3RFL16tER25aoKFSX3bEE1R/AkOAltQ=; b=VeUodpLhd0HeQzsBhlYBGMPERS pQnVFU5Fwxspxi6msMpYb0ALM+FTGyDdn6oakWQypCuKZYNQjL8ob2Nf4oyWn8KL02cvxOJI0Y3Kp JpC/X7Zd022C/JMgmDuDJiZkwf0aBrAX7PMGCRTaqU1PFMVfF0GEoiz8iA+4Hq/j2ZDeJfdqlecLU vE1bULqC27hn2+ExhriE1q+15KwGP4BAA8zwcrPWRMtaH5iZpZbzTPg9EdBBsoD+1LK784cbaqC33 hzy69GaIvmsxHccXW5vjZ8/iTAauYJBhhxCwLVLtjHFYEdeZepQtyFBh88rnrR0AtsifyFT8ABp63 8aXus4Xw==; Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syp2j-00000005Ie3-3UNy for opensbi@lists.infradead.org; Thu, 10 Oct 2024 09:01:12 +0000 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-7ea16c7759cso445345a12.1 for ; Thu, 10 Oct 2024 02:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1728550865; x=1729155665; 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=Zgzv3nMA66Dm3RFL16tER25aoKFSX3bEE1R/AkOAltQ=; b=mIAL/HtaHG9nhZ3AdTz2hO6rA59Qa5Sw4nl5tlX+378nToMI4RdmyTLdgctmk0Sw+s UU/Rk43Di5S3M95rQOVb6Ovoi2kBbYpIfmLo8AdjuLtNew70l8wV4adRv3sxrfu52JQ+ z/WrIHi8HYKqCTiJ4dKr4TjMHTcu8cplFeT2SnAj1YSMx1I9LTRObWgee8sbFYr4Bs/I uVPaRGTipgaPmT3k9L+zbLfYe26SUN46Fwh1EBDNWcQD+LdnEJMi8toMQ/YZmjjxVD85 pJ9KfkoYe1uuouuF25UV2hx+iOUeKWOYhnh8rqCjIZoOh1zKjuidEmxw/iVtgYIKfeI6 5QEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728550865; x=1729155665; 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=Zgzv3nMA66Dm3RFL16tER25aoKFSX3bEE1R/AkOAltQ=; b=rInHJ8zLJq2xaT25QM457RAlSRRhKE2hbx0FwQ7QRp0W4Gv6ezrQL7euSTgbQ4bxWw 5Ps12S5bH00vf7DcgxTftrBU5Nqvf8CtdFPVgzQWzZj8b+7CuJrHpkDHQh7MAEzQUlB2 WcGTTKifJJcc03stu9urcvGmrvEbaZfVhucolEA2CDAT3NXW3VP8ZF8e7Okk7fKycuSn x3qxe1PVg/yIJQVd1nL8a46QcTyS0izFHJpl1p3NMq3FbLV9cQphSTqrP0Bz9SyZBZdi A6xYSqye+VxJnBD/1OVlVzigy3aXKDv9ppkoBPciA51YXgyxwYIVHnFA+V7/S6CYl5Oi qQMw== X-Forwarded-Encrypted: i=1; AJvYcCWYzRWDaMtocOu8pLp+zkghOMT9b+c5kPvwzIRktTEzG5TycGS6hgu60fM6pjM21nt7kbpYf6iy@lists.infradead.org X-Gm-Message-State: AOJu0YzeOsUmbU/YPx044/0T0AgaOH+BVxIKGKtaP2qJfWDqWqP5Zii9 pS9K5I0iZPv+/LHXRhnuWIT74AnXfX+b8gTQcOg8YnMYSG+kcYZqzq8A6aiQXlc= X-Google-Smtp-Source: AGHT+IGIluKzTel1eljNb7HeW2Z9ihC6Qm1PNxAQVj2LNB4HSTewFCTH6jJnS8fRNoXfbPQBEB6RhA== X-Received: by 2002:a05:6a21:9d91:b0:1d4:fb5b:bf44 with SMTP id adf61e73a8af0-1d8a3bc30f2mr8323203637.5.1728550865057; Thu, 10 Oct 2024 02:01:05 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([223.185.134.55]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e2a9e9835sm654127b3a.13.2024.10.10.02.01.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 02:01:04 -0700 (PDT) From: Anup Patel To: Atish Patra Cc: Andrew Jones , Anup Patel , opensbi@lists.infradead.org, Anup Patel Subject: [PATCH v2 0/9] OpenSBI domain data support Date: Thu, 10 Oct 2024 14:30:49 +0530 Message-ID: <20241010090058.179381-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-20241010_100110_227583_611DF159 X-CRM114-Status: GOOD ( 10.14 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "desiato.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 6 patches of this series are miscellaneous improvements which were pending for quite some time. 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:530 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_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -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 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 6 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_v2 branch at: https://github.com/avpatel/opensbi.git Changes since v1: - Typo fixes in PATCH1 to PATCH4 - Use current_hartindex() wherever applicable in PATCH8 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 | 57 +++---------- include/sbi/sbi_domain_data.h | 93 +++++++++++++++++++++ lib/sbi/objects.mk | 1 + lib/sbi/sbi_domain.c | 24 +++++- lib/sbi/sbi_domain_context.c | 105 ++++++++++++++++++++--- 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, 383 insertions(+), 111 deletions(-) create mode 100644 include/sbi/sbi_domain_data.h create mode 100644 lib/sbi/sbi_domain_data.c