projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10b66b2
)
drm/amdgpu/vcn:Update SPG mode UVD status clear
author
James Zhu
<James.Zhu@amd.com>
Tue, 9 Oct 2018 21:06:56 +0000
(17:06 -0400)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 12 Oct 2018 17:55:59 +0000
(12:55 -0500)
Update Static Power Gate mode UVD status clear
Signed-off-by: James Zhu <James.Zhu@amd.com>
Acked-by: Leo Liu <leo.liu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
index d8fe14d43db0c4ae185c307586116f752cfe6e66..bc6470668057725abd11c25d37dfb146bac1f108 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
@@
-883,9
+883,9
@@
static int vcn_v1_0_start_spg_mode(struct amdgpu_device *adev)
UVD_SYS_INT_EN__UVD_JRBC_EN_MASK,
~UVD_SYS_INT_EN__UVD_JRBC_EN_MASK);
- /* clear the b
it 4 of VCN
_STATUS */
- WREG32_P(SOC15_REG_OFFSET(UVD, 0, mmUVD_STATUS), 0,
-
~(2 << UVD_STATUS__VCPU_REPORT__SHIFT)
);
+ /* clear the b
usy bit of UVD
_STATUS */
+ tmp = RREG32_SOC15(UVD, 0, mmUVD_STATUS) & ~UVD_STATUS__UVD_BUSY;
+
WREG32_SOC15(UVD, 0, mmUVD_STATUS, tmp
);
/* force RBC into idle state */
rb_bufsz = order_base_2(ring->ring_size);