From patchwork Tue May 19 16:32:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 11558155 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D9CD9739 for ; Tue, 19 May 2020 16:33:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B89C1207D3 for ; Tue, 19 May 2020 16:33:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589905994; bh=KqBKhr6to6bxExK2bg4wDA0x7D/o81eMVQb7vBHPcOE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=iM0LW9NBDu9YLd9qfWu+hasosxn/H0DAEhVWugquPa0rrt4+d+fb3RoNV6Fxv3qim PIPDCFlMJ/yDN0olJ67qxc8O1q9YpF4zQgmmDddFR/eZoj73vlVcd874zLD8mDX8zW SwjqXoc9jqT/JgrtO6jw4pp4aOD6xXpQPLEdP1Sc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729354AbgESQdO (ORCPT ); Tue, 19 May 2020 12:33:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:46300 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729331AbgESQdN (ORCPT ); Tue, 19 May 2020 12:33:13 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 90E2820884; Tue, 19 May 2020 16:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589905993; bh=KqBKhr6to6bxExK2bg4wDA0x7D/o81eMVQb7vBHPcOE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MLwx4XLbCMMeNgYFg4LZMUs5N+usEH/X5Qa4Zk8BnvMKDRFfHDVBfZYva3KPQfDKf FY6B9ylSZcXEiPLjvYxUvlHwF0OOEMpO9CUJHOWlWBfze0aPtZ9sNcq49fgY8g2dX4 XEO/DAXqGVEXQTGY+jSpNnrmuxQ9lQypen2aTuVM= From: Sasha Levin To: alexander.deucher@amd.com, chris@chris-wilson.co.uk, ville.syrjala@linux.intel.com, Hawking.Zhang@amd.com, tvrtko.ursulin@intel.com Cc: 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, Sasha Levin Subject: [RFC PATCH 2/4] gpu: dxgkrnl: hook up dxgkrnl Date: Tue, 19 May 2020 12:32:32 -0400 Message-Id: <20200519163234.226513-3-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200519163234.226513-1-sashal@kernel.org> References: <20200519163234.226513-1-sashal@kernel.org> MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Connect the dxgkrnl module to the drivers/gpu/ makefile and Kconfig. Signed-off-by: Sasha Levin --- drivers/gpu/Makefile | 2 +- drivers/video/Kconfig | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/Makefile b/drivers/gpu/Makefile index 835c88318cec..28c22c814494 100644 --- a/drivers/gpu/Makefile +++ b/drivers/gpu/Makefile @@ -3,6 +3,6 @@ # taken to initialize them in the correct order. Link order is the only way # to ensure this currently. obj-$(CONFIG_TEGRA_HOST1X) += host1x/ -obj-y += drm/ vga/ +obj-y += drm/ vga/ dxgkrnl/ obj-$(CONFIG_IMX_IPUV3_CORE) += ipu-v3/ obj-$(CONFIG_TRACE_GPU_MEM) += trace/ diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 427a993c7f57..362c08778a54 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -19,6 +19,8 @@ source "drivers/gpu/ipu-v3/Kconfig" source "drivers/gpu/drm/Kconfig" +source "drivers/gpu/dxgkrnl/Kconfig" + menu "Frame buffer Devices" source "drivers/video/fbdev/Kconfig" endmenu From patchwork Tue May 19 16:32:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 11558159 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9525A1391 for ; Tue, 19 May 2020 16:33:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7DB1B20873 for ; Tue, 19 May 2020 16:33:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589905997; bh=eZ1bHq1CoG5hjqUOKxdZChtO/EqOip0Cz6ip1fVxHZY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=0zGaflzVvP746Zem5CZLWSZdPqLeHQTc5edYSwFSC0+/LebnBgIGl0gQBaHcHh51b Z/zUeddCoY9kG659L7uNJpE0mBOUysNGSkK+pzR/eVjDev9PEwTVSOTUpP/cFjIX9S g0drZMjkiJnIlsK1r+idWWGXy2Dlxf0ZvRAo7jmM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729396AbgESQdQ (ORCPT ); Tue, 19 May 2020 12:33:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:46354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729383AbgESQdP (ORCPT ); Tue, 19 May 2020 12:33:15 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 749FF20826; Tue, 19 May 2020 16:33:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589905995; bh=eZ1bHq1CoG5hjqUOKxdZChtO/EqOip0Cz6ip1fVxHZY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lp/dAYwDKiIcHHjB6thsH9YaDjZ13tYqeQtGPyL5YPXKrHM0hLWXZtW+7WTe/ryr1 LBE6gwdv60kTj30t1CrmWuB7WqdCSVzJBPARRur4jpQCE10IGwhvSsZe5wb6tYZV/o B//kvRikCGtf4AtGzcRJvOVMKJoq+cSGhGMCtoYI= From: Sasha Levin To: alexander.deucher@amd.com, chris@chris-wilson.co.uk, ville.syrjala@linux.intel.com, Hawking.Zhang@amd.com, tvrtko.ursulin@intel.com Cc: 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, Sasha Levin Subject: [RFC PATCH 3/4] Drivers: hv: vmbus: hook up dxgkrnl Date: Tue, 19 May 2020 12:32:33 -0400 Message-Id: <20200519163234.226513-4-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200519163234.226513-1-sashal@kernel.org> References: <20200519163234.226513-1-sashal@kernel.org> MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Register a new device type with vmbus. Signed-off-by: Sasha Levin --- include/linux/hyperv.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 692c89ccf5df..ad16e9bc676a 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -1352,6 +1352,22 @@ void vmbus_free_mmio(resource_size_t start, resource_size_t size); .guid = GUID_INIT(0xda0a7802, 0xe377, 0x4aac, 0x8e, 0x77, \ 0x05, 0x58, 0xeb, 0x10, 0x73, 0xf8) +/* + * GPU paravirtualization global DXGK channel + * {DDE9CBC0-5060-4436-9448-EA1254A5D177} + */ +#define HV_GPUP_DXGK_GLOBAL_GUID \ + .guid = GUID_INIT(0xdde9cbc0, 0x5060, 0x4436, 0x94, 0x48, \ + 0xea, 0x12, 0x54, 0xa5, 0xd1, 0x77) + +/* + * GPU paravirtualization per virtual GPU DXGK channel + * {6E382D18-3336-4F4B-ACC4-2B7703D4DF4A} + */ +#define HV_GPUP_DXGK_VGPU_GUID \ + .guid = GUID_INIT(0x6e382d18, 0x3336, 0x4f4b, 0xac, 0xc4, \ + 0x2b, 0x77, 0x3, 0xd4, 0xdf, 0x4a) + /* * Synthetic FC GUID * {2f9bcc4a-0069-4af3-b76b-6fd0be528cda} From patchwork Tue May 19 16:32:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 11558165 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B7B7513B4 for ; Tue, 19 May 2020 16:33:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A18C82081A for ; Tue, 19 May 2020 16:33:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589906001; bh=hj4+aDlyCCczCFo/NFqRHPo0CtYhTwWBBDnNyGdYbXw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=LNk94wz0Gc5ibLQR+ALkFrWeKurq2k1DZpxZ6vO9MNsiylg7yoTsm3RgYJMsXJnJ0 8BbucDe2ioiM4tfIRkR8AYNT7UyMHhoj+LKbuIWGApPaYfDIJxaK3Dqe8mv5IsSq+l CZ/yOl4ijZUFTWySVhuHpiXPdZiDk11onuJdFTKw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729411AbgESQdU (ORCPT ); Tue, 19 May 2020 12:33:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:46454 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729400AbgESQdR (ORCPT ); Tue, 19 May 2020 12:33:17 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 566432084C; Tue, 19 May 2020 16:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589905997; bh=hj4+aDlyCCczCFo/NFqRHPo0CtYhTwWBBDnNyGdYbXw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P5HkZwJ+EeMn18kHufDBdBOyMA/MgPV1yKej26eCe38e+AJ6JQTn44WNgn3xgSHSp p8s/sBv5TIlbmZVW5UPLiuDdFestdaRE4tKazfdyZnwsN6+f7LwWeVZ5kYt8Bk0TNL Wks9+uzBU48V2I4avBGuvTvnx8EnmCCEB6/AJ4mA= From: Sasha Levin To: alexander.deucher@amd.com, chris@chris-wilson.co.uk, ville.syrjala@linux.intel.com, Hawking.Zhang@amd.com, tvrtko.ursulin@intel.com Cc: 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, Sasha Levin Subject: [RFC PATCH 4/4] gpu: dxgkrnl: create a MAINTAINERS entry Date: Tue, 19 May 2020 12:32:34 -0400 Message-Id: <20200519163234.226513-5-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200519163234.226513-1-sashal@kernel.org> References: <20200519163234.226513-1-sashal@kernel.org> MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Signed-off-by: Sasha Levin --- MAINTAINERS | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e64e5db31497..dccdfadda5df 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4997,6 +4997,13 @@ F: Documentation/filesystems/dnotify.txt F: fs/notify/dnotify/ F: include/linux/dnotify.h +DirectX GPU DRIVER +M: Sasha Levin +M: Iouri Tarassov +L: linux-hyperv@vger.kernel.org +S: Supported +F: drivers/gpu/dxgcore/ + DISK GEOMETRY AND PARTITION HANDLING M: Andries Brouwer S: Maintained