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:
ff1b129
)
drm/radeon/cik: use a separate counter for CP init timeout
author
Alex Deucher
<
[email protected]
>
Tue, 23 Sep 2014 14:20:13 +0000
(10:20 -0400)
committer
Alex Deucher
<
[email protected]
>
Tue, 23 Sep 2014 14:20:13 +0000
(10:20 -0400)
Otherwise we may fail to init the second compute ring.
Noticed-by: Christian König <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
Cc:
[email protected]
drivers/gpu/drm/radeon/cik.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/cik.c
b/drivers/gpu/drm/radeon/cik.c
index 98dbaea21d08133b288678b496f13b6fe354d275..3d546c606b43b6fd366a1257c751b16b5aaa2df5 100644
(file)
--- a/
drivers/gpu/drm/radeon/cik.c
+++ b/
drivers/gpu/drm/radeon/cik.c
@@
-4803,7
+4803,7
@@
struct bonaire_mqd
*/
static int cik_cp_compute_resume(struct radeon_device *rdev)
{
- int r, i, idx;
+ int r, i,
j,
idx;
u32 tmp;
bool use_doorbell = true;
u64 hqd_gpu_addr;
@@
-4922,7
+4922,7
@@
static int cik_cp_compute_resume(struct radeon_device *rdev)
mqd->queue_state.cp_hqd_pq_wptr= 0;
if (RREG32(CP_HQD_ACTIVE) & 1) {
WREG32(CP_HQD_DEQUEUE_REQUEST, 1);
- for (
i = 0; i < rdev->usec_timeout; i
++) {
+ for (
j = 0; j < rdev->usec_timeout; j
++) {
if (!(RREG32(CP_HQD_ACTIVE) & 1))
break;
udelay(1);