]> www.infradead.org Git - users/jedix/linux-maple.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)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 2 Oct 2024 08:55:16 +0000 (10:55 +0200)
commit37591ae11f89cdfc0a647945a589468642a44c17
tree170f594a9ee00d4648e632d135daf4fa839c4f45
parentf8ff51a4708451763e6cfa36cc83dea8513d3318
drm/panthor: record current and maximum device clock frequencies

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
drivers/gpu/drm/panthor/panthor_devfreq.c
drivers/gpu/drm/panthor/panthor_device.h