All of lore.kernel.org
 help / color / mirror / Atom feed
* [Devel] Re: PROBLEM : ACPI, Acquiring Mutex Error
@ 2020-09-17 15:24 Moore, Robert
  0 siblings, 0 replies; 7+ messages in thread
From: Moore, Robert @ 2020-09-17 15:24 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 6476 bytes --]

From erik:

What happens when they boot with a kernel that has PCI support?



From: ManojKumar <ndmanojkumar(a)gmail.com>
Sent: Monday, September 14, 2020 5:14 AM
To: Moore, Robert <robert.moore(a)intel.com>; Kaneda, Erik <erik.kaneda(a)intel.com>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com>; lenb(a)kernel.org; linux-acpi(a)vger.kernel.org; devel(a)acpica.org; linux-kernel(a)vger.kernel.org
Cc: manjunathmurali87(a)gmail.com; naveen.bheemanapalli(a)gmail.com
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Hi,

The kernel is failing to boot up completely, it is failing to set up the rootfs too and the control drops to the initramfs shell where only some commands are available. So the acpidump doesn't work there. Is there anything else that I can help you with?

Thanks,
Manoj.

On Fri, 11 Sep 2020 at 21:46, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:
Well, I would say that the root of the problem is here:

ACPI Error: AE_BAD_PARAMETER, During Region initialization

Please send the acpidump for the machine.
Thanks,
Bob



From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Friday, September 11, 2020 12:37 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Hi Robert,

We are actually trying to boot the kernel without the PCI support. The ACPICA core shouldn't care as you said but the result gives ACPI errors and says Thread could not acquire Mutex[ACPI_MTX_Tables]. The control then drops to the initramfs shell. Kindly see the attachments. (.config to reproduce the same is also provided)

Thanks,
Manoj.


On Thu, 10 Sep 2020 at 20:01, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:


From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Wednesday, September 09, 2020 1:46 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Yes Robert. As I went through the code, during the initializing process, the acpi subsystem tries to load the description tables and fails in doing so (we have disabled PCI support via menuconfig). So it decides to terminate the acpi subsystem where it gets deleted.

I don’t understand. Just because PCI support is disabled, the ACPICA core doesn’t (or shouldn’t) care. Could you please send a screenshot of the initialization?
Thanks,
Bob

After this deletion, the mutex is tried to be acquired in the place mentioned below which is why we see mutex errors in the screen.

Function name:   acpi_get_table
File name:            tbxface.c  (line no.318 ) ,

I would like to hear from you if my understanding is correct.

On Tue, 8 Sep 2020 at 21:55, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:


From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Friday, September 04, 2020 3:14 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: PROBLEM : ACPI, Acquiring Mutex Error


Hello all,

I’ll try to keep it as simple as possible. Hope you understand.



1.  1.One line summary of the problem:  ACPI, Acquiring Mutex Error

2.  2.Subsystem: ACPI

3.  3.Full description of the problem:  When the kernel is built without the PCI support which is found under Device Drivers via menuconfig, error on acquiring mutex which has already been deleted, will be triggered (ACPI error: AE_BAD_PARAMETER, Thread [3110141952] could not acquire Mutex[ACPI_MTX_Tables] (0x2)). So, I suggest providing a null check before trying to acquire the mutex will prevent the mutex error.

I think the question is: Why is this mutex being deleted in the first place?



4.  4.Place of error: /drivers/acpi/acpica/tbxface.c

5.  5.Kernel information:

a.  a.Versions in which errors were found – 5.7.15, 5.8.1, 5.8.5 (can be more)

b.  b.Kernel .config file – .config of 5.8.5 is attached in this mail

6.  6.Environment: This error was produced when running Ubuntu 20.04 in VMware virtual machine on a Windows 10 host with x86 architecture.

7.  7.Processor information: Dell, Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz

8.  8.Steps to reproduce the error:

a.  a.Get the kernel source code and decompress it.

b.  b.Go into the source folder.

c.  c.Type $make menuconfig.

d.  d.Go to Device Drivers and disable PCI support.

e.  e.Save the .config file.

f.  f.Build the kernel and install it.

g.  g.Reboot and you should see the error messages.

9.  9.Attachments of this mail:

a.  a. Screenshot of the error

b.  b. .config file for 5.8.5.



Will be glad to provide more information if needed.

