Received: by 2002:ac8:5491:0:b0:40f:fb00:664b with SMTP id h17csp643373qtq; Thu, 10 Aug 2023 11:27:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfHz0GoNhWM3VY29gxrPfxHAdYawYgYx2Wrxp/H3Z6L4m3nzs3I9WswAj9kcQLRaFwNE2o X-Received: by 2002:a05:6a21:3289:b0:140:f1d2:4f8 with SMTP id yt9-20020a056a21328900b00140f1d204f8mr4549146pzb.1.1691692021037; Thu, 10 Aug 2023 11:27:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691692021; cv=none; d=google.com; s=arc-20160816; b=JZi0JsHddvGKs6CH4lSRvk62d2+BIa1uEYxNDG8vCzKrDjZbvI7mru/ZYSNi0uJUEB QqCFLzcyca+hiFIwMXRkBRRScrifUmOLx66pPug8MQjMXL8Aub1vwX49OtfxYsfMUBdE HUkQ6TzvjYFdCQf7HAgG0+OWHPd30Qn7M9GpWivpdXScH58NK9W0Cgi1br+Th7PHLM6V lBanCtup+30M+Uuhk79/ViPvEWg66pRje9rOW0A5OHyNF878A9ztUc68UHqeJqALTHnV 9W7Ye6GYd+OisaHfQzog08LZ5U0SjodBahpu0lSfbFtVvRV7WaOGNQeUrc2pwYMa43Ho gQfQ== 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=Z1YxxQSx9jryP/gaiSlpxrcgwKgQeQJEh/0X+pazM0o=; fh=mwuNplU12/3uzzBRw9ABrlUmxnVl0SppNMDFdwp958Y=; b=Az0PrN0hvFO3buQuLzMGzafBszxp49Gb2Q+rmBNW839I62BHt0b7EmvnGfWkK9ejfG 3Dw7LsRHVcstTtNMeXGlDRF+M5riuGD7kC3/uq7itX4iR/VHtO64bGvgs2GZqu6ta1O6 AQ9S9VGwjy1hhoqnEiqZDdKbGJ5xPshMc8SZ6hBXvm7mb6lMGUZScLyDK20O32o0yexE AtJprEfoz56hNkp+zAha6XEFCOsTe2tAA2h98r3em5o9ILz+Z+FhMMm9xFubVXFEXWZh 5QQAM+XnoBCTUtC/S+hkOnY+OmiLWx0hS8+9VoZlIj8pDmx3n2aaw8St/0gg208sUOLq xOSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="ce/9DcrC"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k64-20020a638443000000b00543a6cc74bfsi1985295pgd.634.2023.08.10.11.26.49; Thu, 10 Aug 2023 11:27:01 -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=@ziepe.ca header.s=google header.b="ce/9DcrC"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234569AbjHJQrN (ORCPT + 99 others); Thu, 10 Aug 2023 12:47:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234337AbjHJQrL (ORCPT ); Thu, 10 Aug 2023 12:47:11 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACE9C90 for ; Thu, 10 Aug 2023 09:47:11 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-26813cd7a8aso757269a91.2 for ; Thu, 10 Aug 2023 09:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1691686031; x=1692290831; 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=Z1YxxQSx9jryP/gaiSlpxrcgwKgQeQJEh/0X+pazM0o=; b=ce/9DcrCCwo6KPfVtyNMNZolyHGIshD4DR/Wwxcjvjqlu2XZC2ifdrhTlTMfIbIpeQ 9b90fyURIEL5MZ9OfK9porDeciE520+G8QtnkKssJ+XxcxmmKkEaLPYgHq4/SWdDOjy8 LlUjLXgVmYkOjGqOVyfTuMXSsLpV2rW7vChHQJrQWZmlTTBgJZJmxuZGZCMimvei99rP ghT4UMiwO3FVTv8qcE912BIbrT9fazw4xMd4nFj5YEFvMO+dnOCEyHVFG65Bia2hYzwq FxjZlGsyOIbe7GeyLd73rYRo4u1SYKYuPYchLPh0qDZ11YpBFSFTWWKehNUhm+P8FcbT uitw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691686031; x=1692290831; 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=Z1YxxQSx9jryP/gaiSlpxrcgwKgQeQJEh/0X+pazM0o=; b=ZdkmnACwpcNNT2IcI3Oqxo6m+1gYXMH64rEAoGOQJcjzzaSpEVl3hcnLQDgcuDEPNB xijVd6pKjpVYfKUChGsTCAa3kOgLfvGkXxK3EOcMmqusQ0v728KjkyZT43Yhb4DFroZL 6uPujvkpiy8EL3mlziXVXku8s3BqlsIrYldhPHCuEtiVeTQ+fdzhBewmygCJIlTkOwoh lhm661SVqqDa9jGs0IWj0cAIQXuQFl/pJ8X3GcZLKkDaJOStiQy/9+TZ/GSLhfXTXpvF 7FnNIkVaBmB8vraU9loTo6ugZ2gnEnvr1sTNe4rbKQr3KWv5rTD/isOkJ+ZoGue0lgPq vOuQ== X-Gm-Message-State: AOJu0YzFvijK6prqiPgVC9yFfeLJce616X6RkaQ8LgupYnffUCH7hhKC OEzNcbmAn1zQ0initYuEUVjJ0w== X-Received: by 2002:a17:90a:ba92:b0:268:300b:ee82 with SMTP id t18-20020a17090aba9200b00268300bee82mr2781613pjr.19.1691686031121; Thu, 10 Aug 2023 09:47:11 -0700 (PDT) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id 19-20020a17090a1a5300b0026851759e9csm1842689pjl.29.2023.08.10.09.47.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 09:47:10 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qU8oX-005H7B-4H; Thu, 10 Aug 2023 13:47:09 -0300 Date: Thu, 10 Aug 2023 13:47:09 -0300 From: Jason Gunthorpe To: "Tian, Kevin" Cc: Baolu Lu , 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 Message-ID: References: <20230727054837.147050-1-baolu.lu@linux.intel.com> <20230727054837.147050-9-baolu.lu@linux.intel.com> <0771c28d-1b31-003e-7659-4f3f3cbf5546@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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 Thu, Aug 10, 2023 at 02:35:40AM +0000, Tian, Kevin wrote: > > From: Baolu Lu > > Sent: Wednesday, August 9, 2023 6:41 PM > > > > 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. > > > > My understanding of Jason's comment was to make the workqueue the > default path instead of being opted by the consumer.. that is my 1st > impression but might be wrong... Yeah, that is one path. Do we have anyone that uses this that doesn't want the WQ? (actually who even uses this besides SVA?) Jason