summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2016-11-15 12:46:22 -0500
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:56:51 -0500
commit294e2520d5b2fd8225935b30403cfd59018dd525 (patch)
tree702481ea55956356f7dc13459c58710f07111369 /drivers/gpu
parent0bef6c98974be712381a95f7fca143b2679a6ea4 (diff)
gpu: nvgpu: gp106: Program RX bias current
Hard code RX bias current to 0x2. Bug 1833830 Change-Id: I1107bad52de7b38d311bc5795739777a4bb4239a Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1253656 (cherry picked from commit 7e853b0c62043cc53847e3535e05886d574dc779) Reviewed-on: http://git-master/r/1255724 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/nvgpu/clk/clk_mclk.c3
-rw-r--r--drivers/gpu/nvgpu/gp106/hw_fb_gp106.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_mclk.c b/drivers/gpu/nvgpu/clk/clk_mclk.c
index ea238c15..86f4ff6d 100644
--- a/drivers/gpu/nvgpu/clk/clk_mclk.c
+++ b/drivers/gpu/nvgpu/clk/clk_mclk.c
@@ -2189,6 +2189,9 @@ int clk_mclkseq_init_mclk_gddr5(struct gk20a *g)
2189 2189
2190 mutex_init(&mclk->mclk_mutex); 2190 mutex_init(&mclk->mclk_mutex);
2191 2191
2192 /* FBPA gain WAR */
2193 gk20a_writel(g, fb_fbpa_fbio_iref_byte_rx_ctrl_r(), 0x22222222);
2194
2192 mclk->speed = gk20a_mclk_low_speed; /* Value from Devinit */ 2195 mclk->speed = gk20a_mclk_low_speed; /* Value from Devinit */
2193 2196
2194 /* Parse VBIOS */ 2197 /* Parse VBIOS */
diff --git a/drivers/gpu/nvgpu/gp106/hw_fb_gp106.h b/drivers/gpu/nvgpu/gp106/hw_fb_gp106.h
index 19d88464..519679f5 100644
--- a/drivers/gpu/nvgpu/gp106/hw_fb_gp106.h
+++ b/drivers/gpu/nvgpu/gp106/hw_fb_gp106.h
@@ -602,4 +602,8 @@ static inline u32 fb_niso_scrub_status_flag_v(u32 r)
602{ 602{
603 return (r >> 0) & 0x1; 603 return (r >> 0) & 0x1;
604} 604}
605static inline u32 fb_fbpa_fbio_iref_byte_rx_ctrl_r(void)
606{
607 return 0x009a0eb0;
608}
605#endif 609#endif