disp: msm: sde: avoid concurrency while calculating max mode width
With DP plug-ins, it is possible for the connector fill modes API to be called to update available modes on the connector and at the same time have the commit thread calculate the max mode width on the available modes. As a result, it is possible to access pruned modes from the modelist. This change moves the calculation into the fill modes call-flow, so that the max mode width is determined once, and stored to be used during virt enable. Change-Id: I6c332c57e6e98ed98444a303add97d163a2031bf Signed-off-by: Nilaan Gunabalachandran <quic_ngunabal@quicinc.com>
This commit is contained in:
@@ -577,6 +577,7 @@ struct sde_misr_sign {
|
||||
* @misr_event_notify_enabled: Flag to indicate if misr event notify is enabled or not
|
||||
* @previous_misr_sign: store previous misr signature
|
||||
* @hwfence_wb_retire_fences_enable: enable hw-fences for wb retire-fence
|
||||
* @max_mode_width: max width of all available modes
|
||||
*/
|
||||
struct sde_connector {
|
||||
struct drm_connector base;
|
||||
@@ -657,6 +658,8 @@ struct sde_connector {
|
||||
struct sde_misr_sign previous_misr_sign;
|
||||
|
||||
bool hwfence_wb_retire_fences_enable;
|
||||
|
||||
u32 max_mode_width;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user