From patchwork Sat Feb 24 22:06:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joerg Roedel X-Patchwork-Id: 205956 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1335882dyb; Sat, 24 Feb 2024 14:07:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVDAttemElIdhefrHcFKD2RVhLTvpsBmk/W79OBzgvVeDc4A1AjTZ3gHrQ0qC2N2Qzsf6UjW5P5SX9Gw51DKuvm05jKQw== X-Google-Smtp-Source: AGHT+IFbdmNvIm9PVLe3TSG2CUM1H6NjmbP01tVPDrraHLVS2BzbyJhkLNl+x/S2xHnHiHP8mkqA X-Received: by 2002:a05:6e02:1aac:b0:365:4c03:763c with SMTP id l12-20020a056e021aac00b003654c03763cmr4811290ilv.2.1708812422825; Sat, 24 Feb 2024 14:07:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708812422; cv=pass; d=google.com; s=arc-20160816; b=gx79WqzPLP+9jUpfxHGPO85k8n9nPdc3N/r9jmiwl1elfjRL0ZZCb9cYyoz35Ra+QP f6lsDnCk6DiqM/qD0nBbGioeT2k1RKDxA3ZIFPPjEnM4ipeyD6a8i1CUw4qRTi2Hdyp2 qyprmku1ZZPzms3RvIb9ZxE5NfmvqIlbZgc1nAHJtzq4xQIvJ9+RttUIMrc/JMKabLZA SLHZu4RDADUp0/ssUGhjNETae3m9IkgP3ZHheeC5nuR7JF1v4k10i7owb0IE44yzVuHe beTbHKkah5yf2AWHF5oaENkxgcpmDz2gh0XrIjF0jQ+HbGJDYrcT2AW/+U6oij5iAEEr bjNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=4COjiB6jYAMffLiqgI3z0kYOT5hlSxkruAV0Gnvnmh4=; fh=KFF5Ysak9SZbsrhLr1VNssZneHrqrBEvJZOMqZE84j8=; b=dCVwbDTtK/5saitvaZWc+oAANbXBzAEnqwDtg6Lw/6Yyqr1Ycnl+zkDhaSPTIjZ+6h f5bwf7CWMauhzBDeM8PEbooyRbLwVWZ7wMKAVmeZP0WRrbBYAtC2F7Z7EHLWi6rh+dzn IsvxHlM3f8ANF1+J+rVodQao1m5UjhNMeLOSgcDyWshdsp+KT5bs1dd8Bw+HKTPbfkP/ TDfJoQz9jMv2cX8WBFJaGFugnv21LA5SA0WV4Rhcj1C2lSjH7juID75OdklvrTp1W9rM nN6cfZZJdZTtQDsx4fJ/SNeoS64Ac7f03TSg8lOt/oRKxRDbQWEZQh+ld78e4ZaeVo6s OOCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b=ROllbFbJ; arc=pass (i=1 spf=pass spfdomain=8bytes.org dkim=pass dkdomain=8bytes.org); spf=pass (google.com: domain of linux-kernel+bounces-79884-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79884-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v4-20020a632f04000000b005dc0e9aefeasi1378188pgv.809.2024.02.24.14.07.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 14:07:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79884-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b=ROllbFbJ; arc=pass (i=1 spf=pass spfdomain=8bytes.org dkim=pass dkdomain=8bytes.org); spf=pass (google.com: domain of linux-kernel+bounces-79884-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79884-ouuuleilei=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A04B4B21487 for ; Sat, 24 Feb 2024 22:06:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A99814D9F5; Sat, 24 Feb 2024 22:06:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=8bytes.org header.i=@8bytes.org header.b="ROllbFbJ" Received: from mail.8bytes.org (mail.8bytes.org [85.214.250.239]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F6B84CDFB for ; Sat, 24 Feb 2024 22:06:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.250.239 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708812397; cv=none; b=ghfPqA8kZor5z1zlx1LQexJgIov/BlxZ9yVsHydsW8BsoqJpQTYvqa2yTUuugjUHHG1BiiaexXYRQRtdjh1eeT4l+yXAcFP79aEOZdr55y56qdnNTl77dGzGJUGBpxJ4WmXWljyj4SHssP8b7drTwK2IT13MDpAxQLcZNhEglDQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708812397; c=relaxed/simple; bh=ieBA33WGs4Kt+fmMNbz2jVA32D/Ax2LrmYRtNByr9rc=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=NFz/wzCEwZ5XxFmXC8OJ1F1LvAvwXW3daHwVW61m8DB+UXS/YlnvOuxibjWXeRYhduGFr1pwESiV+9XPL754mqrsykMyM5WtwWOvM9O9s3wD9uH21OB9w2ZLCuuQiTnuFQscb6hhtf2XlLSF5zXXzrffxSmqNc1hl/zf8iiuZEE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=8bytes.org; spf=pass smtp.mailfrom=8bytes.org; dkim=pass (2048-bit key) header.d=8bytes.org header.i=@8bytes.org header.b=ROllbFbJ; arc=none smtp.client-ip=85.214.250.239 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=8bytes.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=8bytes.org Received: from 8bytes.org (p4ffe0c3c.dip0.t-ipconnect.de [79.254.12.60]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.8bytes.org (Postfix) with ESMTPSA id 829C61C62A2; Sat, 24 Feb 2024 23:06:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=8bytes.org; s=default; t=1708812387; bh=ieBA33WGs4Kt+fmMNbz2jVA32D/Ax2LrmYRtNByr9rc=; h=Date:From:To:Cc:Subject:From; b=ROllbFbJ35aqzbPD3ZW7uSn6QnQ1C1I5d8buXPTOJjwFspYZXSWcIVeMKI61xbj+8 aik7e6UclKzAJ64zFvsnN2Ul7BGwO5v4LEkaikSky3rQolXn6s8JOAH4mo41Q2JN8q lx7/4yky/uDPoA6Uc9oRTTr24qkyJOOMs/nE7/IYTBnKnaaS8HxKHG1aEmyaOCiPty xfpJXbVIkLKnAunZUzoKt7Wyk2YcqSxwO0+9O0W/FhPSdLde6g/jRCRa77d2/kLaTp GDY2N3Y3O6uOk0YsYb1oH+089a/859Mhs82UC3BZXU+JT1xeiJPw//DiU9gABN90pm AqmtI4UaBEFEQ== Date: Sat, 24 Feb 2024 23:06:26 +0100 From: Joerg Roedel To: Linus Torvalds Cc: Will Deacon , linux-kernel@vger.kernel.org, iommu@lists.linux.dev Subject: [git pull] IOMMU Fixes for Linux v6.8-rc5 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791819694983149143 X-GMAIL-MSGID: 1791819694983149143 Hi Linus, The following changes since commit b401b621758e46812da61fa58a67c3fd8d91de0d: Linux 6.8-rc5 (2024-02-18 12:56:25 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v6.8-rc5 for you to fetch changes up to 65d4418c5002ec5b0e529455bf4152fd43459079: iommu/sva: Restore SVA handle sharing (2024-02-23 16:45:05 +0100) ---------------------------------------------------------------- IOMMU Fixes for Linux v6.8-rc5 Including: - Intel VT-d fixes for nested domain handling: - Cache invalidation for changes in a parent domain - Dirty tracking setting for parent and nested domains - Fix a constant-out-of-range warning - ARM SMMU fixes: - Fix CD allocation from atomic context when using SVA with SMMUv3 - Revert the conversion of SMMUv2 to domain_alloc_paging(), as it breaks the boot for Qualcomm MSM8996 devices - Restore SVA handle sharing in core code as it turned out there are still drivers relying on it ---------------------------------------------------------------- Arnd Bergmann (1): iommu/vt-d: Fix constant-out-of-range warning Dmitry Baryshkov (1): Revert "iommu/arm-smmu: Convert to domain_alloc_paging()" Jason Gunthorpe (2): iommu/arm-smmu-v3: Do not use GFP_KERNEL under as spinlock iommu/sva: Restore SVA handle sharing Joerg Roedel (1): Merge tag 'arm-smmu-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux into iommu/fixes Yi Liu (9): iommu/vt-d: Track nested domains in parent iommu/vt-d: Add __iommu_flush_iotlb_psi() iommu/vt-d: Add missing iotlb flush for parent domain iommu/vt-d: Update iotlb in nested domain attach iommu/vt-d: Add missing device iotlb flush for parent domain iommu/vt-d: Remove domain parameter for intel_pasid_setup_dirty_tracking() iommu/vt-d: Wrap the dirty tracking loop to be a helper iommu/vt-d: Add missing dirty tracking set for parent domain iommu/vt-d: Set SSADE when attaching to a parent with dirty tracking drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 38 ++--- drivers/iommu/arm/arm-smmu/arm-smmu.c | 17 +- drivers/iommu/intel/iommu.c | 214 ++++++++++++++++++------ drivers/iommu/intel/iommu.h | 7 + drivers/iommu/intel/nested.c | 16 +- drivers/iommu/intel/pasid.c | 5 +- drivers/iommu/intel/pasid.h | 1 - drivers/iommu/iommu-sva.c | 17 ++ include/linux/iommu.h | 3 + 9 files changed, 225 insertions(+), 93 deletions(-) Please pull. Thanks, Joerg