]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/panthor: call into devfreq for current frequency
authorNicolas Frattaroli <nicolas.frattaroli@collabora.com>
Fri, 17 Oct 2025 15:31:10 +0000 (17:31 +0200)
committerLiviu Dudau <liviu.dudau@arm.com>
Mon, 3 Nov 2025 15:27:25 +0000 (15:27 +0000)
commit3dd4844ba04bb927c7f86edee971ea17ee881a54
tree8f79f54cf1cf994f43007a29676d6da66b087e36
parent12c069e072cf85c67346d1229e231f8e45e99549
drm/panthor: call into devfreq for current frequency

As it stands, panthor keeps a cached current frequency value for when it
wants to retrieve it. This doesn't work well for when things might
switch frequency without panthor's knowledge.

Instead, implement the get_cur_freq operation, and expose it through a
helper function to the rest of panthor.

Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Karunika Choo <karunika.choo@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Link: https://patch.msgid.link/20251017-mt8196-gpufreq-v8-3-98fc1cc566a1@collabora.com
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/panthor/panthor_devfreq.c
drivers/gpu/drm/panthor/panthor_devfreq.h
drivers/gpu/drm/panthor/panthor_device.h
drivers/gpu/drm/panthor/panthor_drv.c