Bläddra i källkod

disp: msm: sde: add hw-fence QOS priority config

This change updates the hw-fence QOS priority level.

Change-Id: I61e832f15d060cd563986dbd7135c00fce9dd5c9
Signed-off-by: Christina Oliveira <[email protected]>
Signed-off-by: Grace An <[email protected]>
Grace An 2 år sedan
förälder
incheckning
612cf09d0f
1 ändrade filer med 7 tillägg och 0 borttagningar
  1. 7 0
      msm/sde/sde_hw_top.c

+ 7 - 0
msm/sde/sde_hw_top.c

@@ -118,6 +118,9 @@
 #define HW_FENCE_IPCC_FENCE_PROTOCOL_ID 4
 #define HW_FENCE_DPU_FENCE_PROTOCOL_ID 3
 
+#define HW_FENCE_QOS_PRIORITY 0x7
+#define HW_FENCE_QOS_PRIORITY_LVL 0x0
+
 static int ppb_offset_map[PINGPONG_MAX] = {1, 0, 3, 2, 5, 4, 7, 7, 6, 6, -1, -1};
 
 static void sde_hw_setup_split_pipe(struct sde_hw_mdp *mdp,
@@ -680,6 +683,10 @@ static void _sde_hw_setup_hw_input_fences_config(u32 protocol_id, u32 client_phy
 		HW_FENCE_DPU_FENCE_PROTOCOL_ID : protocol_id;
 	SDE_REG_WRITE(c, MDP_CTL_HW_FENCE_CTRL, val);
 
+	/* set QOS priority */
+	val = (HW_FENCE_QOS_PRIORITY_LVL << 4) | (HW_FENCE_QOS_PRIORITY & 0x7);
+	SDE_REG_WRITE(c, MDP_CTL_HW_FENCE_QOS, val);
+
 	/* configure the start of the FENCE_IDn_ISR ops for input and output fence isr's */
 	val = (HW_FENCE_DPU_OUTPUT_FENCE_START_N << 16) | (HW_FENCE_DPU_INPUT_FENCE_START_N & 0xFF);
 	SDE_REG_WRITE(c, MDP_CTL_HW_FENCE_ID_START_ADDR, val);