Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1663183ybp; Wed, 9 Oct 2019 18:29:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6yG58NDlrD4eMvb8Sf89vsUltBBQt8qJkbyBWBN1EuAqDMh6Uu/+oUUI8W+LrT+/HoRZa X-Received: by 2002:a17:906:3b10:: with SMTP id g16mr5750010ejf.34.1570670956548; Wed, 09 Oct 2019 18:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570670956; cv=none; d=google.com; s=arc-20160816; b=owKsNrIpwH6djUoG4AgYYabv/c7OrgPAzFZCTkQkG2YOllpIN6UZG9Jafscy75bRQ6 WwNFIPSuCd/33c4kwbNAA8YI7icH0puLfxoXDet4IrxTMilMH/86+EVQfT+QMrpRVQzN FegulbGkMUVPrZjbFdHx8T8wkJ6zn6GuM5VFbbsyeDMdmn4NL5PKkGE+Tzvap1daD77n ELbnYV0g9Y7mux3V2RzspLCbdZI3QFokA5x2uJQ4ohqICf++krGvUzCIpBZK7xWJEVJS NpyAFNqDOH13f14Kwq9DSNptk3RPgvvTNENRRwHGhtzIx8ZZnbaroi+Q6RO+JBk9m4Ir iy/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc; bh=xznkoD9C7h6cYPl44JZA7Z+PuXle4e9No3c2EPn2dNc=; b=aMvawDTq67gzQiJ1n4MIk6WiHts0VbXPDJRG8hyP9vw1X1lMhbWmHfZGvPkx/IzOdd 7QIuXcgPZJkYT/mduqc1VfJIxasM9MutYMl4otaZSOizwdQ4K5Yz09v9D1kmnt/FPY3p Mbqh29bC4S+X/N+fz9LzyaZzTAiJfvDaKYwNUQ580r+7EAm0AFXzBn3Pk3vVcGydBWL7 8XwxmQvK69Axtkkp/18W8vXV/WbTEjQFYPZJ7DJ4VHIchVoqbijTjduch2H2njfDr+3j bytdwQ+bUz9dlN7w9eLRb9bp7bs2GP4rSC7PPR6CwWpFzBwhkl7vcS29j1XmQd4lz9hY gMKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f16si2397805edm.54.2019.10.09.18.28.53; Wed, 09 Oct 2019 18:29:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732488AbfJJB0d (ORCPT + 99 others); Wed, 9 Oct 2019 21:26:33 -0400 Received: from mga02.intel.com ([134.134.136.20]:11087 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731134AbfJJB0d (ORCPT ); Wed, 9 Oct 2019 21:26:33 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Oct 2019 18:26:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,278,1566889200"; d="scan'208";a="218862439" Received: from allen-box.sh.intel.com (HELO [10.239.159.136]) ([10.239.159.136]) by fmsmga004.fm.intel.com with ESMTP; 09 Oct 2019 18:26:30 -0700 Cc: baolu.lu@linux.intel.com, Arvind Sankar , linux-kernel@vger.kernel.org Subject: Re: [PATCH] iommu/vt-d: Return the correct dma mask when we are bypassing the IOMMU To: Christoph Hellwig References: <20191008143357.GA599223@rani.riverdale.lan> <76d680ab-a454-4a69-597a-c0edbfc5014b@linux.intel.com> <20191009065115.GB30157@lst.de> From: Lu Baolu Message-ID: Date: Thu, 10 Oct 2019 09:24:15 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191009065115.GB30157@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, On 10/9/19 2:51 PM, Christoph Hellwig wrote: > On Wed, Oct 09, 2019 at 10:45:15AM +0800, Lu Baolu wrote: >> Do you mind explaining why we always return 32 bit here? > > See the comment in dma_get_required_mask(). > Got it. Thank you. Best regards, Baolu