Flush the ITS after we disestablish an MSI. Fixes an issue seen on Ampere
authorkettenis <kettenis@openbsd.org>
Sat, 17 Jun 2023 22:10:19 +0000 (22:10 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 17 Jun 2023 22:10:19 +0000 (22:10 +0000)
eMAG with an AMD GPU with an HD audio function where azalia(4) doesn't
fully attach.

ok patrick@

sys/arch/arm64/dev/agintc.c

index 12f7cac..d04651c 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: agintc.c,v 1.48 2023/04/25 10:35:48 patrick Exp $ */
+/* $OpenBSD: agintc.c,v 1.49 2023/06/17 22:10:19 kettenis Exp $ */
 /*
  * Copyright (c) 2007, 2009, 2011, 2017 Dale Rahn <drahn@dalerahn.com>
  * Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org>
@@ -1962,6 +1962,9 @@ agintc_intr_disestablish_msi(void *cookie)
 {
        agintc_intr_disestablish(*(void **)cookie);
        *(void **)cookie = NULL;
+
+       /* Invalidate cache. */
+       agintc_msi_invall();
 }
 
 void