mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
drm/amdgpu: Update kgd2kfd_shared_resources for dGPU support
Add GPUVM size and DRM render node. Also add function to query the VMID mask to avoid hard-coding it in multiple places later. v2: cut off GPUVM size at the VA hole Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
This commit is contained in:
committed by
Oded Gabbay
parent
d8d019ccff
commit
155494dbbb
@@ -108,6 +108,12 @@ struct kgd2kfd_shared_resources {
|
||||
|
||||
/* Number of bytes at start of aperture reserved for KGD. */
|
||||
size_t doorbell_start_offset;
|
||||
|
||||
/* GPUVM address space size in bytes */
|
||||
uint64_t gpuvm_size;
|
||||
|
||||
/* Minor device number of the render node */
|
||||
int drm_render_minor;
|
||||
};
|
||||
|
||||
struct tile_config {
|
||||
|
||||
Reference in New Issue
Block a user