Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3773850pxy; Tue, 4 May 2021 09:35:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxas5r7lh2dvtwGTZiv7JFj6RpOro7SQ9PVsuqZb7MomkLBz9lhls81n/LKIgo2lV6Fpbtg X-Received: by 2002:a17:906:cede:: with SMTP id si30mr21466495ejb.99.1620146124433; Tue, 04 May 2021 09:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620146124; cv=none; d=google.com; s=arc-20160816; b=PIPnLkr1GlsAFSarNdiqjcaWjiJ9YIAbVEkQwwtqNx+xLBo+oMFw06o13icPQnZ6aV Dr0/da6QotyXXipFhNSwx+MyybFXZpi3hh0JAMln9jRwm7Ah4DYBSrcu+1ddMjOy5xiI h5hCng6hcKNBqlGRWqV66Th1Rg0ADKFGBbvkzd6VmqCv3rURWmp2Kd/lDg4HbCOG529B N34AFzuYnNwfnW6H15udCyyt/1IxAyf8eAnq4PvRuxgEJJUP2JGr6ynsuz9rzp9daCmr ZluhVVuLgMGELO8mrbKmWj9i6ofVBOV9OxS4Kj5V/JYJeDlQ3iZDyTSqV964QKmSa5lT sbYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ctdlXSgA9WB8/LgWtL0CJavRE/GrXThnOTOG0Yn+j2M=; b=Na30EBDNPupo0vcrbd4jNckLifQfqdJ+qA80w3PoWNug6OuV2wiYZnZe0U7UTGc1Dc nB5Ft44TLVi7uelf4yEReK9QZ7mbxWoRjAjLU2WIKZKCiru3eAe1kP5wvAYl+ykDKeME lHR/vfAhUEwATwGB6Qvk2gy4Ij+tc5w0Vqjm260FO5Mk7m3GO7RjcfPNjw7QbJbBGcxi 9CpRpxMJEtNmxYCnOU5+roFLXOkjwvd2omMefFU4+a66/ZOC+lzzuM4yEgqow1AbquRd eYABvJPPhfDLBzOn8kmeJzXtFZB0E5++43Kx9o7gMydzF27jraICFE2PLsNmFnVrwoZl LjCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=PV7H9lwE; 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 a18si2936861ejy.632.2021.05.04.09.34.57; Tue, 04 May 2021 09:35:24 -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; dkim=pass header.i=@ffwll.ch header.s=google header.b=PV7H9lwE; 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 S231922AbhEDQbf (ORCPT + 99 others); Tue, 4 May 2021 12:31:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231781AbhEDQbe (ORCPT ); Tue, 4 May 2021 12:31:34 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4B86C061763 for ; Tue, 4 May 2021 09:30:38 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id l4so14114333ejc.10 for ; Tue, 04 May 2021 09:30:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=ctdlXSgA9WB8/LgWtL0CJavRE/GrXThnOTOG0Yn+j2M=; b=PV7H9lwE2fkMD9FY3zZI2IQ1LJUNNJi+MErHVDmQXkw7CP2xrU/TYHlHczAfDm5lVa KDiLaKQ00UK/IHHZuLCrQoUb6nNF2np0jdBgPOKnW02lTxjNCfGGcqjbWs0FnUqtA2bw 4MCLLKv0oasjlveEwIDLg7pD/6kl+SgNCQ9ok= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=ctdlXSgA9WB8/LgWtL0CJavRE/GrXThnOTOG0Yn+j2M=; b=K9yYrMMGpourTC39kTCMGE8crCd0dp4k33dKZNnuIBE1l2szky2FVJek9nbQEmSceh Fq6vLyvaXrvhB7iTWhlHy1ymfTA53ixAXlSm8SeK0NUHZksXQSbQcZMubADroqFmVcfK 4UeVcylpsqSRlpc2+r8fiArbVTsC1/Gk23w5/A4lZn0vcq3F5qJ3p2+9MhR6TuNdfRZm DtZ04yu2eG6UeaD5cA0pynWiOWUEi02s7TtKmcwMMURVVEgfanlsD8qIv960QG/Edd0r pIFKn/wv1Aayvv5QUVgLlrtG58OjFsrlbQ2P6w5KyhV06CyYzqzsWRKxFikU0if/bWUt 93Yw== X-Gm-Message-State: AOAM531rFzZUzhoIACSVPiPzuUyxpmHuC8gBlzKG0ABXugbjVxtkpLV4 ZmQ6jhjVZpiwpeJeF7giZtkSZw== X-Received: by 2002:a17:906:d145:: with SMTP id br5mr22140782ejb.452.1620145837348; Tue, 04 May 2021 09:30:37 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id kt21sm1615904ejb.5.2021.05.04.09.30.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 09:30:36 -0700 (PDT) Date: Tue, 4 May 2021 18:30:34 +0200 From: Daniel Vetter To: Jason Gunthorpe Cc: Greg Kurz , Greg Kroah-Hartman , Christoph Hellwig , Michael Ellerman , Alex Williamson , kvm@vger.kernel.org, David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Paul Mackerras , linux-api@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, qemu-devel@nongnu.org, qemu-ppc@nongnu.org Subject: Re: remove the nvlink2 pci_vfio subdriver v2 Message-ID: Mail-Followup-To: Jason Gunthorpe , Greg Kurz , Greg Kroah-Hartman , Christoph Hellwig , Michael Ellerman , Alex Williamson , kvm@vger.kernel.org, David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Paul Mackerras , linux-api@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, qemu-devel@nongnu.org, qemu-ppc@nongnu.org References: <20210326061311.1497642-1-hch@lst.de> <20210504142236.76994047@bahia.lan> <20210504152034.18e41ec3@bahia.lan> <20210504155327.GA94750@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210504155327.GA94750@nvidia.com> X-Operating-System: Linux phenom 5.10.32scarlett+ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 04, 2021 at 12:53:27PM -0300, Jason Gunthorpe wrote: > On Tue, May 04, 2021 at 04:23:40PM +0200, Daniel Vetter wrote: > > > Just my 2cents from drm (where we deprecate old gunk uapi quite often): > > Imo it's best to keep the uapi headers as-is, but exchange the > > documentation with a big "this is removed, never use again" warning: > > We in RDMA have been doing the opposite, the uapi headers are supposed > to reflect the current kernel. This helps make the kernel > understandable. > > When userspace needs backwards compat to ABI that the current kernel > doesn't support then userspace has distinct copies of that information > in some compat location. It has happened a few times over the last 15 > years. > > We keep full copies of the current kernel headers in the userspace > source tree, when the kernel headers change in a compile incompatible > way we fix everything while updating to the new kernel headers. Yeah we do the same since forever (it's either from libdrm package, or directly in the corresponding userspace header). So largely include/uapi is for documentation > > - it's good to know which uapi numbers (like parameter extensions or > > whatever they are in this case) are defacto reserved, because there are > > binaries (qemu in this) that have code acting on them out there. > > Numbers and things get marked reserved or the like > > > Anyway feel free to ignore since this might be different than drivers/gpu. > > AFAIK drives/gpu has a lot wider userspace, rdma manages this OK > because we only have one library package that provides the user/kernel > interface. But since we have some many projects we've started asking all the userspace projects to directly take the kernel ones (after the make step to filter them) so that there's only one source of truth. And also to make sure they don't merge stuff before the kernel side is reviewed&landed. Which also means we can't ditch anything userspace might still need on older trees and stuff. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch