From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB1D9C433C1 for ; Mon, 22 Mar 2021 17:46:35 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8FB246198E for ; Mon, 22 Mar 2021 17:46:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8FB246198E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E75906E152; Mon, 22 Mar 2021 17:46:34 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id B5C816E152 for ; Mon, 22 Mar 2021 17:46:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616435192; 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=WJwiSS+T6VPqw/HeedjTiXeqD0yZ8fDdEubPYZui8ak=; b=grt+g6uhJy0kvQmoLl842mfPgq05eeS7+ZnakoHp1SrNxzcRG3IaxEcOd2LwzllPq6yq8h cfqha2qTF0exu0tzvl/Vgf0+eMiSbvOeASAD9GkP2eTDi/YHVHHFLZb2l4uSooW7rJ57pY ODf/9us05nI2tJS4n74pXivIj97fxyI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-489-CsGnQE7FPTSOCUMojFYzmw-1; Mon, 22 Mar 2021 13:46:30 -0400 X-MC-Unique: CsGnQE7FPTSOCUMojFYzmw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6DA6B18C89D9; Mon, 22 Mar 2021 17:46:27 +0000 (UTC) Received: from omen.home.shazbot.org (ovpn-112-120.phx2.redhat.com [10.3.112.120]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7AC7F60240; Mon, 22 Mar 2021 17:46:24 +0000 (UTC) Date: Mon, 22 Mar 2021 11:46:23 -0600 From: Alex Williamson To: Christoph Hellwig Subject: Re: [PATCH 1/2] vfio/pci: remove vfio_pci_nvlink2 Message-ID: <20210322114623.2f929b07@omen.home.shazbot.org> In-Reply-To: <20210322150155.797882-2-hch@lst.de> References: <20210322150155.797882-1-hch@lst.de> <20210322150155.797882-2-hch@lst.de> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jason Gunthorpe , kvm@vger.kernel.org, David Airlie , Michael Ellerman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Alexey Kardashevskiy , Paul Mackerras , Greg Kroah-Hartman , linux-api@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Mon, 22 Mar 2021 16:01:54 +0100 Christoph Hellwig wrote: > diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h > index 8ce36c1d53ca11..db7e782419d5d9 100644 > --- a/include/uapi/linux/vfio.h > +++ b/include/uapi/linux/vfio.h > @@ -332,19 +332,6 @@ struct vfio_region_info_cap_type { > #define VFIO_REGION_SUBTYPE_INTEL_IGD_HOST_CFG (2) > #define VFIO_REGION_SUBTYPE_INTEL_IGD_LPC_CFG (3) > > -/* 10de vendor PCI sub-types */ > -/* > - * NVIDIA GPU NVlink2 RAM is coherent RAM mapped onto the host address space. > - */ > -#define VFIO_REGION_SUBTYPE_NVIDIA_NVLINK2_RAM (1) > - > -/* 1014 vendor PCI sub-types */ > -/* > - * IBM NPU NVlink2 ATSD (Address Translation Shootdown) register of NPU > - * to do TLB invalidation on a GPU. > - */ > -#define VFIO_REGION_SUBTYPE_IBM_NVLINK2_ATSD (1) > - > /* sub-types for VFIO_REGION_TYPE_GFX */ > #define VFIO_REGION_SUBTYPE_GFX_EDID (1) > > @@ -637,33 +624,6 @@ struct vfio_device_migration_info { > */ > #define VFIO_REGION_INFO_CAP_MSIX_MAPPABLE 3 > > -/* > - * Capability with compressed real address (aka SSA - small system address) > - * where GPU RAM is mapped on a system bus. Used by a GPU for DMA routing > - * and by the userspace to associate a NVLink bridge with a GPU. > - */ > -#define VFIO_REGION_INFO_CAP_NVLINK2_SSATGT 4 > - > -struct vfio_region_info_cap_nvlink2_ssatgt { > - struct vfio_info_cap_header header; > - __u64 tgt; > -}; > - > -/* > - * Capability with an NVLink link speed. The value is read by > - * the NVlink2 bridge driver from the bridge's "ibm,nvlink-speed" > - * property in the device tree. The value is fixed in the hardware > - * and failing to provide the correct value results in the link > - * not working with no indication from the driver why. > - */ > -#define VFIO_REGION_INFO_CAP_NVLINK2_LNKSPD 5 > - > -struct vfio_region_info_cap_nvlink2_lnkspd { > - struct vfio_info_cap_header header; > - __u32 link_speed; > - __u32 __pad; > -}; > - > /** > * VFIO_DEVICE_GET_IRQ_INFO - _IOWR(VFIO_TYPE, VFIO_BASE + 9, > * struct vfio_irq_info) I'll leave any attempt to defend keeping this code to Alexey, but minimally these region sub-types and capability IDs should probably be reserved to avoid breaking whatever userspace might exist to consume these. Our ID space is sufficiently large that we don't need to recycle them any time soon. Thanks, Alex _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel