Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2350116ybt; Tue, 16 Jun 2020 03:53:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvdGx47ciBCB9DqZryrneD3o1KEZO4XceoQBSJ/4Fop5Xv0rbRoDCiU4jY0lVYWU09Ckxo X-Received: by 2002:a17:906:6a0a:: with SMTP id o10mr2168744ejr.192.1592304834574; Tue, 16 Jun 2020 03:53:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592304834; cv=none; d=google.com; s=arc-20160816; b=orUBRDNRpL4cBgNHJ6bIGX5zs20UHjvhR0zhr8yeuabdqMmjIfkljGiE0gCCcvcooO kmI9VUEuLVkx7vDN3AcFIGwvcZBn4R8TOG/q8lgj+QSutLUfVnORZCNFmaenoSX0Pnwn jwUVRvI6ec1XodHNIwiHMHakruLLL/y/aZ7Qmo6P3b0MeDpi61PP7VSy5eEIRhjU00NL vtQxosVKSqDLsfYNBIHbZ3euCTEiQkUt+e96l0iIZnXPy7HswOhRKYFpeOmT/aS2apsB MTacT9ETU/FpMoo/3V6ntBH6/yk4b367RyQL+WdXnFuYBJmSvxmqNN2FDh1mmwh71mCC ZVxw== 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=HUcMmVLJYAF0nmE33CEBZzFwlLIBWPskxqR5xSXnWxA=; b=PyJ43748vZNejS2f/aX3frKxLAZO4lPo5DI/IpqyEMtyM6bUQFMBtWHHzy74sWpK+/ QCxl1JScQViVusPQiJLp1nOiogYRWhlkZvCfKhjO0s2bahW/GmDvLgf5K7zeb7bhj03d Ve0a3U7Wa2g9Fwmpn0JXzfcruCIPqICh5TOZpg+JHaK1z/xUKvwwXHShm70iyr0j2qDN Y/CzXaEvriJqweU1mCmaT52nT35vqFj2Yz10HLD838CNdKotnJ4UJEHomPPEq7qpbxc0 C1m1R8RqZd11cTtj/roM0BhWb0E7iZjHh+gLn35/k8r55AfCvAOfo1JxZm3/DagjbIFz 5YDQ== 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 l22si10910400ejg.740.2020.06.16.03.53.32; Tue, 16 Jun 2020 03:53:54 -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 S1728306AbgFPKvX (ORCPT + 99 others); Tue, 16 Jun 2020 06:51:23 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:53412 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728049AbgFPKvX (ORCPT ); Tue, 16 Jun 2020 06:51:23 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 81F591C0BD2; Tue, 16 Jun 2020 12:51:21 +0200 (CEST) Date: Tue, 16 Jun 2020 12:51:13 +0200 From: Pavel Machek To: Thomas Zimmermann Cc: Sasha Levin , 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: <20200616105112.GC1718@bug> References: <20200519163234.226513-1-sashal@kernel.org> <55c57049-1869-7421-aa0f-3ce0b6a133cf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55c57049-1869-7421-aa0f-3ce0b6a133cf@suse.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? And at the very least... this misses API docs for /dev/dxg. Code can't really be reviewed without that. Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html