Linux ACPI
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
	ACPI Devel Mailing List <linux-acpi@vger.kernel.org>
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>,
	"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
	Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	"Rafael J. Wysocki" <rafael@kernel.org>
Subject: Re: ACPI scan regression -> Boot fail on Cherrytrail w/ 5.11-rc3
Date: Fri, 15 Jan 2021 09:54:47 +0100	[thread overview]
Message-ID: <ce3ce3b6-c2d2-b0d0-56a6-941d3b607cb4@redhat.com> (raw)
In-Reply-To: <1bb7f766-4f29-55b1-882c-3d70cca0912f@linux.intel.com>

Hi,

On 1/15/21 1:49 AM, Pierre-Louis Bossart wrote:
> Thanks Hans for your reply, much appreciated.
> 
>> Pierre-Louis, can you see if the following hack helps? :
>>
>> --- a/drivers/acpi/scan.c
>> +++ b/drivers/acpi/scan.c
>> @@ -1939,7 +1939,6 @@ static acpi_status acpi_bus_check_add(acpi_handle handle, bool check_dep,
>>           /* Bail out if the number of recorded dependencies is not 0. */
>>           if (count > 0) {
>>               acpi_bus_scan_second_pass = true;
>> -            return AE_CTRL_DEPTH;
>>           }
>>       }
>>   @@ -1948,8 +1947,7 @@ static acpi_status acpi_bus_check_add(acpi_handle handle, bool check_dep,
>>           return AE_CTRL_DEPTH;
>>         acpi_scan_init_hotplug(device);
>> -    if (!check_dep)
>> -        acpi_scan_dep_init(device);
>> +    acpi_scan_dep_init(device);
>>     out:
>>       if (!*adev_p)
> 
> Yep, those 'hacks' solve the boot problem on my device. I tried multiple times and it's completely reproducible.

Ok, so this confirms my earlier findings (with my personal 5.10 + cherry pick tree)
that the problem is not doing 2 scan "rounds" and thus calling e.g.
acpi_bus_attach twice. But the problem is rather with deferring the device-creation
of some devices to the second step.

>> And can you collect an acpidump from the device and either send it to me and Rafael
>> offlist, or upload it somewhere and send us a link ?
> 
> will do

2 more questions, for me on the device where I can recreate this the problem only
happens intermittently. Since you did a successful bisect, I assume that when the
boot fails, it fails every boot, right?   Do you have any special kernel debugging
options enabled, e.g. CONFIG_PAGE_POISONING, which might explain why for you it is
100% reproducable while for me it is intermittent ?  

Also may I ask what the exact model is of the Zotac device you are seeing this on?
(the DMI strings are not helpful with this)

Regards,

Hans


  reply	other threads:[~2021-01-15  8:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-14 21:55 ACPI scan regression -> Boot fail on Cherrytrail w/ 5.11-rc3 Pierre-Louis Bossart
2021-01-14 23:34 ` Hans de Goede
2021-01-15  0:49   ` Pierre-Louis Bossart
2021-01-15  8:54     ` Hans de Goede [this message]
2021-01-15 13:38       ` Rafael J. Wysocki
2021-01-15 13:54     ` Rafael J. Wysocki
2021-01-15 14:52       ` Pierre-Louis Bossart
2021-01-15 14:55         ` Rafael J. Wysocki
2021-01-15 15:09           ` Pierre-Louis Bossart
2021-01-15 15:22             ` Rafael J. Wysocki
2021-01-15 15:38               ` Pierre-Louis Bossart
2021-01-15 16:05                 ` Hans de Goede
2021-01-15 16:22                   ` Rafael J. Wysocki
2021-01-15 16:41                     ` Pierre-Louis Bossart
2021-01-15 19:01                       ` Rafael J. Wysocki
2021-01-15 19:06                         ` Rafael J. Wysocki
2021-01-15 20:48                         ` Hans de Goede
2021-01-15 21:57                         ` Hans de Goede
     [not found]                           ` <56b732f4-9a24-688e-7cc7-6c2522d173c9@linux.intel.com>
2021-01-16 11:18                             ` Hans de Goede
2021-01-16 12:26                           ` Hans de Goede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ce3ce3b6-c2d2-b0d0-56a6-941d3b607cb4@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mika.westerberg@linux.intel.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=rafael.j.wysocki@intel.com \
    --cc=rafael@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox