From patchwork Thu Feb 29 18:15:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 208478 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp589206dyb; Thu, 29 Feb 2024 10:16:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW9X8QmlWnp41TxpG/NP3RwUG+r6DQvIALR50Jv3sJwxdM2whcUxKiKwO4YxDU8ZunaCJbnkAUUVHA/O4g92tPkdjaFyA== X-Google-Smtp-Source: AGHT+IFlSm7ZILGELCcDLl3J6mQzk9I0cZsmduRpCfZKV9cB6M53fKAMJjuWu0STUDQbCTzgTamf X-Received: by 2002:a05:6359:45a8:b0:17b:6cc5:f525 with SMTP id no40-20020a05635945a800b0017b6cc5f525mr3564178rwb.6.1709230589270; Thu, 29 Feb 2024 10:16:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709230589; cv=pass; d=google.com; s=arc-20160816; b=YGGxRJCqOk+DYm8Hnyru1EvBTS6DM//XKZowQJFj/SxRXYcTybmgzGpbiRpgPlJxwJ uY2rQdAPyJYR7SOj0/yQ4Ny4ruOTcZobFegnXr34gabSgzZggMIrmZQ9KCsumrKha9Bj fU9NfsvAOy70SXZynev5ymmldJm/U3GspFqf1gfwslGgsw3JWqq4g9fBxUxm9EdmPCe0 jD1P/17RiyuaClgFakbPjZEWZ9ZWwLqqW5o6tOdGrNncKdk+eQFgUt6KfjcWzzb2jqvI lSbY5zWRv+xIMSyMBMVGbHiSE7Pr9wja0hfQ0Hg66QLN3yKmRvj8KxCreHGBvsIJ8s0B SGRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=z08zdKrJtNAsEqreynoVwlosZAfEl6MJrkHOJPEPCoI=; fh=4Fsdo24G1vMEh+9/Ii7q3u8Bdx+ETdeoN5e0WDsuJio=; b=L3uEv3LUol9n4PlKKZ1rlsYEBiir33zyp/Ty+RmJVl3SE0Dgam3bo32hTVlh0Tuf8X luLcdSLux0veUNlBigl9igfCHKL2pKzsQ4PaRQ+hql84ucztEqEekGGLtwyX1f+1hAWc Mk4PpoOC4gg7jINWe5CdYL0XQNTVtBvLbPBdIMugqHTdU7NAazPjTHzqX2CQBgz6hobn t/IPQEUYfhC69Vrvv3VFo3kTT3k5p2HQ6b7RP3YfbFsYPayqVRksdwRoLiI3iOIVf4g7 vL+DMMUG/CmEsDswndSDeEcITdzxfCt42kAObGFQFylWuCGL99jRsE9dcVig7ycV2Mxc L2Hg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tx4eeOWr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87262-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87262-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gw2-20020a0562140f0200b0068fcc6a4593si1828160qvb.38.2024.02.29.10.16.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 10:16:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87262-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tx4eeOWr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87262-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87262-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F33271C22C11 for ; Thu, 29 Feb 2024 18:16:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B266B130AC1; Thu, 29 Feb 2024 18:15:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Tx4eeOWr" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0107F78295; Thu, 29 Feb 2024 18:15:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709230539; cv=none; b=KWXllLjBq+6OvxXxKn2xBaerBEUQs+w2MEdj5KLy+pCSzkNZfsorWrHkPydFSwoOqu5CH+XbEytXIM9g1FNHi4cT/uKa4JDBI8J08Eu5rnH8MxMxGCdhjAReRr5AjAF+g3lq1RD3EQXefaE8g36VstxrILI5PYl6ITrOtVmBOl0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709230539; c=relaxed/simple; bh=jfp9NM/oduYBlfC4B2HixtczjJ4MUMSRLdM3FJ9Nqzs=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=F+sAprn/c1WurKVC6MM/L6EN2z65Xl1Nn9/exRNWXKE2JkwdBIxeN6+LN6TZgFd7rm0+uKnS3g5ok9BrIaKtBZupVlv1aEY5JJcp/+cyObF22QUzV5NReGHlxT7wIiHIXCMFbdEXluPqqXjU4ELsBovI2LWipfrREfKPv49INOw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Tx4eeOWr; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B092C433F1; Thu, 29 Feb 2024 18:15:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709230538; bh=jfp9NM/oduYBlfC4B2HixtczjJ4MUMSRLdM3FJ9Nqzs=; h=Date:From:To:Cc:Subject:From; b=Tx4eeOWrXzfFXq6toThB8Vyuwvfmd+EM9PCvpnRMW5eO1/JDZpz6XJLoWCKiClBNM Iduyzi4Gi0oEhNWB/+DUVfQbEwS8TKh/A7tqCQZAe5w6UUUq/+xBKMh0fxqGsFJ9Lo 77QGOlMJNbP35VyTp3Yw+V5/UQelXGiIQDtVs2aDlVhbAxsSzLthUztuYKURDFRwdP oQZ0ShPAOoyVPeLXLVETnRx1gOQ1RV/pIXWazGywROnHx9eo8/rKVzDggKfvfPb6/H acmjNawC8+koALPgkE4Rz5rkuF16irQ7GJHQNQ4S8UI7UxFlNMsyEIg0LNSBYGjR3I C+GaefOSe+2BQ== Date: Thu, 29 Feb 2024 18:15:33 +0000 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.9 Message-ID: <20240229181533.GA16854@willie-the-truck> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792258174347502714 X-GMAIL-MSGID: 1792258174347502714 Hi Joerg, Please pull these Arm SMMU updates for 6.9. There's the usual crop of device-tree changes, but the meat of the work is part one of the SMMUv3 IOMMUFD-enabling work from Jason. The branch is based on the fixes tag I sent you before and there's the usual brief summary in the tag. Cheers, Will --->8 The following changes since commit b5bf7778b722105d7a04b1d51e884497b542638b: iommu/arm-smmu-v3: Do not use GFP_KERNEL under as spinlock (2024-02-22 12:34:11 +0000) 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 327e10b47ae99f76ac53f0b8b73a0539f390d2d2: iommu/arm-smmu-v3: Convert to domain_alloc_paging() (2024-02-29 15:12:23 +0000) ---------------------------------------------------------------- Arm SMMU updates for 6.9 - Device-tree binding updates for a bunch of Qualcomm SoCs - SMMUv2: * Support for Qualcomm X1E80100 MDSS - SMMUv3: * Significant rework of the driver's STE manipulation and domain handling code. This is the initial part of a larger scale rework aiming to improve the driver's implementation of the IOMMU API in preparation for hooking up IOMMUFD support. ---------------------------------------------------------------- Abel Vesa (1): iommu/arm-smmu-qcom: Add X1E80100 MDSS compatible Jason Gunthorpe (16): iommu/arm-smmu-v3: Make STE programming independent of the callers iommu/arm-smmu-v3: Consolidate the STE generation for abort/bypass iommu/arm-smmu-v3: Move the STE generation for S1 and S2 domains into functions iommu/arm-smmu-v3: Build the whole STE in arm_smmu_make_s2_domain_ste() iommu/arm-smmu-v3: Hold arm_smmu_asid_lock during all of attach_dev iommu/arm-smmu-v3: Compute the STE only once for each master iommu/arm-smmu-v3: Do not change the STE twice during arm_smmu_attach_dev() iommu/arm-smmu-v3: Put writing the context descriptor in the right order iommu/arm-smmu-v3: Pass smmu_domain to arm_enable/disable_ats() iommu/arm-smmu-v3: Remove arm_smmu_master->domain iommu/arm-smmu-v3: Check that the RID domain is S1 in SVA iommu/arm-smmu-v3: Add a global static IDENTITY domain iommu/arm-smmu-v3: Add a global static BLOCKED domain iommu/arm-smmu-v3: Use the identity/blocked domain during release iommu/arm-smmu-v3: Pass arm_smmu_domain and arm_smmu_device to finalize iommu/arm-smmu-v3: Convert to domain_alloc_paging() Konrad Dybcio (1): dt-bindings: arm-smmu: Add QCM2290 GPU SMMU Neil Armstrong (2): dt-bindings: arm-smmu: Fix SM8[45]50 GPU SMMU 'if' condition dt-bindings: arm-smmu: Document SM8650 GPU SMMU Will Deacon (1): Merge branch 'for-joerg/arm-smmu/bindings' into for-joerg/arm-smmu/updates .../devicetree/bindings/iommu/arm,smmu.yaml | 20 +- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 8 +- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 730 ++++++++++++++------- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 4 - drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 1 + 5 files changed, 515 insertions(+), 248 deletions(-)