From patchwork Thu Nov 17 09:44:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 21522 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp306460wrr; Thu, 17 Nov 2022 01:47:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf5oevWmZ2FIxoq1YsaoKSuajTmccDV3vaO/V2MHd57JAw1QSA6KXOwK1ErdJSCqMq4dlbvP X-Received: by 2002:a17:906:7ca:b0:78d:95d8:f8db with SMTP id m10-20020a17090607ca00b0078d95d8f8dbmr1371679ejc.592.1668678445465; Thu, 17 Nov 2022 01:47:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668678445; cv=none; d=google.com; s=arc-20160816; b=GNZBBDUrf8szu5DfEdIvCEtMxxq8+BEMnJuXBjG2ncCgPJ+pHuj8CTzkWmTGL5gMnu NKWwvgOnZjC0Vmzd2uz3JgveJCpazzJZP/vukDoivfvg4tUxYYs1xMSCcbHJImbI043m z+o1sYXAZRWvsOhNHDb9d6TiATpMEctZkOFXOK6TgNuYP0nxGSR8of/q0FDKvC/Ysy/2 qccuh0pg7B1oxiWuWDfaPZcQA1rZxRkR5J6pIAWZLn3kyaQeU0Y8slvradqGeYZRWYwR 7hLOUoLW17ZyyD8Yo0cNMRr0Mvz59vwpfp7NpaytYVyiCWbwf+Iuq9WxuGOlyBZLHIUE JUwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=coDWPgzeGiDhA1Kjk+0s+wdy8DFwxzcI7zrCkDfxvEc=; b=KzEPtWRMbO2R4rq7v2nclHKPg5FmDmdIMeAP28fLmGompmPPxOtMKmRZu0TIyZr9xO 16lBjYTSqyLLegZvDzFuSZqJhALARMPygd240EHGuCDBGHEGlFiwEY5u3zCW0fuXsiHH 98wg9ZT37TdA2F21VWuYB1HdbhauiH8ydn+oyZaEpZxfuYW9TtS4VZAasj4+0UY64NK3 B/favrPVAKZQonGCs7vzrTi0H/tFSOzedIRk4q4XAXJ+28EFgX1LJoijJpXjx7sovtqQ R76sEh6EaxEcI+NREw4r5n5gKytGcdKuowkr3lgRhd+71x8FWgVNpZiSyR3e8Xu4s+PY PrtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JSo+A79i; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h15-20020a056402280f00b00461d8ee1316si584261ede.21.2022.11.17.01.47.02; Thu, 17 Nov 2022 01:47:25 -0800 (PST) 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=JSo+A79i; 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 S234793AbiKQJod (ORCPT + 99 others); Thu, 17 Nov 2022 04:44:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234614AbiKQJoc (ORCPT ); Thu, 17 Nov 2022 04:44:32 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C81391FCF4 for ; Thu, 17 Nov 2022 01:44:30 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id b3so1938766lfv.2 for ; Thu, 17 Nov 2022 01:44:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=coDWPgzeGiDhA1Kjk+0s+wdy8DFwxzcI7zrCkDfxvEc=; b=JSo+A79iPIDFQfEXpacdlzjwTFdXWhsxiUjfD1fBIBudT6rm1bVA49wFYQ+NGtslO+ P1iU3ADiIEyb6ZJz1u5aK9zQrq1cKllAQDTbQsAoUJ3mcGT8hidNhoVAxeg7eHvR9hT4 3WxXjzaGFuiPMTCQ7LYkFhAw8EbZxRvm5iMdZNI1ZLPo1jP+k3kaeG4lj1QQaLP2D9FS WwXa2hVPHeUm90EVdrouiz1BZO1uUXe1Ffp/ctEb44Jv7guhjp5dAGxMM7SgU0ayCJug rJmP5qWNsQOiFwlzwlR4QGKAtXjz2SnpvJoXV5RHn44LDR2ZPRcjaVrDWXYvCeRDELjI v2xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=coDWPgzeGiDhA1Kjk+0s+wdy8DFwxzcI7zrCkDfxvEc=; b=QPTZzKwCJi/gxOFOjjB6NiZdfbP+L9Ys1yG7smWq9w9AKXdaijVAQvPqIRsSMykTsj w9P7xZhQPf2jpF04+Z51LYbLN5nDD3TUq9mMPoEWPuPR1rcAGn0gwMvLMNdFDxSLMZV5 AGIYawTytF91ykqyn31E3E4W98NG/IvCiSadgASenfAjmTp3xCuoGoHKsG5WQEfj6CN9 oCPgW8YrZHm/K3mqQY4YTlEIEMRlbOJgqFQlXZx6T6ms3OMNcXMB3y+Z8mgOpIPhL5j0 GLyS05L+9WHlQ932kpTrjtcoBX+ffEFFI8+JTb1BE+uUIsegPZwaWUvKFW4jzQqCHyH8 YMvw== X-Gm-Message-State: ANoB5plwUasma5syclK3gAhvtFe/ewP6lywgfovOvES3e0ydcMM+XZ71 wklQcvJDvoNBRzmmSbnCD7APUw== X-Received: by 2002:a05:6512:108a:b0:4a9:9827:68ed with SMTP id j10-20020a056512108a00b004a9982768edmr587884lfg.45.1668678269203; Thu, 17 Nov 2022 01:44:29 -0800 (PST) Received: from localhost.localdomain ([194.29.137.22]) by smtp.gmail.com with ESMTPSA id a23-20020a2eb557000000b002770f0a742bsm105312ljn.41.2022.11.17.01.44.28 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 17 Nov 2022 01:44:28 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: patches@linaro.org, Konrad Dybcio , Will Deacon , Robin Murphy , Joerg Roedel , Rob Herring , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: arm-smmu: Add SM6350 GPU SMMUv2 Date: Thu, 17 Nov 2022 10:44:21 +0100 Message-Id: <20221117094422.11000-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20221117094422.11000-1-konrad.dybcio@linaro.org> References: <20221117094422.11000-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749736169572865393?= X-GMAIL-MSGID: =?utf-8?q?1749736169572865393?= SM6350 has a qcom,smmu-v2-style SMMU just for Adreno and friends. Document it. Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml index 348a73f3e5f0..895ec8418465 100644 --- a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml +++ b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml @@ -94,6 +94,7 @@ properties: - qcom,sc7180-smmu-v2 - qcom,sdm630-smmu-v2 - qcom,sdm845-smmu-v2 + - qcom,sm6350-smmu-v2 - const: qcom,adreno-smmu - const: qcom,smmu-v2 - description: Qcom Adreno GPUs on Google Cheza platform @@ -347,6 +348,7 @@ allOf: compatible: contains: enum: + - qcom,sm6350-smmu-v2 - qcom,sm8150-smmu-500 - qcom,sm8250-smmu-500 then: From patchwork Thu Nov 17 09:44:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 21523 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp307027wrr; Thu, 17 Nov 2022 01:49:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf63s2Tjv8d6QQct/l0RXEQcCkEGD2CAhIYu0Nm1U5A2Hf0LZpkL57uzOSUthPC0/w92p1Yx X-Received: by 2002:a05:6402:1381:b0:468:5b78:6381 with SMTP id b1-20020a056402138100b004685b786381mr1461465edv.373.1668678548817; Thu, 17 Nov 2022 01:49:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668678548; cv=none; d=google.com; s=arc-20160816; b=XukJhpa0dc97N0BHvRFGhtPiEu7xn89C/T0kHm7LAwtqQwbJPb+uLPPTEVYb2u9nng kG7YdYJnCW0CJfCC6G0XEOky4qgvs9oviu7s89kB8yqbuIfwwxiKI2icsUPqvWvNJQwu kyA/vsS8VoEOP3RjfQ2K/K7Rbr9FB5i4tSntNaOzMVEPRrdVSGK74eiioJa1zDMjYk1N 4eeUABwMFe8MNPdIL0WSxbHOlNA9xOXp4heouhwqvzj2FMzxsHZZjcphCFUblOmOJMrn wTPb+j74GUWDryWAeXgp2iqU4Ha6yWjts9Bha5wxycnw8KjL9KevSAQZ8VKd8UOWe7jT Th+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=07jxP8RcYFdE+SSC8KiN//xkr0d7SR0+oxWGO499peQ=; b=Y2KDx0CA0SF/uFq7UzPkf3ba0Q9mFs/zwoihYE0AVoX7pb0jZ2xUkPffGjPw3Dwg2r INjNP2InVap/zggx9hBBF+Yc3Q0AmtveZW6m9w8FU2A1U2uXRbdDc49f0Vy4XQqhqdy6 1pIAYDltghf1v6ouzcPFx6w4f+hNSdfBdrYT/b1ej3juMHr1LKAReu/qDVMAFVm+z4hU FDRrrKIUwzYCDf2tkmrfLD/9nosgQLpYO6ATx+J7l7cBtc2eIQYKXr1TXoVrY0m2PePd vcSgoTvUDaFxsnow2vWWwDDPp6caTdCS9duyp++hNpIG1Ig/Z8MXh7U4Nsixt5BJENJf WLsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LSZF9vPx; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp16-20020a170906c15000b007ae377adb6asi231142ejc.628.2022.11.17.01.48.45; Thu, 17 Nov 2022 01:49:08 -0800 (PST) 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=LSZF9vPx; 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 S239394AbiKQJoh (ORCPT + 99 others); Thu, 17 Nov 2022 04:44:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234734AbiKQJoe (ORCPT ); Thu, 17 Nov 2022 04:44:34 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B916D6DCEB for ; Thu, 17 Nov 2022 01:44:33 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id d6so1902258lfs.10 for ; Thu, 17 Nov 2022 01:44:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=07jxP8RcYFdE+SSC8KiN//xkr0d7SR0+oxWGO499peQ=; b=LSZF9vPxP9SRCCRRlugy9ekXBT9pLaqSLEk4FXkTueoXWwiDMw19beV0kmm08vw7kR bwFK8Thq5hj8JJOUhxvARAOmaBPC6M5adxr3RPiQOQi080uZYk36NZ1j/Jl8dfD+DKDz qVYcDwazmdvFKb9sJjUuc/krbW8lWq61lMD6YxBmDTs7nO1eOzkJiWBJLgkzeJMfZDt0 7ll36P26rnm5q86x2O0TU67grttZJ1H1jkd71HOkir4oQq+tdXaNz6mfVIzmv3hVWKtB I+Giz3NUME+0SGNGMPx3WM/1Gez/T1gup38sDDvLb2Gt6HWiIOkjlzvAOUiLZMbxPno5 6JQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=07jxP8RcYFdE+SSC8KiN//xkr0d7SR0+oxWGO499peQ=; b=O+hZhN7ZZS4OI2CAOllR7KR5HmOwG9bDXNS0dj6Eq9UKHw6fMc9T+Frv/afw7cIfj6 LozAkE1LP45S1RKDv/kdUK7Kfjl5nkS0fXSqGjO4m3c6HypTk37sbCcP3HJ5lTrw9V9N 9YC9najRD2tUOnC7snkvxXvEyjyWvLM3ithFBtJYce4dBDpp3t+dVXlVaW1nvYEzQn+M 35m8MHbCT/KvkMTtIRF/+JQqYvP0Cs11YIMobhI2Xo5njteBWouoyBjxNZPzzXv+zlIG RxnXfYWcXIIgtckmX8D2Ct6B28qxDn+Xfdso5p1zuqfAjpMOUa9dK7xvbWF3VpY4wrhw WCJg== X-Gm-Message-State: ANoB5pkOlLK3phirSCMeBlLEgl3sJfp42zGHpq/Z80rrp7K8B3VKJ3mB D7RoYFMtko/gGcqu8VBz8D0wKQ== X-Received: by 2002:a19:e048:0:b0:499:af06:a77b with SMTP id g8-20020a19e048000000b00499af06a77bmr581604lfj.202.1668678273353; Thu, 17 Nov 2022 01:44:33 -0800 (PST) Received: from localhost.localdomain ([194.29.137.22]) by smtp.gmail.com with ESMTPSA id a23-20020a2eb557000000b002770f0a742bsm105312ljn.41.2022.11.17.01.44.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 17 Nov 2022 01:44:32 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: patches@linaro.org, Konrad Dybcio , Will Deacon , Robin Murphy , Joerg Roedel , Konrad Dybcio , Rob Clark , Emma Anholt , Vinod Koul , Sai Prakash Ranjan , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] iommu/arm-smmu-qcom: Add SM6350 SMMUv2 Date: Thu, 17 Nov 2022 10:44:22 +0100 Message-Id: <20221117094422.11000-3-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20221117094422.11000-1-konrad.dybcio@linaro.org> References: <20221117094422.11000-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749736277667044645?= X-GMAIL-MSGID: =?utf-8?q?1749736277667044645?= SM6350 uses a qcom,smmu-v2-style SMMU just for Adreno and friends. Add a compatible for it. Signed-off-by: Konrad Dybcio --- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c index fd97db178696..fa84a69b9439 100644 --- a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c +++ b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c @@ -513,6 +513,7 @@ static const struct of_device_id __maybe_unused qcom_smmu_impl_of_match[] = { { .compatible = "qcom,sdm845-smmu-500", .data = &sdm845_smmu_500_data }, { .compatible = "qcom,sm6115-smmu-500", .data = &qcom_smmu_500_impl0_data}, { .compatible = "qcom,sm6125-smmu-500", .data = &qcom_smmu_500_impl0_data }, + { .compatible = "qcom,sm6350-smmu-v2", .data = &qcom_smmu_v2_data }, { .compatible = "qcom,sm6350-smmu-500", .data = &qcom_smmu_500_impl0_data }, { .compatible = "qcom,sm6375-smmu-500", .data = &qcom_smmu_500_impl0_data }, { .compatible = "qcom,sm8150-smmu-500", .data = &qcom_smmu_500_impl0_data },