From 351aecf31a5c1a816272ac3fb245c248aa60829e Mon Sep 17 00:00:00 2001 From: patrick Date: Fri, 5 Jul 2024 22:52:25 +0000 Subject: [PATCH] On Qualcomm machines, make use of the in-built MSI functionality in case we don't have an msi-map pointing us to the GIC-MSI. This enables MSIs on the Snapdragon X Elite or the Lenovo x13s in case it's running an unpatched DTB. ok kettenis@ --- sys/dev/fdt/dwpcie.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/fdt/dwpcie.c b/sys/dev/fdt/dwpcie.c index ef4cff366af..7e6a075d404 100644 --- a/sys/dev/fdt/dwpcie.c +++ b/sys/dev/fdt/dwpcie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwpcie.c,v 1.54 2024/07/02 19:44:37 patrick Exp $ */ +/* $OpenBSD: dwpcie.c,v 1.55 2024/07/05 22:52:25 patrick Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -1505,6 +1505,9 @@ dwpcie_sc8280xp_init(struct dwpcie_softc *sc) { sc->sc_num_viewport = 8; + if (OF_getproplen(sc->sc_node, "msi-map") <= 0) + return dwpcie_msi_init(sc); + return 0; } -- 2.20.1