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 A4B0F322B83; Tue, 16 Dec 2025 11:43:14 +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=1765885394; cv=none; b=G35SgmRaMkVmBkujneOd41CKtHfRjwnnGNs6YhkPv7YajTf1uQi5hPQe6tbLVdH7ECSijXUTLR9l4TAV24IHG+KF3sGrJ9MyDv3Nf70lrveT33gJvMc+jR6R+6yI7Se/WqgrJ1wrvEGd5b46hqhQhlNpQ9t8gwjlErEA1QQV6+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765885394; c=relaxed/simple; bh=N4+cLqfe3ZSgOk9vdQz5zjrA7L2169BdaCSNlf7qg1o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Czf9MnX9ut2054X3E4E0wZBvgRFQgToSL3qGC7IbeON/bMYdHTBVK2/xrXU6MuIcxYLW6jgq78gT+T2EnY6/XbCoqBzPy+T9HNeffCuQHIcjBjqkKhBcxSUTqXqPUVXLgn2kHdlVEYEldR0ApyjyGrANHp0dHUgt3SOZdQfScPg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nSZqzkid; 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="nSZqzkid" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1C30C4CEF1; Tue, 16 Dec 2025 11:43:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765885394; bh=N4+cLqfe3ZSgOk9vdQz5zjrA7L2169BdaCSNlf7qg1o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nSZqzkid5yx3AX3dEgygjOfPXnP4R873hl+NxVuHlLitZ5exCZNuQfztVL/de/v+n hMKI/eQoiY0gv05KpDmOm8MPhiCCI2OwLcxvNAhd5sjRnPwK3CjWiU0S4OCibPr4cA /YUYvdczh8fg20XO555KGsC4Ej2S/YAwpsMq1AlQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Neil Armstrong , Krzysztof Kozlowski , Dmitry Baryshkov , Bjorn Andersson , Sasha Levin Subject: [PATCH 6.17 099/507] arm64: dts: qcom: sm8650: set ufs as dma coherent Date: Tue, 16 Dec 2025 12:09:00 +0100 Message-ID: <20251216111349.126942707@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251216111345.522190956@linuxfoundation.org> References: <20251216111345.522190956@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-Transfer-Encoding: 8bit 6.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Neil Armstrong [ Upstream commit c2703c90161b45bca5b65f362adbae02ed71fcc1 ] The UFS device is ovbiously dma coherent like the other IOMMU devices like usb, mmc, ... let's fix this by adding the flag. To be sure an extensive test has been performed to be sure it's safe, as downstream uses this flag for UFS as well. As an experiment, I checked how the dma-coherent could impact the UFS bandwidth, and it happens the max bandwidth on cached write is slighly highter (up to 10%) while using less cpu time since cache sync/flush is skipped. Fixes: 10e024671295 ("arm64: dts: qcom: sm8650: add interconnect dependent device nodes") Signed-off-by: Neil Armstrong Reviewed-by: Krzysztof Kozlowski Reviewed-by: Dmitry Baryshkov Link: https://lore.kernel.org/r/20251007-topic-sm8650-upstream-ufs-dma-coherent-v1-1-f3cfeaee04ce@linaro.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index e14d3d778b71b..d7ed45027ff45 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -4020,6 +4020,8 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, iommus = <&apps_smmu 0x60 0>; + dma-coherent; + lanes-per-direction = <2>; qcom,ice = <&ice>; -- 2.51.0