From patchwork Wed Nov 2 18:44:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13028924 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 97F18C4332F for ; Wed, 2 Nov 2022 19:29:26 +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=oNdIPGnDXifcN6QGz0PonFaj0og/7Bkyli+M6rlIbOQ=; b=O/4Wla+x2wF2cS jybBVeQzPWldYTF3QvdGB/JaAZy1GQgDmfXWa8n/v0RM5QeqS/t4FQRHVyGzWk9swj/8kLdvhQVaU hdTHpD8Ccl9AlwekIBYymtDmXlSiBXPg1ZCfPa5oLFNmMSw4aE+vSTjfpWVzt35yz9AB4QLZey8q/ dFPAunlkC26UhhNhq4fzan3ATkLzodBisA0OP4A/ETfsJzqSHdOQICX0kqlXv7vsS698sJYl7KKqG QlwQayyMXAM34oQqjCaj8XjnhcxsjzbS7GcOHu/EKHntkqkyi12us0QzKLo9FxZphLU+UXd11BtA/ 7v5wQ7Wwda/Qzc9Ff23g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqJPP-00DmYb-TK; Wed, 02 Nov 2022 19:28:20 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqJPO-00DmVa-2n for linux-arm-kernel@bombadil.infradead.org; Wed, 02 Nov 2022 19:28:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=Yehdn7gwZYYtQmdw5gvSKZrzS358tipn1+pOWTvWz3g=; b=aJbshIHG+sJZvj3zftrQqUPf9t f83/jFlPNemY4x7eiT+nDMwzQUdblbdxFxqXG8uTgDXqfQdJg8dduD1V2IdQph4t0SP2y29i6lcTz mzQizQWfnP6Ed6GaTA3f7TX8reqdAlRlb9kvCRiUHz9nVFl5PoGrodUVfmKXdeHRKFPipBL1wd2fG RS/sDYU4BNy2eI8FqsOqva2urXUoqG9ETkHdYDGoSegM1ViFptMg1sN7+qc4T/bxgdPVJk5C8JXY3 2Fh83jcXpo5l1cxqYTomAoZALUx6Ej9/MGeo8EgL1NcIJVkvffEB8Di7o6cZ1NdInEeLXiXeZwOM4 rY0tEvcA==; Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqIjE-008Tx0-Mt for linux-arm-kernel@lists.infradead.org; Wed, 02 Nov 2022 18:44:46 +0000 Received: by mail-lj1-x22e.google.com with SMTP id h12so19467434ljg.9 for ; Wed, 02 Nov 2022 11:44:31 -0700 (PDT) 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=Yehdn7gwZYYtQmdw5gvSKZrzS358tipn1+pOWTvWz3g=; b=eo2JUGq/uE90Rl3eR+ppoQE1tYMLFhWmT7FezYI2xZxsvK9YV5L8KsNZ+OcdAb9uqb dhOdxa4Uwh2/uHNzv/3h5jaP11y6Vlr/IYJp2eneceuPf1j5QvsXs9ieHGbxCYex+10j Nv60FWrCjAlHANqhtP8iufqAF8/syzAvv1nsipbh+V4BLZXqQvVHcPXHof2u8GISnnq8 vYjAZkHsdXkJFMdV+3qkrCBgT5MmSFktXfz0okp7bcQuypavNgz3sRQN/DDT+2tHDmYJ NpsbYYqjdpZBFdrac5efF2DNkuEXpcss/YIde/jgl+JviWn6vZ/YUSLTPPs1B4G+bq8m 0YVw== 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=Yehdn7gwZYYtQmdw5gvSKZrzS358tipn1+pOWTvWz3g=; b=V4zUg96vWupiWd8vbyZyrFaAiHJXmTY3ofWb6jpz6cPTrbf5fQsk1rltI0vbirwFOM 1NpMyWLL+qE+i2gl5VWV0sbZXQOqq5LR/Jc3pY3Fq3COQVCfFHT6Uq/ImfOjoIy/anIx 0gp/1eHBjGNx8+iPNbwtManWzvx4Snk/n0SyRKH3k2/51D02h1or8nWgB4hkBURKKIvc nLMoGagajBT0KfnHsWfCPi2HH80rQ++8YbUFBJHHGKf894rPJh8u4sws/6YlSj7PiOeX Rdfxzan3G1QFN4F7my7NkeBWX1HuPQRm6sSnvNO4rrWhTHCRVT5wikhbKKLcxFSmJyun my7Q== X-Gm-Message-State: ACrzQf0gOUtLRwCE/9Ea4cEuA9SwTub+0wqGPz/TDj1HdBnnpAjjARWi HNGiyNbLP6QqAId2x/TpLtlFuQ== X-Google-Smtp-Source: AMsMyM7mizVF0KTOys/pbmBZMouRiYVx/gmHUF6UI8HRmU7ngsANk4dEuPMrUp5gdpO6trffqfQdmg== X-Received: by 2002:a2e:a887:0:b0:26a:871b:a16d with SMTP id m7-20020a2ea887000000b0026a871ba16dmr10577873ljq.482.1667414670299; Wed, 02 Nov 2022 11:44:30 -0700 (PDT) Received: from eriador.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id t8-20020a05651c204800b00277092c03e7sm2277540ljo.33.2022.11.02.11.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 11:44:30 -0700 (PDT) From: Dmitry Baryshkov To: Will Deacon , Robin Murphy , Joerg Roedel , Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio , Rob Clark Cc: Vinod Koul , Sai Prakash Ranjan , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, freedreno@lists.freedesktop.org Subject: [RFC PATCH v2 11/11] iommu/arm-smmu-qcom: Add generic qcom,smmu-500 match entry Date: Wed, 2 Nov 2022 21:44:20 +0300 Message-Id: <20221102184420.534094-12-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221102184420.534094-1-dmitry.baryshkov@linaro.org> References: <20221102184420.534094-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221102_184444_915151_D578C414 X-CRM114-Status: GOOD ( 12.62 ) 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 Add generic qcom,smmu-500 compatibility string. Newer platforms should use this generic entry rather than declaring per-SoC entries. Reviewed-by: Sai Prakash Ranjan Tested-by: Sai Prakash Ranjan Signed-off-by: Dmitry Baryshkov --- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c index 9abc40c00f3e..3be81338a25b 100644 --- a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c +++ b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c @@ -493,6 +493,10 @@ static const struct qcom_smmu_match_data qcom_smmu_500_impl0_data = { .cfg = &qcom_smmu_impl0_cfg, }; +/* + * Do not add any more qcom,SOC-smmu-500 entries to this list, unless they need + * special handling and can not be covered by the qcom,smmu-500 entry. + */ static const struct of_device_id __maybe_unused qcom_smmu_impl_of_match[] = { { .compatible = "qcom,msm8996-smmu-v2", .data = &msm8996_smmu_data }, { .compatible = "qcom,msm8998-smmu-v2", .data = &qcom_smmu_v2_data }, @@ -511,6 +515,7 @@ static const struct of_device_id __maybe_unused qcom_smmu_impl_of_match[] = { { .compatible = "qcom,sm8250-smmu-500", .data = &qcom_smmu_500_impl0_data }, { .compatible = "qcom,sm8350-smmu-500", .data = &qcom_smmu_500_impl0_data }, { .compatible = "qcom,sm8450-smmu-500", .data = &qcom_smmu_500_impl0_data }, + { .compatible = "qcom,smmu-500", .data = &qcom_smmu_500_impl0_data }, { } };