Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4840669rwl; Mon, 3 Apr 2023 10:17:13 -0700 (PDT) X-Google-Smtp-Source: AKy350Zs7KPibOAZVaEkL2bqDCzMV0VBRT+MOcP98Ux+90UvFI4vM9pWGsJPV3fMLxVk71HOh5K2 X-Received: by 2002:a17:902:d2c3:b0:19c:be03:d1ba with SMTP id n3-20020a170902d2c300b0019cbe03d1bamr43414761plc.6.1680542233520; Mon, 03 Apr 2023 10:17:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680542233; cv=none; d=google.com; s=arc-20160816; b=VilrCHj0omJNilvImMNi+xnTfInS71QGeFfpjB0T2eNx2BnmcDsSIGra/DpGqzsUId 6EJI33jK/VNiWpMehoOaLcfKqyHsmlj1kS4DIIsYqbzQDxcxEYx74w9BFQMJ3XiHatc/ WmPuVzallxwl693q2vhtzzkErwzE3urT4fnXG5vgl9aZp3sW11fBwWbUYOZtJjrQ0gMD 8TZGQ/3ZBJV6H3vTgGpp0fg0Ty4nfhVAKCh04EAnGiHGZK4Qe2YKDtPD/tLKhZmyV17y czGcYPAf+r1GP6rKQQbTchOdrd+jkylsD7H1KB+rGjMQfn9ImaUVsh0o5J7uUUsPyXjV 8UWg== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=dJ+DmqscPSk8y8SAIkswgABFWpOvC0Ys1CFb5tcd5FI=; b=BclZ9KWYWfjc1bOchWn8iokThbK8aL9XPDfmrKaKeIzFCD8aBRM627HZb3HoVuq0uB v5I3j/q0KXRMsxi07f2WakVMI4yOKpZPmdLwxSsUEK0betgaSb1VcUG/eIvgna0XSaEJ UEQznLGTQe9ajuz0h/JSs50vafFpFTSoU2TwqcL3dmyO6QKb4I0AMTsj4PCk8X69uSfP 8HohUPVHGbRVelk3HNrzK2awU4nK2hWOwQ+eDKD0Wx1YeehNM9uXikW0M9Dv34Hailld E/bwRa2MkL3uIBhK5CkIrxdBNDVCBSwJ+3bheogsHRX4cGXsKbEVb8WiE2rmFSUVO24S skzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MAWc0Oej; 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 m5-20020a632605000000b00513b4a6fcd8si8599914pgm.364.2023.04.03.10.17.01; Mon, 03 Apr 2023 10:17:13 -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=MAWc0Oej; 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 S233022AbjDCQ5k (ORCPT + 99 others); Mon, 3 Apr 2023 12:57:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233023AbjDCQ5h (ORCPT ); Mon, 3 Apr 2023 12:57:37 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E697326B6; Mon, 3 Apr 2023 09:57:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680541055; x=1712077055; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=7UYdKObsD+8SbBqsCmRC+KpRgQ2bEtZdumWSJIQRY/Y=; b=MAWc0OejJudj61NVoWMPX3ZSqbNfMNd07XoeblgTiEF+AwUqspOp9ahR ZMpgdhgeYyhSLbSvfFo0z5e3BKa3Tdli1nJtnCnzPeJGTqiRbAjaCGE2U le1HI39ENyhdamJ8ZezeCaAbum1lTb5/sXRzR/Yh/6hMmOPNiEbWoa6AW RSZ+dA9XwdBcqxNApQKd3ytQfWq8dKcxWgj6OdVx6fLm7/hvhuF92+sH3 OV7i96b4mshrgO8YtZZoaQAGosAyHSL1Co4ouenpFg8XUxtSV+Y9J3unI trWgbRSNJl0EBtIy9UeKdwx4S9dbTnW9aIrVcsgkGhGXD8oTlVY69fw9L g==; X-IronPort-AV: E=McAfee;i="6600,9927,10669"; a="428244434" X-IronPort-AV: E=Sophos;i="5.98,315,1673942400"; d="scan'208";a="428244434" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2023 09:57:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10669"; a="663271365" X-IronPort-AV: E=Sophos;i="5.98,315,1673942400"; d="scan'208";a="663271365" Received: from djiang5-mobl3.amr.corp.intel.com (HELO [10.213.181.144]) ([10.213.181.144]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2023 09:57:34 -0700 Message-ID: Date: Mon, 3 Apr 2023 09:57:33 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.9.0 Subject: Re: [PATCH v3 1/6] dmaengine: idxd: Add enable/disable device IOPF feature Content-Language: en-US To: Baolu Lu , iommu@lists.linux.dev, dmaengine@vger.kernel.org Cc: Joerg Roedel , Will Deacon , Robin Murphy , Kevin Tian , Fenghua Yu , Vinod Koul , Jacob Pan , linux-kernel@vger.kernel.org References: <20230324120234.313643-1-baolu.lu@linux.intel.com> <20230324120234.313643-2-baolu.lu@linux.intel.com> From: Dave Jiang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 4/2/23 10:49 PM, Baolu Lu wrote: > 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? Hi Baolu, you'll need an ack from Vinod, who is the dmaengine subsystem maintainer. I have no objections. > > Best regards, > baolu