[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 25447 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Devel] Re: PROBLEM : ACPI, Acquiring Mutex Error
@ 2020-09-30 14:28 Moore, Robert
  0 siblings, 0 replies; 7+ messages in thread
From: Moore, Robert @ 2020-09-30 14:28 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 10196 bytes --]

Here’s what I get after xtracting the DSDT from the file you sent, and executing it under acpiexec:

acpiexec dsdt.dat

ACPI table initialization:
Table [DSDT: Custom  ] (id 01) - 8067 Objects with 961 Devices, 277 Regions, 3975 Methods (526/3449/4 Serial/Non/Cvt)
ACPI: 1 ACPI AML tables successfully acquired and loaded

Final data object initialization: Namespace contains 8076 (0x1F8C) objects
Initializing General Purpose Events (GPEs):
    Initialized GPE 00 to 7F [_GPE] 16 regs on interrupt 0x0 (SCI)
    Initialized GPE 80 to FF [_GPE] 16 regs on interrupt 0x0 (SCI)
Initializing Device/Processor/Thermal objects and executing _INI/_STA methods:
    Executed 2 _INI methods requiring 4 _STA executions (examined 1091 objects)

From: Moore, Robert
Sent: Wednesday, September 30, 2020 5:28 AM
To: ManojKumar <ndmanojkumar(a)gmail.com>
Cc: Kaneda, Erik <erik.kaneda(a)intel.com>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com>; lenb(a)kernel.org; linux-acpi(a)vger.kernel.org; devel(a)acpica.org; linux-kernel(a)vger.kernel.org; manjunathmurali87(a)gmail.com; naveen.bheemanapalli(a)gmail.com
Subject: RE: PROBLEM : ACPI, Acquiring Mutex Error

Manoj,
Please send the entire dmesg when the machine fails.
Thanks,
Bob


From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Monday, September 28, 2020 5:54 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>
Cc: Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>; manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Hi,

Attached is the acpidump of the machine.

Thanks,
Manoj.

On Sat, 19 Sep 2020 at 01:24, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:
With PCI support enabled, you should be able to get the acpidump for the machine, correct?


From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Friday, September 18, 2020 6:02 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>
Cc: Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>; manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

When booted with PCI support the kernel is booting successfully. When PCI supposed disabled, the mentioned error is taking place. (ACPI mutex error)

On Thu 17 Sep, 2020 8:54 pm Moore, Robert, <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:
From erik:

What happens when they boot with a kernel that has PCI support?



From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Monday, September 14, 2020 5:14 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Hi,

The kernel is failing to boot up completely, it is failing to set up the rootfs too and the control drops to the initramfs shell where only some commands are available. So the acpidump doesn't work there. Is there anything else that I can help you with?

Thanks,
Manoj.

On Fri, 11 Sep 2020 at 21:46, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:
Well, I would say that the root of the problem is here:

ACPI Error: AE_BAD_PARAMETER, During Region initialization

Please send the acpidump for the machine.
Thanks,
Bob



From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Friday, September 11, 2020 12:37 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Hi Robert,

We are actually trying to boot the kernel without the PCI support. The ACPICA core shouldn't care as you said but the result gives ACPI errors and says Thread could not acquire Mutex[ACPI_MTX_Tables]. The control then drops to the initramfs shell. Kindly see the attachments. (.config to reproduce the same is also provided)

Thanks,
Manoj.


On Thu, 10 Sep 2020 at 20:01, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:


From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Wednesday, September 09, 2020 1:46 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Yes Robert. As I went through the code, during the initializing process, the acpi subsystem tries to load the description tables and fails in doing so (we have disabled PCI support via menuconfig). So it decides to terminate the acpi subsystem where it gets deleted.

I don’t understand. Just because PCI support is disabled, the ACPICA core doesn’t (or shouldn’t) care. Could you please send a screenshot of the initialization?
Thanks,
Bob

After this deletion, the mutex is tried to be acquired in the place mentioned below which is why we see mutex errors in the screen.

Function name:   acpi_get_table
File name:            tbxface.c  (line no.318 ) ,

I would like to hear from you if my understanding is correct.

On Tue, 8 Sep 2020 at 21:55, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:


From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Friday, September 04, 2020 3:14 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: PROBLEM : ACPI, Acquiring Mutex Error


Hello all,

I’ll try to keep it as simple as possible. Hope you understand.



1.  1.One line summary of the problem:  ACPI, Acquiring Mutex Error

2.  2.Subsystem: ACPI

