From: patrick Date: Mon, 24 Apr 2023 15:15:00 +0000 (+0000) Subject: Enable MSI if the node contains an msi-map, like we already do in pciecam(4). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d0adc91200b87d651e2dcaf378e06e37972febc7;p=openbsd Enable MSI if the node contains an msi-map, like we already do in pciecam(4). This will make MSIs work on the Lenovo x13s as soon as an updated device tree is installed. Discussed with kettenis@ --- diff --git a/sys/dev/fdt/dwpcie.c b/sys/dev/fdt/dwpcie.c index ab4a53889c1..18ca6f1c578 100644 --- a/sys/dev/fdt/dwpcie.c +++ b/sys/dev/fdt/dwpcie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwpcie.c,v 1.44 2023/04/05 10:48:12 kettenis Exp $ */ +/* $OpenBSD: dwpcie.c,v 1.45 2023/04/24 15:15:00 patrick Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -701,6 +701,7 @@ dwpcie_attach_deferred(struct device *self) if (OF_is_compatible(sc->sc_node, "baikal,bm1000-pcie") || OF_is_compatible(sc->sc_node, "marvell,armada8k-pcie") || OF_is_compatible(sc->sc_node, "rockchip,rk3568-pcie") || + OF_getproplen(sc->sc_node, "msi-map") > 0 || sc->sc_msi_addr) pba.pba_flags |= PCI_FLAGS_MSI_ENABLED;