Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp85553rwl; Thu, 6 Apr 2023 13:37:32 -0700 (PDT) X-Google-Smtp-Source: AKy350ZpvBidgvl4QpKyIeXUPnj2fMt9u2rIEXrw9Z2iNI7wEKdkI90NHuAeevnP1JErwb/8dX9u X-Received: by 2002:a17:906:e48:b0:931:6641:9897 with SMTP id q8-20020a1709060e4800b0093166419897mr204086eji.44.1680813452610; Thu, 06 Apr 2023 13:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680813452; cv=none; d=google.com; s=arc-20160816; b=bbzyOfbYieNpZG0o92mRBt3WHOkWOiPBL3JdJ+I7kENlHtnY/CUKs0h5F9v5iU3DeZ YxpZGVboMs9R9fwlbY6KVf1yk8jlL3KX/hQWIAW0RGHIgZMgXOLQ1BhD2wmSd8wIOfga R8azMqzHM/NMT96UOWm9XXdrOYcTA5ghsNWpRinyTa9PFuaEWP66q+b3oVxYiITkshQP TrS2+TqOufmZCrzxoC+0bKx1vGDoA1E1cjSs/8GuULVt7j0bnM7tWECFBnHhwuhd2hTO Z2LLH53sfzHaW3B7tpn0r40DA6xQuoaB8pqJ/bTiXSv6cOjSCCi9IITGZS47/cR9oERR MAZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=sSjbkEzdKUWsxqf6FTHcvALXYuTkKMbJioNVsbzVNEU=; b=bCStHSQLxjSBPke3eyfplyt9gj8g01qT9E9TyoTumSTeefbpnSisEWvM4io50jBVnF pdchgSb6QTGPSQBioB8jdD8Lx2Nz9N0Bx363Ph1wTZkPxKuMiAWQIDM3kw1zsvzZ4QQU c1tGIhftJZOSsp+frFLNe92dgAXdK/RlnizpCCI1Xe72Q9uulb9yXcd6wAzMtZkevEQ1 HxigtC9SMU6vRA87VTD2tncSMkMUjLoeoI9Assq7I04RBWO2blzNIeNSklrSeHmsdu74 nISjnbEMUMj9kV7mGm+mQJTAr0qT9hsERwcwM5OIeZ2gM0afzsQLml/MhdyfE7o3WXVw 4CMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qp8NnOfZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v17-20020aa7cd51000000b004af6c524991si1450389edw.109.2023.04.06.13.36.45; Thu, 06 Apr 2023 13:37:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qp8NnOfZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240165AbjDFUfZ (ORCPT + 99 others); Thu, 6 Apr 2023 16:35:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239890AbjDFUew (ORCPT ); Thu, 6 Apr 2023 16:34:52 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2EA4B76D for ; Thu, 6 Apr 2023 13:32:48 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id k18so3585850lfb.12 for ; Thu, 06 Apr 2023 13:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680813167; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sSjbkEzdKUWsxqf6FTHcvALXYuTkKMbJioNVsbzVNEU=; b=qp8NnOfZKpCHKk8L2hKR8i9dYAHN2EZ2svldCyg2eeBIOXlsZSaX6p57jM626kyski 67h+ko4l2EL6sIK0WZKj0snJtiIDASo5vYCQZpzBrkU4HbSzQ4aE8NxYEDLg7vtS3mv+ 8Pw3J/6RemAjrtcML8yEFNMThSXnB3JRjzBjpILjcqeRdq32toDe7vMEUVHvRjc4+OZR jPn6WGJbt3oj9w8Pk2rOR7/qMcQiCasVLUX9TQyDdxW0boGg121S+/C8rXOMbdAd0hhs tztaiEcu5LrcnBHmE390rW95lALNvDQw4D0LEBTRMIMAeHk9oyWvH4t0sGBGAR/l0Iao 56Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680813167; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sSjbkEzdKUWsxqf6FTHcvALXYuTkKMbJioNVsbzVNEU=; b=R4LruXCvXtMkRarHzyz6ezJcfx/rpIsImg1o8WVhn6oyiaa+7k036LFNMSK+SGKIc2 90FZvaWvFvyJicxiUpJwb32YdCwGJwaSOSdqWhkRw5QuAbA3ddH/X8sQ1HgpPOgyjQn0 SXmHGOZukRqyFMIA1wzo7s+UjBJBsaUziq62/iGQ5VcBChsTAPyH9DQT6+C/56wBJ49E pz9WVgs6BJjEpsHy6IYYEBXCF4WuxynxbAGCfqzjAyijUJT29TeZ7JfWhIDbKgjj5rGL jgwroGr63KKO4/7e9ULHSAiW8ICT0kv+4m130T/lRngdNIvHj6EBvmU8g5j3JbMadj0M 7tHg== X-Gm-Message-State: AAQBX9faI8Xo3bwyjZciedT1FqrC7PAkqY2UJeUmWoer+srJoLIYxkOr Mcnku+HL9wIsDiJD/sRAwTsW2Nq2lk0mugOaJIw= X-Received: by 2002:ac2:46d6:0:b0:4ec:363a:5f17 with SMTP id p22-20020ac246d6000000b004ec363a5f17mr84297lfo.21.1680813167082; Thu, 06 Apr 2023 13:32:47 -0700 (PDT) Received: from [192.168.1.101] (abxh37.neoplus.adsl.tpnet.pl. [83.9.1.37]) by smtp.gmail.com with ESMTPSA id v3-20020ac25923000000b004eaef4b51dasm408338lfi.107.2023.04.06.13.32.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Apr 2023 13:32:46 -0700 (PDT) Message-ID: <57cf27c5-be4e-976e-bc3c-fee046b079e7@linaro.org> Date: Thu, 6 Apr 2023 22:32:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v2 7/7] arm64: dts: qcom: sa8775p: add the GPU IOMMU node Content-Language: en-US To: Bartosz Golaszewski , Bjorn Andersson , Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Will Deacon , Robin Murphy , Joerg Roedel , Catalin Marinas , Arnd Bergmann Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, Bartosz Golaszewski References: <20230406200723.552644-1-brgl@bgdev.pl> <20230406200723.552644-8-brgl@bgdev.pl> From: Konrad Dybcio In-Reply-To: <20230406200723.552644-8-brgl@bgdev.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6.04.2023 22:07, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Add the GPU IOMMU for sa8775p-based platforms. > > Signed-off-by: Bartosz Golaszewski > --- > arch/arm64/boot/dts/qcom/sa8775p.dtsi | 36 +++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi > index f799cb5abb87..f46c1a73abdb 100644 > --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi > +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi > @@ -7,6 +7,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -605,6 +606,41 @@ gpucc: clock-controller@3d90000 { > #power-domain-cells = <1>; > }; > > + kgsl_smmu: iommu@3da0000 { > + compatible = "qcom,sa8775p-smmu-500", "qcom,smmu-500", "arm,mmu-500"; No "qcom,adreno"? Does this one not support per-process pagetables? Do you have a working GPU setup to confirm that? Konrad > + reg = <0x0 0x03da0000 0x0 0x20000>; > + #iommu-cells = <2>; > + #global-interrupts = <2>; > + dma-coherent; > + power-domains = <&gpucc GPU_CC_CX_GDSC>; > + clocks = <&gcc GCC_GPU_MEMNOC_GFX_CLK>, > + <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>, > + <&gpucc GPU_CC_AHB_CLK>, > + <&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>, > + <&gpucc GPU_CC_CX_GMU_CLK>, > + <&gpucc GPU_CC_HUB_CX_INT_CLK>, > + <&gpucc GPU_CC_HUB_AON_CLK>; > + clock-names = "gcc_gpu_memnoc_gfx_clk", > + "gcc_gpu_snoc_dvm_gfx_clk", > + "gpu_cc_ahb_clk", > + "gpu_cc_hlos1_vote_gpu_smmu_clk", > + "gpu_cc_cx_gmu_clk", > + "gpu_cc_hub_cx_int_clk", > + "gpu_cc_hub_aon_clk"; > + interrupts = , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + }; > + > pdc: interrupt-controller@b220000 { > compatible = "qcom,sa8775p-pdc", "qcom,pdc"; > reg = <0x0 0x0b220000 0x0 0x30000>,