Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1394229rwr; Fri, 5 May 2023 13:28:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4wAHGT6tPwHsd8GqlGJDMTBWtfBHI2UVS5+5RRgQpnxtKW5NPZ6hrKccoLJ88Am4dFBR84 X-Received: by 2002:a05:6a20:12cc:b0:ed:ca22:a1e7 with SMTP id v12-20020a056a2012cc00b000edca22a1e7mr3818945pzg.16.1683318523837; Fri, 05 May 2023 13:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683318523; cv=none; d=google.com; s=arc-20160816; b=inmGx66zZPSF/LgYTLLqThG5zmFSbxZvzgosvKQKSxeDnXD8R92A/CfEPGeRfxEteU 2O6dRXe0svNfyV6f4hZ+xhiVCe9yOd6yIieEarIlQInwFbUqFhr/3fIOd68tAM5YjPQL vjTCqeg5NNnygR+970ETgLBbTbqw75tgY1rzy3L0HhkJWuZ/wgUEHLclQYOHmK675iZR Ja1noCLuTK3xvsfGPILOThm2uIqWI97ZkVWq1qgNm/2XwIx3tqXJ6C0t+3QsNzNHmi+L Z2vlnXrZZqdfVJ51fbWdYZ4semXg6taKJ8WBCIFiuhp4dEcMRAztgbKndgrFkLWsnpK5 79dQ== 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=Ntx9kUf7coInpGr8/n+akUF1hqzZ8aZiwMO9QZmnpQA=; b=qckXrg+YVO1g6GK1Ao2220GaBYJ4JicFbpC+r/sTvwr6xHYtvx4qqn04YUHZg0bzc+ I5ABAX2+H7P7tNH0KvnK8xZuaikMawRw+wz8miJdeMFht56kZun9j2kZiVebTAFSChX6 qO6mM47bF1vEXKUmnOkrxqVDmgfHcEA8atfZODs2C4FLi27QQLeO6mM41xH/Ucn9Na7X 57fhLrFF9LaDUPRWHDZLg0WApdxbZm2oTqYfITEb0uXtgLbRZjMPmHFtYT/y4nTBOIYf mS9aQPQt3cYFPzGHr1hdP+wZYuwZTdzOOirRfhWagVNZAgZJ/krbrkdsPgpAN0atFcQC i9sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=UiTt2cXG; 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 o8-20020a17090a4b4800b0024eab334011si5676735pjl.175.2023.05.05.13.28.31; Fri, 05 May 2023 13:28:43 -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=UiTt2cXG; 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 S232203AbjEEUKx (ORCPT + 99 others); Fri, 5 May 2023 16:10:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232050AbjEEUKw (ORCPT ); Fri, 5 May 2023 16:10:52 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A40D2110 for ; Fri, 5 May 2023 13:10:50 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-965ab8ed1fcso390636066b.2 for ; Fri, 05 May 2023 13:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1683317449; x=1685909449; 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=Ntx9kUf7coInpGr8/n+akUF1hqzZ8aZiwMO9QZmnpQA=; b=UiTt2cXGgNc4ozOmAct2VvdRD/943At/akt3JQrDQQ0Y92EZH5OlYDeN0SG+b6vPNJ c52mRmyAfPlRbgejI+ogXfkrIhgPiAofkV+qaIbrW30CZNjLjVZG9Abm8pMG1FK6RUoJ 7ZV/W4z4PBErA4w8v+c7NGRNmqabvX6TOh+wU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683317449; x=1685909449; 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=Ntx9kUf7coInpGr8/n+akUF1hqzZ8aZiwMO9QZmnpQA=; b=jjWVCShwrBKiTU/fJfxx0zxgLvxg7ZnqRn2Tp7JK0QmvYPCt3J3llOzoZNHskNbIpJ ENYHOXdwQK2pMHmfUZOYB+HcjLyFyKzNFOJhBRJ4isqdKSMrJoT2NGwDx5pRXo+rKenN PYhAPP7qJFPQGBz8rAIXl2L4qMHt6LtA4jmxPhQLLGBYc6UxYAIQQMjaixOTRwXOGu57 CC0n8fUOB1H4jF1EBM3vAr/06hkN/fqkRHwPMFF+UE293QrSejBcY2MKB9QNao+/JGaG 6aRMU1QIo82LLQQGH7PfQ9Pf0SHbXu+ML/rljYCowYGdeLjxmWYwQKPV3Fln5wbyQhvg NT3w== X-Gm-Message-State: AC+VfDyRg9GPGEEtuk5hOIjADtegQOp99YdF5ShotHtomOjOpMeF7HzQ S0MkSqdKiED6y6pMPXoRRQt+WX7X2e1HfyzwNCnlQA== X-Received: by 2002:a17:906:ef0e:b0:965:c2ab:7014 with SMTP id f14-20020a170906ef0e00b00965c2ab7014mr2143042ejs.35.1683317448802; Fri, 05 May 2023 13:10:48 -0700 (PDT) Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com. [209.85.208.52]) by smtp.gmail.com with ESMTPSA id jz19-20020a17090775f300b00965c6c63ea3sm1330962ejc.35.2023.05.05.13.10.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 May 2023 13:10:48 -0700 (PDT) Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-50bcb229adaso4245125a12.2 for ; Fri, 05 May 2023 13:10:48 -0700 (PDT) X-Received: by 2002:a17:907:7e9c:b0:94e:afa6:299f with SMTP id qb28-20020a1709077e9c00b0094eafa6299fmr2387046ejc.22.1683317447827; Fri, 05 May 2023 13:10:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Fri, 5 May 2023 13:10:30 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [git pull] IOMMU Updates for Linux v6.4 To: Jason Gunthorpe Cc: Kevin Tian , Joerg Roedel , Will Deacon , linux-kernel@vger.kernel.org, iommu@lists.linux.dev 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 Fri, May 5, 2023 at 12:57=E2=80=AFPM Jason Gunthorpe wrot= e: > > At least with the current situation CONFIG_INTEL_ENQCMD might be an > appropriate name, split out from the IOMMU kconfig and put in arch > kconfig? That would at least somewhat clarify the use. I find IOMMU_SVA to be a particularly opaque name. Admittedly I probably find it opaque because I come at it as somebody much more familiar with the MM side, not from the IOMMU side (and the _other_ conditional fields there make sense from that standpoint), but even so I think it would be good to clarify. Of course, making clear it's architecture-specific would also be an argument for having an actual architecture-specific part of 'struct mm_struct' (the same way we have 'struct thread_info' in task_struct), but with only one single field I suspect that's just not worth it. And who knows - maybe other architectures will pick something like this up? But yes, it might be good to really pin down what the rules are. Right now IOMMU_SVA has *no* real help-text (there's a comment saying "# Shared Virtual Addressing"), and is also enabled by ARM_SMMU_V3_SVA, which apparently doesn't actually want pasid support at all. I dunno. I don't think this is a huge deal, but it did cause some confusion during the merge. Linus