Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29650514rwd; Wed, 5 Jul 2023 15:26:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlFsVxLZ18Lawwy1lSZwbLTFA4qGFtjY4FyIOAF9Pz0/R4zyawxtKaFa5bRKl5qQNKah4Ama X-Received: by 2002:a05:6358:9316:b0:134:d24d:86b with SMTP id x22-20020a056358931600b00134d24d086bmr146544rwa.16.1688595986249; Wed, 05 Jul 2023 15:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688595986; cv=none; d=google.com; s=arc-20160816; b=EEtN5xbyo6FYRCu5BmW3sMUSncWI/3BKYoSqH9W6crX0ndoL2lcjhcd2UcOW/kSEHU 9fTiBp5FT0J2VruaIsyoyYqbL8ISYpXwhFLWJiaIcelZs7yvsVXHuC618zE0AF94ZcvH MSpkacWwXJwdxhwqqyIQtzAg/rOwiXT1M0nqt+G3Ab/m+PAcCBIaKZbIsRlT/BwmJWHf jef57fssU5dqbg7JfyfEDcQyINBdfcFPIFa0uir/NfftkmxO1EGgKTlSgxSJA034ro9N x2Hx4+jgOPAfXeq1b+HfKJWyR/K4nezHX1o53/5wfnx2vWt1pyaS0b+0k8hhC2YhIJ/8 1fJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=qq75uyGRzRzxyidqOBQLr4YFitm/TvY3P4mlozJkGcg=; fh=PAj3e3DHcjwfhyPbCrVCX3UOOaHD84Z/nqOBCGesSbY=; b=Xd5/mkKoPVC7Xn8eKrgaTd4tE1KmsZRP2mkztDF4ht99AfVad9nbxL1rWJI+9khEqA VtZgmnIqHgxkct2Ff+Ri7AcTzQzuLCYSwfMoV/yGDYOw7SfbuCbP61ahFhvHR9m/JLBY HTI5LIbsEDxAyvQnW+O39BdtsTZiQkb+iXs/TSoev/V0vywpm0wNB5vMXs4wj3qMilbO JCOVme7Ih9jFwvC+gO3lf4ZNm1493OGQSMHIKDlBbQj6D+MVY06tQfaKdfA8s2pGHhHv KzgpJe+0mEWXFejTRinpaDRonQYe1U9DLB4YFh5Ahi/SAkCg4RMhIcphunj+0kOBzseX XvVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="aTi9/wtL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g28-20020a63565c000000b005536fc5187asi141779pgm.47.2023.07.05.15.26.10; Wed, 05 Jul 2023 15:26:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="aTi9/wtL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231626AbjGEWQz (ORCPT + 99 others); Wed, 5 Jul 2023 18:16:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230158AbjGEWQx (ORCPT ); Wed, 5 Jul 2023 18:16:53 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 786CD171E for ; Wed, 5 Jul 2023 15:16:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688595368; 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=qq75uyGRzRzxyidqOBQLr4YFitm/TvY3P4mlozJkGcg=; b=aTi9/wtLCKYFhQ+wm+d2sffzn89htQIaS9OJoJZzDoCKoHx67GD98dvM3ybBOXCy4hGE/n K51tpiqheWJo1iMVMhJOwsGULup0zwj8yuC3KxpyslC18lRGUrByR6V2jvRRkszQ7DsBP9 em0Q75vg3glkECdMfdr1Irm62J4Ncb4= Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-636-Hi7f7EAUMWeSra1IZ73h0w-1; Wed, 05 Jul 2023 18:16:07 -0400 X-MC-Unique: Hi7f7EAUMWeSra1IZ73h0w-1 Received: by mail-il1-f200.google.com with SMTP id e9e14a558f8ab-345ff88f63eso18184815ab.1 for ; Wed, 05 Jul 2023 15:16:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688595367; x=1691187367; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qq75uyGRzRzxyidqOBQLr4YFitm/TvY3P4mlozJkGcg=; b=UqQgF1ZqSR7QTiwMaebhE+sRMYaH51VrfdSIUzADnKNL/JTsiZLWPy1UQBjsbBnTAY EmFzgwa7hPL2EWfpfnla6cnE+1eFdMaJMrgTckOa6TPzclvMhz/3xxE02FUOkdYolfff MbycxNOYq+LArXekS1e1nu2J2omX1VPrwZErYlExKX9OsWD17UHsui1bj7e28YZi2U6J mFxnRCmK0IoEDmY3H0L3/3c+vbllHV8GB78n093FD9bihLFmHxYFstAc845IMLnXTDlG kGpj4rAClzb/Km7qPkiZDQKJ03ar7JgkhpMFwV24TireU0vvOdKWrFuW3miWew0JZHve WJWA== X-Gm-Message-State: ABy/qLaxE7gtuK8rdvS3jfYB3BLxPbcmXP79TYZ7ecNXLQor1/YQ4zIT eDg4sCnKzGfn4gRz+xMh+hRuczrOLTfn334viY2NKN6uKQvJeoZlEfaTG+aOOMMikpdFCwslwgX v7tkK+bhjRGvIkFb4vLniSkjM X-Received: by 2002:a6b:5103:0:b0:783:63f9:55b9 with SMTP id f3-20020a6b5103000000b0078363f955b9mr360513iob.16.1688595366949; Wed, 05 Jul 2023 15:16:06 -0700 (PDT) X-Received: by 2002:a6b:5103:0:b0:783:63f9:55b9 with SMTP id f3-20020a6b5103000000b0078363f955b9mr360498iob.16.1688595366644; Wed, 05 Jul 2023 15:16:06 -0700 (PDT) Received: from redhat.com ([38.15.36.239]) by smtp.gmail.com with ESMTPSA id k10-20020a02cb4a000000b0041643b78cbesm46093jap.120.2023.07.05.15.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 15:16:06 -0700 (PDT) Date: Wed, 5 Jul 2023 16:16:04 -0600 From: Alex Williamson To: Ankit Agrawal Cc: Jason Gunthorpe , Aniket Agashe , Neo Jia , Kirti Wankhede , "Tarun Gupta (SW-GPU)" , Vikram Sethi , Andy Currid , Alistair Popple , John Hubbard , Dan Williams , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v4 1/1] vfio/nvgpu: Add vfio pci variant module for grace hopper Message-ID: <20230705161604.53d854f9.alex.williamson@redhat.com> In-Reply-To: References: <20230622030720.19652-1-ankita@nvidia.com> <20230626100106.2e3ddb14.alex.williamson@redhat.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.35; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 5 Jul 2023 18:37:42 +0000 Ankit Agrawal wrote: > > I had also asked in the previous review whether "nvgpu" is already overused. I > > see a python tool named nvgpu, an OpenXLA tool, various nvgpu things related > > to Tegra, an nvgpu dialect for MLIR, etc. There are over 5,000 hits on google for > > "nvgpu", only a few of which reference development of this module. Is there a > > more unique name we can use? Thanks, > > Sorry, had missed this comment. Are you suggesting changing the module name > or just reduce the number of times we use the nvgpu keyword in all the functions > of the module? I don't see any in-tree or vfio-pci module with a similar *nvgpu* > name, and the clash appears to be with items outside of the kernel tree. Given > that, should we still change the module name as nvgpu-vfio-pci sounds a relevant > name here? Thanks. I'm referring to the module name, which in turn would be reflected in various function names. The fact that there's no in-tree *nvgpu* driver seems irrelevant when a web search for the term shows a variety of tools and drivers, I believe there's even an out-of-tree NVIDIA sponsored nvgpu driver for Android, correct? How does this relate to that? I don't think it does, so why generate confusion? I don't know your future plans for this driver, but it's currently limited to exposing essentially a single feature on a very, very small product subset, while "nvgpu" seems to project something much more generic. If we're going to see more of devices exposing coherent memory with CXL, does that mean this driver might be short lived and perhaps won't see further expansion in functionality? If so maybe it should be named more specifically for the product it supports. I see some NVIDIA pages referring to the GH200 superchip, maybe "GH", ex. "nvgh", "nvgh-gpu"? Reading through the datasheet, I'm also reminded of issues we had with the POWER implementation relative to isolation, since this coherent memory is enabled via NVLink-C2C, which is opaque to Linux. The datasheet claims "[f]ourth-generation NVLink allows accessing peer memory with direct loads, sotres, and atomic operations...", are those direct accesses reflected in the PCI topology, ie. the PCIe ACS exposed isolation, or is the peer here limited to the CPU? Thanks, Alex