mbox series

[0/2] PM: domains: use separate lockdep class for each genpd

Message ID 20210611101540.3379937-1-dmitry.baryshkov@linaro.org
Headers show
Series PM: domains: use separate lockdep class for each genpd | expand

Message

Dmitry Baryshkov June 11, 2021, 10:15 a.m. UTC
It is not possible to always use mutex nesting when locking/unlocking
genpds. See for example the trace in the patch#2, where genpd calls are
broken with regulator calls (genpd enables regulator, regulator uses
another genpd). This causes lockdep to print a false warning and stop
reporting further warnings. Break this by introducing per-domain lock
classes and use them to clearly track genpd locking sequences.