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)
commit9e62b885f71568d166c97b040b4b2e218c2a5584
tree8512b086cf60f7ebb36fba61ff85628e75fcb119
parent221bc77914cbcccaac1918ba80dce807452e143d
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