Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3635696pxy; Tue, 4 May 2021 06:47:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbx2gJnNBmTlfLoTwXPiOWgU512GtNNv8FypTB4SMaVw2u4Hj3KcnV7D3yKYwMkLCIwTRv X-Received: by 2002:a17:902:9307:b029:ea:e588:10a with SMTP id bc7-20020a1709029307b02900eae588010amr26293147plb.7.1620136066103; Tue, 04 May 2021 06:47:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620136066; cv=none; d=google.com; s=arc-20160816; b=kf/G53ECAnjaNdmokvXc370j2WXs41PuPQYxu9QjWpNWUYtUXfALNINYuxsmhH1Cl9 UA3FtdcQx47fUTpUN+zCZI3glGviQ7HLTYTmTJuCu7lPbSFeQG3ZaT3COtG1KoT+lo/7 UbJMIRLpRlqO534WF2p6PBCHVHQP977iTCI9TdwPta558KH97yAacf8OvE41LRrOEU0b w0PDjQLtX0vLk2q8gaAODk/QPlMDrxQOaKjXZqrhWssybyLLReV+UB462Y27gsnbTDdJ +JcX4Z/stdr5Hn11QiyjQGfatb9nNHHahYRIlxzC9/ey/MdHpsIP1XqSGI9K5R7lSxsa heUQ== 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; bh=PYqHn2a+WdzVpI1GM4UoKZaG/S0ou51QJ/0PzcWexvs=; b=NJqPSiNh71lFad+kB36hfh6yrNLpeIy2J2CPZQlmrXGGVCN8+eRF+ZoRxkYBJynLE/ BXGslkqQNXT3dFX9K/Y9mROBdakHFsI4reagLA9aP+vJoCy1hU7EvWA2UjGirYZq0cJt 1xhQvFezWvB1ql4zeGZL4iaxENr9EyRk4KJQ2a+h2LzgMD/BFMsWzDJPaGW1RlT6xo7w M4kjyWn+UpdVPTacH5YATtq+wOYgzsijL2f1cdccJk3rEBePuJXw6CmNuwN+76JVQ298 FdzEOv9JrrGTS3QQM0YCLjQHj50mmH0wDbfg+0ndKlANXEg9rEdO7LvSzJGA1qQleosd iC2Q== ARC-Authentication-Results: i=1; mx.google.com; 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 x9si3281549pgh.2.2021.05.04.06.47.32; Tue, 04 May 2021 06:47:46 -0700 (PDT) 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; 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 S231241AbhEDNq2 (ORCPT + 99 others); Tue, 4 May 2021 09:46:28 -0400 Received: from 10.mo52.mail-out.ovh.net ([87.98.187.244]:48515 "EHLO 10.mo52.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231216AbhEDNq1 (ORCPT ); Tue, 4 May 2021 09:46:27 -0400 X-Greylist: delayed 893 seconds by postgrey-1.27 at vger.kernel.org; Tue, 04 May 2021 09:46:27 EDT Received: from mxplan5.mail.ovh.net (unknown [10.109.146.44]) by mo52.mail-out.ovh.net (Postfix) with ESMTPS id D5D53271E7E; Tue, 4 May 2021 15:20:36 +0200 (CEST) Received: from kaod.org (37.59.142.95) by DAG8EX1.mxp5.local (172.16.2.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Tue, 4 May 2021 15:20:35 +0200 Authentication-Results: garm.ovh; auth=pass (GARM-95G001561d069d-41f7-46fe-a360-76441386f8a7, 233BADB9E061AA125F593C9F78707CF28220F307) smtp.auth=groug@kaod.org X-OVh-ClientIp: 78.197.208.248 Date: Tue, 4 May 2021 15:20:34 +0200 From: Greg Kurz To: Greg Kroah-Hartman CC: Christoph Hellwig , Michael Ellerman , Alex Williamson , Jason Gunthorpe , , David Airlie , , , "Paul Mackerras" , Daniel Vetter , , , , Subject: Re: remove the nvlink2 pci_vfio subdriver v2 Message-ID: <20210504152034.18e41ec3@bahia.lan> In-Reply-To: References: <20210326061311.1497642-1-hch@lst.de> <20210504142236.76994047@bahia.lan> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [37.59.142.95] X-ClientProxiedBy: DAG7EX1.mxp5.local (172.16.2.61) To DAG8EX1.mxp5.local (172.16.2.71) X-Ovh-Tracer-GUID: 5cc3bb94-3971-431f-b7fb-ec3b378d2bfe X-Ovh-Tracer-Id: 5342395058935667073 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledrvdefiedgieehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffukfgjfhfogggtgfhisehtjeertdertddvnecuhfhrohhmpefirhgvghcumfhurhiiuceoghhrohhugheskhgrohgurdhorhhgqeenucggtffrrghtthgvrhhnpeefuddtieejjeevheekieeltefgleetkeetheettdeifeffvefhffelffdtfeeljeenucfkpheptddrtddrtddrtddpfeejrdehledrudegvddrleehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepmhigphhlrghnhedrmhgrihhlrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehgrhhouhhgsehkrghougdrohhrghdprhgtphhtthhopehqvghmuhdqphhptgesnhhonhhgnhhurdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 4 May 2021 14:59:07 +0200 Greg Kroah-Hartman wrote: > On Tue, May 04, 2021 at 02:22:36PM +0200, Greg Kurz wrote: > > On Fri, 26 Mar 2021 07:13:09 +0100 > > Christoph Hellwig wrote: > > > > > Hi all, > > > > > > the nvlink2 vfio subdriver is a weird beast. It supports a hardware > > > feature without any open source component - what would normally be > > > the normal open source userspace that we require for kernel drivers, > > > although in this particular case user space could of course be a > > > kernel driver in a VM. It also happens to be a complete mess that > > > does not properly bind to PCI IDs, is hacked into the vfio_pci driver > > > and also pulles in over 1000 lines of code always build into powerpc > > > kernels that have Power NV support enabled. Because of all these > > > issues and the lack of breaking userspace when it is removed I think > > > the best idea is to simply kill. > > > > > > Changes since v1: > > > - document the removed subtypes as reserved > > > - add the ACK from Greg > > > > > > Diffstat: > > > arch/powerpc/platforms/powernv/npu-dma.c | 705 --------------------------- > > > b/arch/powerpc/include/asm/opal.h | 3 > > > b/arch/powerpc/include/asm/pci-bridge.h | 1 > > > b/arch/powerpc/include/asm/pci.h | 7 > > > b/arch/powerpc/platforms/powernv/Makefile | 2 > > > b/arch/powerpc/platforms/powernv/opal-call.c | 2 > > > b/arch/powerpc/platforms/powernv/pci-ioda.c | 185 ------- > > > b/arch/powerpc/platforms/powernv/pci.c | 11 > > > b/arch/powerpc/platforms/powernv/pci.h | 17 > > > b/arch/powerpc/platforms/pseries/pci.c | 23 > > > b/drivers/vfio/pci/Kconfig | 6 > > > b/drivers/vfio/pci/Makefile | 1 > > > b/drivers/vfio/pci/vfio_pci.c | 18 > > > b/drivers/vfio/pci/vfio_pci_private.h | 14 > > > b/include/uapi/linux/vfio.h | 38 - > > > > > > Hi Christoph, > > > > FYI, these uapi changes break build of QEMU. > > What uapi changes? > All macros and structure definitions that are being removed from include/uapi/linux/vfio.h by patch 1. > What exactly breaks? > These macros and types are used by the current QEMU code base. Next time the QEMU source tree updates its copy of the kernel headers, the compilation of affected code will fail. > Why does QEMU require kernel driver stuff? > Not sure to understand the question... is there a problem with QEMU using an already published uapi ? > thanks, > > greg k-h