From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) (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 D0E0B396D14 for ; Thu, 10 Sep 2026 07:04:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789023863; cv=none; b=Sfcd/Qi4fwcjy1iziIc44yZ13vfqfxYRCN6PRPgWlQhNAUxt4Unh+5+xXAqS93xsmFTNF8zsHA3vtMO0Hbyz6ds0X652QcPyLHykV7CxvxRTP5AqHnfC5qkbRFT87C1ibVFYS6yQnHmQVjM6C34660lsIwX3Yh00U2bSoNhDgm8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789023863; c=relaxed/simple; bh=1sFNilmG49JJ9e3B4FTapSdXmsxjkldwvGYFNZMn4sE=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=Eioe3JL8+ibj0IrmQikaUXf2+uj7TBD9ero4ILkYN9qYxZOgeR5ezFYIpC2Hbi1iET+on2b5EZGgmeapjHqIVXp4g2oN82ODCbtIbqSxDOTS9ocAdqkq9UAAcu6AamTMHRF3NjqupsjliW7P5SLmeyUd2JsFB1d/s2Mko3uz0w8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org; spf=pass smtp.mailfrom=mailbox.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=WEpoZJ0z; arc=none smtp.client-ip=80.241.56.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="WEpoZJ0z" Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4hgTDt63lJzMlD7; Thu, 10 Sep 2026 09:04:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1789023854; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2pw+cFzWylXc1t9DdCQFMkJIJVRd9uJb1RAqvFs//bg=; b=WEpoZJ0ziX8vWvG9r0emck2JOBAEJ3gtqmK1XnxwLmL52IHKGKzoKVXtA/3aH/YMKk6sFH gyT/9Ka6ImzdUo7r0n/FFn2olPOyzAzPXS+iwY+H8Xy9qWjTwpEnnj98RKVFfIYaBBotJu 6abzFpVU9hUqEz0VC/pE99CBhYe5lrI7mGPZ2f/2jpL55yfAG7mLqAg/qEokcIEV4TVQ2t zgXYbLiUeerLLeGQB6KqlkoAq2gyqfitgwza2DB5x4NNoIe8ZznIY3tl9bq6mYT3Yoh4Lu gEApTlFeQUAQHbGnhW3CPkW0XSROajB2dTkhS3DlvkMIUYKWREVmWw5iG5yVqw== Message-ID: <244eb4448b937b8d9d3b2965a03b5c49f11c47a2.camel@mailbox.org> Subject: Re: drm/sched: run queues freed before the TDR that drm_sched_fini() waits for From: Philipp Stanner Reply-To: phasta@kernel.org To: phasta@kernel.org, Donggeun Yoo Cc: Luben Tuikov , Christian =?ISO-8859-1?Q?K=F6nig?= , Matthew Brost , Danilo Krummrich , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Tvrtko Ursulin Date: Thu, 10 Sep 2026 09:04:08 +0200 In-Reply-To: <6f52dcbb040b8ba796b56311e9a77465d111c868.camel@mailbox.org> References: <20260910054605.634135-1-donggeunyoo.kernel@gmail.com> <6f52dcbb040b8ba796b56311e9a77465d111c868.camel@mailbox.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MBO-RS-META: 6dnwf8u4jkdeou8gicw4o87hxhcxd6su X-MBO-RS-ID: 8fb6520db9279f7f595 On Thu, 2026-09-10 at 08:52 +0200, Philipp Stanner wrote: >=20 >=20 > long drm_sched_entity_flush(struct drm_sched_entity *entity, long timeout= ) { struct drm_gpu_scheduler *sched; struct task_struct *last_user; long re= t =3D timeout; if (!entity->rq) return 0; sched =3D entity->rq->sched; >=20 > =C2=A0/** * @rq: * * Runqueue on which this entity is currently scheduled= . * * FIXME: Locking is very unclear for this. Writers are protected by * @= lock, but readers are generally lockless and seem to just race with * not e= ven a READ_ONCE. */ struct drm_sched_rq *rq; >=20 Sorry for the formatting horror. No idea why that happens, layouts correctly for me before sending. I've had enough of this now and will setup Mutt or Aerc. P.