Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp111271iog; Tue, 28 Jun 2022 17:43:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sF6C/nbaNZg666FqoqTOXrb8LkM9yri2F1Y/HDZ2a26ybbUw6QT6YUKIH4e4+FVPsdGdYl X-Received: by 2002:a63:6cc4:0:b0:408:b022:8222 with SMTP id h187-20020a636cc4000000b00408b0228222mr592455pgc.435.1656463397551; Tue, 28 Jun 2022 17:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656463397; cv=none; d=google.com; s=arc-20160816; b=TtSMN5HHwg3sGa9UFlc0HdIx5rh8q/NpjDkxy7ckjShFTzA20D6/WVSI3rJX1P5+/H 5e2518rslhdHTy9bnyiqmvSDvP+yPI1B3oVfDJlUQ8gU297sdmoNnvKqi4ps1fW0bmqJ kD2qHFJYQqb9hk3AEuxbCQsS/3QeKhJotYsiTx8jCWmJOusaJPgwxbdCeRe9yQhzyBlQ i6ytM2rhD6Sqz5yexsv7OSQ/A7iOngm+ZtdYSwB/q9qRyNYZ/5mG62nns3aluLHI8acM OwRZF+dWvLkyfgr2At+JMiEICRYXtOUKcQ40RuAv52aVfqXxDCX3WwOHcWoVE2luzlqh Kmtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=/xGHmBxSaA1VpKKJsw40qBzeCDpmSALzzgJwWLC9fI4=; b=J4JbpEQEOpCjuJy0zk+KCDfbFcYRAJZZ+8fG7BCXZEo2ZjxEroRRw/KJanudQARSEM CJodhQVd23d9onUs1XcIkiEpDrPz3C0hbzatLHn/Rlz9rpD2rebIh/lmj6/D+WTF4/g4 t56fo+2m8UxtcDiaPYfM5ret//iYNLYIK7q5wuvqZQCr94U5ghEgI0watL5Vsmj4NM+X pxWib5PyYsiHIHIdEMue8uAMpniyht+5QlTji1Q37Zr5lwniVZWQskyPKToZRwLlWjBS tP6m1QFnl5SftBDalVJ7xW+Bxnjd35AlywH9KOQzjauNsWWUig3w7Pii24DtOWtS4WXT wWlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Y8j0msbd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k6-20020a63ba06000000b0040d3be23eabsi18445898pgf.854.2022.06.28.17.42.58; Tue, 28 Jun 2022 17:43:17 -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=@intel.com header.s=Intel header.b=Y8j0msbd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229829AbiF2AY5 (ORCPT + 99 others); Tue, 28 Jun 2022 20:24:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbiF2AY4 (ORCPT ); Tue, 28 Jun 2022 20:24:56 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8412240BF for ; Tue, 28 Jun 2022 17:24:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656462295; x=1687998295; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=gNrBHCQAvCRcX09U/UlWMcKB1+tzLb4/Y4Z/doplvUA=; b=Y8j0msbdnRGFAmkuT6oyjcdrspjZ0+Lg0bLAwJ+zkhGhmMKXf1UaWXB+ 8tbQbwt0emA0XEo9DSlw+xs4SlWHBoH0FncszWdz92kALaGaiZV5vPSgO tmUC24Dt9BFYDBfavNerva/X6GHGxXZBhb7qAd3/bttpMaszqoGWhS3Zo UD/4LMlAobOASsdSWN0/Yq+fzD7SVTbACegAnTwxi+mzgBcLJbucJShSI fM/kLjHvgjP2HoM4Zu2b0lbnBI2EzNN2b/r3PvLZGXE71oosqxFdy0hth Ba87X4O+/l8eBctNSPdBZ3yJQw8dq04mBIEvp9iaCWOOvfLH/xbNwhAVK g==; X-IronPort-AV: E=McAfee;i="6400,9594,10392"; a="282976581" X-IronPort-AV: E=Sophos;i="5.92,230,1650956400"; d="scan'208";a="282976581" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2022 17:24:55 -0700 X-IronPort-AV: E=Sophos;i="5.92,230,1650956400"; d="scan'208";a="647142607" Received: from xuepengx-mobl1.ccr.corp.intel.com (HELO [10.255.29.216]) ([10.255.29.216]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2022 17:24:51 -0700 Message-ID: Date: Wed, 29 Jun 2022 08:24:49 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cc: baolu.lu@linux.intel.com, Ethan Zhao , Joerg Roedel , Jason Gunthorpe , Christoph Hellwig , Kevin Tian , Ashok Raj , Will Deacon , Robin Murphy , Jean-Philippe Brucker , Dave Jiang , Vinod Koul , Eric Auger , Liu Yi L , Jacob jun Pan , iommu@lists.linux-foundation.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v9 10/11] iommu: Per-domain I/O page fault handling Content-Language: en-US To: Jean-Philippe Brucker References: <20220621144353.17547-1-baolu.lu@linux.intel.com> <20220621144353.17547-11-baolu.lu@linux.intel.com> <693a3604-d70b-e08c-2621-7f0cb9bdb6ca@linux.intel.com> <75b17c70-1658-91ea-0992-1be769550943@linux.intel.com> <935ca9e3-28c9-99af-5609-41bb1500b2b3@linux.intel.com> From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 2022/6/28 22:20, Jean-Philippe Brucker wrote: > On Tue, Jun 28, 2022 at 07:53:39PM +0800, Baolu Lu wrote: >>>>> Once the iopf_handle_single() is removed, the name of >>>>> iopf_handle_group() looks a little weired >>>>> >>>>> and confused, does this group mean the iommu group (domain) ? >>>>> while I take some minutes to >>>> >>>> No. This is not the iommu group. It's page request group defined by the >>>> PCI SIG spec. Multiple page requests could be put in a group with a >>>> same group id. All page requests in a group could be responded to device >>>> in one shot. >>> >>> Thanks your explaination, understand the concept of PCIe PRG.  I meant >>> >>> do we still have the necessity to mention the "group" here in the name >>> >>> iopf_handle_group(),  which one is better ? iopf_handle_prg() or >>> >>> iopf_handler(),  perhaps none of them ? :) >> >> Oh! Sorry for the misunderstanding. >> >> I have no strong feeling to change this naming. :-) All the names >> express what the helper does. Jean is the author of this framework. If >> he has the same idea as you, I don't mind renaming it in this patch. > > I'm not attached to the name, and I see how it could be confusing. Given > that io-pgfault is not only for PCIe, 'prg' is not the best here either. > iopf_handle_faults(), or just iopf_handler(), seem more suitable. Okay, so I will rename it to iopf_handle_faults() in this patch. Best regards, baolu