Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2501915ybt; Tue, 16 Jun 2020 07:43:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDYGtwBf0BhLj7QytRCWL4CsZCbK1hXsbUIVGasB8paideZA9VzryTDldO0v8GEcLbvjVc X-Received: by 2002:a17:907:35c2:: with SMTP id ap2mr2937751ejc.530.1592318633348; Tue, 16 Jun 2020 07:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592318633; cv=none; d=google.com; s=arc-20160816; b=g5rFFFAjNd41h50jaAf90Px799mttVkCw/VDdU3ik6lKsN/4DgE7jSurXnrudE9AkF SUcIKGNekYT2cJ3pdQb746vdK5TmeylJDhAHLFYCedecUjpSplGmfKy7HEYd9ggGOzd+ mt0va75nJxJhGeEdrJpQeqHXxytdCfoBjTbhhF3BawFS99ZK8JsRHcZV59ihgo9CyYWo kMXzzlJz+iCsdyghhWa/wCR8eGvXowKr8D5UVBnOIlknJlwzuyNfd1SIdOL9XoPQKgSV cM2lcrXkaUwOxjjqhKf6G6FMThgOWZf14lLH3SRsMQtgZEQTNUOulAZMbPqa6hp04f9q Ekmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ePLLDHwAkV/jKk7r7rVfCIJKPh36CUIFuK4av6YXBog=; b=SIQizA5pN/K2uO2coM92mEVn4rhgPNyvMaNcb/y+PVMtwIqFpzcwt3HtEYJukdki7e nZiIoNTtbz92p+PpEV6NzXQZKP9wJipphrzOhyBuM2NxVbOJmrW2ay9Aa9paOa0iJa2f NLmCBRdlZbSvm1gqkmlCBVxgl7YRbHTp7zz9/QJP152y4v31/uN0tyGwh7IEQdbWLyTK zqbOqVF1ExdG9hOII8xQBr8Fu1OIoRaHT1sO6am4puaKHz66w7GVaU43FYU1uiEzZWwi yOqpRCnE9A0H58KBUBemM/2ODcUIi/Nuc8tODRHU67u8yg03nfm+YTaEGnPJcvF/wzM9 dufg== 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 j16si11920041ejx.475.2020.06.16.07.43.28; Tue, 16 Jun 2020 07:43:53 -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 S1728993AbgFPOlY (ORCPT + 99 others); Tue, 16 Jun 2020 10:41:24 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:33644 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728501AbgFPOlY (ORCPT ); Tue, 16 Jun 2020 10:41:24 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 624471C0BD2; Tue, 16 Jun 2020 16:41:22 +0200 (CEST) Date: Tue, 16 Jun 2020 16:41:22 +0200 From: Pavel Machek To: Sasha Levin 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: <20200616144122.GA18447@duo.ucw.cz> References: <20200519163234.226513-1-sashal@kernel.org> <55c57049-1869-7421-aa0f-3ce0b6a133cf@suse.de> <20200616105112.GC1718@bug> <20200616132819.GP1931@sasha-vm> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline In-Reply-To: <20200616132819.GP1931@sasha-vm> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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! > >=20 > > > > The driver creates the /dev/dxg device, which can be opened by user= mode > > > > application and handles their ioctls. The IOCTL interface to the dr= iver > > > > 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. > > >=20 > > > Echoing what others said, you're not making a DRM driver. The driver = should live outside > > > of the DRM code. > > >=20 > >=20 > > 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? >=20 > 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... > > And at the very least... this misses API docs for /dev/dxg. Code can't = really > > be reviewed without that. >=20 > The docs live here: https://docs.microsoft.com/en-us/windows-hardware/dri= vers/ddi/d3dkmthk/ I don't see "/dev/dxg" being metioned there. Plus, kernel API documentation should really go to Documentation, and be suitably licensed. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --BOKacYhQ+x31HxR3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCXujaEgAKCRAw5/Bqldv6 8q/JAKCQjRPnkrFqnsMWU0xDN/FHE1enzwCeMHA4YAkm0yQfrg+8eKiMWa/ARU8= =bHer -----END PGP SIGNATURE----- --BOKacYhQ+x31HxR3--