From 107ecd7b5999c27d90f46609d92a25c541e18d32 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Sat, 25 Apr 2020 15:29:06 +0000 Subject: [PATCH] MFC r359777: hdac: show which command timed out There are several reports of "hdac0: Command timeout on address 2" messages emitted during playback on a variety of contemporary machines. Show the command that timed out in case it might provide a clue in finding the cause. PR: 229190 Sponsored by: The FreeBSD Foundation --- sys/dev/sound/pci/hda/hdac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c index 2d411843e07883..8f744d25680584 100644 --- a/sys/dev/sound/pci/hda/hdac.c +++ b/sys/dev/sound/pci/hda/hdac.c @@ -996,7 +996,8 @@ hdac_send_command(struct hdac_softc *sc, nid_t cad, uint32_t verb) } while (sc->codecs[cad].pending != 0 && --timeout); if (sc->codecs[cad].pending != 0) { - device_printf(sc->dev, "Command timeout on address %d\n", cad); + device_printf(sc->dev, "Command 0x%08x timeout on address %d\n", + verb, cad); sc->codecs[cad].pending = 0; }