Skip to contentSkip to conversation

acpi: Avoid soft lockup complaints during boot

PATCH Rafael J. Wysocki 2 participants 2 messages Feb 26, 2018 – Mar 2, 2018 1 message not in the archive ACPI component architecture (acpica)

lore
Share & tools
lore

Rafael J. Wysocki

author
#1 lore raw
In reply to a message not in the archive
Quoted 10 lines · Bart Van Assche
Quoted 5 lines · Rafael J. Wysocki
Quoted 2 lines · Bart Van Assche

Avoid that the following is reported during boot with kmemleak enabled:

OK, so why is this fix the right one in your view?

No Linux kernel code should keep running for multiple seconds without giving the scheduler a chance to schedule another thread. Hence the insertion of the cond_resched() call.

I see.

Quoted 4 lines

It is very well possible that the fact that this code keeps the CPU for itself so long is a bug by itself. However, I'm not familiar enough with the ACPI code to figure out whether any alternative solutions exist that would be better than the patch I posted.

OK, we'll look at the code and see how it can be improved upstream.

Thanks a lot for letting us know about this issue!

#2 lore raw
Quoted 30 lines

-----Original Message-----
From: rjwysocki(a)gmail.com [mailto:rjwysocki(a)gmail.com] On Behalf Of Rafael J. Wysocki
Sent: Monday, February 26, 2018 1:51 AM
To: Bart Van Assche <Bart.VanAssche(a)wdc.com>
Cc: rafael(a)kernel.org; Schmauss, Erik <erik.schmauss(a)intel.com>; Moore, Robert <robert.moore(a)intel.com>; Wu, Fengguang <fengguang.wu(a)intel.com>; devel(a)acpica.org; linux-acpi(a)vger.kernel.org; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com>
Subject: Re: [PATCH 1/2] acpi: Avoid soft lockup complaints during boot

Quoted 2 lines · Bart Van Assche
Quoted 1 line · Rafael J. Wysocki

On Fri, Feb 23, 2018 at 1:22 AM, Bart Van Assche

Quoted 9 lines · <bart.vanassche(a)wdc.com> wrote:
Quoted 4 lines
Quoted 2 lines

Avoid that the following is reported during boot with kmemleak enabled:

OK, so why is this fix the right one in your view?

No Linux kernel code should keep running for multiple seconds without giving the scheduler a chance to schedule another thread. Hence the insertion of the
cond_resched() call.

I see.

Quoted 8 lines
Quoted 4 lines

It is very well possible that the fact that this code keeps the CPU for itself so long is a bug by itself. However, I'm not familiar enough with the ACPI code to figure out whether any alternative solutions exist that would be better than the patch I posted.

OK, we'll look at the code and see how it can be improved upstream.

Thanks a lot for letting us know about this issue!

We would like to take a look at this issue with respect to ACPICA. Please send the dmesg and acpidump for the machine.

Thanks,
Bob