]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/panthor: record current and maximum device clock frequencies
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Mon, 23 Sep 2024 23:06:22 +0000 (00:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:53:21 +0000 (13:53 +0100)
commit7712b6a44d7a24d16f307f12100437270d43dceb
tree720f2b01e9d43ed3372def6167c6d0ea9bdab7f0
parent80a701bc8f87a4fc3b0746f7421acd8705524b2a
drm/panthor: record current and maximum device clock frequencies

[ Upstream commit 37591ae11f89cdfc0a647945a589468642a44c17 ]

In order to support UM in calculating rates of GPU utilisation, the current
operating and maximum GPU clock frequencies must be recorded during device
initialisation, and also during OPP state transitions.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240923230912.2207320-3-adrian.larumbe@collabora.com
Stable-dep-of: 21c23e4b64e3 ("drm/panthor: Fix OPP refcnt leaks in devfreq initialisation")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/panthor/panthor_devfreq.c
drivers/gpu/drm/panthor/panthor_device.h