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: 13046488 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CA011C4332F for ; Thu, 17 Nov 2022 09:57:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3sv/QJZ/WCwxNscaRvRnx+RadApWV6XWd0t/XwgI7x8=; b=SaJybOQvvfU1zq 7PqqNaPj1C/JftKELsEZH8FMNCsbxs2Z02SGW8LIVljyGQ42Psvh320R8Iw29ztG8+RsM1OWxNZT+ +P6TUWAc991fX5PfiyxaxdFjEgIgb7h1raJvXVDTm5yZr5tqJ3pOB+cX3r69kROv+mXzKjyhqxx58 UrP5XtxfJD7oC0Bd8ME8qJrO1T2Mn5tnnWqmO2knB69c4oZL9Cp205+LraPABNfeoJsB/LXR24SyI TVQQZoHO6deZDpq4e0ELxG0mkjOXHV63fmeWY6Bj8qKlvZNUS61tIFjvmBUkVoF0I3qZn1YciJIQ3 +4tZAwKrDm18J6x0gU1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovbcv-00CJui-TL; Thu, 17 Nov 2022 09:56:10 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovbRf-00CCvf-UW for linux-arm-kernel@lists.infradead.org; Thu, 17 Nov 2022 09:44:33 +0000 Received: by mail-lf1-x133.google.com with SMTP id a29so1894772lfj.9 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=AkbslaNtFIN3kSWOxW6NaS5kkGgvv7Wi/xKnHZREqPafE048DosyLaXws60wnKiTJn PIJUXreXKlFXofwhH5XvF4vO1iCQbDlH2IVjPmS/2mKYsUF8UOz+4WsiMu9dUXilQ4NP H1+1dmQqCmdfAJxmOucU2EzEVtzFIJ4hfMVYmzPtQd+qV5SF+ZjTeyg8ytDbcoJdMmKk 5ORQA8TSRCRAD3PuSTBXQ2pfvYBnI5JEMa5UDtSw+H/IiaVz7aYUIburnJ/5GiXYTAEI UJqcBVpcediZog5zby9B4eKRguGXe5+mcjVovadAvsUbCF7rsx10XakkfDGqJa1uWFd3 CXHg== X-Gm-Message-State: ANoB5pnm71RPUUUMx+neuIubK1SObwTTniWd25vNJADPsDnug60lwmk2 xoWYD+TYgj10wPtbhdiFPvqsLA== X-Google-Smtp-Source: AA0mqf6ES+ykKWWJCVq0np3WVdmdlj6KGtzrgMThf89OaZU4Ew16X9g6Fmr1EbbkTJtgiCv/g0ad1w== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221117_014432_021769_88174143 X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13046489 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 089F7C4332F for ; Thu, 17 Nov 2022 09:59:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kmOSsANCVKEbEc0p6UGCQvzXaWt/uiGW7lAxH5C0xhI=; b=eqdCgM79or7wT1 zfgWgfdrcFwiGowaHbU4NnD11dp3kx+/lMe5jW4CVlHQv0mvedp+tqs96svuOiMI/+XLbiXlvzu71 OeCYh7Y1Kvro/o91S74J5B6STFuTnDC2trS9fttdHAcDF7Jx5DEJafpjYaRfhFIvlPPZjamRtcADb Yt6nZf48aQI2eXMhUB9qgUoMn+FtYHV9WsSGIjfzId0JdbaAiD4quT07N6FE5ldDCff1zTAFwRyIC +vbg1esdGlUI0hKgTGSQYzaJvMWiMHvulHBZe1G41Tlx3NsaDFO12iKISghc7Zus8NzdKK0x66nK+ n9Xe9T/Kvn6ePyQXOUiw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovbeL-00CKlm-Kg; Thu, 17 Nov 2022 09:57:38 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovbRj-00CCxA-P5 for linux-arm-kernel@lists.infradead.org; Thu, 17 Nov 2022 09:44:37 +0000 Received: by mail-lf1-x131.google.com with SMTP id be13so1936067lfb.4 for ; Thu, 17 Nov 2022 01:44:34 -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=A7v+ed6ei6xMMDcw2qBl2HJosFXF1/0x3GFp2p7lx7ypmAM6z4oYhHlrLwqcd2y+uK Vbm644ab1MPJj1uuXCYRJ3oqButlnB35kUx17KB8XQUR5kR0zLj8ILi5/vBJBb/ZuonH hP6COjUsXASdXncHNnF4QHycNprfumEqX+himNdDwH2Yyqzug7Pp2ySn+tbeXYkzE9Uq KcSKqBa8foFgmC4i0hKh9Lrj0rc5m7hHd4o/F8ZvVO9e6SKbwGga+X2Sz/aEIZqlG+wi MaVMSEVnEfozi65N6MQmna7MatAd1Nd45SOQ6XpxVZjUK2uanoyO4cF76X7hKTWaZD+S SvtA== X-Gm-Message-State: ANoB5plf1JothtdgKGJnTUETkrliVEPz707ZNBXxFqJVSyh12BTuqmRs 0pwZmJw7HrPbvSO5GYJ5IL4w2w== X-Google-Smtp-Source: AA0mqf7sxxHmLU3xjf1JZJdrXwApfX2dW3Xq6Qp0TygXefNSEF471QrQQDVzmNSY/KnTae89FV4c5Q== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221117_014435_862169_5C26EEB9 X-CRM114-Status: GOOD ( 10.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 },