3.  3.Full description of the problem:  When the kernel is built without the PCI support which is found under Device Drivers via menuconfig, error on acquiring mutex which has already been deleted, will be triggered (ACPI error: AE_BAD_PARAMETER, Thread [3110141952] could not acquire Mutex[ACPI_MTX_Tables] (0x2)). So, I suggest providing a null check before trying to acquire the mutex will prevent the mutex error.

I think the question is: Why is this mutex being deleted in the first place?



4.  4.Place of error: /drivers/acpi/acpica/tbxface.c

5.  5.Kernel information:

a.  a.Versions in which errors were found – 5.7.15, 5.8.1, 5.8.5 (can be more)

b.  b.Kernel .config file – .config of 5.8.5 is attached in this mail

6.  6.Environment: This error was produced when running Ubuntu 20.04 in VMware virtual machine on a Windows 10 host with x86 architecture.

7.  7.Processor information: Dell, Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz

8.  8.Steps to reproduce the error:

a.  a.Get the kernel source code and decompress it.

b.  b.Go into the source folder.

c.  c.Type $make menuconfig.

d.  d.Go to Device Drivers and disable PCI support.

e.  e.Save the .config file.

f.  f.Build the kernel and install it.

g.  g.Reboot and you should see the error messages.

9.  9.Attachments of this mail:

a.  a. Screenshot of the error

b.  b. .config file for 5.8.5.



Will be glad to provide more information if needed.

[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 33973 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Devel] Re: PROBLEM : ACPI, Acquiring Mutex Error
@ 2020-09-30 12:27 Moore, Robert
  0 siblings, 0 replies; 7+ messages in thread
From: Moore, Robert @ 2020-09-30 12:27 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 8677 bytes --]

Manoj,
Please send the entire dmesg when the machine fails.
Thanks,
Bob


From: ManojKumar <ndmanojkumar(a)gmail.com>
Sent: Monday, September 28, 2020 5:54 AM
To: Moore, Robert <robert.moore(a)intel.com>
Cc: Kaneda, Erik <erik.kaneda(a)intel.com>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com>; lenb(a)kernel.org; linux-acpi(a)vger.kernel.org; devel(a)acpica.org; linux-kernel(a)vger.kernel.org; manjunathmurali87(a)gmail.com; naveen.bheemanapalli(a)gmail.com
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Hi,

Attached is the acpidump of the machine.

Thanks,
Manoj.

On Sat, 19 Sep 2020 at 01:24, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:
With PCI support enabled, you should be able to get the acpidump for the machine, correct?


From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Friday, September 18, 2020 6:02 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>
Cc: Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>; manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

When booted with PCI support the kernel is booting successfully. When PCI supposed disabled, the mentioned error is taking place. (ACPI mutex error)

On Thu 17 Sep, 2020 8:54 pm Moore, Robert, <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:
From erik:

What happens when they boot with a kernel that has PCI support?



From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Monday, September 14, 2020 5:14 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Hi,

The kernel is failing to boot up completely, it is failing to set up the rootfs too and the control drops to the initramfs shell where only some commands are available. So the acpidump doesn't work there. Is there anything else that I can help you with?

Thanks,
Manoj.

On Fri, 11 Sep 2020 at 21:46, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:
Well, I would say that the root of the problem is here:

ACPI Error: AE_BAD_PARAMETER, During Region initialization

Please send the acpidump for the machine.
Thanks,
Bob



From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Friday, September 11, 2020 12:37 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Hi Robert,

We are actually trying to boot the kernel without the PCI support. The ACPICA core shouldn't care as you said but the result gives ACPI errors and says Thread could not acquire Mutex[ACPI_MTX_Tables]. The control then drops to the initramfs shell. Kindly see the attachments. (.config to reproduce the same is also provided)

Thanks,
Manoj.


On Thu, 10 Sep 2020 at 20:01, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:


From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Wednesday, September 09, 2020 1:46 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Yes Robert. As I went through the code, during the initializing process, the acpi subsystem tries to load the description tables and fails in doing so (we have disabled PCI support via menuconfig). So it decides to terminate the acpi subsystem where it gets deleted.

I don’t understand. Just because PCI support is disabled, the ACPICA core doesn’t (or shouldn’t) care. Could you please send a screenshot of the initialization?
Thanks,
Bob

After this deletion, the mutex is tried to be acquired in the place mentioned below which is why we see mutex errors in the screen.

Function name:   acpi_get_table
File name:            tbxface.c  (line no.318 ) ,

