diff options
author | Vijayakumar <vsubbu@nvidia.com> | 2016-09-27 06:59:14 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:56:50 -0500 |
commit | f533ec3cbddfff7944c4b9021cccf026dc27e572 (patch) | |
tree | 84d4524d2b91e8881c27c3485c27bb9845785e94 /drivers/gpu/nvgpu/clk/clk_prog.c | |
parent | af637c81fe6360dbe81373b6f1e5dbdd3ca35536 (diff) |
gpu: nvgpu: fix sram rail volt calculation
JIRA DNVGPU-120
SRAM rail voltage needs to be picked up from SRAM
index of VF entries in CLK prog table.
Change-Id: Iabfff62edeec5aa9c2ead62d6b943fb2ebb952ed
Signed-off-by: Vijayakumar <vsubbu@nvidia.com>
Reviewed-on: http://git-master/r/1227665
(cherry picked from commit 8053260438bc94397b20e74cf18453624ebeb325)
Reviewed-on: http://git-master/r/1244664
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_prog.c')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_prog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_prog.c b/drivers/gpu/nvgpu/clk/clk_prog.c index 9fdd8b25..6b81650e 100644 --- a/drivers/gpu/nvgpu/clk/clk_prog.c +++ b/drivers/gpu/nvgpu/clk/clk_prog.c | |||
@@ -886,7 +886,7 @@ static u32 vflookup_prog_1x_master | |||
886 | pvfentry = (struct ctrl_clk_clk_prog_1x_master_vf_entry *)( | 886 | pvfentry = (struct ctrl_clk_clk_prog_1x_master_vf_entry *)( |
887 | (u8 *)pvfentry + | 887 | (u8 *)pvfentry + |
888 | (sizeof(struct ctrl_clk_clk_prog_1x_master_vf_entry) * | 888 | (sizeof(struct ctrl_clk_clk_prog_1x_master_vf_entry) * |
889 | (rail+1))); | 889 | rail)); |
890 | 890 | ||
891 | clkmhz = *pclkmhz; | 891 | clkmhz = *pclkmhz; |
892 | voltuv = *pvoltuv; | 892 | voltuv = *pvoltuv; |