From: "Aithal, Srikanth" <sraithal@amd.com>
To: "Kirill A. Shutemov" <kirill@shutemov.name>,
Steven Rostedt <rostedt@goodmis.org>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
Tom Lendacky <thomas.lendacky@amd.com>,
Jason Baron <jbaron@akamai.com>,
Peter Zijlstra <peterz@infradead.org>,
Josh Poimboeuf <jpoimboe@kernel.org>,
Ard Biesheuvel <ardb@kernel.org>,
Linux-Next Mailing List <linux-next@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>,
"Roth, Michael" <Michael.Roth@amd.com>
Subject: Re: linux-next regression: SNP Guest boot hangs with certain cpu/mem config combination
Date: Fri, 28 Mar 2025 14:49:27 +0530 [thread overview]
Message-ID: <f25ba003-7644-46ed-a1bc-760231534a1d@amd.com> (raw)
In-Reply-To: <m4cubsijicsrtq3blyzxeknsuc4cqswg35yz45uk5lipza4lps@yeqq2j5hf4y3>
On 3/28/2025 2:39 PM, Kirill A. Shutemov wrote:
> On Fri, Mar 28, 2025 at 10:28:19AM +0200, Kirill A. Shutemov wrote:
>> On Thu, Mar 27, 2025 at 07:39:22PM +0200, Kirill A. Shutemov wrote:
>>> On Thu, Mar 27, 2025 at 11:02:24AM -0400, Steven Rostedt wrote:
>>>> On Thu, 27 Mar 2025 16:43:43 +0200
>>>> "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> wrote:
>>>>
>>>>>>> The only option I see so far is to drop static branch from this path.
>>>>>>>
>>>>>>> But I am not sure if it the only case were we use static branch from CPU
>>>>>>> hotplug callbacks.
>>>>>>>
>>>>>>> Any other ideas?
>>>>>>
>>>>>>
>>>>>> Hmmm, didn't take too close a look here, but there is the
>>>>>> static_key_slow_dec_cpuslocked() variant, would that work here? Is the issue
>>>>>> the caller may or may not have the cpu_hotplug lock?
>>>>>
>>>>> Yes. This is generic page alloc path and it can be called with and without
>>>>> the lock.
>>>>
>>>> Note, it's not the static_branch that is an issue, it's enabling/disabling
>>>> the static branch that is. Changing a static branch takes a bit of work as
>>>> it does modify the kernel text.
>>>>
>>>> Is it possible to delay the update via a workqueue?
>>>
>>> Ah. Good point. Should work. I'll give it try.
>>
>> The patch below fixes problem for me.
>
> Ah. No, it won't work. We can get there before workqueues are initialized:
> mm_core_init() is called before workqueue_init_early().
>
> We cannot queue a work. :/
>
> Steven, any other ideas?
>
I have booted the guest with different memory and CPU combinations and
have not seen any failures with the fix so far. Are there any other
scenarios that could trigger the above case? Please let me know.
next prev parent reply other threads:[~2025-03-28 9:19 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-25 9:10 linux-next regression: SNP Guest boot hangs with certain cpu/mem config combination Aithal, Srikanth
2025-03-25 13:33 ` Kirill A. Shutemov
2025-03-26 14:17 ` Aithal, Srikanth
2025-03-26 22:30 ` Tom Lendacky
2025-03-27 12:58 ` Kirill A. Shutemov
2025-03-27 14:25 ` Kirill A. Shutemov
2025-03-27 14:35 ` Jason Baron
2025-03-27 14:43 ` Kirill A. Shutemov
2025-03-27 15:02 ` Steven Rostedt
2025-03-27 17:39 ` Kirill A. Shutemov
2025-03-28 8:28 ` Kirill A. Shutemov
2025-03-28 8:39 ` Aithal, Srikanth
2025-03-28 9:09 ` Kirill A. Shutemov
2025-03-28 9:17 ` Ard Biesheuvel
2025-03-28 9:26 ` Kirill A. Shutemov
2025-03-28 9:33 ` Ard Biesheuvel
2025-03-28 10:54 ` Kirill A. Shutemov
2025-03-28 16:18 ` Ard Biesheuvel
2025-03-28 9:19 ` Aithal, Srikanth [this message]
2025-03-28 9:25 ` Kirill A. Shutemov
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=f25ba003-7644-46ed-a1bc-760231534a1d@amd.com \
--to=sraithal@amd.com \
--cc=Michael.Roth@amd.com \
--cc=ardb@kernel.org \
--cc=jbaron@akamai.com \
--cc=jpoimboe@kernel.org \
--cc=kirill.shutemov@linux.intel.com \
--cc=kirill@shutemov.name \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=thomas.lendacky@amd.com \
/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