From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4C3DC1465A8; Tue, 25 Jun 2024 09:47:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719308839; cv=none; b=VIWeej/pDMHovbmWmbGTh5YtkYBZdmiPJK0fkl0RitYcA7youFfOkryTG1UMfc55A6NyEOg7bpeIWuEBLwoozXWP41Jnf4fe/rySBPbbR5PsbTjw4aKjZleyHvuR4mPtdvfQK7phnIhzlU7BcYq7AIYrYBewiIWX2wL8FHJ7c0E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719308839; c=relaxed/simple; bh=6UqHI/1G7nMtEWCLvaunXwbyKVgTM3pOdRVdUZr4PLA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mIdCut4+IqmaFNwjQ3xZ25Z/YJs/ENOJxzVSj02Hca+mzBBMjL6rCoCj7WddgS7SqjC+BEqdbUX0t/8lc2RN5OzOyxTpixyRqNIlExyHGPIfFbwumWRA7Sh8664o0x7eOyoOLTwyAdQzrOsjPbwz5yLyM6AXMXAZDwh1LWhsI8w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=leqlvfyq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="leqlvfyq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C65E3C32781; Tue, 25 Jun 2024 09:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1719308839; bh=6UqHI/1G7nMtEWCLvaunXwbyKVgTM3pOdRVdUZr4PLA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=leqlvfyqhh34GvY70F2hJ91RdzgarOgwHtDBDKx9hKrXLAX7hMtP/M1E4f5t5KIRU lIbU9EjlkvJkRwCqsMOPx6Vh8ols6uWMotCKHPQw3LSdZh1EBaK8GBP7tcfs9xP1aG XKaGVtZH/8bJa7rwhwVazxtBlagRdyla3vaZYGYE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Matthew Brost , Francois Dugast , =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= , Sasha Levin Subject: [PATCH 6.9 238/250] drm/xe: Use ordered WQ for G2H handler Date: Tue, 25 Jun 2024 11:33:16 +0200 Message-ID: <20240625085557.190548833@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240625085548.033507125@linuxfoundation.org> References: <20240625085548.033507125@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Matthew Brost [ Upstream commit 2d9c72f676e6f79a021b74c6c1c88235e7d5b722 ] System work queues are shared, use a dedicated work queue for G2H processing to avoid G2H processing getting block behind system tasks. Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs") Cc: Signed-off-by: Matthew Brost Reviewed-by: Francois Dugast Link: https://patchwork.freedesktop.org/patch/msgid/20240506034758.3697397-1-matthew.brost@intel.com (cherry picked from commit 50aec9665e0babd62b9eee4e613d9a1ef8d2b7de) Signed-off-by: Thomas Hellström Signed-off-by: Sasha Levin --- drivers/gpu/drm/xe/xe_guc_ct.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c index 8bbfa45798e2e..6ac86936faaf9 100644 --- a/drivers/gpu/drm/xe/xe_guc_ct.c +++ b/drivers/gpu/drm/xe/xe_guc_ct.c @@ -146,6 +146,10 @@ int xe_guc_ct_init(struct xe_guc_ct *ct) xe_assert(xe, !(guc_ct_size() % PAGE_SIZE)); + ct->g2h_wq = alloc_ordered_workqueue("xe-g2h-wq", 0); + if (!ct->g2h_wq) + return -ENOMEM; + ct->g2h_wq = alloc_ordered_workqueue("xe-g2h-wq", 0); if (!ct->g2h_wq) return -ENOMEM; -- 2.43.0