Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp967528rdh; Fri, 27 Oct 2023 00:13:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG1ZKbw1OZvm+bEhBgtZi4fc5vGTp2xtBd3iCK0vDROL9dU9OMMmYL8f1Jo9URi01Ar8N9d X-Received: by 2002:a25:8b0d:0:b0:da0:6876:a8eb with SMTP id i13-20020a258b0d000000b00da06876a8ebmr1566743ybl.46.1698390821218; Fri, 27 Oct 2023 00:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698390821; cv=none; d=google.com; s=arc-20160816; b=ZKkNAGBMQxxs6H8Qgv5goSHYi78G1An17jfFnrhDUSOkDxckjQx05dXwnXuVODFWU1 IB/iwxULJ9TtcIEkppWpT1kNaLeRYWmHiJZdnqd10RFpNimJzv3b9vvCE7jC7b67hJfQ RAr9u/hBPm6Dk0jCJP0lnaajLrpN2x0jgB2xSxJyCUSGvPTMAElmMqBhx+sCXwmW/vJc N4MUNEgZy7mSr/BFtCCQL11mDea4yW6kRHA92fCNbu4CizAfOYfiadfz2P4Hi5wDJb+O Nj41Kr5Q0NdUp1IxBQnwlbXHavMhdo94UlDbFYegcQ9qacd0Hz8QyJPcVkaW2SmyU3Y8 h+mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1zPFzbDWiAt68UGNayFwSCgJyiN6AJzZLnpAV1/3Am8=; fh=WukZogDaOOziZMTm2EoiyqqwrqBfbYWtqPPq0kkdxYM=; b=L2EJi/aduyId9WNtBprSEl7mjZ0Rz/tlTgokR/rAbLe57FwHLXPf4m+Bul+dP7+pxt TWgfYQznrAEYkQTahdzyy1JE/DfIywSdzwLHe/BNgPlc84167ruysh4f5oB/kI2anQ43 m0xYvjPl9QbXqxLfJIXsJmQDVQZuY3MNG3oQ8cHGM7b6dOY0VcEyRDVWnztAnudHev42 JrIlfO0l2ojkmCsRPLb9khzF0N7i0XYYtgTwYMP1gB3C+lpcPqZW5UGUY0o3f/4h/QXC e94xFPKDZ3tZB2Z7wFDMLvCVhPKrWJE4cAtTyv51ww15n6KcmHluy5dl3CTL1sUmRF9u 3f/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b=Y1KIJPTA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id 125-20020a251383000000b00d7bb3453cf2si1617456ybt.178.2023.10.27.00.13.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 00:13:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b=Y1KIJPTA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id CC24D826AC54; Fri, 27 Oct 2023 00:12:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345369AbjJ0HMM (ORCPT + 99 others); Fri, 27 Oct 2023 03:12:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345356AbjJ0HMJ (ORCPT ); Fri, 27 Oct 2023 03:12:09 -0400 Received: from mail.8bytes.org (mail.8bytes.org [85.214.250.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E4E131B4 for ; Fri, 27 Oct 2023 00:12:06 -0700 (PDT) Received: from 8bytes.org (p4ffe149c.dip0.t-ipconnect.de [79.254.20.156]) (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 AED201A55A7; Fri, 27 Oct 2023 09:12:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=8bytes.org; s=default; t=1698390725; bh=fnEddc84wKlKs4bN2NS+++YG0UQjdLnpekj2LzCOah0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y1KIJPTAM1c60H1OtbNcgkyZJ5Yccbtkfyy/5i9+AXNxTQzSzShENsCCiuWbAtqkj 1Gk8LA3o9+wt3pzqsGZA48EuwdN6BYHOApYfmrFB9t0Jj9QX9o0i2vUjx64Fjh6fuJ W34BXp/JZUURZAeICk22PKjbd+swrakeH6tNdBlGxu48C40BXblqevpvho3O4i6o7P rfx2Bi+OXTJL0pledqlpNdj/X6lV8xkfYQvO/t+VP/XWJK+lOpVHbI95RDFjE8tnPF /zHpHdpaBnnw8s8IZqo8Cv/KD8DIcUgBMjhXq2yO21pGzv8GlNwMTryrmGgvA8vBeR 6WXJnVz+2plww== Date: Fri, 27 Oct 2023 09:12:04 +0200 From: Joerg Roedel To: Tina Zhang Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, David Woodhouse , Lu Baolu , Will Deacon , Robin Murphy , Jason Gunthorpe , Kevin Tian , Nicolin Chen , Michael Shavit , Vasant Hegde , Jason Gunthorpe Subject: Re: [PATCH v10 1/6] iommu: Change kconfig around IOMMU_SVA Message-ID: References: <20231027000525.1278806-1-tina.zhang@intel.com> <20231027000525.1278806-2-tina.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231027000525.1278806-2-tina.zhang@intel.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 27 Oct 2023 00:12:34 -0700 (PDT) Hi Tina, On Fri, Oct 27, 2023 at 08:05:20AM +0800, Tina Zhang wrote: > From: Jason Gunthorpe > > Linus suggested that the kconfig here is confusing: While this patch looks decent to me, you forgot to Cc Linus on it. In general, given that it touches a couple of core files, I'd like to wait for some more people to have a look at it and not rushing anything in. > > https://lore.kernel.org/all/CAHk-=wgUiAtiszwseM1p2fCJ+sC4XWQ+YN4TanFhUgvUqjr9Xw@mail.gmail.com/ > > Let's break it into three kconfigs controlling distinct things: > > - CONFIG_IOMMU_MM_DATA controls if the mm_struct has the additional > fields for the IOMMU. Currently only PASID, but later patches store > a struct iommu_mm_data * > > - CONFIG_ARCH_HAS_CPU_PASID controls if the arch needs the scheduling bit > for keeping track of the ENQCMD instruction. x86 will select this if > IOMMU_SVA is enabled > > - IOMMU_SVA controls if the IOMMU core compiles in the SVA support code > for iommu driver use and the IOMMU exported API > > This way ARM will not enable CONFIG_ARCH_HAS_CPU_PASID > > Signed-off-by: Jason Gunthorpe If you send it, you also need to add your Signed-off-by. Regards, Joerg