Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp549603ybp; Tue, 8 Oct 2019 23:54:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqypkBX3Mvh2nhrYwgeXBXCi9PrUkbHg7rlVhTMALHc0NellEZMP5DvYqwxFGMJnUdNuL3Mz X-Received: by 2002:a17:906:250d:: with SMTP id i13mr1370815ejb.275.1570604057318; Tue, 08 Oct 2019 23:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570604057; cv=none; d=google.com; s=arc-20160816; b=o5JSsQ8Y4/ypCcvOC7X26sITb6utLcVqR5O94hCzcHVtB1cdWQ1MDv41Jm7s4y7gSJ i1Q8LUUnmYu9MAsgnLyB5zEp3jwx2qOKYkA1DXPZZ2/IRb1/YiYkFK8q7zHLWLxkedVL QA03WlIOdIVOowWMa4uhDgHvWMVhVeGJxVtDZcSVBm3brXAAkhFcuy86WERZF8eLImz0 QJvhWMdc+QR3fKQbhBcOtzcV9fjwCGUCOn/om148Mn1t7fipCXT8Q/VOOzJ3N05hFLNK /5GSl+wtFsKoWo0oMX31YP4CeS2mwoCCePRj6dFnbBFkyqerziPLxGwsfb8n2DWr0FD2 06Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=2ms/ErYy1/4JojN+v9oKEjPWfe5E1NL4C+HRYW32Mnc=; b=FG4PITM+Y9YWw9vn6x3rT9f94iZ0wVhpIiNMYeiWn3oTJlGmb387WpfnddYU//wqzg LAJUBJcjaMsR3ykYa1d1ia29PrwyYBqvLgitGTthfiXIZdGGstrUI2snYKeRTjnnLbbL oVFbuEgBFakfaDl4mye85sMf8tcRRtuyp0NWqJ1tPzP0PJZX1AU6BZ5htIgU5nsVX695 HCXZWohB2CSjcWktvPg4Tggk3VJI3hgBREEYlHkj+fOrcePp3qjAP+RV/GEVgJgo5P36 0dtm1S1ts0OacSJ5jCh4BGsJnPFaciVFMuUy+ZI7COr93+rJD/UHcK8QAbQt8r8QNVy1 4VMw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si657689ejx.68.2019.10.08.23.53.53; Tue, 08 Oct 2019 23:54:17 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726698AbfJIGvS (ORCPT + 99 others); Wed, 9 Oct 2019 02:51:18 -0400 Received: from verein.lst.de ([213.95.11.211]:50523 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725440AbfJIGvS (ORCPT ); Wed, 9 Oct 2019 02:51:18 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id C056968B05; Wed, 9 Oct 2019 08:51:15 +0200 (CEST) Date: Wed, 9 Oct 2019 08:51:15 +0200 From: Christoph Hellwig To: Lu Baolu Cc: Arvind Sankar , linux-kernel@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH] iommu/vt-d: Return the correct dma mask when we are bypassing the IOMMU Message-ID: <20191009065115.GB30157@lst.de> References: <20191008143357.GA599223@rani.riverdale.lan> <76d680ab-a454-4a69-597a-c0edbfc5014b@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <76d680ab-a454-4a69-597a-c0edbfc5014b@linux.intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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().