projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1c8e1e
)
drm/amd/powerplay: add pptable point check before use it
author
Rex Zhu
<
[email protected]
>
Thu, 25 Aug 2016 12:00:28 +0000
(20:00 +0800)
committer
Alex Deucher
<
[email protected]
>
Fri, 16 Sep 2016 19:52:50 +0000
(15:52 -0400)
Signed-off-by: Rex Zhu <
[email protected]
>
Acked-by: Christian König <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Reviewed-by: Edward O'Callaghan <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
index 82427fb454d2793a2febd326861fbee37730f33d..1b3151ce8f9e52eaf3fd0564bb1eded2fde238fc 100644
(file)
--- a/
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
+++ b/
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
@@
-555,7
+555,8
@@
int phm_initializa_dynamic_state_adjustment_rule_settings(struct pp_hwmgr *hwmgr
table_clk_vlt->entries[2].v = 810;
table_clk_vlt->entries[3].clk = PP_DAL_POWERLEVEL_PERFORMANCE;
table_clk_vlt->entries[3].v = 900;
- pptable_info->vddc_dep_on_dal_pwrl = table_clk_vlt;
+ if (pptable_info != NULL)
+ pptable_info->vddc_dep_on_dal_pwrl = table_clk_vlt;
hwmgr->dyn_state.vddc_dep_on_dal_pwrl = table_clk_vlt;
}