From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E87532882CC for ; Mon, 25 Aug 2025 07:58:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756108697; cv=none; b=gyuGMlZi2nhW6zIWC4vyEPa1wjZrHR4yWHO4WNxOLCirqgcxw5tvMb4ji45GJt3iroS7jMuNipRe8hWFUqGDgHB6uXMCRyJa/2eoswG0d5Cbmj/xCTcPey3lSQmu2gTcg/w0/ue80ZdqWChFLRlBoa6uZfZSMCCEjvHM9iUMcyw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756108697; c=relaxed/simple; bh=OTZxMLcGDs7NN+FBUgBxk6OksPxlKMgsSaOM8FYY2wg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DtcfPMDsAciTHrin/Upd+Y92KEYtElif3lOZ1tZAbcZ3qHDOMnGcA0iLfZsJwQpaHE/mwgUzq7z/yhOsW5t61AH/ZrpYzru+XVtBOGicVoXtdtKkK5oYGp03VIZYrfwleVGDuRPmZAzqDJLerzuFYcrYKBhO92B5itggUoAO9Iw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=AZwefNb7; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="AZwefNb7" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=tzZ4BdsfhTpn9akJPuvH+9Eyu1s5OcIM+r5JoHQyRNM=; b=AZwefNb7aPV1AengUSqBaevAiy KGZ1Pgg8OVtRGoEF9YZjafvHUNGiGxgIBMVi5sDxxuzjkgdncfpoXjxcsMj0Y76c1pDYnUcylFa5f eVXdFYEdLQYeR5KJamBMtdy2YZf2TEDb76D+CqoByL+yDL/ZK7J6Rz1S0HLOXvQwYJDlMVBICn2bt 31yhoOv1XCz4oE99XGRBXwX+k6FWaYy36CzXeyNx8Mvzx7HC0m9Ui3CtuZa6ofNNYMVAGpSTmuJzo 8s943GWNgBxoTpQ7rcuZ7SA1DAocPnbkjsJLUb/4vJEuQ5uy1PT6IQ6CVf+jW5IDC/sEGQuoZPpGW T1DtYPbQ==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1uqS5f-000000084Kz-0nRZ; Mon, 25 Aug 2025 07:58:08 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 5E0F9300473; Mon, 25 Aug 2025 09:58:07 +0200 (CEST) Date: Mon, 25 Aug 2025 09:58:07 +0200 From: Peter Zijlstra To: K Prateek Nayak Cc: Tim Chen , Vinicius Costa Gomes , Ingo Molnar , Juri Lelli , Dietmar Eggemann , Ben Segall , Mel Gorman , Valentin Schneider , Tim Chen , Vincent Guittot , Libo Chen , Abel Wu , Len Brown , linux-kernel@vger.kernel.org, Chen Yu , "Gautham R . Shenoy" , Zhao Liu Subject: Re: [PATCH 1/2] sched: topology: Fix topology validation error Message-ID: <20250825075807.GR3245006@noisy.programming.kicks-ass.net> References: <67c2b6bc-7a05-46a5-a409-a51f28f94c64@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67c2b6bc-7a05-46a5-a409-a51f28f94c64@amd.com> On Mon, Aug 25, 2025 at 08:48:29AM +0530, K Prateek Nayak wrote: > Hello Tim, Vinicius, > > On 8/23/2025 1:44 AM, Tim Chen wrote: > > --- a/kernel/sched/topology.c > > +++ b/kernel/sched/topology.c > > @@ -2394,6 +2394,14 @@ static bool topology_span_sane(const struct cpumask *cpu_map) > > for_each_sd_topology(tl) { > > int tl_common_flags = 0; > > > > +#ifdef CONFIG_NUMA > > + /* > > + * sd_numa_mask() (one of the possible values of > > + * tl->mask()) depends on the current level to work > > + * correctly. > > + */ > > + sched_domains_curr_level = tl->numa_level; > > +#endif > > A similar solution was proposed in [1] and after a few iterations, we > arrived at [2] as a potential solution to this issue. Now that the merge > window is behind us, Peter would it be possible to pick one of these up? > > P.S. Leon has confirmed this solved the splat of their deployments too > on an earlier version [3]. > > [1] https://lore.kernel.org/lkml/20250624041235.1589-1-kprateek.nayak@amd.com/ > [2] https://lore.kernel.org/lkml/20250715040824.893-1-kprateek.nayak@amd.com/ > [3] https://lore.kernel.org/lkml/20250720104136.GI402218@unreal/ I'm sure that's stuck somewhere in my holiday backlog ... Let me go try and find it.