Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6068376rwr; Tue, 9 May 2023 09:47:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7iSRtQ57rvNMTNAwyYv329n/liMabyepgzzfyrSIzIju0aGanxjtnxR78XRxKu4RJCv7U7 X-Received: by 2002:a05:6a00:ccb:b0:63d:315f:560f with SMTP id b11-20020a056a000ccb00b0063d315f560fmr21192383pfv.13.1683650819991; Tue, 09 May 2023 09:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683650819; cv=none; d=google.com; s=arc-20160816; b=0LfdO8/mHYjyRBOeVNRg6UHlQmerFdM4q8UMtbLjmLmnl0U3DMbFPITtrqilIWobXq jlPr6QBiqe96zAqcQXHxKHFR6bEQ8r9x0KQ2bUubTnujgWBPmTXq4uDKCe45cz/UY++A DNUQ9PCXCSUG/0QLlsbJWWV5fOY8ee53cHR9uCj/gG1Xg+fr6FgZBq8rA7L8pvpKfjJw z/+VGyNJkVENuFLGbxeTHONDpPG/ZbBrO+ZK3UTA/s3tiGKavoABfeX8LRDKFFvwZ7Hf 131SP1CzOyt2NfKBTWS5Mw2KXIhyrQa3u1glIss0/wxpnS1JGxoyhs1nM8GZfDxl9dG2 DQVQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=TaDF8zy4btueLBSrY9dwMuQHd4N85rvewa4k8qv4+LA=; b=pcd/ZHE5L4Fb+l5SEq+ewR70+ZGBr5udZuUyZz1PznUb/tWHjg4ahRq8nURSWEPJ0/ x3eQKIRwvCnDi0tLInGcVW7J5x6f6Nwr9Bx8aDhEk5zSiUWKbjcGrr9CnbK7RHJIrjqi Dxna4FJJ6tRz0lkytuqh4ZDdLj9Dbjwp4InoWz07TH8RlFkFEhK3sqmG0Bg4wUeDyjby yn5cX3LPgeHupKV+nyONm4PmFOFcexzvZ7I/qB3pXVZcHDRJq/C/c8CED+tDn3XRQ3bd MnuycN79V+h5BD0KakxtUNFRd/64294VRcIJ+/tbdIgmDXAI0EqYiIvV6LERwIiQiVjL XyJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=j14RYjsA; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020aa797a1000000b0063b7c4435bcsi2946541pfq.50.2023.05.09.09.46.45; Tue, 09 May 2023 09:46:59 -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=@gmail.com header.s=20221208 header.b=j14RYjsA; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232299AbjEIQhX (ORCPT + 99 others); Tue, 9 May 2023 12:37:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231228AbjEIQhU (ORCPT ); Tue, 9 May 2023 12:37:20 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7507240C9; Tue, 9 May 2023 09:37:18 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-643bb9cdd6eso3660452b3a.1; Tue, 09 May 2023 09:37:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683650238; x=1686242238; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=TaDF8zy4btueLBSrY9dwMuQHd4N85rvewa4k8qv4+LA=; b=j14RYjsAZP/vRadBipwj+/IsyNXcsgsIAhyw919XbStBA4kce3hQvKJ+cfxL4B2Fyk xDslF7jbK8TYBzo3nv3M5tNKeJjYsIhGrvrv0UPaY8Lqtwx8ww8oFWZxQ5STMCvjOzoo FdS2t9RdlZKcaR+m5JNWNFHI3+/DXPWurM/sx0TXEvdgNiU7+V1XnZ3pLh50ogSibyKq OP+GfeN+rwBzfoUUSKlt5Frrt2rm4uGh7guDSGSq/qLjrguJp2+RNuCGEYuoQXZQ+t2q im4ETpEyj3JKyhI6ChXApXKixbt+M5tce/JMfZdqk/T60jKy6V59XI1JaDR0WK9eW9N0 UtvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683650238; x=1686242238; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TaDF8zy4btueLBSrY9dwMuQHd4N85rvewa4k8qv4+LA=; b=CqQfVHzJi3V1zFCGYq3Y8vsBvapDrFD+i0hsp1y5AjYo2FLFTO0Ff9/U5SuEKHZuwj EFmjuZc135YCrvibNXUcR47MeilTv6hOZNGuv2DePl6gjdP0WzCSFtHafL913QGlFsca vLCMBhb+YMuSA3vfrjxDXl7aP5qJwIHtfMpAyin8mpVXmeS9akL1RQKyGxspzJz7aRfn rA94xJl6ahobdrLKL5Jy5TWVo9xx7sIQhidch8F6e66wExD6eOlQkwSmLqvssV2tjGGK mFSZttcj/UoDfArt4g7VZG9pamYc0hjtJSwePZq5FqdeFI+ycQ1FjUouYgr312GadQsW cyoQ== X-Gm-Message-State: AC+VfDzwVdelED4vy8/dgXT9hIUiw60rNhehCms183mmc4N0Cuup5aHX RnIf1BWxRThKvxsDu8i5a9s= X-Received: by 2002:a05:6a21:6d88:b0:f2:fd1e:efc9 with SMTP id wl8-20020a056a216d8800b000f2fd1eefc9mr19258556pzb.5.1683650237508; Tue, 09 May 2023 09:37:17 -0700 (PDT) Received: from localhost ([2a00:79e1:abd:4a00:61b:48ed:72ab:435b]) by smtp.gmail.com with ESMTPSA id y9-20020a63de49000000b0051b7bcb6162sm1547873pgi.81.2023.05.09.09.37.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 May 2023 09:37:17 -0700 (PDT) From: Rob Clark To: dri-devel@lists.freedesktop.org, iommu@lists.linux-foundation.org Cc: freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Dmitry Baryshkov , Rob Clark , Lepton Wu , Will Deacon , Robin Murphy , Joerg Roedel , Sai Prakash Ranjan , Konrad Dybcio , Bjorn Andersson , Elliot Berman , Marijn Suijten , Emma Anholt , linux-arm-kernel@lists.infradead.org (moderated list:ARM SMMU DRIVERS), iommu@lists.linux.dev (open list:IOMMU SUBSYSTEM), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/2] iommu/arm-smmu-qcom: Fix missing adreno_smmu's Date: Tue, 9 May 2023 09:37:10 -0700 Message-Id: <20230509163712.376117-1-robdclark@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Rob Clark When the special handling of qcom,adreno-smmu was moved into qcom_smmu_create(), it was overlooked that we didn't have all the required entries in qcom_smmu_impl_of_match. So we stopped getting adreno_smmu_priv on sc7180, breaking per-process pgtables. Fixes: 30b912a03d91 ("iommu/arm-smmu-qcom: Move the qcom,adreno-smmu check into qcom_smmu_create") Suggested-by: Lepton Wu Signed-off-by: Rob Clark --- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c index d1b296b95c86..760d9c43dbd2 100644 --- a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c +++ b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c @@ -496,20 +496,21 @@ static const struct qcom_smmu_match_data qcom_smmu_500_impl0_data = { /* * 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 }, { .compatible = "qcom,qcm2290-smmu-500", .data = &qcom_smmu_500_impl0_data }, { .compatible = "qcom,qdu1000-smmu-500", .data = &qcom_smmu_500_impl0_data }, { .compatible = "qcom,sc7180-smmu-500", .data = &qcom_smmu_500_impl0_data }, + { .compatible = "qcom,sc7180-smmu-v2", .data = &qcom_smmu_v2_data }, { .compatible = "qcom,sc7280-smmu-500", .data = &qcom_smmu_500_impl0_data }, { .compatible = "qcom,sc8180x-smmu-500", .data = &qcom_smmu_500_impl0_data }, { .compatible = "qcom,sc8280xp-smmu-500", .data = &qcom_smmu_500_impl0_data }, { .compatible = "qcom,sdm630-smmu-v2", .data = &qcom_smmu_v2_data }, { .compatible = "qcom,sdm845-smmu-v2", .data = &qcom_smmu_v2_data }, { .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 }, @@ -540,12 +541,14 @@ struct arm_smmu_device *qcom_smmu_impl_init(struct arm_smmu_device *smmu) /* Match platform for ACPI boot */ if (acpi_match_platform_list(qcom_acpi_platlist) >= 0) return qcom_smmu_create(smmu, &qcom_smmu_500_impl0_data); } #endif match = of_match_node(qcom_smmu_impl_of_match, np); if (match) return qcom_smmu_create(smmu, match->data); + WARN_ON(of_device_is_compatible(np, "qcom,adreno-smmu")); + return smmu; } -- 2.40.1