From patchwork Tue Sep 26 18:24:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 727283 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AFDE0E7E65D for ; Tue, 26 Sep 2023 18:25:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235517AbjIZSZG (ORCPT ); Tue, 26 Sep 2023 14:25:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235505AbjIZSZB (ORCPT ); Tue, 26 Sep 2023 14:25:01 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DEB7199 for ; Tue, 26 Sep 2023 11:24:54 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-503f39d3236so15359874e87.0 for ; Tue, 26 Sep 2023 11:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695752692; x=1696357492; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=zKAfj40wX2rYb9qZjVM1hdFI0nJkjq0ie36nV/sob5U=; b=Qe5/b1ofC/vofZcK36EXk5QPOMtW/JBEzAXFbfK18E7QPeQhVx6Lv3zVD33NIHHbUN m8Ewh8+H3DVcMiaH6t+clsHujU0N13LCGiOWkCfKXwI4TgNnj1hjwehgpqyxa656S4YJ JQOAThU03SPlq4jZhNNMlLhxQJ1nR5EOG83SgtZkQ0M8WigsqXEKSHFuOQXTdGCP5q1b 3bLxl8jBeO9emX0pl99wN0/Rjo7Po8ChLzLh+jK5m/yTUerVOFzjwe7dMtfIbbSuabFV 77fe7FXJd91lCBVedDNRwyUjUn5QyQgvTj6AR7DCKAYb0FWxb9MMBFrJKKPMjQZG0V3T Qi2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695752692; x=1696357492; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zKAfj40wX2rYb9qZjVM1hdFI0nJkjq0ie36nV/sob5U=; b=ZCqEVk9oZ4sQPSkjqvAEKY93zVBbx2LKSjGuumgeu+l2uYGxb2jWbsr/MMbUYUCHwn T1VcAk67TD5TkRnUCPnPLD/qKpulndrb6SnvLJl7F+iuac3s8+tLaHl0mw8akZ6Lgghy yA3x2L2tpKybdvCFpFAiFYPXIa1QOzzsMdzMX98e1YlR3ZO+ZsJ6VlvWCbENVk/8dpXE yeS/bavKvxgDPIyZlxO8ooPaAESjSrgQIp4L+JYsW7sfX/NRvJrMC+AyBBe//FN8jBMX 3wxgFpjzv7nczRMwl1WKt89vifQAKsXWW+53Luh7i73EYWwjRaRcHyaKSnF+9Fa9MY3c ebDQ== X-Gm-Message-State: AOJu0YyWHQIz5jLCv0Pdl5d75Le1z9U1J1dXect10S++O97sY9Gbdtcp 3oOMsUz1d8Gx27x1RCabcotISQ== X-Google-Smtp-Source: AGHT+IFEOjsJYPfc1unWH5iDo2ktLsd6gTLh2AKJS4VABLvGaC7NWjan6T+Fe2gwP9NdJvAjyY+giw== X-Received: by 2002:a05:6512:318d:b0:4fd:f84f:83c1 with SMTP id i13-20020a056512318d00b004fdf84f83c1mr10394815lfe.64.1695752692402; Tue, 26 Sep 2023 11:24:52 -0700 (PDT) Received: from [10.167.154.1] (178235177023.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.23]) by smtp.gmail.com with ESMTPSA id f19-20020a056402151300b0053090e2afafsm7020643edw.22.2023.09.26.11.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 11:24:52 -0700 (PDT) From: Konrad Dybcio Date: Tue, 26 Sep 2023 20:24:41 +0200 Subject: [PATCH 6/7] arm64: dts: qcom: sc7280: Mark Adreno SMMU as DMA coherent MIME-Version: 1.0 Message-Id: <20230926-topic-a643-v1-6-7af6937ac0a3@linaro.org> References: <20230926-topic-a643-v1-0-7af6937ac0a3@linaro.org> In-Reply-To: <20230926-topic-a643-v1-0-7af6937ac0a3@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , cros-qcom-dts-watchers@chromium.org, Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephen Boyd , Akhil P Oommen Cc: Marijn Suijten , Luca Weiss , Rob Clark , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1695752677; l=676; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=Hpz3dGOzkgvsLU7CVLEOv6AKepEoumYODOZQCFrh/Q4=; b=j5r+TqjW4AL2kSlLuLWqK7jEIUZkSCZmLEB7jrljedUKqzufTLJ82XEyKjXd1g+Xdn85ktzDP aNUnRkQeTI7Aooar0OseWXWM8mz1d5aWQL5knIH/Qmhu93CpmvmbPvp X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The SMMUs on sc7280 are cache-coherent. APPS_SMMU is marked as such, mark the GPU one as well. Signed-off-by: Konrad Dybcio Reviewed-by: Akhil P Oommen --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 0d96d1454c49..edaca6c2cf8c 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -2783,6 +2783,7 @@ adreno_smmu: iommu@3da0000 { "gpu_cc_hub_aon_clk"; power-domains = <&gpucc GPU_CC_CX_GDSC>; + dma-coherent; }; remoteproc_mpss: remoteproc@4080000 {