drm/amdkfd: Store drm node minor number for kfd nodes
authorPhilip Yang <Philip.Yang@amd.com>
Thu, 23 Feb 2023 16:03:37 +0000 (11:03 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:59:50 +0000 (09:59 -0400)
commita476c0c645535cc0361938becb440b4239996079
tree60e62cbe96764433f08d3e9a076953b2d1b71076
parentd26ea1b346e71c07aa00956c32fe2d2dbec068ec
drm/amdkfd: Store drm node minor number for kfd nodes

From KFD topology, application will find kfd node with the corresponding
drm device node minor number, for example if partition drm node starts
from /dev/dri/renderD129, then KFD node 0 with store drm node minor
number 129. Application will open drm node /dev/dri/renderD129 to create
amdgpu vm for kfd node 0 with the correct vm->mem_id to indicate the
memory partition.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_topology.c