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: 145084 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2290218vqu; Tue, 26 Sep 2023 17:47:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHsv4YXaO2zCmZbz9Q3uz4F+HLBUBHBynhe24FFnrmu9U4zt0H/0QetIjxWn6Wi22yiO8hM X-Received: by 2002:a05:6a00:1381:b0:690:c75e:25d7 with SMTP id t1-20020a056a00138100b00690c75e25d7mr730348pfg.18.1695775629114; Tue, 26 Sep 2023 17:47:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695775629; cv=none; d=google.com; s=arc-20160816; b=0saEc9fTeH7F+xFedrrUGrXrJMOBmG/plpZgl+Ml3o+lhFRSiquTGwNmdOD3zZjo+K noYLlDiACgjS9HWpk3GYPc6FfnmBzaBnbOoZdMa4CyRY+Ym5lNv7MCxM7jAvRKWHZcj/ CAJ7jsByyHWCqp4Z/qfQjWOjafXS5s2uu/w7vDClQyAjvBtwfqMZvX1GK2MwEbGBN99/ T41ynP9S/LMYW6x0LPRe5P89rRblWBa1czhXPzHkXvms7hbrzj8umiQRDmaru1Mt/lK+ ZRh8q3XuBfClcgQ/k8DNRrKjKBhsItdNCwpzRU7NL4qz30ZMdOUfmYCBQ+SGj37ZsqGU CWLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=zKAfj40wX2rYb9qZjVM1hdFI0nJkjq0ie36nV/sob5U=; fh=mlIZHPbN87mtISF6MqYNWpjXSb9fByWKfC3t5kuxP6o=; b=frZhx/tXsbHY5WBnYlEjhdmablOZpr68NKSPuBIA9G88YIAHF+ZC3haimOsrVgJt8W OHtlKOwFqyNLobX/7/7RPQGkYcr18TawAkXvScsKJ7hDqDa5Uq/75Pj3q282GcEYHtUW UZPqbpaQUZMapEvJCQ2gJzeB4SzU6wK48QlAVwauzInKNZn/hZfwfJa1zba8oMPfwX1S IxVaBuwNHjJxGio5MfojK7pJydenhqk0+Qe8MzIAVALCBhpRrHvPdHQJAIJ4P+ALRvKv faxYeXb+gzSH117nxSzeDxAAZb5zQlv0L1BJv/tj4Tkm93qg/bfwYKgbFubk7M0GtR2c G+fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Qe5/b1of"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id by9-20020a056a00400900b0069026fd5a48si13861315pfb.34.2023.09.26.17.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 17:47:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Qe5/b1of"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4E66081DDE52; Tue, 26 Sep 2023 11:25:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235495AbjIZSZI (ORCPT + 28 others); Tue, 26 Sep 2023 14:25:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235476AbjIZSZA (ORCPT ); Tue, 26 Sep 2023 14:25:00 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AEDB198 for ; Tue, 26 Sep 2023 11:24:54 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-50309daf971so15350916e87.3 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=n2HA3ht8HkeCSbC0+hj6N0dx+XUt0GMKXUCKO6g55IXfPCgAPX9nB+jG0924qaJI4m OfItCrty8W3791EKC271QjQRGZprJuD5hsX2LIvuHGqR3dvEkgMTSi7H/JOB1TliA9Zt rtZoaYpY3MyoUfrNPaVVow9iO4NLuVqejrV+O3VdYdVwmKw5QfpX3Jr6aLMxPVyTfU98 NS4RLCvbUEQSfu5XwuO/jcQqfNAtvoqRIGgzOChQqr5UugaZUGo0QPbSHkWamdMS5D/j CxF/EKie4VvmxU6veMr4wpGkawP+jefFCbFelKT3pO9EQu9giOc5OndtgayZJ76oAgu+ vMvw== X-Gm-Message-State: AOJu0YwNqT0Tw7QbExVJuEQceE6A0hKTK8s7U1TDvASrJcFJEj6cmXLw z3Fp/5Eydn0F5cAltyCHZKP/2Q== 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= X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 26 Sep 2023 11:25:21 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778149626240494710 X-GMAIL-MSGID: 1778149626240494710 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 {