Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36177783rwd; Mon, 10 Jul 2023 19:38:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlHICCf8Fm6letUhrUJuPIoVssEuwlUk6J4dpQDugSB/fARizrDItv0zAfxEW1NTf89ErEM4 X-Received: by 2002:a05:6a20:12c4:b0:126:df8b:e812 with SMTP id v4-20020a056a2012c400b00126df8be812mr18407710pzg.25.1689043113055; Mon, 10 Jul 2023 19:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689043113; cv=none; d=google.com; s=arc-20160816; b=Crvb8Y9pQFrzeeU0KBdE5HrpfDj16ECTUaCdp2y96JmIr984vYTc0JGhDQICNXTXiT uOUMnfz20FwMQm1ugWxfGi1n39GBy7SdloOcGg63u+Y6XtLXwt8fDstexb+rfckW80Pp F1InBG/3kNKUS+GAPQoMB0kgF+46Tl4CrU3x5pl7jmmHxGgWMCRZT9NCAAxdc74aK1aL 6yCSovHdOW1uTwNuEiNM3tFt8HnhCOjpMUlrb7frM3xgabGxBHsvYzwDGJQsu3o7YfbP DQSibNJRk2kMmdfaZdxWrn+WXm6XuTGkskEGcyirsHQ/95peUPDKYqIxCoKIVFIdrCs8 eIdg== 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 :content-language:references:to:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=3GYYzZw7kIGS2C9kOSmpxuTWzbutyJH4EkM25oCwqz8=; fh=yX50t6tizuJfFiiRddfm+Ony0mINCYRWdnni+wnFHfw=; b=Um3xtDDGfbD+01v1vNXTez+UgleM81n2MsBmpKJ0EtoNw7cs+dZQsIoi2qmRuxPCLp zINWmVJQpYF48Bl6C4l0kfmdSYznOpj9PWYFuHZ5uRsyTnvJhYNGh2xXzROdi6D2mUN0 HkDaqaDCP5msKwK9bDIQ9ES9UaD5ejiUcCb8KX/ewL+f7gLvRDxF5w//tpeeYU95Q8zN I37f8tPJwWC0DIKOBI85Wn78ais6A85n8nubCmX85DBJ6UHJ4Y+mAo7/zevalhffjnea +Eh7lHoBrir8oKTnG0vjGl2c7SmnzOfXdWwsVuckglB+sw3BBaCXlJIQhxhSewOkn+7m +Vyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=I9HrXm7c; 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 b13-20020a056a0002cd00b00682d831af28si643432pft.348.2023.07.10.19.38.19; Mon, 10 Jul 2023 19:38:33 -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=I9HrXm7c; 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 S230017AbjGKC3m (ORCPT + 99 others); Mon, 10 Jul 2023 22:29:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbjGKC3k (ORCPT ); Mon, 10 Jul 2023 22:29:40 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E40C91; Mon, 10 Jul 2023 19:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689042579; x=1720578579; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=dPL9V5pr/4ZRNU0DEbh4J4CtxUEbZroAQ3X7ZC3he3k=; b=I9HrXm7cKsQDMffG1U5OnNCzVkgriPga7vsW0uC6fceVQnEa1DKrCI0t IsMjY2xnvbXG9shxQ1v8fUj/HeBt0B7CtG4st0kTfDyK8k2mU21aNJdgD jtM/fXUFiUlEowU9+LwxK4puAP+cqQGdcM6HzBrOluQb90yseIRupNNKS jKXodqi0h0O0hfs3Rl723r5slV+cNrfwPDGsUNnff24I7ngFkavvOGCcZ X0jKW1F5rd/DaRk7TlHi87I05rB+7EVtgvJbA30edprXnQs5E76gMnrPR XfmkLmJKYBcuRI4hZLWe3KLu9Yq9Pnhfm8c7emy+swbAYEAumgZGy0tlS g==; X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="344103658" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="344103658" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2023 19:29:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="1051600620" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="1051600620" Received: from chunyeny-mobl1.gar.corp.intel.com (HELO [10.252.187.35]) ([10.252.187.35]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2023 19:29:32 -0700 Message-ID: Date: Tue, 11 Jul 2023 10:29:10 +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, Will Deacon , David Woodhouse , Raj Ashok , "Tian, Kevin" , Yi Liu , "Yu, Fenghua" , Dave Jiang , Tony Luck , "Zanussi, Tom" , rex.zhang@intel.com, xiaochen.shen@intel.com, narayan.ranganathan@intel.com Subject: Re: [PATCH v9 0/7] Re-enable IDXD kernel workqueue under DMA API To: Jacob Pan , LKML , iommu@lists.linux.dev, Jason Gunthorpe , Joerg Roedel , Robin Murphy , Jean-Philippe Brucker , dmaengine@vger.kernel.org, vkoul@kernel.org References: <20230621205947.1327094-1-jacob.jun.pan@linux.intel.com> <20230710101810.40098ce3@jacob-builder> Content-Language: en-US From: Baolu Lu In-Reply-To: <20230710101810.40098ce3@jacob-builder> 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_PASS,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/7/11 1:18, Jacob Pan wrote: > Hi Baolu, Joerg, and all, Hi Jacob, > > Just wondering if there are more comments? > > Thanks, > > Jacob > > On Wed, 21 Jun 2023 13:59:40 -0700, Jacob Pan > wrote: > >> Hi Joerg and all, >> >> IDXD kernel work queues were disabled due to the flawed use of kernel VA >> and SVA API. >> Link: >> https://lore.kernel.org/linux-iommu/20210511194726.GP1002214@nvidia.com/ >> >> The solution is to enable it under DMA API where IDXD shared workqueue >> users can use ENQCMDS to submit work on buffers mapped by DMA API. >> >> This patchset adds support for attaching PASID to the device's default >> domain and the ability to allocate global PASIDs from IOMMU APIs. IDXD >> driver can then re-enable the kernel work queues and use them under DMA >> API. >> >> This depends on the IOASID removal series. (merged) >> https://lore.kernel.org/all/ZCaUBJvUMsJyD7EW@8bytes.org/ >> >> >> Thanks, >> >> Jacob >> >> --- >> Changelog: >> v9: >> - Fix an IDXD driver issue where user interrupt enable bit got >> cleared during device enable/disable cycle. Reported and tested by >> Tony Zhu >> - Rebased to v6.4-rc7 Thanks for fixing this. It seems that you missed some review comments for v8. I can help to test and merge when all comments are addressed. Best regards, baolu