Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 2020 05:57:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 250248] 12.2-RC2 kernel reboots with hw.acpi.debug=1 after a warm reboot.
Message-ID:  <bug-250248-227-Je3P0N0GlU@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-250248-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-250248-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250248

--- Comment #6 from Andriy Gapon <avg@FreeBSD.org> ---
(In reply to Rajeev Pillai from comment #5)
If you can some (light) code modifications and can build a kernel from sour=
ces,
then I can try to "throw" a couple of ideas at you.

First, in hdac_attach2(), you can try moving a block of code that starts wi=
th
printing of "Enabling controller interrupt" and goes up to "Scanning HDA
codecs" to a place right after the loop that scans for codecs.

But I am not sure if that will really work.
There are calls to hdac_send_command() in the loop.  I am not sure if that
function depends on interrupts.

Another idea is to move just HDAC_WRITE_4(... HDAC_GCTL_UNSOL) line.

Yet another idea is to modify hdac_methods[] array and add device_shutdown
method there.  It can point to hdac_detach.
The idea is to completely reset the hardware _before_ the warm reboot, so i=
t is
more predictable afterwards.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250248-227-Je3P0N0GlU>