mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: ga10b: Set GPU clocks to max rate
Max GPU clk supported by BPMP is 1.275GHz. Remove the hard-coded default value of 1GHz and pass an arbitrary high value to BPMP API to set the clocks to max rate. Use UINT_MAX instead of a hardcoded clk max_rate value (like 1.275GHz) to ensure that the max clock rate supported by BPMP is chosen during clk_set_rate(). Bug 200779751 Change-Id: I08719c3348e7e5c86aa45b423bac3a099cead005 Signed-off-by: Tejal Kudav <tkudav@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2612146 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-by: Sagar Kamble <skamble@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
c482effaf9
commit
d61a84c8d1
@@ -54,8 +54,6 @@
|
||||
|
||||
#define EMC3D_GA10B_RATIO 500
|
||||
|
||||
#define GPCCLK_INIT_RATE 1000000000UL
|
||||
|
||||
/*
|
||||
* To-do: clean these defines and include
|
||||
* BPMP header.
|
||||
@@ -72,9 +70,9 @@
|
||||
|
||||
/* Run gpc0, gpc1 and sysclk at same rate */
|
||||
struct gk20a_platform_clk tegra_ga10b_clocks[] = {
|
||||
{"sysclk", GPCCLK_INIT_RATE},
|
||||
{"gpc0clk", GPCCLK_INIT_RATE},
|
||||
{"gpc1clk", GPCCLK_INIT_RATE},
|
||||
{"sysclk", UINT_MAX},
|
||||
{"gpc0clk", UINT_MAX},
|
||||
{"gpc1clk", UINT_MAX},
|
||||
{"fuse", UINT_MAX}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user