]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: Simplify devfreq utilisation tracking
authorSteven Price <steven.price@arm.com>
Fri, 25 Oct 2019 13:41:43 +0000 (14:41 +0100)
committerRob Herring <robh@kernel.org>
Tue, 29 Oct 2019 18:01:51 +0000 (13:01 -0500)
commitc74d56d37b9ae9d85e2cc5012f556a5eef7d7a58
tree8512b086cf60f7ebb36fba61ff85628e75fcb119
parente9354e1aab5f4e463f42108841cb57b23b784800
drm/panfrost: Simplify devfreq utilisation tracking

Instead of tracking per-slot utilisation track a single value for the
entire GPU. Ultimately it doesn't matter if the GPU is busy with only
vertex or a combination of vertex and fragment processing - if it's busy
then it's busy and devfreq should be scaling appropriately.

This also makes way for being able to submit multiple jobs per slot
which requires more values than the original boolean per slot.

Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191025134143.14324-3-steven.price@arm.com
drivers/gpu/drm/panfrost/panfrost_devfreq.c
drivers/gpu/drm/panfrost/panfrost_devfreq.h
drivers/gpu/drm/panfrost/panfrost_device.h
drivers/gpu/drm/panfrost/panfrost_job.c