ACPI panic
Stefan Farfeleder
stefanf at FreeBSD.org
Tue Dec 4 08:50:09 UTC 2012
On Thu, Nov 29, 2012 at 11:43:51PM +0200, Andriy Gapon wrote:
> Hmmm...
> Another bug-catching patch before I start questioning my ability to understand
> the code.
>
> index 59ecf21..1687c75b 100644
> --- a/sys/contrib/dev/acpica/components/utilities/utcache.c
> +++ b/sys/contrib/dev/acpica/components/utilities/utcache.c
> @@ -238,6 +238,8 @@ AcpiOsReleaseObject (
>
> else
> {
> + if (AcpiGbl_MutexInfo[ACPI_MTX_CACHES].ThreadId == AcpiOsGetThreadId ())
> + panic("ACPI_MTX_CACHES acquired recursively");
> Status = AcpiUtAcquireMutex (ACPI_MTX_CACHES);
> if (ACPI_FAILURE (Status))
> {
> @@ -311,6 +313,8 @@ AcpiOsAcquireObject (
> return (NULL);
> }
>
> + if (AcpiGbl_MutexInfo[ACPI_MTX_CACHES].ThreadId == AcpiOsGetThreadId ())
> + panic("ACPI_MTX_CACHES acquired recursively");
> Status = AcpiUtAcquireMutex (ACPI_MTX_CACHES);
> if (ACPI_FAILURE (Status))
> {
These checks have not triggered additional panics. I still get the cycle
one.
Stefan
More information about the freebsd-acpi
mailing list