Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2561173ybt; Tue, 16 Jun 2020 09:04:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxu75v4ro/q1LmFM4wedGXRRHva2SjD8x3LOxLpkS3DVUAVptj/aA340sWyK9qqUXLIy4YH X-Received: by 2002:a05:6402:1d10:: with SMTP id dg16mr3146559edb.309.1592323478167; Tue, 16 Jun 2020 09:04:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592323478; cv=none; d=google.com; s=arc-20160816; b=y8YiMvRRI9urUDlbrYT5ewGHLzODlY6BwOOd1Za2emjLMuZ3LJEl0j+Qmsz6oak06Q XkZdjzBkxjtSvA4d1k6W20JAtPBQx3olNTK81N+UGtr3TjZyTPHyLLjf03pIaMAceYZ2 1ge7mKiJHBocf8u2C+Qxjfqbm/yd+aYHjo8CoVwmQk2cWNky0BNghe9zIE4glo9ODYWW BT89i1P2gTe06MQP6+sjRPzy5X+hg8EEK3uc0t/vjK3OtjRWiE5z3MjsMY/4W28x4GCI eNdlV3OrAQcej3Zu5pJ1Hmwg6gjdxc6s6U+kBhqfojuPzz79+65q385W6+JaE+V6D/X5 CLOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+9YgdwuxLEIvrz+IJNIYMxw2B4X6qqTPAxmNgwUkIvs=; b=SbuNoZEhaB0qIrAanmlzcraf9Ut2PQfp+sSCGbCUKrRVmPf/sCcShi+F+XDz7MkUAp 7KgAGhY3aYP/nGMLmTQd6Gg4Cp7K9y32P7HcAgJpXXeGlKTRxr93E8DOVbaA5fW0BGs8 Ff1bQ0rkxGSXa7A+T7yVoQSeIIS8bZX9RcHWQ88UPRXL4R2U/K7Axh2vDfrVvcFVrYge ruLhy98WJz9YT4g+94zuumOGb6EVQ0hh9kivS4jn0KaN6lST1b/S2EiiiMPU5N9oq5LT 4ZZoWDugiSPeYgUss8SLdI6PCb9Oy6NVaMu/1pY3MtZU6NMMIEur1gaDDChsToxSmHQu zdDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qwvcb5lG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a19si10434591ejf.724.2020.06.16.09.04.15; Tue, 16 Jun 2020 09:04:38 -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=@kernel.org header.s=default header.b=qwvcb5lG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732998AbgFPQA1 (ORCPT + 99 others); Tue, 16 Jun 2020 12:00:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:33726 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732614AbgFPQAV (ORCPT ); Tue, 16 Jun 2020 12:00:21 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 584D620882; Tue, 16 Jun 2020 16:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592323220; bh=nhtRihdq0ZnRFzRQVLYSMJPsEUezpVlbdISEsa2u8F0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qwvcb5lGhEbAtTjUKYtG+m/I0Vwuvkg8ZwXwxUy/bdqyWvbARwe+nPbeVmI45HELY k32Drk1lwyA1R4DgzpmrRhwMQlZjKM1yiKXnfWlV1syy8bYMgCU/PyQWMQedOAzL/O SQnIfmHT3qkfUTsuJbwEYKQrubysqHO7QnSE1Kws= Date: Tue, 16 Jun 2020 12:00:19 -0400 From: Sasha Levin To: Pavel Machek Cc: Thomas Zimmermann , alexander.deucher@amd.com, chris@chris-wilson.co.uk, ville.syrjala@linux.intel.com, Hawking.Zhang@amd.com, tvrtko.ursulin@intel.com, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, spronovo@microsoft.com, iourit@microsoft.com, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, gregkh@linuxfoundation.org Subject: Re: [RFC PATCH 0/4] DirectX on Linux Message-ID: <20200616160019.GQ1931@sasha-vm> References: <20200519163234.226513-1-sashal@kernel.org> <55c57049-1869-7421-aa0f-3ce0b6a133cf@suse.de> <20200616105112.GC1718@bug> <20200616132819.GP1931@sasha-vm> <20200616144122.GA18447@duo.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200616144122.GA18447@duo.ucw.cz> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 16, 2020 at 04:41:22PM +0200, Pavel Machek wrote: >On Tue 2020-06-16 09:28:19, Sasha Levin wrote: >> On Tue, Jun 16, 2020 at 12:51:13PM +0200, Pavel Machek wrote: >> > Hi! >> > >> > > > The driver creates the /dev/dxg device, which can be opened by user mode >> > > > application and handles their ioctls. The IOCTL interface to the driver >> > > > is defined in dxgkmthk.h (Dxgkrnl Graphics Port Driver ioctl >> > > > definitions). The interface matches the D3DKMT interface on Windows. >> > > > Ioctls are implemented in ioctl.c. >> > > >> > > Echoing what others said, you're not making a DRM driver. The driver should live outside >> > > of the DRM code. >> > > >> > >> > Actually, this sounds to me like "this should not be merged into linux kernel". I mean, >> > we already have DRM API on Linux. We don't want another one, do we? >> >> This driver doesn't have any display functionality. > >Graphics cards without displays connected are quite common. I may be >wrong, but I believe we normally handle them using DRM... This is more similar to the accelerators that live in drivers/misc/ right now. >> > And at the very least... this misses API docs for /dev/dxg. Code can't really >> > be reviewed without that. >> >> The docs live here: https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/d3dkmthk/ > >I don't see "/dev/dxg" being metioned there. Plus, kernel API Right, this is because this entire codebase is just a pipe to the API I've linked, it doesn't implement anything new on it's own. >documentation should really go to Documentation, and be suitably >licensed. While I don't mind copying the docs into Documentation, I'm concerned that over time they will diverge from the docs on the website. This is similar to how other documentation (such as the virtio spec) live out of tree to avoid these issues. w.r.t the licensing, again: this was sent under GPL2 (note the SPDX tags in each file), and the patches carry a S-O-B by someone who was a Microsoft employee at the time the patches were sent. -- Thanks, Sasha