From patchwork Fri Oct 13 12:02:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 152559 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1837246vqb; Fri, 13 Oct 2023 05:02:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGtvwNMpUAtww1oqwsEGj6C3OTIV2nzUkL1TkeY9Qcw+R3IJXRSmBxGlEpNfMq1yu7DKCiW X-Received: by 2002:a17:90b:17c3:b0:27c:f653:37b2 with SMTP id me3-20020a17090b17c300b0027cf65337b2mr9017545pjb.1.1697198576040; Fri, 13 Oct 2023 05:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697198576; cv=none; d=google.com; s=arc-20160816; b=sDdONT0R3D4rwYgJta0dHU4dgcez3/CCTWHXMARWRu37P++qoIu+/k2uwg61HQP2zZ y+rFx0EvvglPLZSkRD7c4e6TtmYh5mTWZaSd52fZYzn47TNAziSKau1dOULWp5ayH/C6 SUx2Z2R+7BABhxfnupQduIIAn/4qQ1PfWEvxoDtHykRX9SImWnXKPv/9EuXccAMYl3e9 7fxztX6z7Ez5GwVZmtfWGdnvfhic6fAC2Fo/oChWrM7/jQCDShfCFxpXvZmSJ0ayZ50f NCthsxoVUR4iIUmqfKNeMVahXdtTRE0YYXpGCRUlZC/g65DejAQiSxJKfqKE3W4+xNFb US/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=ArmxdCXy7GGqWoAfr6pJqdVWU80Qi+iKol+DVuzSXtk=; fh=4Fsdo24G1vMEh+9/Ii7q3u8Bdx+ETdeoN5e0WDsuJio=; b=W9DhBES+58nSvuFx8EQ1qas3g49d4Swb0bf9exU/XM1Q3DZ+PZ7eQZTbFDldstTSPR OcemIg6wf0Ueg5z4ZIQH0nHefMbrUxzGPYlF84+1KWwULrtL4UO/enuQQZycRKG5lbM3 y7KHKdN7CvpRI26yEKoLknaTUAwRcYGCbFzOZV+cDu3+cgy61pokAxNp+put+2JwSV99 xOxYB1kDiar/EcNGGo27Z6xn3tHpCUIWX/GZHX0+74OVCqHSIuFXVDGS/DhnIvF/pHbQ AjDluts5uUtWzrh1+IVj3e3U22W41pGvAtabXAzj8wtc7zEZeVB/USlbNV4uk4F4gYKY ujXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="aTf+a/2o"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id kk5-20020a17090b4a0500b00277816efefasi4818808pjb.106.2023.10.13.05.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 05:02:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="aTf+a/2o"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9741783B3608; Fri, 13 Oct 2023 05:02:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231381AbjJMMCo (ORCPT + 19 others); Fri, 13 Oct 2023 08:02:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231543AbjJMMCb (ORCPT ); Fri, 13 Oct 2023 08:02:31 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 157C7181 for ; Fri, 13 Oct 2023 05:02:11 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B202C433C9; Fri, 13 Oct 2023 12:02:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697198530; bh=0q3ULsleNSG+Qgj9yUvTUCOAxNWyc2mBujTtoK7Xw6E=; h=Date:From:To:Cc:Subject:From; b=aTf+a/2ouWrbTA8PUoXwmI2tL3xdsJj/sMNkMNLsJgq53h3v7tOi65JwmbQBrGev3 RyFpsh6HV1Hfpj/VWBe+PrtzoDpg22hxbjqbwmFCY9IukIKDKl1qijGto4h7BUmJVb ElNAIT6Leo9WfBVtCCieBJStxzawA5m4k4hgfO7H7/p3mL9tR/bftrKMEWQXAzz9X5 UTrXU/T+wguJ2TYDQyYEuUs40MYnsb5sRyhDu9Kktlm8hS9lwe1cJKvKx7Z4WthCsK DrefVWjR0AshqwdPQ8ikWdnEU5UUtk3uk1CSDQX5iHtHOcqUww2xtA0K0V74IcFJXW hxMUCc5EsnxRA== Date: Fri, 13 Oct 2023 13:02:06 +0100 From: Will Deacon To: joro@8bytes.org Cc: iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robin.murphy@arm.com, kernel-team@android.com Subject: [GIT PULL] iommu/arm-smmu: Updates for 6.7 Message-ID: <20231013120205.GA13843@willie-the-truck> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 13 Oct 2023 05:02:53 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779641694074485121 X-GMAIL-MSGID: 1779641694074485121 Hi Joerg, Please pull these Arm SMMU updates for 6.7. Usual summary in the tag, but the bulk of this is refactoring to the way in which the SMMUv3 driver handles context descriptors in preparation for implementing the '->set_dev_pasid()' operation for non-SVA domains. And of course there's the obligatory DT updates for Qualcomm platforms. Cheers, Will --->8 The following changes since commit d5afb4b47e13161b3f33904d45110f9e6463bad6: iommu/arm-smmu-v3: Fix soft lockup triggered by arm_smmu_mm_invalidate_range (2023-09-22 11:15:42 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git tags/arm-smmu-updates for you to fetch changes up to 548650921e617c7909c7f3229067e58ad3cb8088: Merge branch 'for-joerg/arm-smmu/bindings' into for-joerg/arm-smmu/updates (2023-10-13 11:43:12 +0100) ---------------------------------------------------------------- Arm SMMU updates for 6.7 - Device-tree binding update: * Add qcom,sm7150-smmu-v2 for Adreno on SM7150 SoC - SMMUv2: * Support for Qualcomm SDM670 (MDSS) and SM7150 SoCs - SMMUv3: * Large refactoring of the context descriptor code to move the CD table into the master, paving the way for '->set_dev_pasid()' support on non-SVA domains * Minor cleanups to the SVA code ---------------------------------------------------------------- Danila Tikhonov (2): dt-bindings: arm-smmu: Add SM7150 GPU SMMUv2 iommu/arm-smmu-qcom: Add SM7150 SMMUv2 Michael Shavit (11): iommu/arm-smmu-v3: Move ctx_desc out of s1_cfg iommu/arm-smmu-v3: Replace s1_cfg with cdtab_cfg iommu/arm-smmu-v3: Encapsulate ctx_desc_cfg init in alloc_cd_tables iommu/arm-smmu-v3: move stall_enabled to the cd table iommu/arm-smmu-v3: Refactor write_ctx_desc iommu/arm-smmu-v3: Move CD table to arm_smmu_master iommu/arm-smmu-v3: Cleanup arm_smmu_domain_finalise iommu/arm-smmu-v3: Update comment about STE liveness iommu/arm-smmu-v3: Rename cdcfg to cd_table iommu/arm-smmu-v3-sva: Remove unused iommu_sva handle iommu/arm-smmu-v3-sva: Remove bond refcount Richard Acayan (1): iommu/arm-smmu-qcom: Add SDM670 MDSS compatible Will Deacon (1): Merge branch 'for-joerg/arm-smmu/bindings' into for-joerg/arm-smmu/updates .../devicetree/bindings/iommu/arm,smmu.yaml | 2 + drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 71 +++--- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 253 ++++++++++----------- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 17 +- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 2 + 5 files changed, 178 insertions(+), 167 deletions(-)