This fixes a crash when multiple PM engine contexts are created.
Signed-off-by: Samuel Pitoiset
Reviewed-by: Martin Peres
---
drm/nouveau/nvkm/engine/pm/base.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drm/nouveau/nvkm/engine/pm/base.c
b/drm/nouveau/nvkm/engine
There is always the possiblity that the ppm->context pointer would get
partially updated and accidentally would equal ctx. This would allow two
contexts to co-exist, which is not acceptable. Moving the test to the
critical section takes care of this problem.
Signed-off-by: Samuel Pitoiset
Signed-
https://bugs.freedesktop.org/show_bug.cgi?id=33165
Ilia Mirkin changed:
What|Removed |Added
Summary|[NVA3, NVA8] gpu lockup |[NVA3] GDDR5 vram ->
|du
https://bugs.freedesktop.org/show_bug.cgi?id=33165
Ilia Mirkin changed:
What|Removed |Added
CC||tom.winterhal...@gmail.com
--- Comment #41
https://bugs.freedesktop.org/show_bug.cgi?id=89991
Ilia Mirkin changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://bugs.freedesktop.org/show_bug.cgi?id=89893
Michel Dänzer changed:
What|Removed |Added
Component|* Other |Driver/nouveau
Assignee|xorg-t