From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8911C433E0 for ; Thu, 28 May 2020 07:14:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 97137207D3 for ; Thu, 28 May 2020 07:14:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725971AbgE1HO7 (ORCPT ); Thu, 28 May 2020 03:14:59 -0400 Received: from mga06.intel.com ([134.134.136.31]:33808 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbgE1HO6 (ORCPT ); Thu, 28 May 2020 03:14:58 -0400 IronPort-SDR: rvCwr32w8PjRs41jtkUnZR/LehS6TSKf/6DXMKwzHgDmc/I6ajuEOPzPe1dvAKLDlV3mbm0j+z TnUDwBc8eeAw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2020 00:14:58 -0700 IronPort-SDR: iQKMIY9FYMhJzjvuXKfBJnke/aonbJBD0wTMyrY0H5ucO+pQBfNmMjUfqONvHJtWUESPWecEcH v4PgGBXtREHw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,443,1583222400"; d="scan'208";a="442848653" Received: from blu2-mobl3.ccr.corp.intel.com (HELO [10.255.30.232]) ([10.255.30.232]) by orsmga005.jf.intel.com with ESMTP; 28 May 2020 00:14:56 -0700 Cc: baolu.lu@linux.intel.com, linux-pci@vger.kernel.org, Joerg Roedel , Jacob Pan , Sai Praneeth Prakhya , Ashok Raj Subject: Re: [PATCH v1 2/3] iommu/vt-d: Allocate domain info for real DMA sub-devices To: Jon Derrick , iommu@lists.linux-foundation.org References: <20200527165617.297470-1-jonathan.derrick@intel.com> <20200527165617.297470-3-jonathan.derrick@intel.com> From: Lu Baolu Message-ID: <39342c83-8484-5a42-f16e-fe3cda67c809@linux.intel.com> Date: Thu, 28 May 2020 15:14:55 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On 2020/5/28 15:01, Lu Baolu wrote: > On 2020/5/28 0:56, Jon Derrick wrote: >> Sub-devices of a real DMA device might exist on a separate segment than >> the real DMA device and its IOMMU. These devices should still have a >> valid device_domain_info, but the current dma alias model won't >> allocate info for the subdevice. >> >> This patch adds a segment member to struct device_domain_info and uses >> the sub-device's BDF so that these sub-devices won't alias to other >> devices. >> >> Signed-off-by: Jon Derrick > > Acked-by: Lu Baolu And a fix tag, so that it could be picked up for v5.6+ stable kernel. Fixes: 2b0140c69637e ("iommu/vt-d: Use pci_real_dma_dev() for mapping") Best regards, baolu From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4CCAC433E0 for ; Thu, 28 May 2020 07:15:02 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3B34A207D3 for ; Thu, 28 May 2020 07:15:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B34A207D3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D8E0788870; Thu, 28 May 2020 07:15:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AWbYbU5d1-nw; Thu, 28 May 2020 07:15:01 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by hemlock.osuosl.org (Postfix) with ESMTP id 3C02E8886C; Thu, 28 May 2020 07:15:01 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 188B8C0895; Thu, 28 May 2020 07:15:01 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id BD7F2C016F for ; Thu, 28 May 2020 07:14:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BA10688870 for ; Thu, 28 May 2020 07:14:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lPPWEv9UUU00 for ; Thu, 28 May 2020 07:14:59 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by hemlock.osuosl.org (Postfix) with ESMTPS id 41FAE8886C for ; Thu, 28 May 2020 07:14:59 +0000 (UTC) IronPort-SDR: bz6QO0S3Gy42i/iSJdoEzId6dwEzP1uIopeKZmTiSdTwXAKuVF7EuSe9FpBEnTbTO1xPgn2KTl ANKDWe16+UyQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2020 00:14:58 -0700 IronPort-SDR: iQKMIY9FYMhJzjvuXKfBJnke/aonbJBD0wTMyrY0H5ucO+pQBfNmMjUfqONvHJtWUESPWecEcH v4PgGBXtREHw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,443,1583222400"; d="scan'208";a="442848653" Received: from blu2-mobl3.ccr.corp.intel.com (HELO [10.255.30.232]) ([10.255.30.232]) by orsmga005.jf.intel.com with ESMTP; 28 May 2020 00:14:56 -0700 Subject: Re: [PATCH v1 2/3] iommu/vt-d: Allocate domain info for real DMA sub-devices To: Jon Derrick , iommu@lists.linux-foundation.org References: <20200527165617.297470-1-jonathan.derrick@intel.com> <20200527165617.297470-3-jonathan.derrick@intel.com> From: Lu Baolu Message-ID: <39342c83-8484-5a42-f16e-fe3cda67c809@linux.intel.com> Date: Thu, 28 May 2020 15:14:55 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Cc: Ashok Raj , linux-pci@vger.kernel.org X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On 2020/5/28 15:01, Lu Baolu wrote: > On 2020/5/28 0:56, Jon Derrick wrote: >> Sub-devices of a real DMA device might exist on a separate segment than >> the real DMA device and its IOMMU. These devices should still have a >> valid device_domain_info, but the current dma alias model won't >> allocate info for the subdevice. >> >> This patch adds a segment member to struct device_domain_info and uses >> the sub-device's BDF so that these sub-devices won't alias to other >> devices. >> >> Signed-off-by: Jon Derrick > > Acked-by: Lu Baolu And a fix tag, so that it could be picked up for v5.6+ stable kernel. Fixes: 2b0140c69637e ("iommu/vt-d: Use pci_real_dma_dev() for mapping") Best regards, baolu _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu