[lkml]   [2022]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v1 8/9] drivers: hv: dxgkrnl: Implement various WDDM ioctls
On Wed, Jan 12, 2022 at 11:55:13AM -0800, Iouri Tarassov wrote:
> Implement various WDDM IOCTLs.
> - IOCTLs to handle GPU virtual addressing (VA):
> WDDM supports a compute device to use GPU virtual addresses when
> accessing allocation memory. A GPU VA could be reserved or mapped
> to a GPU allocation. The video memory manager on the host updates
> GPU page tables for the virtual addresses.
> - IOCTLs to manage residency of GPU accessing allocations:
> An allocation is resident when GPU is setup to access it. The
> current WDDM design does not support on demand GPU page faulting.
> An allocation must be resident (be in the local device memory or
> in non-pageable system memory) before GPU is allowed to access it.
> - IOCTLs to offer/reclaim alloctions:
> When a user mode driver does not need an allocation, it can
> "offer" it. This means that the allocation is not in use and it
> local device memory could be reclaimed and given to another allocation.
> When the allocation is again needed, the caller can "reclaim" the
> allocations. If the allocation is still in the device local memory,
> the reclaim operation succeeds. If not the called must restore the
> content of the allocation before it can be used by the device.
> This IOCTL is used to send/receive private data between user mode
> driver and kernel mode driver. This is an extension of the WDDM APIs.
> The IOCTL is used to get the current execution state of the dxgdevice
> object.
> The IOCTL is used to bring the dxgdevice object to the error state.
> Subsequent calls to use the device object will fail.
> The IOCTL is used to query various statistics from the compute device
> on the host.
> - IOCTLs to deal with execution context priorities
> Signed-off-by: Iouri Tarassov <>
> ---
> drivers/hv/dxgkrnl/dxgkrnl.h | 2 +
> drivers/hv/dxgkrnl/dxgvmbus.c | 1466 ++++++++++++++++++++++++++++---
> drivers/hv/dxgkrnl/dxgvmbus.h | 15 +
> drivers/hv/dxgkrnl/ioctl.c | 1524 ++++++++++++++++++++++++++++++++-
> 4 files changed, 2831 insertions(+), 176 deletions(-)

Again, break this up into smaller pieces. Would you want to review all
of these at the same time?

Remember, you write code for people to review and understand first, and
the compiler second. With large changes like this, you are making it
difficult for people to review, which is your target audience.

I'll stop here, please fix up this patch series into something that is


greg k-h

 \ /
  Last update: 2022-01-13 08:49    [W:0.217 / U:2.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site