mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
drm/etnaviv: check all modules for idle after reset
While the FE is an important part of the GPU, which needs to be idle after reset, all other modules should be idle after a proper reset. Check all present modules for being idle to determine whether the reset was successful. Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com> Link: https://patch.msgid.link/20260511085148.652256-1-l.stach@pengutronix.de Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
This commit is contained in:
parent
3e32e6672f
commit
1006d1f7c0
|
|
@ -584,9 +584,9 @@ static int etnaviv_hw_reset(struct etnaviv_gpu *gpu)
|
|||
/* read idle register. */
|
||||
idle = gpu_read(gpu, VIVS_HI_IDLE_STATE);
|
||||
|
||||
/* try resetting again if FE is not idle */
|
||||
if ((idle & VIVS_HI_IDLE_STATE_FE) == 0) {
|
||||
dev_dbg(gpu->dev, "FE is not idle\n");
|
||||
/* try resetting again if any module is not idle */
|
||||
if ((idle & gpu->idle_mask) != gpu->idle_mask) {
|
||||
dev_dbg(gpu->dev, "GPU modules not idle\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user