فهرست منبع

disp: msm: sde: remove WB output buffer pitch alignment check

Currently, driver enforces the allocated WB output buffer to be 256 bits
aligned in memory in order to optimize DDR access and meet maximum system
bandwidth requirements.

Since there are no functional failures with using a 256 bits unaligned
buffer, this change removes this unnecessary check.

Change-Id: I23476e8a28e970f2e1853bbcc0c1d1042d9fdfe2
Signed-off-by: Amine Najahi <[email protected]>
Amine Najahi 3 سال پیش
والد
کامیت
cc19682733
1فایلهای تغییر یافته به همراه1 افزوده شده و 11 حذف شده
  1. 1 11
      msm/sde/sde_encoder_phys_wb.c

+ 1 - 11
msm/sde/sde_encoder_phys_wb.c

@@ -838,7 +838,7 @@ static int _sde_enc_phys_wb_validate_cwb(struct sde_encoder_phys *phys_enc,
 	struct sde_rect wb_roi = {0,}, pu_roi = {0,};
 	u32  out_width = 0, out_height = 0;
 	const struct sde_format *fmt;
-	int prog_line, ret = 0, i;
+	int prog_line, ret = 0;
 
 	fb = sde_wb_connector_state_get_output_fb(conn_state);
 	if (!fb) {
@@ -902,16 +902,6 @@ static int _sde_enc_phys_wb_validate_cwb(struct sde_encoder_phys *phys_enc,
 		return -EINVAL;
 	}
 
-	/* pitch has to be multiple of 256 bits */
-	for (i = 0; i < fb->format->num_planes; i++) {
-		if (fb->pitches[i] % 32) {
-			SDE_ERROR("invalid stride plane:%d pitch:%u fmt: %4.4s bpp:%d wxh:%dx%d\n",
-				i, fb->pitches[i], (char *)&fmt->base.pixel_format,
-				fmt->bpp, wb_roi.w, wb_roi.h);
-			return -EINVAL;
-		}
-	}
-
 	/*
 	 * If output size is equal to input size ensure wb_roi with x and y offset
 	 * will be within buffer. If output size is smaller, only width and height are taken