Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4101005rwl; Sun, 2 Apr 2023 23:05:06 -0700 (PDT) X-Google-Smtp-Source: AKy350bAf5Z1uRYx31qnmJePFyBbCH5GTrWRHtCfJUQPs6B6JXKNFgeb/zuZVh1k+uEAdTDqJ7zZ X-Received: by 2002:a17:90a:e7ca:b0:23d:2415:c9a9 with SMTP id kb10-20020a17090ae7ca00b0023d2415c9a9mr39786207pjb.34.1680501906165; Sun, 02 Apr 2023 23:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680501906; cv=none; d=google.com; s=arc-20160816; b=GXN6XJcvPhfCkXzE53gal4SWkR5hIm4nxJnT4GBG0kXsl6s0ITNtWoTok2vC0vt6V3 a3k0IcvLR42BwoVeE/Ue0A9LirsW4das9NSENut55FkwalwxJM9MPy1HTb6H5ehazkUn NAV2/wLGMDS5Ph/rD0B4dLxlVlb+kneONKCsuxlUrk5QYFzpdmkyusyGy9Us3ysj0L9B lfg8d1/Dc/tbNR8pEG4ZBpnnOA72FrcfixKWEQ9IJNnb5HUQwuLOIQvWaRbQ6nhVahCZ 3pvdyIVHemGA5++XgGV0A94phC4tVUSq8Eg2nO0xagBL8y6lRgPJW3v8SQZPAskcvxDN V/lg== 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=3Ga5IBnY1CgXS1/CG6nzaky4JkRfJEp+6R8hRA5EFD0=; b=QHjcZBSA61vJS+25VIfN4Gu+7Q7pUShUciVC56mMKkXtg1Yg2Kd9P36ZSPI+5XW4jx nbNzqy3BAroWYTXrj049xbvz42sTuevwwRBn2Hgga3gnbPtvlhRxb+EX4ZucztRhZyix m1JX5RRO6Tp6tRKwU2IZnmCnRasBxg8LUNDJKD2HozB60nLy/Q7S13pxdlOmAaYxGSiO tSKlkVChBP1csoilgN4C57vXpIp7AwpDxpHr+oizHDbrcpUGa6PD7dGLDMCvJby5+63/ Wzqy3DpJ+XYUJl62nE1c8jSpIdwQ2iJa9NTlfu7gKhttCo2R97RstwKTv/AJF2BoJJBk FBLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mJpN9no3; 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 fy1-20020a17090b020100b002400d82df5asi7192121pjb.57.2023.04.02.23.04.55; Sun, 02 Apr 2023 23:05:06 -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=mJpN9no3; 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 S231375AbjDCFtR (ORCPT + 99 others); Mon, 3 Apr 2023 01:49:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231305AbjDCFtO (ORCPT ); Mon, 3 Apr 2023 01:49:14 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD48165B9; Sun, 2 Apr 2023 22:49:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680500953; x=1712036953; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=vor67KSJsSE/cFZlx1ZQmjpR2d2MNGp4HgZXneBuAcQ=; b=mJpN9no3haX9m1xjHBKb2jJhpj65oBm1suGladkLjZMaitdUEQoPH83P CGeFfaSXtlJWA6i9ITTBrZNFoiFKwvVEzvSCMZHzJo9GbCM4rYbB7cWSb 8rybJz6OXvyJjdoX0urjwxBbeNSZNaPPWTMEcvGUsHFpcP23LBG+Fzcoq sJAJEeFgukmex/0YRLViMyozdnMeNrbIDTssXXWQVSPq6aRyNuRfQWas5 mAvSF+5OtXbTuQtkXR4vWgxulYtDPsJqHugB+MB9iqHDgraPv+bSMZmi2 oiJcyDMrVkQtJ/YvkqW5Rjnnw2YbPNKitVUR35hq40BpqbErTuidXmQo/ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10668"; a="428103273" X-IronPort-AV: E=Sophos;i="5.98,314,1673942400"; d="scan'208";a="428103273" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2023 22:49:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10668"; a="718413118" X-IronPort-AV: E=Sophos;i="5.98,314,1673942400"; d="scan'208";a="718413118" Received: from allen-box.sh.intel.com (HELO [10.239.159.48]) ([10.239.159.48]) by orsmga001.jf.intel.com with ESMTP; 02 Apr 2023 22:49:08 -0700 Message-ID: Date: Mon, 3 Apr 2023 13:49:22 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Cc: baolu.lu@linux.intel.com, Joerg Roedel , Will Deacon , Robin Murphy , Kevin Tian , Fenghua Yu , Dave Jiang , Vinod Koul , Jacob Pan , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/6] dmaengine: idxd: Add enable/disable device IOPF feature Content-Language: en-US To: iommu@lists.linux.dev, dmaengine@vger.kernel.org References: <20230324120234.313643-1-baolu.lu@linux.intel.com> <20230324120234.313643-2-baolu.lu@linux.intel.com> From: Baolu Lu In-Reply-To: <20230324120234.313643-2-baolu.lu@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=unavailable 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 3/24/23 8:02 PM, Lu Baolu wrote: > The iommu subsystem requires IOMMU_DEV_FEAT_IOPF must be enabled before > and disabled after IOMMU_DEV_FEAT_SVA, if device's I/O page faults rely > on the IOMMU. Add explicit IOMMU_DEV_FEAT_IOPF enabling/disabling in this > driver. > > At present, missing IOPF enabling/disabling doesn't cause any real issue, > because the IOMMU driver places the IOPF enabling/disabling in the path > of SVA feature handling. But this may change. > > Reviewed-by: Dave Jiang > Reviewed-by: Fenghua Yu > Reviewed-by: Kevin Tian > Signed-off-by: Lu Baolu Hi Dave and Fenghua, The following iommu patches depends on this one. Can I route it to Linus through the iommu tree? Best regards, baolu