提交 87ca0403 编写于 作者: P popcornmix 提交者: Zheng Zengkai

v3d_gem: Kick the clock so firmware knows we are using firmware clock interface

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

Setting the v3d clock to low value allows firmware to handle dvfs in case
where v3d hardware is not being actively used (e.g. console use).
Signed-off-by: Npopcornmix <popcornmix@gmail.com>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 e745acb7
...@@ -920,6 +920,10 @@ v3d_gem_init(struct drm_device *dev) ...@@ -920,6 +920,10 @@ v3d_gem_init(struct drm_device *dev)
mutex_init(&v3d->clk_lock); mutex_init(&v3d->clk_lock);
INIT_DELAYED_WORK(&v3d->clk_down_work, v3d_clock_down_work); INIT_DELAYED_WORK(&v3d->clk_down_work, v3d_clock_down_work);
/* kick the clock so firmware knows we are using firmware clock interface */
v3d_clock_up_get(v3d);
v3d_clock_up_put(v3d);
/* Note: We don't allocate address 0. Various bits of HW /* Note: We don't allocate address 0. Various bits of HW
* treat 0 as special, such as the occlusion query counters * treat 0 as special, such as the occlusion query counters
* where 0 means "disabled". * where 0 means "disabled".
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册