I would like to hear from you if my understanding is correct.

On Tue, 8 Sep 2020 at 21:55, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:


From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Friday, September 04, 2020 3:14 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: PROBLEM : ACPI, Acquiring Mutex Error


Hello all,

I’ll try to keep it as simple as possible. Hope you understand.



1.  1.One line summary of the problem:  ACPI, Acquiring Mutex Error

2.  2.Subsystem: ACPI

3.  3.Full description of the problem:  When the kernel is built without the PCI support which is found under Device Drivers via menuconfig, error on acquiring mutex which has already been deleted, will be triggered (ACPI error: AE_BAD_PARAMETER, Thread [3110141952] could not acquire Mutex[ACPI_MTX_Tables] (0x2)). So, I suggest providing a null check before trying to acquire the mutex will prevent the mutex error.

I think the question is: Why is this mutex being deleted in the first place?



4.  4.Place of error: /drivers/acpi/acpica/tbxface.c

5.  5.Kernel information:

a.  a.Versions in which errors were found – 5.7.15, 5.8.1, 5.8.5 (can be more)

b.  b.Kernel .config file – .config of 5.8.5 is attached in this mail

6.  6.Environment: This error was produced when running Ubuntu 20.04 in VMware virtual machine on a Windows 10 host with x86 architecture.

7.  7.Processor information: Dell, Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz

8.  8.Steps to reproduce the error:

a.  a.Get the kernel source code and decompress it.

b.  b.Go into the source folder.

c.  c.Type $make menuconfig.

d.  d.Go to Device Drivers and disable PCI support.

e.  e.Save the .config file.

f.  f.Build the kernel and install it.

g.  g.Reboot and you should see the error messages.

9.  9.Attachments of this mail:

a.  a. Screenshot of the error

b.  b. .config file for 5.8.5.



Will be glad to provide more information if needed.

[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 31463 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Devel] Re: PROBLEM : ACPI, Acquiring Mutex Error
@ 2020-09-18 19:54 Moore, Robert
  0 siblings, 0 replies; 7+ messages in thread
From: Moore, Robert @ 2020-09-18 19:54 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 7625 bytes --]

With PCI support enabled, you should be able to get the acpidump for the machine, correct?


From: ManojKumar <ndmanojkumar(a)gmail.com>
Sent: Friday, September 18, 2020 6:02 AM
To: Moore, Robert <robert.moore(a)intel.com>
Cc: Kaneda, Erik <erik.kaneda(a)intel.com>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com>; lenb(a)kernel.org; linux-acpi(a)vger.kernel.org; devel(a)acpica.org; linux-kernel(a)vger.kernel.org; manjunathmurali87(a)gmail.com; naveen.bheemanapalli(a)gmail.com
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

When booted with PCI support the kernel is booting successfully. When PCI supposed disabled, the mentioned error is taking place. (ACPI mutex error)

On Thu 17 Sep, 2020 8:54 pm Moore, Robert, <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:
From erik:

What happens when they boot with a kernel that has PCI support?



From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Monday, September 14, 2020 5:14 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Hi,

The kernel is failing to boot up completely, it is failing to set up the rootfs too and the control drops to the initramfs shell where only some commands are available. So the acpidump doesn't work there. Is there anything else that I can help you with?

Thanks,
Manoj.

On Fri, 11 Sep 2020 at 21:46, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:
Well, I would say that the root of the problem is here:

ACPI Error: AE_BAD_PARAMETER, During Region initialization

Please send the acpidump for the machine.
Thanks,
Bob



From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Friday, September 11, 2020 12:37 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Hi Robert,

We are actually trying to boot the kernel without the PCI support. The ACPICA core shouldn't care as you said but the result gives ACPI errors and says Thread could not acquire Mutex[ACPI_MTX_Tables]. The control then drops to the initramfs shell. Kindly see the attachments. (.config to reproduce the same is also provided)

Thanks,
Manoj.


On Thu, 10 Sep 2020 at 20:01, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:


From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Wednesday, September 09, 2020 1:46 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Yes Robert. As I went through the code, during the initializing process, the acpi subsystem tries to load the description tables and fails in doing so (we have disabled PCI support via menuconfig). So it decides to terminate the acpi subsystem where it gets deleted.

I don’t understand. Just because PCI support is disabled, the ACPICA core doesn’t (or shouldn’t) care. Could you please send a screenshot of the initialization?
Thanks,
Bob

