Pass standard DMA tag to acpi(4) table drivers.
authorpatrick <patrick@openbsd.org>
Sun, 7 Mar 2021 15:17:58 +0000 (15:17 +0000)
committerpatrick <patrick@openbsd.org>
Sun, 7 Mar 2021 15:17:58 +0000 (15:17 +0000)
ok kettenis@

sys/dev/acpi/acpi.c

index 4c824ee..12c5931 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.395 2020/12/27 23:06:34 deraadt Exp $ */
+/* $OpenBSD: acpi.c,v 1.396 2021/03/07 15:17:58 patrick Exp $ */
 /*
  * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
  * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -1202,6 +1202,7 @@ acpi_attach_common(struct acpi_softc *sc, paddr_t base)
                memset(&aaa, 0, sizeof(aaa));
                aaa.aaa_iot = sc->sc_iot;
                aaa.aaa_memt = sc->sc_memt;
+               aaa.aaa_dmat = sc->sc_ci_dmat;
                aaa.aaa_table = entry->q_table;
                config_found_sm(&sc->sc_dev, &aaa, acpi_print, acpi_submatch);
        }