video: rockchip: mpp: No need to save qos when making idle requests

Playing mpeg2 video will get stuck at the last position.

The reason is that qos will be saved when vdpu2 is reset.
However, the pd-related clock has been turned off, causing
the read and write registers to be stuck.

However, when pd is switched on and off, the qos will be
saved and restored by itself, and for the 3588 platform,
there is no need to save qos before making an idle request.

Change-Id: I048ed648a97515976f6029a9498080a1ceaa9a2e
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
This commit is contained in:
Hongjin Li
2021-12-23 09:14:20 +08:00
committed by Tao Huang
parent 3785bf3a30
commit e53c51e28d

View File

@@ -584,10 +584,8 @@ int mpp_dev_reset(struct mpp_dev *mpp)
mpp_reset_down_write(mpp->reset_group);
atomic_set(&mpp->reset_request, 0);
rockchip_save_qos(mpp->dev);
if (mpp->hw_ops->reset)
mpp->hw_ops->reset(mpp);
rockchip_restore_qos(mpp->dev);
/* Note: if the domain does not change, iommu attach will be return
* as an empty operation. Therefore, force to close and then open,