disp: msm: sde: cache disable cp properties during last close
When all instances of driver fd's are closed by user-space client, drm driver will be closed. When last close of driver is called, custom reset properties api will be called where driver should cache the properties that it wants to clear. Current behavior of color processing driver is to clear hardware configuration instead of caching which can cause crashes if clocks are off. Change updates the driver to cache the pending disable and update hardware during display commit. Change-Id: I9703f860ed0ae3c859d6fc3995b58be13203f259 Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
此提交包含在:
@@ -319,6 +319,7 @@ struct sde_frame_data {
|
||||
* @ltm_lock : Spinlock to protect ltm buffer_cnt, hist_en and ltm lists
|
||||
* @needs_hw_reset : Initiate a hw ctl reset
|
||||
* @hist_irq_idx : hist interrupt irq idx
|
||||
* @disable_pending_cp : flag tracks pending color processing features force disable
|
||||
* @src_bpp : source bpp used to calculate compression ratio
|
||||
* @target_bpp : target bpp used to calculate compression ratio
|
||||
* @static_cache_read_work: delayed worker to transition cache state to read
|
||||
@@ -417,6 +418,7 @@ struct sde_crtc {
|
||||
spinlock_t ltm_lock;
|
||||
bool needs_hw_reset;
|
||||
int hist_irq_idx;
|
||||
bool disable_pending_cp;
|
||||
|
||||
int src_bpp;
|
||||
int target_bpp;
|
||||
|
新增問題並參考
封鎖使用者