Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1102113lqo; Fri, 17 May 2024 10:39:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZYlgHc2ulOyemUk9VNb6mFNUU8ZBK4fXeYEk+PWm/K5p1qm0LonXUGtC/R7low2KciJPVSqHsvQ3xyEvOTM5NykiIjHjvlhRgxpksWA== X-Google-Smtp-Source: AGHT+IHCnHwsSm24qXX0DKnkUXpSkKovRNLkQGXLrDgG+NVyhJevzx2EF+lp+j4AIls3Q0KX3VuA X-Received: by 2002:a17:90b:4f46:b0:2b4:8eb6:895f with SMTP id 98e67ed59e1d1-2b6cc77458cmr20494260a91.16.1715967552091; Fri, 17 May 2024 10:39:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715967552; cv=pass; d=google.com; s=arc-20160816; b=e1bMDg+Gqcwtu/BDaKY+pPC8wSBiZ5TJ9GU1l9KqhfQ1jDRsG8B7bA8OiKmJvVDBZ9 yI39Zl/32+jrLswhb3tnZ9XUfeGwQHOYzWgnQE0PFWzBhLpxTGO8GBUTK+cIsPlVDzcl D+kHBL82Xa7S34zqGUOq/ABA4Qf1TOFfjfp/3raxKP8oXkBXj+qJ//pDPEdwuZ//pJ/T OkCZVUjMfDf8l+AQKTp/Ax/95ZJrkNPtMgypdcHZl290wDiQaxwPn8/B+O4qhFEDXYcX rPXFfgsQff+SaZErVBwuyYiFOiDbaiey6Uk0rTBlDy1+VPPzV7oUQGOIIKM6yxAE/J+N J1TA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=v49Dj+gbnQvzNsVpnYNnWqEQpkDjTigYZ0uaaGS+wzY=; fh=73mW89HnlKdlqMjQxFK47riwV+6xKT563B2PoKU26Ts=; b=RjQVCNC7eyI4FU0gyqzCunkR/Wi4HrgJcj0VPnHz1An06x/RHDC035ulsJwOI7yYPE CjKFIyrapTJ6lziJT9Tgmvb9bR2S5A0dWcb2UhCiKdVcM209sfdKHGu9dME2cSxJQ9P0 BT4P7xk69V8Icu5wpSam7ie32Gm1Z7gHbHbF2WehWtb+627FwiE/hvod9PZdRPit27h6 XGbPYu8rYnJ/0Lh/9zSkx1JoQ3YQJjtbeDGmBuX9U138x/m+OuECQW3u/+xhV9w4x9DG cHELB7s5lmnZrQ35Ez+36dh7tDC3ETekt9W/3HnQyzh5jra8IkYSdkq6ZGpZ3wiI+B0J v/iQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=nbX6VGzu; arc=pass (i=1 spf=pass spfdomain=flex--tjmercier.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-182428-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182428-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bb4c09cc28si3731235a91.33.2024.05.17.10.39.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 10:39:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182428-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=nbX6VGzu; arc=pass (i=1 spf=pass spfdomain=flex--tjmercier.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-182428-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182428-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 DE25FB2189C for ; Fri, 17 May 2024 17:38:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C856213E034; Fri, 17 May 2024 17:38:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="nbX6VGzu" Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1AC313E027 for ; Fri, 17 May 2024 17:38:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715967508; cv=none; b=jUAnMIp99ZEbZhqBGppP/JCXcR4bDITHD2nEYtZU99sXqglc25Yq4MBiUJkX1msTnALxhE8RevHaaorLmKVm/z/1Dn2pImGyv6J6ZBLf3kIvAYcGc/MOcqHC6DJiKnxe7XvVigtcLs8RDYm16/ybLHQpwtAZB0Uh01JpPAaPlFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715967508; c=relaxed/simple; bh=tFp0I1ixSIGjk0J3hzcghmx70zj6H8iFP/ZPi1pOWcY=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=iZ/rYVbmEF+bjqCMhBXGjyaNTJcNe5GqZjM14kHfOPWgDrN2KSBXswIsqFCsmJXi+ruiO7Nd4Ndxr/Q5nTiCFhYpmZpM2wD+qkzcbwE2a7kPPlkARY3RQwxGYPLKn4NG7CFl42VjqpGvqMLciu6S944c1ZtQ+qSA9EoSRue3sis= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--tjmercier.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=nbX6VGzu; arc=none smtp.client-ip=209.85.214.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--tjmercier.bounces.google.com Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-1ec3c838579so95175205ad.1 for ; Fri, 17 May 2024 10:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715967506; x=1716572306; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=v49Dj+gbnQvzNsVpnYNnWqEQpkDjTigYZ0uaaGS+wzY=; b=nbX6VGzu6M7fLXpPTMD/z0uB1Rt1XV2ptbiy3vMU6d4qcD04I96ZiA1nUsWWDl2JNy inEineAtgSc1IwwMxpKaJLYHRnWe/9agdqrr1ENq8xj9jssFhAseDIejwSStLtS7tHbz Fpwo+0cnFVLisWqfJ29m1afBWM/SEcSybBBPBc5UlvPJou02UamqPXoIfTcC4iwJRWya Vz25ydgAMMZAJtpZNk8CkbmVt+otldkxOWvBrhQ5N41upHbRpUaKJ4t598YStCP+iBxL NjjbfTH5d3eeiX8H6Rgm+wIfATRLZMdIJKmQPVenzUR+uptwi1Jsb/SlVBL3CjogPFmd FXKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715967506; x=1716572306; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=v49Dj+gbnQvzNsVpnYNnWqEQpkDjTigYZ0uaaGS+wzY=; b=sjbZws2N2IFSkwCniFs/dIggGhjP+WQ8xCnwLMUU1AAH1I4db0LD8rhUd/dTZC9PYk mjS7YaZzYIkb/oGfUWCBDFEB9WcernRz7aLJNM3Rh0y1xq6QnH7DZDRT7VnZiUoGRHIv HQmXbamqiM56maFB2D7xkiFudeZt5y0vS+iJBPWSoTIC+qD0gd3UiF5ma8x6dmhOWjGZ NXcxWMP8j1EY66MnQEsFc3TzAfsfRyDEE6MInGFr8S5P7GkPmRAt1F1TK3PGrvjL/KzU 6pp9gtmyfKe7OcuWO3/UvY7wUr3R5gOA8cB2K6dmJkTKpjdjN7voAFvkoXg7ccx4e3qs 8t1w== X-Forwarded-Encrypted: i=1; AJvYcCWwKKA7zru3cT7oh5kdxxmoA8lstmzAp61AXZ3Aa5Gq2nDHj2Ok0zCTaxc955CeAUacAANg+GE99knEgKCfBdQhG+ea0Qkqf6uGJGAW X-Gm-Message-State: AOJu0YxHkE/3Q0oR7EBNpQR1BI/Y1p+968qQvPP0IUIS23MLGeY2A5wl 38Zl9W2k10VL5e5cnCx4tC9PDAU94RAGlv8XiLDwAmIcaCRdJvULikxx960rZTrEJktpcPiZIC2 HElI1MJJ6gwA36A== X-Received: from tj-virt.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5683]) (user=tjmercier job=sendgmr) by 2002:a17:903:110d:b0:1ea:26bd:fd95 with SMTP id d9443c01a7336-1ef43f52f23mr5637345ad.11.1715967505898; Fri, 17 May 2024 10:38:25 -0700 (PDT) Date: Fri, 17 May 2024 17:38:03 +0000 In-Reply-To: <20240517173805.4181349-1-tjmercier@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240517173805.4181349-1-tjmercier@google.com> X-Mailer: git-send-email 2.45.0.rc1.225.g2a3ae87e7f-goog Message-ID: <20240517173805.4181349-2-tjmercier@google.com> Subject: [PATCH v3 2/2] doc: swiotlb: Document SWIOTLB areas parameter From: "T.J. Mercier" To: tjmercier@google.com, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Jonathan Corbet , Tianyu Lan Cc: iommu@lists.linux.dev, isaacmanjarres@google.com, robin.murphy@arm.com, will@kernel.org, joro@8bytes.org, Michael Kelley , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Commit 20347fca71a3 ("swiotlb: split up the global swiotlb lock") added the ability to specify the number of SWIOTLB areas, but boot-options.rst was not updated as part of that commit. Also adjust the swiotlb option syntax to clarify that force and noforce are mutually exclusive. Reported-by: Michael Kelley Fixes: 20347fca71a3 ("swiotlb: split up the global swiotlb lock") Signed-off-by: T.J. Mercier --- Documentation/arch/x86/x86_64/boot-options.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/arch/x86/x86_64/boot-options.rst b/Documentation/arch/x86/x86_64/boot-options.rst index a37139d1752f..d54e636f91f7 100644 --- a/Documentation/arch/x86/x86_64/boot-options.rst +++ b/Documentation/arch/x86/x86_64/boot-options.rst @@ -287,9 +287,11 @@ iommu options only relevant to the AMD GART hardware IOMMU: iommu options only relevant to the software bounce buffering (SWIOTLB) IOMMU implementation: - swiotlb=[,force,noforce] + swiotlb=[][,][, [force] | [noforce] ] Prereserve that many 2K slots for the software IO bounce buffering. + + Number of SWIOTLB areas with their own lock. Must be a power of 2. force Force all IO through the software TLB. Hardware IOMMU implementations can use SWIOTLB bounce buffering in -- 2.45.0.rc1.225.g2a3ae87e7f-goog