Skip to content

Commit 8cb7307

Browse files
committed
Merge feature/dxgkrnl (033834b)
* msft/feature/dxgkrnl: drivers: hv: dxgkrnl: Implement DXGSYNCFILE drivers: hv: dxgkrnl: Implement the following ioctls: - LX_DXRESERVEGPUVIRTUALADDRESS, - LX_DXMAKERESIDENT, LX_DXEVICT, LX_DXFREEGPUVIRTUALADDRESS, - LX_DXMAPGPUVIRTUALADDRESS, LX_DXUPDATEGPUVIRTUALADDRESS, - LX_DXOFFERALLOCATIONS, LX_DXRECLAIMALLOCATIONS2. - LX_DXESCAPE, LX_DXGETDEVICESTATE, LX_DXMARKDEVICEASERROR, - LX_DXQUERYSTATISTICS, - LX_DXGETCONTEXTINPROCESSSCHEDULINGPRIORITY, - LX_DXGETCONTEXTSCHEDULINGPRIORITY, - LX_DXSETCONTEXTINPROCESSSCHEDULINGPRIORITY, - LX_DXSETCONTEXTSCHEDULINGPRIORITY. drivers: hv: dxgkrnl: Implementation of submit command, paging queue and hardware queue implementation. drivers: hv: dxgkrnl: Seal the shared resource object when dxgk_share_objectsis called. drivers: hv: dxgkrnl: Implement sharing resources and sync objects drivers: hv: dxgkrnl: Implement operations with GPU sync objects drivers: hv: dxgkrnl: Implement creation/destruction of GPU allocations/resources drivers: hv: dxgkrnl: Open device object, adapter enumeration, dxgdevice, dxgcontext creation drivers: hv: dxgkrnl: Driver initialization and creation of dxgadapter
2 parents 77434fe + 033834b commit 8cb7307

File tree

20 files changed

+16520
-0
lines changed

20 files changed

+16520
-0
lines changed

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8190,6 +8190,12 @@ F: Documentation/devicetree/bindings/mtd/ti,am654-hbmc.txt
81908190
F: drivers/mtd/hyperbus/
81918191
F: include/linux/mtd/hyperbus.h
81928192

8193+
Hyper-V vGPU DRIVER
8194+
M: Iouri Tarassov <[email protected]>
8195+
8196+
S: Supported
8197+
F: drivers/hv/dxgkrnl/
8198+
81938199
HYPERVISOR VIRTUAL CONSOLE DRIVER
81948200
81958201
S: Odd Fixes

drivers/hv/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ config HYPERV_BALLOON
2626
help
2727
Select this option to enable Hyper-V Balloon driver.
2828

29+
source "drivers/hv/dxgkrnl/Kconfig"
30+
2931
endmenu

drivers/hv/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
obj-$(CONFIG_HYPERV) += hv_vmbus.o
33
obj-$(CONFIG_HYPERV_UTILS) += hv_utils.o
44
obj-$(CONFIG_HYPERV_BALLOON) += hv_balloon.o
5+
obj-$(CONFIG_DXGKRNL) += dxgkrnl/
56

67
CFLAGS_hv_trace.o = -I$(src)
78
CFLAGS_hv_balloon.o = -I$(src)

drivers/hv/dxgkrnl/Kconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#
2+
# dxgkrnl configuration
3+
#
4+
5+
config DXGKRNL
6+
tristate "Microsoft Paravirtualized GPU support"
7+
depends on HYPERV
8+
select DMA_SHARED_BUFFER
9+
select SYNC_FILE
10+
help
11+
This driver supports paravirtualized virtual GPU devices, exposed by
12+
Microsoft Hyper-V when Linux is running inside of a virtual machine
13+
hosted by Windows. The virtual machines needs to be configured to use
14+
host GPU adapters. The driver name is dxgkrnl.
15+
16+
An example of such virtual machine is a Windows Subsystem for
17+
Linux container. When such container is instantiated, the Windows host
18+
assigns compatible host GPU adapters to the container. The corresponding
19+
virtual GPU devices appear on the PCI bus in the container. These
20+
devices are enumerated and accessed by this driver.
21+
22+
Communications with the driver are done by using the Microsoft libdxcore
23+
library, which translates the D3DKMT interface
24+
<https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/d3dkmthk/>
25+
to the driver IOCTLs. The virtual GPU devices are paravirtualized,
26+
which means that access to the hardware is done in the host. The driver
27+
communicates with the host using Hyper-V VM bus communication channels.

drivers/hv/dxgkrnl/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
# Makefile for the Linux video drivers.
3+
4+
obj-$(CONFIG_DXGKRNL) += dxgkrnl.o
5+
dxgkrnl-y := dxgmodule.o hmgr.o misc.o dxgadapter.o ioctl.o dxgvmbus.o dxgprocess.o dxgsyncfile.o

0 commit comments

Comments
 (0)