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 7D8961459FA for ; Wed, 29 Jul 2026 10:10:32 +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=1785319837; cv=none; b=Ifc+JNHOlcXxDkKuONYSvx9Mx6656cKJcjym8Zntq/0toTHC+O/IkZD3HaD7rRiSwivnIuiOxju1lR+lNFiL0EISBQikmqdCdgLTFo5vwKT9jqiJUi5fvObxQTsZy4eRdOf64xVaiO9DVLc7It/HO0YQRF9Mt5awLp5psKdU05Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785319837; c=relaxed/simple; bh=S1QICoQV0m3P8Xz0RvYdiPZAe+/loEGQMB40yHDkjI4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S0v+Mo+4777hv0nhp/y8tOwuUE4LyyIhbOEe6XmfpqyQmiiao9xJ200ca3P/Vq3YmuUhfCae564v6XZJ5CdbPHy9yLn8727qZgDe0293jK2BlNZV13votU6RPM9VyA04SedKp8D9H7FeOgVZ1sMUhEKpWifvoyMDZwn8KuiSKXQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=QBiaDcmD; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass 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="QBiaDcmD" 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=r/qeObb1PMyAWCGmcaMAqm2/lsqLPrpGwnxOpx5sgwI=; b=QBiaDcmDh8IP8bv7Lk0dMFtTHG Js8ebvb4Zh1qFFVK3M+KK26EazFoVyrwA516D7L8ZpjjPPMrMWDfycy0v31pzfpQEJf1fp5KytdV3 ru1HELt8abKK0uYDsARPrVMkhYzyN3oFPJJP8EA/TFG5RaNpw2QVdT8E94Dy+2RyNsdAG4ccuXfwj Qczg0rNCVUbxjOlgwE7Adkmq61d63BQpbsPsEgjg0DFjmJkAQGcVJiMKn/iH+Wi2KfY4tNk9stv72 mCeukMKekVkjsDo/KDN8xpk2Do1vCupEciXlZeIv6w6e3z3vtLTEP5Zf16TaAJOK0YfovmduexW7T iOa9zdIQ==; 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.99.1 #2 (Red Hat Linux)) id 1wp1Eu-00000000SUZ-3Orq; Wed, 29 Jul 2026 10:10:17 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id E2EC5300208; Wed, 29 Jul 2026 12:10:15 +0200 (CEST) Date: Wed, 29 Jul 2026 12:10:15 +0200 From: Peter Zijlstra To: Nicolas Frattaroli Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak , Boris Brezillon , Steven Price , Liviu Dudau , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Grant Likely , Heiko Stuebner , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, kernel@collabora.com Subject: Re: [PATCH 1/3] wait: Introduce non-irq variants of wait_event_lock_timeout Message-ID: <20260729101015.GK49951@noisy.programming.kicks-ass.net> References: <20260729-panthor-cache-flush-fix-v1-0-205921ed3c81@collabora.com> <20260729-panthor-cache-flush-fix-v1-1-205921ed3c81@collabora.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: <20260729-panthor-cache-flush-fix-v1-1-205921ed3c81@collabora.com> On Wed, Jul 29, 2026 at 08:19:49AM +0200, Nicolas Frattaroli wrote: > For locks that are never acquired in an interrupt context, the non-irq > variants for spin_lock()/spin_unlock() are more efficient. However, so > far, wait.h only provided wait_event_lock_irq_timeout and > wait_event_interruptible_lock_irq_timeout, both of which use > spin_lock_irq()/spin_unlock_irq(). > > Rectify this by adding new non-irq variants of these two macros. > > Signed-off-by: Nicolas Frattaroli Acked-by: Peter Zijlstra (Intel)