]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/panfrost: Add missing OPP table refcnt decremental
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Tue, 5 Nov 2024 20:54:55 +0000 (20:54 +0000)
committerSteven Price <steven.price@arm.com>
Wed, 6 Nov 2024 15:41:37 +0000 (15:41 +0000)
commit043e8afebf6c19abde9da1ac3d5cbf8b7ac8393f
tree95e678817bf38700b76efca8fc4ffe4bcd9606c9
parentaadcf584583ca9833b4fb2140a4f437569ddbcd7
drm/panfrost: Add missing OPP table refcnt decremental

Commit f11b0417eec2 ("drm/panfrost: Add fdinfo support GPU load metrics")
retrieves the OPP for the maximum device clock frequency, but forgets to
keep the reference count balanced by putting the returned OPP object. This
eventually leads to an OPP core warning when removing the device.

Fix it by putting OPP objects as many times as they're retrieved.

Also remove an unnecessary whitespace.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Fixes: f11b0417eec2 ("drm/panfrost: Add fdinfo support GPU load metrics")
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241105205458.1318989-1-adrian.larumbe@collabora.com
drivers/gpu/drm/panfrost/panfrost_devfreq.c