From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 50161A00C2; Sat, 25 Apr 2020 16:55:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0A7C31C1CE; Sat, 25 Apr 2020 16:54:59 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 774251C1CA for ; Sat, 25 Apr 2020 16:54:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587826496; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=K4JfhwTftyXDI5dQehwL7OA5bjXebBxB9vZUk2zMuoQ=; b=R2QIPsKpHENhnR0zmveecpiQQ9ZbtXgiFaK4S/r9HgzW8w9FtfVq50cfXfFR9XA3nf18Ec aE2F1C1injaHbpQAXWiQgyPFZEPHajLB/V6DZxmVdhrhVL6k5Ih9K8qMo+DA/UgLTa3pvg hfcyVCX/0e4ozvM+U/nemL8bL8Zei2A= Received: from mail-vk1-f197.google.com (mail-vk1-f197.google.com [209.85.221.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-356-uoP7lRl5OyS1DeNgu_VXTA-1; Sat, 25 Apr 2020 10:54:54 -0400 X-MC-Unique: uoP7lRl5OyS1DeNgu_VXTA-1 Received: by mail-vk1-f197.google.com with SMTP id s206so6542689vke.20 for ; Sat, 25 Apr 2020 07:54:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YFMCma368yrRwCCPVX97gncfsx8cNdcO//3hgbzPvjk=; b=EJpooVr3xIGRYMjOVC3QF30a+3mhEeaNtTOPxceQSkz8/C49n/FIz4JUjZG3bZU4I4 SwUc4x9undUSBHvkvolytvOE85mn/7jk0BndwkGZTWrVVVvgcR5ohCTruDPGTDe0YEW8 +9gYDgLVfP0jT7cigFE7l8ZaFH9zZLVNeg/uQO5vDsMvZYuUTeaUHA3hxpCH7uDy6py0 /uRUVLMOwllAgenHuGQyAcPJCfyeqFnitvnkj8hIGEX7RBtKqGnBqgPX08TuzX5CLcum T6E5hGqHDoPClTnG4XyHU4tgLq+tmNQQYnWDNn1IC93eIB8lbY4XYFTvx9dFqT5W06ZQ nGtA== X-Gm-Message-State: AGi0PuYtyLGykJ1PqtZWlJ7n608TCSmI2vJWZKgPcTwqHzJ1gQaZ+tcR Zl77aQNcO4s0IRw80Dv+50IecloydKo8dqCJrPlYRAz3eawcoCzAUV7llDDDoIn/RHxsNdqwBRU 3GAAdB0jzhDaWstaj558= X-Received: by 2002:a9f:2c87:: with SMTP id w7mr11492514uaj.41.1587826494231; Sat, 25 Apr 2020 07:54:54 -0700 (PDT) X-Google-Smtp-Source: APiQypJn8BbW7iuVhy1qJCaKUGAT+YSUX4yYnm5fRbNkFwwRZgnpI+RyXu2sw3mtd6QIKkduFezezlH4E3WfrbyqXhE= X-Received: by 2002:a9f:2c87:: with SMTP id w7mr11492495uaj.41.1587826493579; Sat, 25 Apr 2020 07:54:53 -0700 (PDT) MIME-Version: 1.0 References: <20200226195033.33877-1-drc@linux.vnet.ibm.com> <20200316203828.27279-1-drc@linux.vnet.ibm.com> In-Reply-To: <20200316203828.27279-1-drc@linux.vnet.ibm.com> From: David Marchand Date: Sat, 25 Apr 2020 16:54:42 +0200 Message-ID: To: David Christensen Cc: dev X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v2] bus/pci: support iova=va on PowerNV systems X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Mar 16, 2020 at 9:38 PM David Christensen wrote: > > All recent POWER systems, Power 8 and 9 specifically, support an IOMMU > (it can't be disabled). The functionality of the IOMMU is different > depending on whether it's running on a bare metal PowerNV system or in > a virtual environment (PowerVM LPAR or KVM/QEMU). DPDK currently > supports the IOMMU found on PowerNV platforms, sPAPRv2, so IOVA=3DVA > mode can be enabled when the correct platform is detected. > > The POWER IOMMU type can't be detected through mechansims such as mechanisms > parsing files in the /sys heirarchy like x86_64 systems so the hierarchy > /proc/cpuinfo file is parsed to determine whether Linux is running > on bare metal (i.e. PowerNV) or in a virtual environment (KVM/QEMU). > > Signed-off-by: David Christensen Applied, thanks. --=20 David Marchand