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

[PATCH] xen/arm: vITS: add #msi-cells property


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
  • Date: Fri, 2 Aug 2024 14:26:52 -0400
  • 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=arcselector10001; 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=Kv5fGZrFl8nTwtSrKv0t7Iw/ZltTaBD+iHRePMAY000=; b=ARB+aZWlbuj+Z4zafSn9nYzYEdFeoGBzQe0CshWdipq2grZKWYlHDQYaxhMPkibOfXu9OVxe1d2vqu4Rv7inAluCbq7m+Jn3WswvDKaR4Phc1jXqxJ66csEWg6x7SxDWZrrsVmDool4R6fL8C+nrg9iBvUS/3Bv2nhfxMdcWrwJozt+lbrBW7wY2tQ0uJjoQ+5Eo4eA2p1ZpCADMMeLdIXCaO6hCXlVB8V8kVDE6WqR8ajRJZUdvXN7BBKTsC5FVenGoyLOebEYU3HxDbmpsidKare8wqyq9gxLKMXZxhYjcEXFgW9EYXHDDrZC28sCtefHgY0HT4xplM3mjFvdsTw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Ibbaw0Oq8s+BkhW1WL0hf8/QUKqtVsaXq1Hs93II3TTyUtqfU46BrByuyuTDLw4rwk3PVqYycbWpWdh6Bdd1+g6FS2EXdkazvt+bZTqswvG4NapYg7G1Ms2hYha5dnPCRdeAfxS88Il/XHxzNM8OTPLIczVpwfwV2oMllwMIp6Ae9n2T+LIaESrZ4xDwmiHBpYcqUyXkVjX/Iuj96y7Fq1W45xH2eAoK2geHSEV/DTakmh1o7BQerbuAwW6lJtxe9PK4Mh7pO8UzUlYaczMb/hAUmXwZOaG8UOXe9kjGwS26toDAcDXGIUswtZ36t/Ft5l5uV1lnte7hkd5vtEmZdw==
  • Cc: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, "Volodymyr Babchuk" <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 02 Aug 2024 18:27:28 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Non-PCI platform devices may use the ITS. Dom0 Linux drivers for such
devices are failing to register IRQs due to a missing #msi-cells
property. Add the missing #msi-cells property.

Signed-off-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
---
See Linux dc4dae00d82f ("Docs: dt: add #msi-cells to GICv3 ITS binding")
---
 xen/arch/arm/gic-v3-its.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/xen/arch/arm/gic-v3-its.c b/xen/arch/arm/gic-v3-its.c
index 8afcd9783bc8..55bed3fe87d0 100644
--- a/xen/arch/arm/gic-v3-its.c
+++ b/xen/arch/arm/gic-v3-its.c
@@ -951,6 +951,10 @@ int gicv3_its_make_hwdom_dt_nodes(const struct domain *d,
         if ( res )
             return res;
 
+        res = fdt_property_cell(fdt, "#msi-cells", 1);
+        if ( res )
+            return res;
+
         if ( its->phandle )
         {
             res = fdt_property_cell(fdt, "phandle", its->phandle);

base-commit: 984cb316cb27b53704c607e640a7dd2763b898ab
-- 
2.45.2




 


Rackspace

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