From patchwork Tue Aug 6 07:33:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1969353 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=g+3D4kak; 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=isoH7Xe6; 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 4WdQ6G6LBMz1yYD for ; Tue, 6 Aug 2024 17:33:58 +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=rrwP9/rfPz694HzYgL3+m2NoYcGUweeI1mQ+fRyXEOQ=; b=g+3D4kakYE4UsZ ize6yRs9+5srdsd6uRleV9JsvaDgxCMIwYyxmW4gKZ1fQEN117mpCRl7YmY65s3Hz5tmsJk3qHP0u x3AGQBuVqNYECe+R4NB6CXqnm9dBwY6/4R4tuUPhliWB0fW86RuWvcLL3OguEKm3EQSD6UubYjz5f Z1q1xDtHQRQewceNMM8qebasNYcWHQEgJtFKZTp3cDKQO99NW3oJYVWx1oZvXbGK5g2ahKRmN7Yok vj0+fM25kpcovly/AM0aXqBbc5ISGhDBFJX9YfRpke8degzSx/JfzY9Lkd1NFRU02n1+YAkSgPw48 ZxBygmFV1sM0GJ9WG5xg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbEha-00000000nix-3wIv; Tue, 06 Aug 2024 07:33:50 +0000 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbEhY-00000000ni8-3MyS for opensbi@lists.infradead.org; Tue, 06 Aug 2024 07:33:50 +0000 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-70ea2f25bfaso203265b3a.1 for ; Tue, 06 Aug 2024 00:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1722929628; x=1723534428; 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=5OqsrHvigNFg2ygUR+D353nFmGeoJerXW+yukN3qgHg=; b=isoH7Xe6pvxlCUQ4AU8zGE7x5AiA6ABSNPhrdOco4lrVElrrqCNC3TF3cyqvHs7xto 6FqIfaFEc1wz6vRep4DBIZ4LqoLpXVCoNu0UdiaqSxZRTaGRVbb9YOS0Kn1gt4F4b3RR hwTwXyzoe+Y84C/wUjNrR5UWJsmFHH2ue1G/W3U883WRA3d96rXYvStmX8USMg/hqGUh thEz/kPUP0y37rdYOKPofMw9vvPImnA9OzTq1LVhTCNof2VIzgimWUTDFzEunKxbAg4A tlFEFN1TievqFx65uRebBa2cB4SqvQuHnOYEHIF8HE4CoN7cawcyjfuokdw9W+ChBuD4 YJbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722929628; x=1723534428; 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=5OqsrHvigNFg2ygUR+D353nFmGeoJerXW+yukN3qgHg=; b=o0/7QXuAPgHMRLcjxmqLdiS9raWxH8JhnnN+jBc5gZYWcAfQn5IQsn94h4W3x5wBXB 5ei6btYfijUryxztRB4peZVrx+UzyVkly5d/Ee5N6oJZnm36UcelPuSosWYdOcs6nXg1 julRlIgYCqSbgkWnA3f0QedGCOSgcgM7p+jswqg5kYm9ITS6H2N1y9USdbSTscSZ5TgR GUDqpyPAF70J9NpEb/fQ1gnZgzkrCgGaBQOhqzYJkE+uXjEqkA9c5VkOqyvUMVVH1Hsf pJ3PDXHjxgj0wnuTuvbp3b20x95XVU0gQnwbKEthdwjzZswWQ+q3EejDDozCrrgwhqJw Q94w== X-Forwarded-Encrypted: i=1; AJvYcCV8UDWKsy5iCh9lXZ0x57vviQj2fIeywppxhS3dkTWKo9lLQCMWvbEXM+Jr+8UtzY9w6Gap2CMzSp2Nj2FFor/lcgeV/VrDAnvx29Y= X-Gm-Message-State: AOJu0YxG5TirxwNofYMyVFQ354w3M38Z1oiGGS1QII3fI4oEK+o3Dqlf KqiDf5kgQR8HXckBitBzQyvkHDecM0qrCTC+Ofl6jTyIjJPWTXke8CyuQ2MFBKKPvQ3QRmK7OnU z X-Google-Smtp-Source: AGHT+IHQSQyxfj9q1qw5kD+x22I0BO1ZiWYrCfEppT8N0LjZ7BGxoCQ8/+IZ5d/MDiH4WNyy/QmYMA== X-Received: by 2002:a05:6a00:b53:b0:710:5848:8ae1 with SMTP id d2e1a72fcca58-7106cf8fd33mr14656804b3a.4.1722929627633; Tue, 06 Aug 2024 00:33:47 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([223.185.134.124]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7106ed2de28sm6455011b3a.191.2024.08.06.00.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Aug 2024 00:33:47 -0700 (PDT) From: Anup Patel To: Atish Patra Cc: Andrew Jones , Anup Patel , opensbi@lists.infradead.org, Rahul Pathak , Anup Patel Subject: [PATCH 01/16] lib: Increase ROOT_REGION_MAX to accomodate more memregions Date: Tue, 6 Aug 2024 13:03:23 +0530 Message-Id: <20240806073338.1856901-2-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240806073338.1856901-1-apatel@ventanamicro.com> References: <20240806073338.1856901-1-apatel@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240806_003348_863623_0AAFB7DA X-CRM114-Status: GOOD ( 10.30 ) 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: From: Rahul Pathak As more drivers adding memregions into root domain, the current static limit of ROOT_REGION_MAX is not sufficient. Increase the limit to accomodate more memregions. Content analysis details: (-2.1 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:435 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_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_EF Message has a valid DKIM or DK signature from envelope-from 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] 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 From: Rahul Pathak As more drivers adding memregions into root domain, the current static limit of ROOT_REGION_MAX is not sufficient. Increase the limit to accomodate more memregions. Signed-off-by: Rahul Pathak Signed-off-by: Anup Patel --- lib/sbi/sbi_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sbi/sbi_domain.c b/lib/sbi/sbi_domain.c index 374ac36b..65649169 100644 --- a/lib/sbi/sbi_domain.c +++ b/lib/sbi/sbi_domain.c @@ -26,7 +26,7 @@ struct sbi_domain *domidx_to_domain_table[SBI_DOMAIN_MAX_INDEX + 1] = { 0 }; static u32 domain_count = 0; static bool domain_finalized = false; -#define ROOT_REGION_MAX 16 +#define ROOT_REGION_MAX 32 static u32 root_memregs_count = 0; struct sbi_domain root = {