From: kettenis Date: Sat, 17 Jun 2023 22:10:19 +0000 (+0000) Subject: Flush the ITS after we disestablish an MSI. Fixes an issue seen on Ampere X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0bf07e2221524a34a18a289f098bcef8aab89dac;p=openbsd Flush the ITS after we disestablish an MSI. Fixes an issue seen on Ampere eMAG with an AMD GPU with an HD audio function where azalia(4) doesn't fully attach. ok patrick@ --- diff --git a/sys/arch/arm64/dev/agintc.c b/sys/arch/arm64/dev/agintc.c index 12f7cac386c..d04651c814e 100644 --- a/sys/arch/arm64/dev/agintc.c +++ b/sys/arch/arm64/dev/agintc.c @@ -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 * Copyright (c) 2018 Mark Kettenis @@ -1962,6 +1962,9 @@ agintc_intr_disestablish_msi(void *cookie) { agintc_intr_disestablish(*(void **)cookie); *(void **)cookie = NULL; + + /* Invalidate cache. */ + agintc_msi_invall(); } void