[PATCH] drm/amdgpu: disable gfxoff with the compute workload on gfx12
Alex Deucher
alexdeucher at gmail.com
Fri Jan 10 16:19:21 UTC 2025
On Thu, Jan 9, 2025 at 9:39 PM Kenneth Feng <kenneth.feng at amd.com> wrote:
>
> Disable gfxoff with the compute workload on gfx12. This is a
> workaround for the opencl test failure.
>
> Signed-off-by: Kenneth Feng <kenneth.feng at amd.com>
Acked-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
> index 2e5732dfd425..2c1b38c5cfc6 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
> @@ -715,8 +715,9 @@ int amdgpu_amdkfd_submit_ib(struct amdgpu_device *adev,
> void amdgpu_amdkfd_set_compute_idle(struct amdgpu_device *adev, bool idle)
> {
> enum amd_powergating_state state = idle ? AMD_PG_STATE_GATE : AMD_PG_STATE_UNGATE;
> - if (IP_VERSION_MAJ(amdgpu_ip_version(adev, GC_HWIP, 0)) == 11 &&
> - ((adev->mes.kiq_version & AMDGPU_MES_VERSION_MASK) <= 64)) {
> + if ((IP_VERSION_MAJ(amdgpu_ip_version(adev, GC_HWIP, 0)) == 11 &&
> + ((adev->mes.kiq_version & AMDGPU_MES_VERSION_MASK) <= 64)) ||
> + (IP_VERSION_MAJ(amdgpu_ip_version(adev, GC_HWIP, 0)) == 12)) {
> pr_debug("GFXOFF is %s\n", idle ? "enabled" : "disabled");
> amdgpu_gfx_off_ctrl(adev, idle);
> } else if ((IP_VERSION_MAJ(amdgpu_ip_version(adev, GC_HWIP, 0)) == 9) &&
> --
> 2.34.1
>
More information about the amd-gfx
mailing list