History

drm/etnaviv: reduce reset delay

After reset assertion, we only have to wait for the reset signals to propagate through the GPU before deasserting the reset again. A few hundred clock cycles should be more than enough. Replace the msleep(1), which can actually take about 30 ms on i.MX6Q in some configurations, with an usleep_range of a few microseconds. If the delay was too short, the FE would not be idle afterwards, and the reset would be retried.

Philipp Zabel committed 9 years ago

Commit 40462171 parent 13cde9f1 file · +1 −1Browse files

Unified · Split

drivers/gpu/drm/etnaviv/etnaviv_gpu.c+1−1
@@ -456,7 +456,7 @@ static int etnaviv_hw_reset(struct etnaviv_gpu *gpu) · 455 unmodified lines
456456 gpu_write(gpu, VIVS_HI_CLOCK_CONTROL, control);
457457
458458 /* wait for reset. */
459− msleep(1);
459+ usleep_range(10, 20);
460460
461461 /* reset soft reset bit. */
462462 control &= ~VIVS_HI_CLOCK_CONTROL_SOFT_RESET;

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