Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3572772pxy; Tue, 4 May 2021 05:27:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQGx4BLnb+zjpbJuaRjprAxyWaz0jqBQGcyZsvhYP0YEazLwAfdeBOUfgnKdcXsgXNGWM0 X-Received: by 2002:a17:906:3d7:: with SMTP id c23mr9165571eja.188.1620131241213; Tue, 04 May 2021 05:27:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620131241; cv=none; d=google.com; s=arc-20160816; b=rFlSvsgS1xje+EOWd8BCOD4oe0U8KSf916ShuKRbYB6QBQz1fHlIokKs1qI87fXE0R fPzMWKc0CaFPjfIl0uB7FCf8HOiOnGx0iF5z3bjHCh4Pmop055JRbIWmP/YWRVwAL7wW nRX0DP9K5fPmiOATLfRcLNZrMnEHK+Xv9R+HUy5dDqf0nTH5IbVsahcb3onUmZJJzttj 7jJnd3kmadiyRvqg9eLEv2qvg32rZTtPDjPLk36dKJVXrLAl9QqCjlk5q92o3o1UIo6U Yc7KbN1vvl24MAWCUxtkupElO3qOVUE35pJ1NmUMj8ZwcItZ9YO8Nd1D/IXBiWti0TGN AgqA== 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=1zEMj/pbhs5Jz1OsgqtE/3pcDvQUlQ50AQ7fpiESOmI=; b=VNXZDEWKEaZQx7K9sFl86M2wyafwyYnKsRkDzSuXAJj8D4OAYtQ68bbg4OiQlcoCwB uLgMgOzfXJbByYD+ZDBBow1y+mEpXvXUblyOTWYOEaCs0ZDZT2ApoVTqgnTXLiUPxvOk OkNnPhGJUEhPS415PYWMnPAWwtAKCqkB0VXP0sI1s2MjF21As4A8dGBgm8J2I0MWByyu /BBBJMfy/vCncGbYZ8jtwlmT6rg5oDOjQ//1Xh4iAHRuxbTd1dXaWkBAMyprQI6PDSNq oIsG++7LDC8rrSF/7ymb31PSlqyuPEJ4gm5gcbLmX+J5qnIYentCR0ZyfTDN1auXZSbO +ezg== 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 m9si2869351ejj.467.2021.05.04.05.26.54; Tue, 04 May 2021 05:27:21 -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 S230228AbhEDMXk (ORCPT + 99 others); Tue, 4 May 2021 08:23:40 -0400 Received: from 2.mo52.mail-out.ovh.net ([178.33.105.233]:44856 "EHLO 2.mo52.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230188AbhEDMXk (ORCPT ); Tue, 4 May 2021 08:23:40 -0400 Received: from mxplan5.mail.ovh.net (unknown [10.108.4.240]) by mo52.mail-out.ovh.net (Postfix) with ESMTPS id CD06B275188; Tue, 4 May 2021 14:22:40 +0200 (CEST) Received: from kaod.org (37.59.142.101) 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 14:22:38 +0200 Authentication-Results: garm.ovh; auth=pass (GARM-101G0043eda4e7a-de7c-4853-8406-edae349cf2a7, 233BADB9E061AA125F593C9F78707CF28220F307) smtp.auth=groug@kaod.org X-OVh-ClientIp: 78.197.208.248 Date: Tue, 4 May 2021 14:22:36 +0200 From: Greg Kurz To: Christoph Hellwig CC: Michael Ellerman , Alex Williamson , Jason Gunthorpe , , David Airlie , , , "Paul Mackerras" , Daniel Vetter , "Greg Kroah-Hartman" , , , , Subject: Re: remove the nvlink2 pci_vfio subdriver v2 Message-ID: <20210504142236.76994047@bahia.lan> In-Reply-To: <20210326061311.1497642-1-hch@lst.de> References: <20210326061311.1497642-1-hch@lst.de> 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.101] X-ClientProxiedBy: DAG5EX1.mxp5.local (172.16.2.41) To DAG8EX1.mxp5.local (172.16.2.71) X-Ovh-Tracer-GUID: 316f1bea-914e-41ab-a4e8-46202395b6d3 X-Ovh-Tracer-Id: 4363706565853223297 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledrvdefiedgheefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffukfgjfhfogggtgfhisehtjeeftdertddvnecuhfhrohhmpefirhgvghcumfhurhiiuceoghhrohhugheskhgrohgurdhorhhgqeenucggtffrrghtthgvrhhnpeetgffffffggfekgeffteekhffhueelffdvhedvgfdthfeiudetvddulefgveevteenucfkpheptddrtddrtddrtddpfeejrdehledrudegvddruddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehmgihplhgrnhehrdhmrghilhdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepghhrohhugheskhgrohgurdhorhhgpdhrtghpthhtohepqhgvmhhuqdhpphgtsehnohhnghhnuhdrohhrgh Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. I guess QEMU people should take some action before this percolates to the QEMU source tree. Cc'ing relevant QEMU lists to bring the discussion there. Cheers, -- Greg > drivers/vfio/pci/vfio_pci_nvlink2.c | 490 ------------------ > 16 files changed, 12 insertions(+), 1511 deletions(-)