History

drm/amdgpu: Fix SDMA HQD destroy error on gfx_v7

A wrong register bit was examinated for checking SDMA status so it reports false failures. This typo only appears on gfx_v7. gfx_v8 checks the correct bit.

Amber Lin committed 8 years ago

Commit caaa4c81 parent 30f39841 file · +1 −1Browse files

Unified · Split

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c+1−1
@@ -685,7 +685,7 @@ static int kgd_hqd_sdma_destroy(struct kgd_dev *kgd, void *mqd, · 684 unmodified lines
685685
686686 while (true) {
687687 temp = RREG32(sdma_base_addr + mmSDMA0_RLC0_CONTEXT_STATUS);
688− if (temp & SDMA0_STATUS_REG__RB_CMD_IDLE__SHIFT)
688+ if (temp & SDMA0_RLC0_CONTEXT_STATUS__IDLE_MASK)
689689 break;
690690 if (time_after(jiffies, end_jiffies))
691691 return -ETIME;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t