Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp138416pxb; Mon, 8 Feb 2021 17:56:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDKuV/CDNiHFFWpevNxEIFl6wBkLXZRR0z+TD+eJdial1xITB0jpvDZMdKC/5LWvFauIGW X-Received: by 2002:a05:6402:1152:: with SMTP id g18mr20413697edw.18.1612835763245; Mon, 08 Feb 2021 17:56:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612835763; cv=none; d=google.com; s=arc-20160816; b=y0/WDVVftGzNV2fAZAxfdH4RqOd+fVhr7I30AO9F61UiUYRk6c03tNVFAKTH8NwkER CAm+OoLrJpYDrErfGbcQ8yY2BylvnIlthHf3gXdZ0Ryda2pqiJyGAt2ld37ew+EaQYjQ THwUeq42766fNaWynYSTM/xN3jZvN67hKIRIJ2+hkMSzxLAdNMDYfEYq4nwiPNdN0B8b IMFtflKi2JRFIToO5tLHtTcK6HVI7WHGPO1MkgUzSZ/3/GOttr4tt0IzvnXD7sX0Ap// t1KyMpHfPpgwo8mG1BgdgRsWVvW/DuskDee0NOGtA4W5q7xMy1VASe5UE5W8utjqi32c gVSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=2srAivJsR8ZUb2Of5OZio4LXVkIXxX89sGFnynDTxFQ=; b=kxsXINPAwuQtd9eK1fyEedaOmRmdx1Obz52ECV2Sh36FfAgrRzdCECFACmM7Mc6Ttx vXS9co9Dyl3ki6E7sXRt4r1P7StPtaO81IGwer8sYt8TqXjvSL3RksVq+QOxFMhUgg6p WgM6nvkGBjS0rH5LzBNOxt/OptGGNiGUbuewMRpTg8enzF79IcKgFYBv6UPIj33zkiGz EjBiww5RTtr5U3UuGhRUF8EhdX3BJRkQHzMIdV/SlWJ9wp5oGrMy+2jsI5lDJo5M8LW9 4BK/355kert55FGK7ZmycOge9il1deVxXrLk9KNBE7Hhk4yUk7b/8LMy0eFtSEUwCfBK 0ZLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ozlabs-ru.20150623.gappssmtp.com header.s=20150623 header.b=mzW8QUkC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d9si12468026ejz.720.2021.02.08.17.55.39; Mon, 08 Feb 2021 17:56:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ozlabs-ru.20150623.gappssmtp.com header.s=20150623 header.b=mzW8QUkC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230333AbhBIBwy (ORCPT + 99 others); Mon, 8 Feb 2021 20:52:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230048AbhBIBwt (ORCPT ); Mon, 8 Feb 2021 20:52:49 -0500 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BD41C061786 for ; Mon, 8 Feb 2021 17:52:10 -0800 (PST) Received: by mail-pf1-x42f.google.com with SMTP id k13so4440403pfh.13 for ; Mon, 08 Feb 2021 17:52:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ozlabs-ru.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2srAivJsR8ZUb2Of5OZio4LXVkIXxX89sGFnynDTxFQ=; b=mzW8QUkCHDb8txTgts6/c250bc5psaLG8vkJij6TG+bDHh0ltf2ZB555hvnxiZ4Tp3 NuFa51SYv9e+VDlKbK4QmbF+N1lKEnNJKrDVP4HthOy0YotW3zNUWHHVVl7Y7u1FY7dV YgOI+jQ00Zrc4EvirXMlD3AU4kTzg9UbS5g3B/KPRE3gFVUEBSS5R2YAOe8lAd6ypZE2 NVx7M2gomjIftGUt0NTrwWOkYGGYdvAkltGSkx74W1D4W6vq6y9PRRAp1z+xMHSAraeQ Yt+cYm6x0U0hk/Fxu9/5DA3uVm1xgFyMinOR0nsgAeu8MjxnYtu+z8ulhiVo8wBTkp6b BgPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2srAivJsR8ZUb2Of5OZio4LXVkIXxX89sGFnynDTxFQ=; b=eevoYYlt6L8JEx0xs9pTYosqK36EHxEsAN1koPotNECBUDymfyaAmefvnTMhw2FY4E fwHwJyOaqidp2+smKjumeqVSPSJgkcwfiZjPPX8UMrCAZxqIlqUBqudrNWgNQ67zRQAW qZplkQjN/FSOqFGzRdtBmWjdD5/GX0vL27E/6/TltxqQpII1yQtQZJfGCV7vXrvjOWj6 RxGSNDdnHpEbZfqDYrhjHhN2ejvyiznHiLrOlEh90htHEV9rhaw80B/S+aOZyarPASre sEWiZzJ86yFIG/2F1tXJyNAYaahemcaQFqoAyGSgx0u11jKtSS0G4wX5C9zlrqRnQWnQ upNw== X-Gm-Message-State: AOAM532B3UFspyY65I7o0J978hFpH2nsrP5EbfKKr9uBJOSpEYVgAMnj OmJj0G2s65b4634t1rTRHUt6JQ== X-Received: by 2002:a62:1890:0:b029:1dc:1b2e:e07a with SMTP id 138-20020a6218900000b02901dc1b2ee07amr9121622pfy.14.1612835529512; Mon, 08 Feb 2021 17:52:09 -0800 (PST) Received: from [192.168.10.23] (124-171-107-241.dyn.iinet.net.au. [124.171.107.241]) by smtp.gmail.com with UTF8SMTPSA id nl12sm761085pjb.2.2021.02.08.17.52.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Feb 2021 17:52:08 -0800 (PST) Subject: Re: [PATCH 8/9] vfio/pci: use x86 naming instead of igd To: Jason Gunthorpe Cc: Max Gurtovoy , Cornelia Huck , Alex Williamson , Matthew Rosato , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, liranl@nvidia.com, oren@nvidia.com, tzahio@nvidia.com, leonro@nvidia.com, yarong@nvidia.com, aviadye@nvidia.com, shahafs@nvidia.com, artemp@nvidia.com, kwankhede@nvidia.com, ACurrid@nvidia.com, gmataev@nvidia.com, cjia@nvidia.com, yishaih@nvidia.com References: <20210201181454.22112b57.cohuck@redhat.com> <599c6452-8ba6-a00a-65e7-0167f21eac35@linux.ibm.com> <20210201114230.37c18abd@omen.home.shazbot.org> <20210202170659.1c62a9e8.cohuck@redhat.com> <806c138e-685c-0955-7c15-93cb1d4fe0d9@ozlabs.ru> <34be24e6-7f62-9908-c56d-9e469c3b6965@nvidia.com> <83ef0164-6291-c3d1-0ce5-2c9d6c97469e@ozlabs.ru> <20210204125123.GI4247@nvidia.com> <20210208181313.GH4247@nvidia.com> From: Alexey Kardashevskiy Message-ID: <7c5bf697-86a6-5147-061c-7a7c38b6897c@ozlabs.ru> Date: Tue, 9 Feb 2021 12:51:59 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:85.0) Gecko/20100101 Thunderbird/85.0 MIME-Version: 1.0 In-Reply-To: <20210208181313.GH4247@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/02/2021 05:13, Jason Gunthorpe wrote: > On Fri, Feb 05, 2021 at 11:42:11AM +1100, Alexey Kardashevskiy wrote: >>> A real nvswitch function? >> >> What do you mean by this exactly? The cpu side of nvlink is "emulated pci >> devices", the gpu side is not in pci space at all, the nvidia driver manages >> it via the gpu's mmio or/and cfg space. > > Some versions of the nvswitch chip have a PCI-E link too, that is what > I though this was all about when I first saw it. > So, it is really a special set of functions for NVIDIA GPU device > assignment only applicable to P9 systems, much like IGD is for Intel > on x86. These GPUs are not P9 specific and they all have both PCIe and NVLink2 links. The special part is that some nvlinks are between P9 and GPU and the rest are between GPUs, everywhere else (x86, may be ARM) the nvlinks are used between GPUs but even there I do not think the nvlink logic is presented to the host in the PCI space. -- Alexey