After this deletion, the mutex is tried to be acquired in the place mentioned below which is why we see mutex errors in the screen.

Function name:   acpi_get_table
File name:            tbxface.c  (line no.318 ) ,

I would like to hear from you if my understanding is correct.

On Tue, 8 Sep 2020 at 21:55, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:


From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Friday, September 04, 2020 3:14 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: PROBLEM : ACPI, Acquiring Mutex Error


Hello all,

I’ll try to keep it as simple as possible. Hope you understand.



1.  1.One line summary of the problem:  ACPI, Acquiring Mutex Error

2.  2.Subsystem: ACPI

3.  3.Full description of the problem:  When the kernel is built without the PCI support which is found under Device Drivers via menuconfig, error on acquiring mutex which has already been deleted, will be triggered (ACPI error: AE_BAD_PARAMETER, Thread [3110141952] could not acquire Mutex[ACPI_MTX_Tables] (0x2)). So, I suggest providing a null check before trying to acquire the mutex will prevent the mutex error.

I think the question is: Why is this mutex being deleted in the first place?



4.  4.Place of error: /drivers/acpi/acpica/tbxface.c

5.  5.Kernel information:

a.  a.Versions in which errors were found – 5.7.15, 5.8.1, 5.8.5 (can be more)

b.  b.Kernel .config file – .config of 5.8.5 is attached in this mail

6.  6.Environment: This error was produced when running Ubuntu 20.04 in VMware virtual machine on a Windows 10 host with x86 architecture.

7.  7.Processor information: Dell, Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz

8.  8.Steps to reproduce the error:

a.  a.Get the kernel source code and decompress it.

b.  b.Go into the source folder.

c.  c.Type $make menuconfig.

d.  d.Go to Device Drivers and disable PCI support.

e.  e.Save the .config file.

f.  f.Build the kernel and install it.

g.  g.Reboot and you should see the error messages.

9.  9.Attachments of this mail:

a.  a. Screenshot of the error

b.  b. .config file for 5.8.5.



Will be glad to provide more information if needed.

[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 28236 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Devel] Re: PROBLEM : ACPI, Acquiring Mutex Error
@ 2020-09-11 16:16 Moore, Robert
  0 siblings, 0 replies; 7+ messages in thread
From: Moore, Robert @ 2020-09-11 16:16 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 5206 bytes --]

Well, I would say that the root of the problem is here:

ACPI Error: AE_BAD_PARAMETER, During Region initialization

Please send the acpidump for the machine.
Thanks,
Bob



From: ManojKumar <ndmanojkumar(a)gmail.com>
Sent: Friday, September 11, 2020 12:37 AM
To: Moore, Robert <robert.moore(a)intel.com>; Kaneda, Erik <erik.kaneda(a)intel.com>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com>; lenb(a)kernel.org; linux-acpi(a)vger.kernel.org; linux-kernel(a)vger.kernel.org; devel(a)acpica.org
Cc: manjunathmurali87(a)gmail.com; naveen.bheemanapalli(a)gmail.com
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Hi Robert,

We are actually trying to boot the kernel without the PCI support. The ACPICA core shouldn't care as you said but the result gives ACPI errors and says Thread could not acquire Mutex[ACPI_MTX_Tables]. The control then drops to the initramfs shell. Kindly see the attachments. (.config to reproduce the same is also provided)

Thanks,
Manoj.


On Thu, 10 Sep 2020 at 20:01, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:


From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Wednesday, September 09, 2020 1:46 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Yes Robert. As I went through the code, during the initializing process, the acpi subsystem tries to load the description tables and fails in doing so (we have disabled PCI support via menuconfig). So it decides to terminate the acpi subsystem where it gets deleted.

I don’t understand. Just because PCI support is disabled, the ACPICA core doesn’t (or shouldn’t) care. Could you please send a screenshot of the initialization?
Thanks,
Bob

After this deletion, the mutex is tried to be acquired in the place mentioned below which is why we see mutex errors in the screen.

Function name:   acpi_get_table
File name:            tbxface.c  (line no.318 ) ,

I would like to hear from you if my understanding is correct.

On Tue, 8 Sep 2020 at 21:55, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:


From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Friday, September 04, 2020 3:14 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: PROBLEM : ACPI, Acquiring Mutex Error


Hello all,

I’ll try to keep it as simple as possible. Hope you understand.



