drm/msm/dpu: drop smart_dma_rev from dpu_caps
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 16 Mar 2023 16:16:51 +0000 (19:16 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 6 Apr 2023 17:29:43 +0000 (20:29 +0300)
The code doesn't use dpu_caps::smart_dma_rev field. It checks if the
corresponding feature is enabled in the SSPP features. Drop the
smart_dma_rev field completely.

Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/527369/
Link: https://lore.kernel.org/r/20230316161653.4106395-31-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h

index 78844cff1c8aadb97a6813d1e039a3eaa556263b..6840b22a415934236813e0ce7df74c3be69be213 100644 (file)
@@ -323,7 +323,6 @@ static const struct dpu_caps msm8998_dpu_caps = {
        .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH,
        .max_mixer_blendstages = 0x7,
        .qseed_type = DPU_SSPP_SCALER_QSEED3,
-       .smart_dma_rev = DPU_SSPP_SMART_DMA_V1,
        .ubwc_version = DPU_HW_UBWC_VER_10,
        .has_src_split = true,
        .has_dim_layer = true,
@@ -338,7 +337,6 @@ static const struct dpu_caps msm8998_dpu_caps = {
 static const struct dpu_caps qcm2290_dpu_caps = {
        .max_mixer_width = DEFAULT_DPU_LINE_WIDTH,
        .max_mixer_blendstages = 0x4,
-       .smart_dma_rev = DPU_SSPP_SMART_DMA_V2,
        .has_dim_layer = true,
        .has_idle_pc = true,
        .max_linewidth = 2160,
@@ -349,7 +347,6 @@ static const struct dpu_caps sdm845_dpu_caps = {
        .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH,
        .max_mixer_blendstages = 0xb,
        .qseed_type = DPU_SSPP_SCALER_QSEED3,
-       .smart_dma_rev = DPU_SSPP_SMART_DMA_V2,
        .ubwc_version = DPU_HW_UBWC_VER_20,
        .has_src_split = true,
        .has_dim_layer = true,
@@ -365,7 +362,6 @@ static const struct dpu_caps sc7180_dpu_caps = {
        .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH,
        .max_mixer_blendstages = 0x9,
        .qseed_type = DPU_SSPP_SCALER_QSEED4,
-       .smart_dma_rev = DPU_SSPP_SMART_DMA_V2,
        .ubwc_version = DPU_HW_UBWC_VER_20,
        .has_dim_layer = true,
        .has_idle_pc = true,
@@ -377,7 +373,6 @@ static const struct dpu_caps sm6115_dpu_caps = {
        .max_mixer_width = DEFAULT_DPU_LINE_WIDTH,
        .max_mixer_blendstages = 0x4,
        .qseed_type = DPU_SSPP_SCALER_QSEED4,
-       .smart_dma_rev = DPU_SSPP_SMART_DMA_V2, /* TODO: v2.5 */
        .ubwc_version = DPU_HW_UBWC_VER_10,
        .has_dim_layer = true,
        .has_idle_pc = true,
@@ -389,7 +384,6 @@ static const struct dpu_caps sm8150_dpu_caps = {
        .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH,
        .max_mixer_blendstages = 0xb,
        .qseed_type = DPU_SSPP_SCALER_QSEED3,
-       .smart_dma_rev = DPU_SSPP_SMART_DMA_V2, /* TODO: v2.5 */
        .ubwc_version = DPU_HW_UBWC_VER_30,
        .has_src_split = true,
        .has_dim_layer = true,
@@ -405,7 +399,6 @@ static const struct dpu_caps sc8180x_dpu_caps = {
        .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH,
        .max_mixer_blendstages = 0xb,
        .qseed_type = DPU_SSPP_SCALER_QSEED3,
-       .smart_dma_rev = DPU_SSPP_SMART_DMA_V2, /* TODO: v2.5 */
        .ubwc_version = DPU_HW_UBWC_VER_30,
        .has_src_split = true,
        .has_dim_layer = true,
@@ -421,7 +414,6 @@ static const struct dpu_caps sc8280xp_dpu_caps = {
        .max_mixer_width = 2560,
        .max_mixer_blendstages = 11,
        .qseed_type = DPU_SSPP_SCALER_QSEED4,
-       .smart_dma_rev = DPU_SSPP_SMART_DMA_V2, /* TODO: v2.5 */
        .ubwc_version = DPU_HW_UBWC_VER_40,
        .has_src_split = true,
        .has_dim_layer = true,
@@ -435,7 +427,6 @@ static const struct dpu_caps sm8250_dpu_caps = {
        .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH,
        .max_mixer_blendstages = 0xb,
        .qseed_type = DPU_SSPP_SCALER_QSEED4,
-       .smart_dma_rev = DPU_SSPP_SMART_DMA_V2, /* TODO: v2.5 */
        .ubwc_version = DPU_HW_UBWC_VER_40,
        .has_src_split = true,
        .has_dim_layer = true,
@@ -449,7 +440,6 @@ static const struct dpu_caps sm8350_dpu_caps = {
        .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH,
        .max_mixer_blendstages = 0xb,
        .qseed_type = DPU_SSPP_SCALER_QSEED4,
-       .smart_dma_rev = DPU_SSPP_SMART_DMA_V2, /* TODO: v2.5 */
        .ubwc_version = DPU_HW_UBWC_VER_40,
        .has_src_split = true,
        .has_dim_layer = true,
@@ -463,7 +453,6 @@ static const struct dpu_caps sm8450_dpu_caps = {
        .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH,
        .max_mixer_blendstages = 0xb,
        .qseed_type = DPU_SSPP_SCALER_QSEED4,
-       .smart_dma_rev = DPU_SSPP_SMART_DMA_V2, /* TODO: v2.5 */
        .ubwc_version = DPU_HW_UBWC_VER_40,
        .has_src_split = true,
        .has_dim_layer = true,
@@ -477,7 +466,6 @@ static const struct dpu_caps sm8550_dpu_caps = {
        .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH,
        .max_mixer_blendstages = 0xb,
        .qseed_type = DPU_SSPP_SCALER_QSEED4,
-       .smart_dma_rev = DPU_SSPP_SMART_DMA_V2, /* TODO: v2.5 */
        .ubwc_version = DPU_HW_UBWC_VER_40,
        .has_src_split = true,
        .has_dim_layer = true,
@@ -491,7 +479,6 @@ static const struct dpu_caps sc7280_dpu_caps = {
        .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH,
        .max_mixer_blendstages = 0x7,
        .qseed_type = DPU_SSPP_SCALER_QSEED4,
-       .smart_dma_rev = DPU_SSPP_SMART_DMA_V2,
        .ubwc_version = DPU_HW_UBWC_VER_30,
        .has_dim_layer = true,
        .has_idle_pc = true,
index 63d7c6b151102ecde235b4ba9f835d079d4d346b..6b8fe0b7e467ba3076dda1200a39d942e86cbb49 100644 (file)
@@ -399,7 +399,6 @@ struct dpu_rotation_cfg {
  * @max_mixer_blendstages max layer mixer blend stages or
  *                       supported z order
  * @qseed_type         qseed2 or qseed3 support.
- * @smart_dma_rev      Supported version of SmartDMA feature.
  * @ubwc_version       UBWC feature version (0x0 for not supported)
  * @has_src_split      source split feature status
  * @has_dim_layer      dim layer feature status
@@ -414,7 +413,6 @@ struct dpu_caps {
        u32 max_mixer_width;
        u32 max_mixer_blendstages;
        u32 qseed_type;
-       u32 smart_dma_rev;
        u32 ubwc_version;
        bool has_src_split;
        bool has_dim_layer;