Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4596184rwr; Mon, 8 May 2023 09:47:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7v1GqIieEHwg5x9JSijQZHuDN5ynr7JzEdAstWlHaWhuuNEJg/vd/kgT7RJxnyjOVL5d2b X-Received: by 2002:a05:6a21:594:b0:f0:a92a:5088 with SMTP id lw20-20020a056a21059400b000f0a92a5088mr11267173pzb.44.1683564438864; Mon, 08 May 2023 09:47:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683564438; cv=none; d=google.com; s=arc-20160816; b=x410UoidNtKvtkacObTvlbzMBdjCmeM/b3xNnEdK40O/8fknfTVJTVxX2PSA34rKfJ 4Cm3hg5X/IhIBbBdi0S2WxD3GLvr6J+9C/Qe3iVkO9lekyFSlDJCox8JoVOmnxrRdYRz td4xxyDanpTzwPSRDaLRzk3cOYRGhHX4E4/BWf2kU4p5HhGBIC4gDkKDOuqNDJkpjnaD it+QOUDv1ippSDFFu9MROI9VhnUAfhqaZ/1NuNcAmu+TYOMGfgoGUdx4KfxUt5OipYLH laXu7RrnzPbyvi9n8ndFoJVrXaVGzaxXIcL6+Cp2RZqRfrXLGxjD9Tx8KR+z7wo+d3pI 6GpA== 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=QR27B1v/nsW7Z6zgeZwIrFb522oCHrgCRwmb//arvhc=; b=pu5+hLtQwkIszWOvVSHIG7Qp0vJAd6Rv7xAZok3xvO/gzqMdQLg6FHFtkHFKRYxL3l QkZmBDsw1Mp14Htr6QxBlx//v1q3cOsog73x49ojdN8BE27fdIeOnV8Jv4HRQe8wTFkd 2r+hiS+wINF18zKavIH2SOuoBDrFI+fuJAv0PThXOffzN5LYge5E1/xurgvKBaaLj7/r wiqoY3N4GMOIJXtMSFjd+hCCbMGb0faXTScnJ5J5i5/NKejy77Z37+dl347dsS/NB2/d sGSiQzGvqSMd2gwHHhKOTRb3Gn8Kmrgv2fmYJ73+fKb2AzeZcaqhopQ/C0i9+R6kwN9M RNew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=EpcLZ1oQ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v29-20020aa799dd000000b0063d270ccc12si294962pfi.180.2023.05.08.09.47.03; Mon, 08 May 2023 09:47:18 -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=@linux-foundation.org header.s=google header.b=EpcLZ1oQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234215AbjEHQmr (ORCPT + 99 others); Mon, 8 May 2023 12:42:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234426AbjEHQmk (ORCPT ); Mon, 8 May 2023 12:42:40 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 580DF6E9E for ; Mon, 8 May 2023 09:42:38 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-50bcb4a81ceso8688250a12.2 for ; Mon, 08 May 2023 09:42:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1683564156; x=1686156156; 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=QR27B1v/nsW7Z6zgeZwIrFb522oCHrgCRwmb//arvhc=; b=EpcLZ1oQJ8+aC840qc2t2HuiudFqTZCzbaYTdFJ7JBgQ1kNQfz852Ia2VJFQUgSEu6 hCfFehWELMbroXf50TOnh1EKtJPnAuRSynrXDR8W91NXzDHziU36RefH7JPh4JH9Nz8x GqOvXpT1bSuiR11UuG3kFvE8U7MJDEWngNqpI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683564156; x=1686156156; 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=QR27B1v/nsW7Z6zgeZwIrFb522oCHrgCRwmb//arvhc=; b=apT//QWd5lsCaCcu3LtbFdgx0PfrV7V+ywbDxFx+SvVUf/hMIdsPqRJfUysBYfJ8QI pVTEINDxlIRCIBA7nc6ngVX96ieZATNpXY/2P2m+v4GoxPfHMkjvTBG/kM201V/+9ZHI +rX/5T8hV1/thVSFVqHX1mk3ZOChNbBSZ+/w+Zo+W2oCyg105+OkvIBsidU6dl9C2OTz 5j5g7D5MJLEHS1pc+AP885aV9xbBeKVlMXVJJ1EFaionEmcOFTdjfYUQgk7GvcPlS+5O VhdiSKAMQO7koK9M53arGsTF+8o4iRVv65nGDrQqFztsQ4eDSZ7VyowC8VoqMbYqG6V2 F4Hg== X-Gm-Message-State: AC+VfDxGAycla70AcFSKWmJV5JNLArjv4UzKBJsP/xpVpfrEbo0vgEhz 5GJVesyV19bpK3/XkolJghXtZoSWu/mOYZzrPU/NiQ== X-Received: by 2002:a17:906:4784:b0:94f:7486:85a7 with SMTP id cw4-20020a170906478400b0094f748685a7mr10362300ejc.31.1683564156290; Mon, 08 May 2023 09:42:36 -0700 (PDT) Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com. [209.85.218.41]) by smtp.gmail.com with ESMTPSA id i24-20020a1709067a5800b00965aee5be9asm171130ejo.170.2023.05.08.09.42.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 May 2023 09:42:35 -0700 (PDT) Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-94a34a14a54so951882066b.1 for ; Mon, 08 May 2023 09:42:35 -0700 (PDT) X-Received: by 2002:a17:907:842:b0:94e:c8c:42ec with SMTP id ww2-20020a170907084200b0094e0c8c42ecmr9098645ejb.20.1683564154924; Mon, 08 May 2023 09:42:34 -0700 (PDT) MIME-Version: 1.0 References: <20230506133134.1492395-1-jacob.jun.pan@linux.intel.com> <20230506150741.2e3d2dcc@jacob-builder> <20230508094014.53913cf3@jacob-builder> In-Reply-To: <20230508094014.53913cf3@jacob-builder> From: Linus Torvalds Date: Mon, 8 May 2023 09:42:18 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] iommu: Add Kconfig help text for IOMMU_SVA To: Jacob Pan Cc: LKML , iommu@lists.linux.dev, Jason Gunthorpe , Lu Baolu , Joerg Roedel , Jean-Philippe Brucker , Robin Murphy , Will Deacon , Raj Ashok , "Tian, Kevin" , Yi Liu , "Yu, Fenghua" , "Hansen, Dave" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, May 8, 2023 at 9:35=E2=80=AFAM Jacob Pan wrote: > > Conversely, we could also have some part of PASID that is not about SVA. If that's the case, then we should *definitely* have that IOMMU_PASID kind of config option. Then IOMMU_SVA - that needs PASID - can "select" it, but any other use - that doesn't bother about SVA but might want PASID for its own nefarious purposes - can also select it. This is why we have config options. Not just for legibility, but also for "there are different scenarios". Linus