Skip to content

drm/lima: fixes and improvements to error recovery

Erico Nunes dri-devel lkml 2 versions – Applied

Status from this message: applied to drm-misc-next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 5 repliesApplied
  2. v16 patches 23 repliesSuperseded

Changes in v2 from the cover letter

- Dropped patch 1 which aimed to fix
https://gitlab.freedesktop.org/mesa/mesa/-/issues/8415 . That will require more testing and an actual fix to the irq/timeout handler race. It can be solved separately so I am deferring it to a followup patch and keeping that issue open.

- Added patches 2 and 4 to cover "reset time out" and bus stop bit to hard reset in gp as well.

- Added handling of all processors in synchronize_irq in patch 5 to cover multiple pp. Dropped unnecessary duplicate fence in patch 5.

- Added patch 7 in v2. After some discussion in patch 4 (v1), it seems to be reasonable to bump our timeout value so that we further decrease the chance of users actually hitting any of these timeouts by default.

- Reworked patch 8 in v2. Since I broadened the work to not only focus in pp anymore, I also included the change to the other blocks as well.

- Collected some reviews and acks in unmodified patches.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8drm/lima: reset async_reset on pp hard resetdrivers/gpu/drm/lima/lima_pp.c+7 -00 replies
2/8drm/lima: reset async_reset on gp hard resetdrivers/gpu/drm/lima/lima_gp.c+7 -00 replies
3/8drm/lima: set pp bus_stop bit before hard resetdrivers/gpu/drm/lima/lima_pp.c+13 -00 replies
4/8drm/lima: set gp bus_stop bit before hard resetdrivers/gpu/drm/lima/lima_gp.c+12 -00 replies
5/8drm/lima: handle spurious timeouts due to high irq latencydrivers/gpu/drm/lima/lima_sched.c+28 -33 replies
6/8drm/lima: remove guilty drm_sched context handlingdrivers/gpu/drm/lima/lima_ctx.c drivers/gpu/drm/lima/lima_ctx.h drivers/gpu/drm/lima/lima_sched.c +1 more+4 -70 replies
7/8drm/lima: increase default job timeout to 10sdrivers/gpu/drm/lima/lima_sched.c+1 -10 replies
8/8drm/lima: standardize debug messages by ip namedrivers/gpu/drm/lima/lima_gp.c drivers/gpu/drm/lima/lima_l2_cache.c drivers/gpu/drm/lima/lima_mmu.c +2 more+36 -300 replies

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by.

PatchVasily KhoruzhickChristian König
1/8R-b
2/8
3/8R-b
4/8
5/8
6/8R-b A-b
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] drm/lima: fixes and improvements to error recovery

v1 reference:
https://patchwork.kernel.org/project/dri-devel/cover/[email protected]/

Changes v1 -> v2:
- Dropped patch 1 which aimed to fix
https://gitlab.freedesktop.org/mesa/mesa/-/issues/8415 . That will require more testing and an actual fix to the irq/timeout handler race. It can be solved separately so I am deferring it to a followup patch and keeping that issue open.

- Added patches 2 and 4 to cover "reset time out" and bus stop bit to hard reset in gp as well.

- Added handling of all processors in synchronize_irq in patch 5 to cover multiple pp. Dropped unnecessary duplicate fence in patch 5.

- Added patch 7 in v2. After some discussion in patch 4 (v1), it seems to be reasonable to bump our timeout value so that we further decrease the chance of users actually hitting any of these timeouts by default.

- Reworked patch 8 in v2. Since I broadened the work to not only focus in pp anymore, I also included the change to the other blocks as well.

- Collected some reviews and acks in unmodified patches.

Erico Nunes (8):
drm/lima: reset async_reset on pp hard reset drm/lima: reset async_reset on gp hard reset drm/lima: set pp bus_stop bit before hard reset drm/lima: set gp bus_stop bit before hard reset drm/lima: handle spurious timeouts due to high irq latency drm/lima: remove guilty drm_sched context handling drm/lima: increase default job timeout to 10s drm/lima: standardize debug messages by ip name

 drivers/gpu/drm/lima/lima_ctx.c      |  2 +-
 drivers/gpu/drm/lima/lima_ctx.h      |  1 -
 drivers/gpu/drm/lima/lima_gp.c       | 39 +++++++++++++++++++++-------
 drivers/gpu/drm/lima/lima_l2_cache.c |  6 +++--
 drivers/gpu/drm/lima/lima_mmu.c      | 18 ++++++-------
 drivers/gpu/drm/lima/lima_pmu.c      |  3 ++-
 drivers/gpu/drm/lima/lima_pp.c       | 37 ++++++++++++++++++++------
 drivers/gpu/drm/lima/lima_sched.c    | 38 ++++++++++++++++++++++-----
 drivers/gpu/drm/lima/lima_sched.h    |  3 +--
 9 files changed, 107 insertions(+), 40 deletions(-)
Signature · 1 line
2.43.0