1.  1.One line summary of the problem:  ACPI, Acquiring Mutex Error

2.  2.Subsystem: ACPI

3.  3.Full description of the problem:  When the kernel is built without the PCI support which is found under Device Drivers via menuconfig, error on acquiring mutex which has already been deleted, will be triggered (ACPI error: AE_BAD_PARAMETER, Thread [3110141952] could not acquire Mutex[ACPI_MTX_Tables] (0x2)). So, I suggest providing a null check before trying to acquire the mutex will prevent the mutex error.

I think the question is: Why is this mutex being deleted in the first place?



4.  4.Place of error: /drivers/acpi/acpica/tbxface.c

5.  5.Kernel information:

a.  a.Versions in which errors were found – 5.7.15, 5.8.1, 5.8.5 (can be more)

b.  b.Kernel .config file – .config of 5.8.5 is attached in this mail

6.  6.Environment: This error was produced when running Ubuntu 20.04 in VMware virtual machine on a Windows 10 host with x86 architecture.

7.  7.Processor information: Dell, Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz

8.  8.Steps to reproduce the error:

a.  a.Get the kernel source code and decompress it.

b.  b.Go into the source folder.

c.  c.Type $make menuconfig.

d.  d.Go to Device Drivers and disable PCI support.

e.  e.Save the .config file.

f.  f.Build the kernel and install it.

g.  g.Reboot and you should see the error messages.

9.  9.Attachments of this mail:

a.  a. Screenshot of the error

b.  b. .config file for 5.8.5.



Will be glad to provide more information if needed.

[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 21610 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Devel] Re: PROBLEM : ACPI, Acquiring Mutex Error
@ 2020-09-10 14:31 Moore, Robert
  0 siblings, 0 replies; 7+ messages in thread
From: Moore, Robert @ 2020-09-10 14:31 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 3756 bytes --]



From: ManojKumar <ndmanojkumar(a)gmail.com>
Sent: Wednesday, September 09, 2020 1:46 AM
To: Moore, Robert <robert.moore(a)intel.com>; Kaneda, Erik <erik.kaneda(a)intel.com>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com>; lenb(a)kernel.org; linux-acpi(a)vger.kernel.org; devel(a)acpica.org; linux-kernel(a)vger.kernel.org
Cc: manjunathmurali87(a)gmail.com; naveen.bheemanapalli(a)gmail.com
Subject: Re: PROBLEM : ACPI, Acquiring Mutex Error

Yes Robert. As I went through the code, during the initializing process, the acpi subsystem tries to load the description tables and fails in doing so (we have disabled PCI support via menuconfig). So it decides to terminate the acpi subsystem where it gets deleted.

I don’t understand. Just because PCI support is disabled, the ACPICA core doesn’t (or shouldn’t) care. Could you please send a screenshot of the initialization?
Thanks,
Bob

After this deletion, the mutex is tried to be acquired in the place mentioned below which is why we see mutex errors in the screen.

Function name:   acpi_get_table
File name:            tbxface.c  (line no.318 ) ,

I would like to hear from you if my understanding is correct.

On Tue, 8 Sep 2020 at 21:55, Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>> wrote:


From: ManojKumar <ndmanojkumar(a)gmail.com<mailto:ndmanojkumar(a)gmail.com>>
Sent: Friday, September 04, 2020 3:14 AM
To: Moore, Robert <robert.moore(a)intel.com<mailto:robert.moore(a)intel.com>>; Kaneda, Erik <erik.kaneda(a)intel.com<mailto:erik.kaneda(a)intel.com>>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com<mailto:rafael.j.wysocki(a)intel.com>>; lenb(a)kernel.org<mailto:lenb(a)kernel.org>; linux-acpi(a)vger.kernel.org<mailto:linux-acpi(a)vger.kernel.org>; devel(a)acpica.org<mailto:devel(a)acpica.org>; linux-kernel(a)vger.kernel.org<mailto:linux-kernel(a)vger.kernel.org>
Cc: manjunathmurali87(a)gmail.com<mailto:manjunathmurali87(a)gmail.com>; naveen.bheemanapalli(a)gmail.com<mailto:naveen.bheemanapalli(a)gmail.com>
Subject: PROBLEM : ACPI, Acquiring Mutex Error


Hello all,

I’ll try to keep it as simple as possible. Hope you understand.



1.  1.One line summary of the problem:  ACPI, Acquiring Mutex Error

2.  2.Subsystem: ACPI

