Don't yet configure smmu(4) on Qualcomm SoCs as used on the Lenovo x13s
authorpatrick <patrick@openbsd.org>
Thu, 11 Aug 2022 14:49:42 +0000 (14:49 +0000)
committerpatrick <patrick@openbsd.org>
Thu, 11 Aug 2022 14:49:42 +0000 (14:49 +0000)
as it is still not ready for runtime use and probably needs further quirks.

Discussed with deraadt@

sys/arch/arm64/dev/smmu_acpi.c

index 97b4804..3aff7a8 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: smmu_acpi.c,v 1.5 2022/08/10 17:02:37 patrick Exp $ */
+/* $OpenBSD: smmu_acpi.c,v 1.6 2022/08/11 14:49:42 patrick Exp $ */
 /*
  * Copyright (c) 2021 Patrick Wildt <patrick@blueri.se>
  *
@@ -102,6 +102,12 @@ smmu_acpi_attach(struct device *parent, struct device *self, void *aux)
        /* Check for QCOM devices to enable quirk. */
        aml_find_node(acpi_softc->sc_root, "_HID", smmu_acpi_foundqcom, sc);
 
+       /* FIXME: Don't configure on QCOM until its runtime use is fixed. */
+       if (sc->sc_is_qcom) {
+               printf(": disabled\n");
+               return;
+       }
+
        if (smmu_attach(sc) != 0)
                return;