Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8901261rwr; Thu, 11 May 2023 07:35:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Ng/XK8nv5iXG2pSQrcQf0m4a5PHl+CjBcmVSCNYO84dD1edBVNkoUsOZwaRL9AA3b9JOj X-Received: by 2002:a17:903:22c7:b0:1a6:71b1:a0b9 with SMTP id y7-20020a17090322c700b001a671b1a0b9mr26616004plg.47.1683815730304; Thu, 11 May 2023 07:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683815730; cv=none; d=google.com; s=arc-20160816; b=p8htAD3rF4e2Ep20Eauy+xljY2MM9XhQ1yXukqUMak2O301dYDbL3WvIngjUB0M2x9 RAKGDn+C4i83z85hdOGlXwB5eLy4091X/9P+FXcnNhXPow/MQfKzyAst2Uiq0rQHnFQZ 2njQpDQMWgWBUhtmfZID93Ex8f50/o9mTr7zg0cJD7tdxVWpuO9UnWEUEu2J04dAhu2E wz8RGGOcjqo5ATGULgiljkc/AU+YGlMc9hysT16pGXuZd4k7uTzVrgH0H5AsQ0uQEU11 m9TB2nONDxccQwV7+3v13W3iGaxFTOA3KG2G4hLd1r8VrebG6AYxkRltwAfsi9CB/do6 cxdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=EUMshOhJ/jCmOAXf0wSXeoJInJRRSEiHUd4QhJk0RRA=; b=sdvtqd+BfbTFc4QcR3YUFRfd47LGW+REF9rVeo80l2BgMD8Trc49y9Kz1hyKkb4yeO m+k1ZlRBgTEx/0s1NP/S7dg0W1ZbogLTr3W2h+NmYW0W4sl0ZUv5GlMOwydl5tNgtwdW MT2WMrP/WUdbharfUeQ1NdIwVasHzeiKnEvNOd9fMljuxT7isrJr9REkCVOL4F59OXDM 1VxduqvL9XxRxZuQ3jDwrhGe8SYfG4w3GpZlxO25OyAn94Ygkm9kxeijqMYSJQFqxiwZ tvKgJsv1WWFL/Py0i9GHG+l9wm6s82JAS9YVE23ZQnESctJCBZfz4OiwTtd349AEuOPc beAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=DBl+lObS; 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 d11-20020a170902cecb00b001aaeda99321si5818441plg.428.2023.05.11.07.35.17; Thu, 11 May 2023 07:35:30 -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=DBl+lObS; 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 S238453AbjEKO0c (ORCPT + 99 others); Thu, 11 May 2023 10:26:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237976AbjEKO0H (ORCPT ); Thu, 11 May 2023 10:26:07 -0400 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01E89E72; Thu, 11 May 2023 07:25:59 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3943fdc59f9so831550b6e.0; Thu, 11 May 2023 07:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683815158; x=1686407158; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=EUMshOhJ/jCmOAXf0wSXeoJInJRRSEiHUd4QhJk0RRA=; b=DBl+lObSFhApj2jZOTQrUAOrwRIAf4xArfq5YCzK0SszrY7+8QX++/DM1qlgt14Z4R qEopsANTv+hPnlePep+XdcNtxdNulvw4P5qNfXchJTTbUCd4MSP29UPZAWuBhn0ffsNe uhXM+8dw1jy9CJHT+Ql38XqBeVvflRY7TBo3m4f6CCuzjIKoMFKj/JS2HWrh7bdfKWuB jUFxRKvMdOMAQoKc0pJI563yjY1+zqSRmyDiRVXpx0HsB3WrccNCpvBiX+VEv4xtPcB7 UtSTAo8Q5KxkKiY0EdMzMlhESgiq2VDLZO4Z51EjGPKslAyjqv3+PuBbQGS8w2KckX/T 1POw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683815158; x=1686407158; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EUMshOhJ/jCmOAXf0wSXeoJInJRRSEiHUd4QhJk0RRA=; b=cmePXZSwbzSMfEkHOcuhmkK7qY0voJGx3ke0/hqLx7FVrXsM9Jr8mDSd+PEjVdf944 AzFWHkBUAhX6Qrx+Q+hH8MWWkUzb7I6Lo3+GGGtJDbUFEeoxZGnhQLG/op71J+64AbfK 9yprxpe3fVbqAP79xhDT7SkOE+ayMxSc99BlUNlNtZwjyIOvOjD+eUk3XbFqLZ1cN4WW 5RBGnbkmMAhj7CwCXdeoUjCnh8Pvmn7+ZS1ySutDW/iF45aAdwZyXprrrdolj+dG99rI iAOs9+yzNvcXTBHPf4vbVb/aA56GqpDEj1++RBG34RazBjkoTWgKLWiGU0TcaNNyt4fF antA== X-Gm-Message-State: AC+VfDyjChrB4ZWBHCFIlDl9K03HamgtrOhI80UnXMA6G5BZci66IqMW gns5wVPccCSqJVJu2J6Fy4UtUTztjPnoK8GAf+A= X-Received: by 2002:a05:6808:59:b0:38e:eaf:cf29 with SMTP id v25-20020a056808005900b0038e0eafcf29mr4889151oic.29.1683815157913; Thu, 11 May 2023 07:25:57 -0700 (PDT) MIME-Version: 1.0 References: <20230509163712.376117-1-robdclark@gmail.com> In-Reply-To: <20230509163712.376117-1-robdclark@gmail.com> From: Rob Clark Date: Thu, 11 May 2023 07:25:46 -0700 Message-ID: Subject: Re: [PATCH 1/2] iommu/arm-smmu-qcom: Fix missing adreno_smmu's 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 , "moderated list:ARM SMMU DRIVERS" , "open list:IOMMU SUBSYSTEM" , open list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Tue, May 9, 2023 at 9:37=E2=80=AFAM Rob Clark wrot= e: > > 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 chec= k into qcom_smmu_create") > Suggested-by: Lepton Wu > Signed-off-by: Rob Clark Any chance I could get an ack for landing this fix via msm-fixes? Broken per-process pgtables is kind of a serious regression.. BR, -R > --- > 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/a= rm/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 =3D { > /* > * Do not add any more qcom,SOC-smmu-500 entries to this list, unless th= ey 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[= ] =3D { > { .compatible =3D "qcom,msm8996-smmu-v2", .data =3D &msm8996_smmu= _data }, > { .compatible =3D "qcom,msm8998-smmu-v2", .data =3D &qcom_smmu_v2= _data }, > { .compatible =3D "qcom,qcm2290-smmu-500", .data =3D &qcom_smmu_5= 00_impl0_data }, > { .compatible =3D "qcom,qdu1000-smmu-500", .data =3D &qcom_smmu_5= 00_impl0_data }, > { .compatible =3D "qcom,sc7180-smmu-500", .data =3D &qcom_smmu_50= 0_impl0_data }, > + { .compatible =3D "qcom,sc7180-smmu-v2", .data =3D &qcom_smmu_v2_= data }, > { .compatible =3D "qcom,sc7280-smmu-500", .data =3D &qcom_smmu_50= 0_impl0_data }, > { .compatible =3D "qcom,sc8180x-smmu-500", .data =3D &qcom_smmu_5= 00_impl0_data }, > { .compatible =3D "qcom,sc8280xp-smmu-500", .data =3D &qcom_smmu_= 500_impl0_data }, > { .compatible =3D "qcom,sdm630-smmu-v2", .data =3D &qcom_smmu_v2_= data }, > { .compatible =3D "qcom,sdm845-smmu-v2", .data =3D &qcom_smmu_v2_= data }, > { .compatible =3D "qcom,sdm845-smmu-500", .data =3D &sdm845_smmu_= 500_data }, > { .compatible =3D "qcom,sm6115-smmu-500", .data =3D &qcom_smmu_50= 0_impl0_data}, > { .compatible =3D "qcom,sm6125-smmu-500", .data =3D &qcom_smmu_50= 0_impl0_data }, > { .compatible =3D "qcom,sm6350-smmu-v2", .data =3D &qcom_smmu_v2_= data }, > { .compatible =3D "qcom,sm6350-smmu-500", .data =3D &qcom_smmu_50= 0_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) >=3D 0) > return qcom_smmu_create(smmu, &qcom_smmu_500_impl= 0_data); > } > #endif > > match =3D 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 >