Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2710131rdb; Mon, 4 Dec 2023 05:38:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFBxi/kywrRKRpA4HTsur1tgG0ta6klDYlwetS7yYU0CqINOMUe7EKai8ZPF8Js67TXHKAX X-Received: by 2002:a17:90b:38c9:b0:286:b853:900e with SMTP id nn9-20020a17090b38c900b00286b853900emr1081659pjb.54.1701697107709; Mon, 04 Dec 2023 05:38:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701697107; cv=none; d=google.com; s=arc-20160816; b=uEQ9kS369zsno4nXcSagU4UosZ4uY4mDB3efCIwhkzH0FDEmpmuQkMBdWY7tDypHYr G3rKfVVVGE9kyFPHAK3r638/7GQVsZNR3YuGBvpaNwy4O3tCXS5ZlUhtcQH8q4B5fwq1 Wi+lTnsML9FNEv+h+SJR8hsiQFzEKS29XO/5J6Z67XC42koaEgt2ILTr6q0DEwk+R0Gr f2PkHAmKbAgQRmOlbxaqAhs04U9X+Kosraw81QnpQVTlnfHJisYvESGiQ8pEJ5KzFRbd 19nvy14GacGV+qBfxJpp2NMqAJFP7VsXeawQVHP+YGCYFMksCIEgL25WBUGMvbZtbq1Y oyIw== 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=D9LwUnJIABIYXynmRpnw8pFA/pix8HVAwnnjKzJe6go=; fh=iFH+Dv/cTpugdM9huIrmYQk0qUY0zXejBDjC6IOAQKo=; b=CnIcYRdSZhFwxjUUWUpxkUl0aKMTbJIwTZAvWll09DO/Dle+FYetBVJLpTpqP7aIvK 1GxV93F+oAFNorp079hgmtps73IAvXnfwslTvcfELpQP+hfgLz7s0YskmDF5YVW/0zQV 0BM0imGMH6Bnw0VC7k5Cl08kallKLCyiGGT8eSbzydGByLInQH8PX8iCOZL3g2rS/Ly+ /dbhS1UEEEmTokX+RXP7Qv7KeY3ihato4pniYDxCW/pFqy82wy69B1mkxFdKL71J18q8 irNb9AdFlmyE+xvmrOxNtkTt6Cz70SVm3gmlZkl86/cIiGwQSXTP+qthh2UOJHEY7ofU 27og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=IFfed4nR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id c2-20020a17090abf0200b002868d076054si2864286pjs.91.2023.12.04.05.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 05:38:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=IFfed4nR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 4475B805B9CD; Mon, 4 Dec 2023 05:38:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233875AbjLDNiL (ORCPT + 99 others); Mon, 4 Dec 2023 08:38:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233933AbjLDNiI (ORCPT ); Mon, 4 Dec 2023 08:38:08 -0500 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18704271C for ; Mon, 4 Dec 2023 05:27:35 -0800 (PST) Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-77efe9be09fso27508185a.3 for ; Mon, 04 Dec 2023 05:27:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1701696454; x=1702301254; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=D9LwUnJIABIYXynmRpnw8pFA/pix8HVAwnnjKzJe6go=; b=IFfed4nRNRW34bnfJg0K5t+m7Qs/6Ibys9PBnRhbntxFz1p70fTUj9Sdz7E2p89/GH 5ZnUmfpVDqcjJc8TVh29Zo8hnUMidkibRGpcbqM05hHTYkFMXk8BNhvVG9LW4wTYz1rU FNcILSfSOzss+x55aKQykriC9tM3LEs37qV5Xom4E409/PyCK0mXt8ZltCslONcG9CXw hYRq7Qwb8mqslU1Ss9XDxU6PZESOmTAyH1LDpkqIaWrWDXxHQU3E92EJo3AIU2rQQsBP JmGmIQOWbVNmywxyHBZU1jo2mcMyLWkdhYvxRB5NMegtb1IpSaEZafkLIPy+vMFMqge0 QjEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701696454; x=1702301254; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=D9LwUnJIABIYXynmRpnw8pFA/pix8HVAwnnjKzJe6go=; b=q8Sahux2G7eCkk+ynI0NWDxVdSbn4Rq3yOkY6ac1E13FDH0/fO6HRCf6wwd/NfH0fL R+lJkj+F9ASL6NFRjMFJOVzBfrlQSeFXgaPF7J3KbkbL3IIyYHSsC//AmygHp85BRrUO a2lRCp2E0WKcwQjN8qULTH2xvqOHZD1ZARVMGitlGuQPHS7kH67ZkORwjcL0OmcVj4rk 9Oyd4NFDeKn0qafWpXwIH90WIyLC30qqbk9XS8Q2Ji18jKXxfx8bbchlHmFDxs0Ec2LE b/udEI5PnpiSrqjz2zNcuz/qy+o5Ibf8u6VWsvCQZTA6wZ47fdZXkw0Xo6iZTO87IofE 82Aw== X-Gm-Message-State: AOJu0Yx8okrJroJaEzRC5ixrI84eMcVjCZuJ9l1aSO8w+M5b1UPaNngx SwGMH+03gyE2EconjFPfErS0jSAfpC3qYA0ACMQ= X-Received: by 2002:a05:620a:1913:b0:77e:fba3:a787 with SMTP id bj19-20020a05620a191300b0077efba3a787mr2055508qkb.101.1701696454008; Mon, 04 Dec 2023 05:27:34 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-134-23-187.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.134.23.187]) by smtp.gmail.com with ESMTPSA id l15-20020ae9f00f000000b0077da8c0936asm4239213qkg.107.2023.12.04.05.27.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 05:27:33 -0800 (PST) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1rA8yz-00AsTP-01; Mon, 04 Dec 2023 09:27:33 -0400 Date: Mon, 4 Dec 2023 09:27:32 -0400 From: Jason Gunthorpe To: Baolu Lu Cc: Joerg Roedel , Will Deacon , Robin Murphy , Kevin Tian , Jean-Philippe Brucker , Nicolin Chen , Yi Liu , Jacob Pan , Yan Zhao , iommu@lists.linux.dev, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 12/12] iommu: Improve iopf_queue_flush_dev() Message-ID: <20231204132732.GM1489931@ziepe.ca> References: <20231115030226.16700-1-baolu.lu@linux.intel.com> <20231115030226.16700-13-baolu.lu@linux.intel.com> <20231201203536.GG1489931@ziepe.ca> <93a57e63-352c-407c-ac3f-4b91c11d925d@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <93a57e63-352c-407c-ac3f-4b91c11d925d@linux.intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 04 Dec 2023 05:38:25 -0800 (PST) On Mon, Dec 04, 2023 at 11:46:30AM +0800, Baolu Lu wrote: > On 12/2/23 4:35 AM, Jason Gunthorpe wrote: > I am wondering whether we can take patch 1/12 ~ 10/12 of this series as > a first step, a refactoring effort to support delivering iopf to > userspace? I will follow up with one or multiple series to add the > optimizations. I think that is reasonable, though I would change the earlier patch to use RCU to obtain the fault data. Jason