mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
drm/amdkfd: enable cooperative launch on gfx12
Even though GWS no longer exists, to maintain runtime usage for cooperative launch, SW set legacy GWS size. Signed-off-by: Jonathan Kim <jonathan.kim@amd.com> Acked-by: Mukul Joshi <mukul.joshi@amd.com> Reviewed-by: Harish Kasiviswanathan <harish.kasiviswanathan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
9655a16031
commit
6f0e68b8c7
|
|
@ -590,9 +590,13 @@ static int kfd_gws_init(struct kfd_node *node)
|
|||
&& kfd->mec2_fw_version >= 0x6b) ||
|
||||
(KFD_GC_VERSION(node) >= IP_VERSION(11, 0, 0)
|
||||
&& KFD_GC_VERSION(node) < IP_VERSION(12, 0, 0)
|
||||
&& mes_rev >= 68))))
|
||||
&& mes_rev >= 68) ||
|
||||
(KFD_GC_VERSION(node) >= IP_VERSION(12, 0, 0))))) {
|
||||
if (KFD_GC_VERSION(node) >= IP_VERSION(12, 0, 0))
|
||||
node->adev->gds.gws_size = 64;
|
||||
ret = amdgpu_amdkfd_alloc_gws(node->adev,
|
||||
node->adev->gds.gws_size, &node->gws);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user