Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5544823rwb; Wed, 9 Aug 2023 06:00:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE19asPXNp6rg0Pc0y6ZkqA3ztYTqHlGobnPPH7CO6eju9Ed/Fqd+pQ23melTAL7BT9ZM6k X-Received: by 2002:a05:6a00:39a6:b0:64f:7a9c:cb15 with SMTP id fi38-20020a056a0039a600b0064f7a9ccb15mr2239953pfb.11.1691586019365; Wed, 09 Aug 2023 06:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691586019; cv=none; d=google.com; s=arc-20160816; b=snfU3v6CLVjQOHY4E3ttWf/LJy7s7pUCya7G7oFz1SgmqNOQ6n2vdQIePNHd4KpJCw fK5geaxAsCtYqZLvBPM+QUVhu1LQgOSxl+VojREVhsxisgt0zn+A5ePrIg+K5iOtgMCc Upu1L0budKj22P8WvX7GK43IlWDaeBy7E8QmLwq4d5XOWAWBCgAYjfD5RUFkGr8L+6Cq sPqVE58Zfc3+TinFhoxH5NfBXe9BSu9ab5xuYP1rJPU3jdLbYkCD4+rvUDMX+3t5glat CvSpyoN4Qnc+gxEZ3YzH/qHnV9FL/LyVUvITza562hISFIaA6+xfDpDqY8ZljsD62yVg JYAQ== 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=wzKb9Km6mGdf48nF/NjCrwwvjMvGdJtPBkeCnMhjO8Q=; fh=wKCq/uMLO8ZY9SI0Z39EwOEfk6gx8cHs8J1WbqoIosU=; b=l9+QimSNO93znM+vC72C8zb+/Na8NmYcED3Yv+9/hnAB+HPd+BUHMWXPXcj9Sc8kgG SLg4DBm1fA6a8pUdxG/l1q9cctwTJAGFcrrmhxLC+ydsq3d89o3p8qKmpZVz1gLJAhuc Z9A8sbXtMhzNAtn+QDvIDgTG6MOARQWDQXgsHfTKI2k0iUAJfvjT8asMx21wPigql7mo COw0nW76wKEVhMr0XTqO+qCWXRbx3Sze9EJAZMU+0iOJ9fyWTEBgrq70+qEuLGeT+8SW HZie+41YCYLd+M/RdVCPJC6kfKraasWKga3+TmVeBUXiyjUlGOdjvWMjH59OzoWPRvSF ncGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aQhUMNqW; 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 ef6-20020a056a002c8600b00680098cc5f8si8932761pfb.84.2023.08.09.06.00.06; Wed, 09 Aug 2023 06:00:19 -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=aQhUMNqW; 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 S231304AbjHIKlG (ORCPT + 99 others); Wed, 9 Aug 2023 06:41:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230418AbjHIKlF (ORCPT ); Wed, 9 Aug 2023 06:41:05 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39EAA1702; Wed, 9 Aug 2023 03:41:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691577663; x=1723113663; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=JJghwIXXHT4UB5NHzHlq8b7Yl1CvVOGiPlOyugRhpog=; b=aQhUMNqWoA7P6fYbhtT55WnLNX15sgzlS2w8eBLp1MbSO2niGPZTk5OU fK/TEqxrtLCVXievPdspuC/OCl8YlZPIKsb839VYYaYKhEI5HLWLrA+kL 5S0O5TO1tqLmGBtvJUwxWYgXCqOhFsJknyZLNcKgjnq4IIh+nqTP0DFIz MeiCpmE06AmL/wGmU8XonJle/VfGKkhrAh5LzE2b9PYy11oysKl0hBzyA aJbvodeFYmYUdkou08WTTmD31YF9Xh1vXL4bv2XJPv7Q0WT9Pjtxo1fc/ x6NjqJD0uYULjiRztCjji9UcxKD5bEpAVEUumyM6TnEo6wgPrsaYscGU/ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="371078321" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="371078321" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2023 03:41:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="761335613" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="761335613" Received: from blu2-mobl.ccr.corp.intel.com (HELO [10.254.210.171]) ([10.254.210.171]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2023 03:40:59 -0700 Message-ID: <0771c28d-1b31-003e-7659-4f3f3cbf5546@linux.intel.com> Date: Wed, 9 Aug 2023 18:40:56 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Cc: baolu.lu@linux.intel.com, Joerg Roedel , Will Deacon , Robin Murphy , Jean-Philippe Brucker , Nicolin Chen , "Liu, Yi L" , Jacob Pan , "iommu@lists.linux.dev" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 08/12] iommu: Prepare for separating SVA and IOPF Content-Language: en-US To: "Tian, Kevin" , Jason Gunthorpe References: <20230727054837.147050-1-baolu.lu@linux.intel.com> <20230727054837.147050-9-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.8 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,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/9 8:02, Tian, Kevin wrote: >> From: Jason Gunthorpe >> Sent: Wednesday, August 9, 2023 2:43 AM >> >> On Thu, Aug 03, 2023 at 08:16:47AM +0000, Tian, Kevin wrote: >> >>> Is there plan to introduce further error in the future? otherwise this should >>> be void. >>> >>> btw the work queue is only for sva. If there is no other caller this can be >>> just kept in iommu-sva.c. No need to create a helper. >> >> I think more than just SVA will need a work queue context to process >> their faults. >> > > then this series needs more work. Currently the abstraction doesn't > include workqueue in the common fault reporting layer. Do you mind elaborate a bit here? workqueue is a basic infrastructure in the fault handling framework, but it lets the consumers choose to use it, or not to. Best regards, baolu