Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 EB5CE361640; Thu, 20 Aug 2026 15:04:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787238286; cv=none; b=Wv3fnwpIXmlKCOb1GAFaRQHbTgWLvdVq3Fd7MQe3yCj7ACfpa79PeTDCjC/EpRQbgdUxz/FtpZAxizY/ls2e/KSXb71mlWOo/CWwoox/aUD76c047lXM6EvOV/628BJ6h9LXPq11/2MWJpyGWui/neKgbPwIteKPmLFioXiyBpE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787238286; c=relaxed/simple; bh=EdzKXWublgDdHL9DtSk+VTdyWaqUP+UDY+usjTnhlLY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Qiuw1zqjhDdHgydBEWI4+LigVKuqnxcO9IdC/DvHMSpQxeUKEDIPoyseNYAOGYdcu1RG+r0pGlvCEPer0mNCp5ILWWE30STjE1g0siktf5++Qo1x6/BLnFjM+dHqZh2xg9kRmB6EKv0jEL1F6Mh3nzoiIgH4DLIBc/RMn6xXkKs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JAO3dMgb; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JAO3dMgb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52CDC1F000E9; Thu, 20 Aug 2026 15:04:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787238284; bh=wTue3oZW3stugBPUDUWrKuW5ILClBel6Gw6cI/tWom4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=JAO3dMgbn8Dg5/5nvdQCJqsFjjOl0LllnY7posi9+tgu8GOHnWQb+vs4Z/6yy3YFA C7XRNjrx0WJwUiuxSvf0yenuXNXWMom3omNupIAxh7bhDf9HahM9Gks4Z5yuf2z5Cp gD9cSYFNtvGNFXmfenSaDMabe5sd+aexMzNMF7/A= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Gwan-gyeong Mun , Matthew Auld , Jia Yao , =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= Subject: [PATCH 7.1 093/228] drm/xe/guc_ads: use uncached mapping for UM queue BO Date: Thu, 20 Aug 2026 16:53:55 +0200 Message-ID: <20260820145247.480468227@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260820145244.450574346@linuxfoundation.org> References: <20260820145244.450574346@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 7.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jia Yao commit 8d5134ae4177fa4f5a9bc8e71e6656cfc2852882 upstream. On Pre-Xe3p platform, the GAM write the UM queue through DPA using UC. if GuC reads the queue via GGTT (WB), stale data may be observed when the cacheline has been polluted by another agent. To match the GAM's UC writes, configure the GuC mapping as UC as well. Fixes: 9c57bc08652a ("drm/xe/lnl: Drop force_probe requirement") Cc: Gwan-gyeong Mun Cc: Matthew Auld Cc: # v6.12+ Signed-off-by: Jia Yao Reviewed by: Matthew Auld Signed-off-by: Matthew Auld Link: https://patch.msgid.link/20260804165057.129529-4-jia.yao@intel.com (cherry picked from commit 9daa302a82590eeee7bdc68023ddad302df4b88c) Signed-off-by: Thomas Hellström Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/xe/xe_guc_ads.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/xe/xe_guc_ads.c +++ b/drivers/gpu/drm/xe/xe_guc_ads.c @@ -403,7 +403,8 @@ int xe_guc_ads_init(struct xe_guc_ads *a u32 um_flags = XE_BO_FLAG_VRAM_IF_DGFX(tile) | XE_BO_FLAG_GGTT | XE_BO_FLAG_GGTT_INVALIDATE | - XE_BO_FLAG_PINNED_NORESTORE; + XE_BO_FLAG_PINNED_NORESTORE | + XE_BO_FLAG_NEEDS_UC; bo = xe_managed_bo_create_pin_map(xe, tile, um_size, um_flags); if (IS_ERR(bo))