Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3050648rwo; Thu, 3 Aug 2023 21:09:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFK6MOpIDt7XDzVBqwSTgtXSWblHGTJWAuQDLPBj7oeE8ZMtgJlgXMK8o6fff5zRtCBHmr8 X-Received: by 2002:a05:6402:214:b0:522:2111:1063 with SMTP id t20-20020a056402021400b0052221111063mr552901edv.18.1691122152340; Thu, 03 Aug 2023 21:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691122152; cv=none; d=google.com; s=arc-20160816; b=d7wgiRR+EmLp0kqKwdtzAN1nyBgalsGQ1QbQqV/WiMRI1Lj3M9GYXQWkZFojjHTevF aHmvY1IpNV5HkGO+6S5c2WQ5+5zSBw4K0Tgn/5gN7mLgRYtCU5ibpZefYm5/xFKrQ/uY qDLwt1f/ap6Seish+0xG+XnEfqkkcsWyfcEcax35nEL3nyeHw/IpbrRs/Wx+tyosAaKT w/x9znCWAAdhWm0GP7ae/AhcRrXhJdcIyGvxyBYIgY2/bskyEvPDQp3NQat9oTZ6fqwP C8OeG/mzRr0PC6c8kWcGD9z6DU7EY7kV3K/vQugPro9qyOw3ex5CkmimtmKuC4cex/bz T2aA== 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=tiap1EfMZ+h/DaHF70meiigHuWv3NXax69Nb3nlmHXs=; fh=lUKVdYiTv5UZoEavPARWrYLGgaq0Tzj7zaAZH6YskUw=; b=sJ4tEaKvp3b2r398NyKHWepRNMQUvG82Kk7Q87WexYo1RiKT0CW1AooFBWKUfWSs4z zY3/iRu3CePhj74f5nBrNclatbloiINfazMUm1f0/RC1g/iyBGSech9v29S13ari0ujI rqfIJQXMtVhmwj0n+eg/d2AmxiFk51sVeclpgWxrnYsD1w1bTbzRNvAHkkGYP5MUDi1I QJT7gqzPur2WMtxXNTfZH8YVgd9sClsjmTZUTjo7XbgX3KyKjEkJQG0CeHZT6OL/OBv0 HqBYO8rPXx6BHT6fiWKZMuDl37uyJOICRv+ax4/fWD05Ph/IwEiGGTRe8vej0lVYBpUh nVtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=j0nVTliw; 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 s22-20020aa7d796000000b00522d0291047si1030352edq.361.2023.08.03.21.08.48; Thu, 03 Aug 2023 21:09:12 -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=j0nVTliw; 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 S232900AbjHDD3N (ORCPT + 99 others); Thu, 3 Aug 2023 23:29:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233340AbjHDD24 (ORCPT ); Thu, 3 Aug 2023 23:28:56 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFB3D4683; Thu, 3 Aug 2023 20:28:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691119725; x=1722655725; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=hlHNuoRdEe2YIyLpE1StOcVDQ8E30zW8HoVrh6pz52g=; b=j0nVTliwSksWwZ/g0S36InoRK4fH3JEHCNVHkz9XJs0HxeqPVU+oBaJN N3+ZNT4e1ui8IOqNU+N5eFF+Y1rukWdVjHd1GE/eg42J4T0+6wCBoch43 lI2KonJp27zyqhnxcCCaMfQffAvPmRwE6UF2eHkhJC0R75qBs1yu3NCsF XB4F04RJTgl2t/F703ZPw9NswbsL642T0gsR24lB/+Hp1cmOKgzZoJQUR co++BovdcIPaNFZGwMPmN43C7cYSwTFykNZVbWvzF+oSo42We/UNKuRFc gCTAPQkzy1UQ2/NzDyesvj8blZm8pKZaNNFniXpUx2BYJsmEwHn0+VFL/ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="433906636" X-IronPort-AV: E=Sophos;i="6.01,253,1684825200"; d="scan'208";a="433906636" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2023 20:28:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="843878729" X-IronPort-AV: E=Sophos;i="6.01,254,1684825200"; d="scan'208";a="843878729" Received: from blu2-mobl.ccr.corp.intel.com (HELO [10.254.210.88]) ([10.254.210.88]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2023 20:28:21 -0700 Message-ID: Date: Fri, 4 Aug 2023 11:28:18 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: baolu.lu@linux.intel.com, "Liu, Yi L" , Jacob Pan , "iommu@lists.linux.dev" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 09/12] iommu: Move iopf_handler() to iommu-sva.c Content-Language: en-US To: "Tian, Kevin" , Joerg Roedel , Will Deacon , Robin Murphy , Jason Gunthorpe , Jean-Philippe Brucker , Nicolin Chen References: <20230727054837.147050-1-baolu.lu@linux.intel.com> <20230727054837.147050-10-baolu.lu@linux.intel.com> From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 2023/8/3 16:21, Tian, Kevin wrote: >> From: Lu Baolu >> Sent: Thursday, July 27, 2023 1:49 PM >> >> @@ -219,3 +219,52 @@ void mm_pasid_drop(struct mm_struct *mm) >> >> ida_free(&iommu_global_pasid_ida, mm->pasid); >> } >> + >> +static int iopf_complete_group(struct device *dev, struct iopf_fault *iopf, >> + enum iommu_page_response_code status) > > iommu_sva_complete_iopf() > >> + >> +static void iopf_handler(struct work_struct *work) >> +{ > > iommu_sva_iopf_handler() > Ack to both. Best regards, baolu