3.  3.Full description of the problem:  When the kernel is built without the PCI support which is found under Device Drivers via menuconfig, error on acquiring mutex which has already been deleted, will be triggered (ACPI error: AE_BAD_PARAMETER, Thread [3110141952] could not acquire Mutex[ACPI_MTX_Tables] (0x2)). So, I suggest providing a null check before trying to acquire the mutex will prevent the mutex error.

I think the question is: Why is this mutex being deleted in the first place?



4.  4.Place of error: /drivers/acpi/acpica/tbxface.c

5.  5.Kernel information:

a.  a.Versions in which errors were found – 5.7.15, 5.8.1, 5.8.5 (can be more)

b.  b.Kernel .config file – .config of 5.8.5 is attached in this mail

6.  6.Environment: This error was produced when running Ubuntu 20.04 in VMware virtual machine on a Windows 10 host with x86 architecture.

7.  7.Processor information: Dell, Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz

8.  8.Steps to reproduce the error:

a.  a.Get the kernel source code and decompress it.

b.  b.Go into the source folder.

c.  c.Type $make menuconfig.

d.  d.Go to Device Drivers and disable PCI support.

e.  e.Save the .config file.

f.  f.Build the kernel and install it.

g.  g.Reboot and you should see the error messages.

9.  9.Attachments of this mail:

a.  a. Screenshot of the error

b.  b. .config file for 5.8.5.



Will be glad to provide more information if needed.

[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 17041 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Devel] Re: PROBLEM : ACPI, Acquiring Mutex Error
@ 2020-09-08 16:25 Moore, Robert
  0 siblings, 0 replies; 7+ messages in thread
From: Moore, Robert @ 2020-09-08 16:25 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 2108 bytes --]



From: ManojKumar <ndmanojkumar(a)gmail.com>
Sent: Friday, September 04, 2020 3:14 AM
To: Moore, Robert <robert.moore(a)intel.com>; Kaneda, Erik <erik.kaneda(a)intel.com>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com>; lenb(a)kernel.org; linux-acpi(a)vger.kernel.org; devel(a)acpica.org; linux-kernel(a)vger.kernel.org
Cc: manjunathmurali87(a)gmail.com; naveen.bheemanapalli(a)gmail.com
Subject: PROBLEM : ACPI, Acquiring Mutex Error


Hello all,

I’ll try to keep it as simple as possible. Hope you understand.



1.  1.One line summary of the problem:  ACPI, Acquiring Mutex Error

2.  2.Subsystem: ACPI

3.  3.Full description of the problem:  When the kernel is built without the PCI support which is found under Device Drivers via menuconfig, error on acquiring mutex which has already been deleted, will be triggered (ACPI error: AE_BAD_PARAMETER, Thread [3110141952] could not acquire Mutex[ACPI_MTX_Tables] (0x2)). So, I suggest providing a null check before trying to acquire the mutex will prevent the mutex error.

I think the question is: Why is this mutex being deleted in the first place?



4.  4.Place of error: /drivers/acpi/acpica/tbxface.c

5.  5.Kernel information:

a.  a.Versions in which errors were found – 5.7.15, 5.8.1, 5.8.5 (can be more)

b.  b.Kernel .config file – .config of 5.8.5 is attached in this mail

6.  6.Environment: This error was produced when running Ubuntu 20.04 in VMware virtual machine on a Windows 10 host with x86 architecture.

7.  7.Processor information: Dell, Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz

8.  8.Steps to reproduce the error:

a.  a.Get the kernel source code and decompress it.

b.  b.Go into the source folder.

c.  c.Type $make menuconfig.

d.  d.Go to Device Drivers and disable PCI support.

e.  e.Save the .config file.

f.  f.Build the kernel and install it.

g.  g.Reboot and you should see the error messages.

9.  9.Attachments of this mail:

a.  a. Screenshot of the error

b.  b. .config file for 5.8.5.



Will be glad to provide more information if needed.

[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 36876 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-09-30 14:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-17 15:24 [Devel] Re: PROBLEM : ACPI, Acquiring Mutex Error Moore, Robert
  -- strict thread matches above, loose matches on Subject: below --
2020-09-30 14:28 Moore, Robert
2020-09-30 12:27 Moore, Robert
2020-09-18 19:54 Moore, Robert
2020-09-11 16:16 Moore, Robert
2020-09-10 14:31 Moore, Robert
2020-09-08 16:25 Moore, Robert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.