Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2918592rdh; Mon, 30 Oct 2023 11:19:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEfITs8Dd/eE2FOAzmFdXLDpnla0iHKRdObwNrHdK36RCKIYKe9ofAYboK1ptjDB/mjep5+ X-Received: by 2002:a17:90a:1a:b0:280:1d7f:440f with SMTP id 26-20020a17090a001a00b002801d7f440fmr5387260pja.26.1698689986264; Mon, 30 Oct 2023 11:19:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698689986; cv=none; d=google.com; s=arc-20160816; b=Yn1BqdmycUE0yR0SvR4EfIaWkC0XYC2QUWFVjK7Kwhuf41l5kaCvQxCeXP1+aO9nWO sm1Npr3+szGBhoxhgBh1aZqPHj/BQCsNePCBOQ5GI7NmyRrJrZzVw1+nJI9VqwDpV1Zb QQvB+vMZ0pZygIO67emzBdgE4xnEAYmNJjZhCidYks8MFf++3UXM0I31Mi17zq3SSA++ AX0IwGB0gAl5oKS103d0+s6x1+jb+4hZoCq43szBy14AjDFCL3d3u41OtChVxdK4nuoA eoSuRnDNg3/EZxwW7yiofzAqoF/KyUDOv6TJTKdLahb4R3Liu+v3XiV14QmH3L1Ei21g awFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=VPOnvUNldO+iq2nnOcdaFGssQho2852WXM70AJDCfZc=; fh=FJ/i6/THrgl32qSTy2PQot9MWle3kBJqHoMLtLJAtRk=; b=KCvns5dCmaHpx1ZiI9IkZRfWkEB0TO07hZYgltojQK/Ap6tEvzbSlL0faG0T/wUE/t 5NzeIn9NZHGUtCgJ5of/IAV2Hs+QG7F0QGSgkDKxm3E5C8quCAtPNdjXHrVUVzCH8Qb9 myb7bszQOk1HD2ZuaDtMjEYHQJDKOIP9robqYMhkKeIcp8LmCxUoVFy1rFfFYWvUCpGV ZzJvxj+3MSshj5p0pNcPXEM3YG94o10ZDcYzkoFIXd6QosIpz22PSrTZQNegtx2+9AlV Q14e/X3iaqyia1wqyy3LmKlb7ClNTlADlvQkn+eX83kKZVoX3JNIPtfFx+19KtILlxpa aatg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QAXxk0e6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id d12-20020a17090ab30c00b002683f507990si7115947pjr.109.2023.10.30.11.19.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 11:19:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QAXxk0e6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 232188096FEB; Mon, 30 Oct 2023 11:19:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231394AbjJ3STd (ORCPT + 99 others); Mon, 30 Oct 2023 14:19:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231157AbjJ3STc (ORCPT ); Mon, 30 Oct 2023 14:19:32 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CFE698; Mon, 30 Oct 2023 11:19:29 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C231DC433C7; Mon, 30 Oct 2023 18:19:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698689969; bh=5GtnFYV8Mb6DhUTgqlJ5wPItxp7J5N0wGspvp9t5BJY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=QAXxk0e6C+CdyqyyGVNKLToY1jBNTNz2EMkp0XlwXRXV13xXz7N50L6oYNp+JLrgL aVfNgMmNOuXbHIuj6mHSXWQwet58Gq1bB6kub82ug2toudzl24AUPGkLlWiC0qzRRm ewn4gAsTEbRfTVqS4OAg9elTkegiC6SwTknuxnhuekAX10hQmI9f+nGEIIPLEZmzqf x/HYgDMQqk3Ph9QtoLNWKft8LDiaDFwQ4StLsaHJ7+1t9gF0feZu5QGLgy/xn1Qt4v IyouIIcda5LPpi1GJnG2PKePclJkaDK5eLvfNn/kEBBhZGzVW4rhy/m8WiR4A6gSVY nZ2ZpYZjvdFWA== Date: Mon, 30 Oct 2023 13:19:25 -0500 From: Bjorn Helgaas To: Eric Pilmore Cc: linux-pci@vger.kernel.org, dmaengine@vger.kernel.org, Joerg Roedel , Will Deacon , Robin Murphy , iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: IOVA address range Message-ID: <20231030181622.GA1878727@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 30 Oct 2023 11:19:44 -0700 (PDT) [+cc folks from ./scripts/get_maintainer.pl -f drivers/iommu] On Fri, Oct 27, 2023 at 12:17:17PM -0700, Eric Pilmore wrote: > Need a little IOVA/IOMMU help. > > Is it correct that the IOVA address range for a device goes from > address 0x0 up to the dma-mask of the respective device? > > Is it correct to assume that the base of the IOVA address space for a > device will always be zero (0x0)? Is there any reason to think that > this has changed in some newer iteration of the kernel, perhaps 5.10, > and that the base could be non-zero? > > I realize an IOVA itself can be non-zero. I'm trying to verify what > the base address is of the IOVA space as a whole on a per device > basis. > > Thanks, > Eric Pilmore