Commit 4edea8d3 authored by Abhinav Kumar's avatar Abhinav Kumar Committed by Dmitry Baryshkov

drm/msm/dpu: remove hard-coded linewidth limit for writeback

Remove the hard-coded limit for writeback and lets start using
the one from catalog instead.

changes in v3:
	- correct the Fixes tag

Fixes: d7d0e73f ("drm/msm/dpu: introduce the dpu_encoder_phys_* for writeback")
Signed-off-by: default avatarAbhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/489888/
Link: https://lore.kernel.org/r/1655406084-17407-3-git-send-email-quic_abhinavk@quicinc.comSigned-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
parent a370cc39
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include "dpu_crtc.h" #include "dpu_crtc.h"
#include "disp/msm_disp_snapshot.h" #include "disp/msm_disp_snapshot.h"
#define DEFAULT_MAX_WRITEBACK_WIDTH 2048
#define to_dpu_encoder_phys_wb(x) \ #define to_dpu_encoder_phys_wb(x) \
container_of(x, struct dpu_encoder_phys_wb, base) container_of(x, struct dpu_encoder_phys_wb, base)
...@@ -278,9 +276,9 @@ static int dpu_encoder_phys_wb_atomic_check( ...@@ -278,9 +276,9 @@ static int dpu_encoder_phys_wb_atomic_check(
DPU_ERROR("invalid fb h=%d, mode h=%d\n", fb->height, DPU_ERROR("invalid fb h=%d, mode h=%d\n", fb->height,
mode->vdisplay); mode->vdisplay);
return -EINVAL; return -EINVAL;
} else if (fb->width > DEFAULT_MAX_WRITEBACK_WIDTH) { } else if (fb->width > phys_enc->hw_wb->caps->maxlinewidth) {
DPU_ERROR("invalid fb w=%d, maxlinewidth=%u\n", DPU_ERROR("invalid fb w=%d, maxlinewidth=%u\n",
fb->width, DEFAULT_MAX_WRITEBACK_WIDTH); fb->width, phys_enc->hw_wb->caps->maxlinewidth);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment