[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 05/15] tools/libs/light: Increase nr_spi to 160


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Henry Wang <xin.wang2@xxxxxxx>
  • Date: Wed, 24 Apr 2024 11:34:39 +0800
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2CXTiKjl6H23aWyq/JRcR1V9QG6E4fZMm3DFM6arH00=; b=lvTuWc7Lc86Uy4n6iQRWf/WUrROcZpwFxoGDQshC0lRv14nvYfCybpmEhMEygu1QsuLeviBV9rHQRvI29TwYwrpxuSZT2vezgqEfRZnpqkS4m/Y7rCBBEWsIYby1wdO4TkzpQUF2gDcUDnrvArSU+dpdIY5NqCJmImoMRmMg2JfoxCZDrUf6vOI33dZrHxrlDp2BiscP5Hiux1sEnNTlJ1rgC+WA8+ouCVKL+B4Zknj27iruBuM/obzpjgm+rlLBkqYezURtZ2jaBgMjnUYsXxHblbJ8LF5YLE41epEUkxMv/q49m7ha3YdvGWqAYI6i2+BiEeE1/lxnxg3C2uXkxg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l7SEcH28VM54chhn+ZsVd9lyXDhMZSP3I32oAj+wbJyf2DTLyNT6Xg8xqd5J0N61cNaXYB5apZXmEW1RRzmMy7psGNJCHrFZ1NrGfSigFFJ0S7EkRQnaCvRZ7z57m9bM6hZAaIzk6bTp7pPlc0Pk4OzreyD5OzDwgIrLpIZT5nlJ+IS9rsdZLc/wA1hY6BGvL92OovlCDubUSpKEX/LRUMHYavPJTE1/aEL67pQwQ/5w5//VfTRWWCafwRC1UEh8LgV7MBeL7VVZEMblglNdXLjOw+9dsGzmeDK9CS5g4GpNMv03Fu1Rx1WZwrPw8WEovEMO7HaAZLDVBdM6HwboiQ==
  • Cc: Vikram Garhwal <fnu.vikram@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, "Stefano Stabellini" <stefano.stabellini@xxxxxxxxxx>, Henry Wang <xin.wang2@xxxxxxx>
  • Delivery-date: Wed, 24 Apr 2024 03:35:51 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

From: Vikram Garhwal <fnu.vikram@xxxxxxxxxx>

Increase number of spi to 160 i.e. gic_number_lines() for Xilinx ZynqMP - 32.
This was done to allocate and assign IRQs to a running domain.

Signed-off-by: Vikram Garhwal <fnu.vikram@xxxxxxxxxx>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>
Signed-off-by: Henry Wang <xin.wang2@xxxxxxx>
---
 tools/libs/light/libxl_arm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/libs/light/libxl_arm.c b/tools/libs/light/libxl_arm.c
index dd5c9f4917..50dbd0f2a9 100644
--- a/tools/libs/light/libxl_arm.c
+++ b/tools/libs/light/libxl_arm.c
@@ -181,7 +181,8 @@ int libxl__arch_domain_prepare_config(libxl__gc *gc,
 
     LOG(DEBUG, "Configure the domain");
 
-    config->arch.nr_spis = nr_spis;
+    /* gic_number_lines() is 192 for Xilinx ZynqMP. min nr_spis = 192 - 32. */
+    config->arch.nr_spis = MAX(nr_spis, 160);
     LOG(DEBUG, " - Allocate %u SPIs", nr_spis);
 
     switch (d_config->b_info.arch_arm.gic_version) {
-- 
2.34.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.