From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E9F53F94CB0 for ; Tue, 21 Apr 2026 20:56:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7EBCD10E231; Tue, 21 Apr 2026 20:56:59 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.b="VORS9GG9"; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) by gabe.freedesktop.org (Postfix) with ESMTPS id 85BDB10E22A; Tue, 21 Apr 2026 20:56:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=yziRkxzm/jHu5XvBR48lngwQjRBkmDIogI4RwrgqglQ=; b=VORS9GG9jBYojwFqxkmdp2SriT /UZNmaTp2FiCVQ59y3lOGt6by2FFNMZa4YOgjvuA/g0H3B3/JUI6C2DkZ+IPXwnx83ayFUEqnPAAL 086FFSSL12CQwRmOyKu0ZnIXZw0qVqJ4bpti/KZrfcQbYvODDiPjnXimW1YQu8ONhdmaZY9vIepFP hza/huR2LU9e0uxVlShMJi9SoGpDuIS1rHxyPOnexgxB5mom6x5wg+0DKjjAEU55Vb9kqmH9axXIn TM7PZF1T9Qfxvlm7ElLVqFBUeg6zPPRrR10lkQMbDcMvjRfbJ3ubqH0lhL3oyqsjuLQn5ZXB2IMel HY+dpKrA==; Received: from 2001-1c00-8d85-4b00-266e-96ff-fe07-7dcc.cable.dynamic.v6.ziggo.nl ([2001:1c00:8d85:4b00:266e:96ff:fe07:7dcc] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1wFI9J-0000000AQ7T-47lb; Tue, 21 Apr 2026 20:56:50 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 0486C300BD2; Tue, 21 Apr 2026 22:56:48 +0200 (CEST) Date: Tue, 21 Apr 2026 22:56:47 +0200 From: Peter Zijlstra To: John Stultz Cc: K Prateek Nayak , "Borah, Chaitanya Kumar" , willy@infradead.org, linux-kernel@vger.kernel.org, "intel-gfx@lists.freedesktop.org" , "intel-xe@lists.freedesktop.org" , "Kurmi, Suresh Kumar" , "Saarinen, Jani" , ravitejax.veesam@intel.com Subject: Re: Regression on linux-next (next-20260324 ) Message-ID: <20260421205647.GL3126523@noisy.programming.kicks-ass.net> References: <20260327164353.GM3739106@noisy.programming.kicks-ass.net> <20260330195037.GW2872@noisy.programming.kicks-ass.net> <20260420130318.GD3102924@noisy.programming.kicks-ass.net> <20260421101521.GO3102624@noisy.programming.kicks-ass.net> <95651a71-1adf-45ba-83eb-5744bc6d4a52@amd.com> <20260421143752.GD1064669@noisy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Tue, Apr 21, 2026 at 10:29:28AM -0700, John Stultz wrote: > On Tue, Apr 21, 2026 at 8:48 AM K Prateek Nayak wrote: > > On 4/21/2026 8:07 PM, Peter Zijlstra wrote: > > >> First hunk orders the first_waiter if we are attaching to the > > >> tail of current first_waiter which would have previously ended > > >> up next to list_head. > > > > > > This is the case in __ww_mutex_add_waiter() where pos == first, right? > > > > > > Argh, I see... yes. Perhaps something like the below though? > > > > Neat! Thank you for cleaning it up. Those, along with the changes in > > ww_mutex.h fix the issue of ww-mutex_test hanging in my case. Feel free > > to include: > > > > Tested-by: K Prateek Nayak > > Same. With Peter's change and K Prateek's ww_mutex.h change it looks > like it's working for me. > > Thank you both! > Tested-by: John Stultz Excellent, I'll write it up tomorrow.