Merge "msm: kgsl: Add a Kconfig setting for GPU idle timeout"

This commit is contained in:
qctecmdr 2020-11-17 05:57:30 -08:00 • committed by Gerrit - the friendly Code Review server
commit e915fc5948
2 changed files with 11 additions and 2 deletions

View file

@ -51,3 +51,13 @@ config QCOM_KGSL_IOCOHERENCY_DEFAULT
support hardware I/O coherency. If enabled all cached GPU memory
will use I/O coherency regardless of the user flags. If not enabled
the user can still selectively enable I/O coherency with a flag.
config QCOM_KGSL_IDLE_TIMEOUT
int
default 100000 if !QGKI
default 80
help
GPU idle timeout for Adreno GPU. This value decides after how
long the GPU will go into slumber. A higher value will mean that
the GPU is powered ON for a longer duration which will have
power costs.

View file

@ -1074,8 +1074,7 @@ static int adreno_of_get_power(struct adreno_device *adreno_dev,
l3_pwrlevel_probe(device, pdev->dev.of_node);
/* Default timeout is 80 ms across all targets */
device->pwrctrl.interval_timeout = 80;
device->pwrctrl.interval_timeout = CONFIG_QCOM_KGSL_IDLE_TIMEOUT;
device->pwrctrl.minbw_timeout = 10;