drm/amd/powerplay: fix amd_powerplay_reset()
Subsystems (3)
PATCH 1/1 drm/amd/powerplay: fix amd_powerplay_reset()
We accidentally inverted an if statement and turned amd_powerplay_reset() into a no-op.
---
IMHO, tidying unreadable double negatives is tricky and error prone but still worth it in the long run.
drivers/gpu/drm/amd/powerplay/amd_powerplay.c +1 -1
@@ -1184,7 +1184,7 @@ int amd_powerplay_reset(void *handle)int ret; ret =pp_check (instance); -if (!ret) +if (ret)return ret; ret =pp_hw_fini (instance);
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 4 lines · Dan Carpenter
We accidentally inverted an if statement and turned
amd_powerplay_reset()into a no-op.Fixes ae97988fc89e ("drm/amd/powerplay: tidy up ret checks in amd_powerplay.c (v3)")
For some reason I looked up that commit, and it has *two* cases where "ret != 0" gets changed to "!ret".
BR,
Jani.
Quoted 22 lines
Signed-off-by Dan Carpenter <[email protected]>---
IMHO, tidying unreadable double negatives is tricky and error prone but still worth it in the long run.drivers/gpu/drm/amd/powerplay/amd_powerplay.c +1
-1@@ -1184,7 +1184,7 @@ int amd_powerplay_reset(void *handle)int ret; ret =pp_check (instance); -if (!ret) +if (ret)return ret; ret =pp_hw_fini (instance);_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 9 lines · Jani Nikula
Quoted 4 lines · Dan Carpenter
We accidentally inverted an if statement and turned
amd_powerplay_reset()into a no-op.Fixes ae97988fc89e ("drm/amd/powerplay: tidy up ret checks in amd_powerplay.c (v3)")For some reason I looked up that commit, and it has *two* cases where "ret != 0" gets changed to "!ret".
The other bug was secretly fixed in commit 3811f8f00c5f ("drm/amd/powerplay:
move set_clockgating_by_smu to pp func table").
regards,
dan carpenter
Alex Deucher
AppliedQuoted 5 lines · Dan Carpenter
We accidentally inverted an if statement and turned
amd_powerplay_reset()into a no-op.Fixes ae97988fc89e ("drm/amd/powerplay: tidy up ret checks in amd_powerplay.c (v3)")Signed-off-by Dan Carpenter <[email protected]>
Applied. thanks!
Alex
Quoted 17 lines
---
IMHO, tidying unreadable double negatives is tricky and error prone but still worth it in the long run.drivers/gpu/drm/amd/powerplay/amd_powerplay.c +1
-1@@ -1184,7 +1184,7 @@ int amd_powerplay_reset(void *handle)int ret; ret =pp_check (instance); -if (!ret) +if (ret)return ret; ret =pp_hw_fini (instance);
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel