]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
tegra: adsp: Max ADSP clock at APM active
authorViswanath L <viswanathl@nvidia.com>
Wed, 25 May 2016 08:06:24 +0000 (13:36 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 16 Nov 2016 09:40:19 +0000 (01:40 -0800)
Spike ADSP freq. to max when app transitions to active so that ADSP
does not starve

Bug 200196267

Change-Id: I11863b2449cfecc47aefd9bc41059b634b3b2acd
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/1154410
(cherry picked from commit 9e6163d9c1f2f07c9b4510d609aa974a75da96c7)
Reviewed-on: http://git-master/r/1236637
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
sound/soc/tegra-alt/tegra210_adsp_alt.c

index 4e02be5cf7e57f192e0d3a3323607fd9254327f9..110c2f0a0a0fe4bb445a423c2f2c8d4bc4bd52ff 100644 (file)
@@ -647,6 +647,11 @@ static int tegra210_adsp_send_state_msg(struct tegra210_adsp_app *app,
        apm_msg.msg.call_params.method = nvfx_method_set_state;
        apm_msg.msg.state_params.state = state;
 
+       /* Spike ADSP freq to max when app transitions to active */
+       /* state; DFS will thereafter find appropriate rate      */
+       if (state == nvfx_state_active)
+               adsp_override_freq(INT_MAX);
+
        return tegra210_adsp_send_msg(app, &apm_msg, flags);
 }