From d0adc91200b87d651e2dcaf378e06e37972febc7 Mon Sep 17 00:00:00 2001 From: patrick Date: Mon, 24 Apr 2023 15:15:00 +0000 Subject: [PATCH] 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@ --- sys/dev/fdt/dwpcie.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.20.1