mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
video: rockchip: vpu: add qos save/restore when vpu_reset
Change-Id: I138c4efd1ca244b7cbf067ae9ef11b326af02e45 Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
This commit is contained in:
@@ -694,6 +694,9 @@ static void _vpu_reset(struct vpu_subdev_data *data)
|
||||
pservice->reg_resev = NULL;
|
||||
|
||||
#ifdef CONFIG_RESET_CONTROLLER
|
||||
|
||||
rockchip_save_qos(pservice->dev);
|
||||
|
||||
/* rk3328 need to use sip_smc_vpu_reset to reset vpu */
|
||||
if (pservice->hw_ops->reduce_freq == vcodec_reduce_freq_rk3328) {
|
||||
sip_smc_vpu_reset(0, 0, 0);
|
||||
@@ -721,6 +724,9 @@ static void _vpu_reset(struct vpu_subdev_data *data)
|
||||
|
||||
rockchip_pmu_idle_request(pservice->dev, false);
|
||||
}
|
||||
|
||||
rockchip_restore_qos(pservice->dev);
|
||||
|
||||
dev_info(pservice->dev, "reset done\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user