drm/amdkfd: Add topology support for dGPUs
Generate and parse VCRAT tables for dGPUs in kfd_topology_add_device. Some information that isn't available in the CRAT table is patched into the topology after parsing. HSA_CAP_DOORBELL_TYPE_1_0 is dependent on the ASIC feature CP_HQD_PQ_CONTROL.SLOT_BASED_WPTR, which was not introduced in VI until Carrizo. Report HSA_CAP_DOORBELL_TYPE_PRE_1_0 on Tonga ASICs. v2: Added #include <linux/pci.h> to kfd_crat.c to make it compile Signed-off-by:Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com> Signed-off-by:
Ben Goz <ben.goz@amd.com> Signed-off-by:
Amber Lin <Amber.Lin@amd.com> Signed-off-by:
Jay Cornwall <Jay.Cornwall@amd.com> Signed-off-by:
Kent Russell <kent.russell@amd.com> Signed-off-by:
Felix Kuehling <Felix.Kuehling@amd.com> Acked-by:
Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by:
Oded Gabbay <oded.gabbay@gmail.com>
Showing
- drivers/gpu/drm/amd/amdkfd/kfd_crat.c 579 additions, 17 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_crat.c
- drivers/gpu/drm/amd/amdkfd/kfd_crat.h 3 additions, 2 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_crat.h
- drivers/gpu/drm/amd/amdkfd/kfd_priv.h 2 additions, 0 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_priv.h
- drivers/gpu/drm/amd/amdkfd/kfd_topology.c 158 additions, 30 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_topology.c
- drivers/gpu/drm/amd/amdkfd/kfd_topology.h 6 additions, 2 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_topology.h
Please register or sign in to comment