]> 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)
commitd35a2e3fb3942e264f23841261d112c29afa7afd
tree8512b086cf60f7ebb36fba61ff85628e75fcb119
parentfd136082a0bc7c9c36b6ff423f27e556bed9689c
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