Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1594270pxb; Thu, 4 Feb 2021 17:59:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNAGrivP1JX42ReAgY4DnimBkU6V4xzlcVZVn6Nqshnc71Kw8MN/TzULs/uNo2TvrsQzST X-Received: by 2002:a17:906:ad98:: with SMTP id la24mr1846943ejb.315.1612490394859; Thu, 04 Feb 2021 17:59:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612490394; cv=none; d=google.com; s=arc-20160816; b=eg/VJ5Kr0QZT1Uh4DKoUBtfSUT9uO9MBl/7yRw2f1RviYssLsFqXw2m3gXk2C7/e++ /7avySsJFAd9zD5mJttPStaiDcqC8lnMWhYn8/Zc2fExc0Q2B9XjMvohh6jfJpfoIsPg SpaFpt8MU0xPQWIm8SsWOvpSyGwA1lvN/LfhpS+Befmd49LrhmJv+xHdm0fCx2EMW3L4 sGCyyteSyNO8IXNesKiYUILoh00YJ/65JSGkyC7Jo4OF3GCuAUoorVcTKxXW11twNCGx aQQwNAH0lIXqjtepX0eSB3375QJ7a2PW9tkG+1EnQaW4OZLdqjgmvaH5CQQNmrEGxoW5 4Gmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=WvTZLay2ru5X1pURvRWUIq3TtHLZwRntRZn6qaViwlQ=; b=oJkHXAB0NPZdu/JY8th/t1YiOmdjmaoCAR3ulaeHFLDDdincD0yuXFPnUfdGzVLrEg s0NQXwKF2uUgomTtzsS2xeqyWXzc8q8s37HQjd7w1odZ5p8cmuKSFSQ7sOuKhjKZWqxN I3DP6RNfC1nAgOVG9jbCCk/gmWWgaKpFhJHCMnv6wPNzyCn7x+LIjxyxeF8Ua22/g57Z pHRXD33+64oJjUPuTBCjrAmAf1PNoZhntK0UBH+aB8eUTnR1+1NiGuomfA8LqZH3ycUW nC5pkqFSW+SxmF0OINbVOrAVzNngj7EWLglpylcXjN+h4w9r6jVQCOlzu5lpAyGpcekV laIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ozlabs-ru.20150623.gappssmtp.com header.s=20150623 header.b=J1Wfrb3G; 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 s18si4375509ejz.40.2021.02.04.17.59.30; Thu, 04 Feb 2021 17:59:54 -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=J1Wfrb3G; 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 S232095AbhBEAnF (ORCPT + 99 others); Thu, 4 Feb 2021 19:43:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232086AbhBEAnD (ORCPT ); Thu, 4 Feb 2021 19:43:03 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAE40C061786 for ; Thu, 4 Feb 2021 16:42:22 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id r38so3301908pgk.13 for ; Thu, 04 Feb 2021 16:42:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ozlabs-ru.20150623.gappssmtp.com; s=20150623; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=WvTZLay2ru5X1pURvRWUIq3TtHLZwRntRZn6qaViwlQ=; b=J1Wfrb3GLssyLXY/C8LcIoM/h21nzpupqwHZltgOy3tU7bbowlp757RI0ddVWDZdvk cmpp4ReGe8UUzpc2ed7t/4QlcbuxzSq607G0sQ49OwtWLG5p0h2rbjLSd5V2TvqOIXSL c2VbDSAprr75ca7lYxkgqDm1FY9stDnMYCwBjVAICxgFu4g7D16vadRpayLpRvDrxoBb MLjgiOmbRsXkDkVQC6KksvwrntoPgNBjpcC6DvHBDKe07QGfADBu/Lrc13wxEUoxH0Ez 6hJpXDeH/5YmIKX+MdmO93iV/SGzU4fy7r9/SMpzkPkSqSfzBcJfVL6zzNf5F1zMd1Nh PsSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=WvTZLay2ru5X1pURvRWUIq3TtHLZwRntRZn6qaViwlQ=; b=VSkODG/7UMWc7deyEKzstBfl0bOPTO5A4C0CmAV/iPRpeOfxO1tzO67hcv1/WF/Au0 sJgcyI5PAdtD3bwgXLHFt+Gwl7GlfTpy8XDg1CGaD2IJbQVJKcXBJpcPjU7wWyYRaIBj /GpOl80+bgha8a6OU/GCtom9BUza1V/5iJqJHnsdh/Wek1vHtdcl+xwrHyGnhi96WNwk 53OmZF2iuu1MaB/xshhUlEtEfmSXSQxwfAi81B0zrLWLZJFEIE0AAOegGfmpagAIvR8y 3EKPbvKcrozcb+HfhuwKX+f05PmxZaYvHPqdGVCFYZdd4wxRnzJVoQ9fZDRO8I5dPUN8 fftQ== X-Gm-Message-State: AOAM533Rtp1hwiBz49U38CDve9yNwLUWsp5RvEAzwooLAPSU7EzFBcxm NeNvxHz7dkcsGBQimF+BOPyCCA== X-Received: by 2002:a63:1110:: with SMTP id g16mr1589397pgl.357.1612485742467; Thu, 04 Feb 2021 16:42:22 -0800 (PST) Received: from [192.168.10.153] (124-171-107-241.dyn.iinet.net.au. [124.171.107.241]) by smtp.gmail.com with UTF8SMTPSA id q2sm6260643pfu.215.2021.02.04.16.42.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Feb 2021 16:42:21 -0800 (PST) Message-ID: Date: Fri, 5 Feb 2021 11:42:11 +1100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:85.0) Gecko/20100101 Thunderbird/85.0 Subject: Re: [PATCH 8/9] vfio/pci: use x86 naming instead of igd Content-Language: en-US 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: <20210201162828.5938-1-mgurtovoy@nvidia.com> <20210201162828.5938-9-mgurtovoy@nvidia.com> <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> From: Alexey Kardashevskiy In-Reply-To: <20210204125123.GI4247@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/02/2021 23:51, Jason Gunthorpe wrote: > On Thu, Feb 04, 2021 at 12:05:22PM +1100, Alexey Kardashevskiy wrote: > >> It is system firmware (==bios) which puts stuff in the device tree. The >> stuff is: >> 1. emulated pci devices (custom pci bridges), one per nvlink, emulated by >> the firmware, the driver is "ibmnpu" and it is a part on the nvidia driver; >> these are basically config space proxies to the cpu's side of nvlink. >> 2. interconnect information - which of 6 gpus nvlinks connected to which >> nvlink on the cpu side, and memory ranges. > > So what is this vfio_nvlink driver supposed to be bound to? > > The "emulated pci devices"? Yes. > A real GPU function? Yes. > 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. > Something else? Nope :) In this new scheme which you are proposing it should be 2 drivers, I guess. > > Jason > -- Alexey