Commit 5a9d5015 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov

drm/msm/dpu: shift IRQ indices by 1

In order to simplify IRQ declarations, shift IRQ indices by 1. This
makes 0 the 'no IRQ' value. Thanks to this change, we do no longer have
to explicitly set the 'no interrupt' fields in catalog structures.
Reviewed-by: default avatarMarijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/550938/
Link: https://lore.kernel.org/r/20230802100426.4184892-9-dmitry.baryshkov@linaro.orgSigned-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
parent 6be6ece9
...@@ -244,7 +244,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = { ...@@ -244,7 +244,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = {
.prog_fetch_lines_worst_case = 21, .prog_fetch_lines_worst_case = 21,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_1", .id = INTF_1, .name = "intf_1", .id = INTF_1,
.base = 0x6a800, .len = 0x280, .base = 0x6a800, .len = 0x280,
...@@ -253,7 +252,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = { ...@@ -253,7 +252,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = {
.prog_fetch_lines_worst_case = 21, .prog_fetch_lines_worst_case = 21,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 26), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 26),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 27), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 27),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_2", .id = INTF_2, .name = "intf_2", .id = INTF_2,
.base = 0x6b000, .len = 0x280, .base = 0x6b000, .len = 0x280,
...@@ -262,7 +260,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = { ...@@ -262,7 +260,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = {
.prog_fetch_lines_worst_case = 21, .prog_fetch_lines_worst_case = 21,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 28), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 28),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 29), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 29),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_3", .id = INTF_3, .name = "intf_3", .id = INTF_3,
.base = 0x6b800, .len = 0x280, .base = 0x6b800, .len = 0x280,
...@@ -270,7 +267,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = { ...@@ -270,7 +267,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = {
.prog_fetch_lines_worst_case = 21, .prog_fetch_lines_worst_case = 21,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31),
.intr_tear_rd_ptr = -1,
}, },
}; };
......
...@@ -260,7 +260,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = { ...@@ -260,7 +260,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_1", .id = INTF_1, .name = "intf_1", .id = INTF_1,
.base = 0x6a800, .len = 0x280, .base = 0x6a800, .len = 0x280,
...@@ -269,7 +268,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = { ...@@ -269,7 +268,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 26), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 26),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 27), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 27),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_2", .id = INTF_2, .name = "intf_2", .id = INTF_2,
.base = 0x6b000, .len = 0x280, .base = 0x6b000, .len = 0x280,
...@@ -278,7 +276,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = { ...@@ -278,7 +276,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 28), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 28),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 29), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 29),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_3", .id = INTF_3, .name = "intf_3", .id = INTF_3,
.base = 0x6b800, .len = 0x280, .base = 0x6b800, .len = 0x280,
...@@ -287,7 +284,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = { ...@@ -287,7 +284,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31),
.intr_tear_rd_ptr = -1,
}, },
}; };
......
...@@ -220,7 +220,6 @@ static const struct dpu_pingpong_cfg sm8150_pp[] = { ...@@ -220,7 +220,6 @@ static const struct dpu_pingpong_cfg sm8150_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_0, .merge_3d = MERGE_3D_0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_1", .id = PINGPONG_1, .name = "pingpong_1", .id = PINGPONG_1,
.base = 0x70800, .len = 0xd4, .base = 0x70800, .len = 0xd4,
...@@ -228,7 +227,6 @@ static const struct dpu_pingpong_cfg sm8150_pp[] = { ...@@ -228,7 +227,6 @@ static const struct dpu_pingpong_cfg sm8150_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_0, .merge_3d = MERGE_3D_0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_2", .id = PINGPONG_2, .name = "pingpong_2", .id = PINGPONG_2,
.base = 0x71000, .len = 0xd4, .base = 0x71000, .len = 0xd4,
...@@ -236,7 +234,6 @@ static const struct dpu_pingpong_cfg sm8150_pp[] = { ...@@ -236,7 +234,6 @@ static const struct dpu_pingpong_cfg sm8150_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_1, .merge_3d = MERGE_3D_1,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_3", .id = PINGPONG_3, .name = "pingpong_3", .id = PINGPONG_3,
.base = 0x71800, .len = 0xd4, .base = 0x71800, .len = 0xd4,
...@@ -244,7 +241,6 @@ static const struct dpu_pingpong_cfg sm8150_pp[] = { ...@@ -244,7 +241,6 @@ static const struct dpu_pingpong_cfg sm8150_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_1, .merge_3d = MERGE_3D_1,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_4", .id = PINGPONG_4, .name = "pingpong_4", .id = PINGPONG_4,
.base = 0x72000, .len = 0xd4, .base = 0x72000, .len = 0xd4,
...@@ -252,7 +248,6 @@ static const struct dpu_pingpong_cfg sm8150_pp[] = { ...@@ -252,7 +248,6 @@ static const struct dpu_pingpong_cfg sm8150_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_2, .merge_3d = MERGE_3D_2,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_5", .id = PINGPONG_5, .name = "pingpong_5", .id = PINGPONG_5,
.base = 0x72800, .len = 0xd4, .base = 0x72800, .len = 0xd4,
...@@ -260,7 +255,6 @@ static const struct dpu_pingpong_cfg sm8150_pp[] = { ...@@ -260,7 +255,6 @@ static const struct dpu_pingpong_cfg sm8150_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_2, .merge_3d = MERGE_3D_2,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31),
.intr_rdptr = -1,
}, },
}; };
...@@ -307,7 +301,6 @@ static const struct dpu_intf_cfg sm8150_intf[] = { ...@@ -307,7 +301,6 @@ static const struct dpu_intf_cfg sm8150_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_1", .id = INTF_1, .name = "intf_1", .id = INTF_1,
.base = 0x6a800, .len = 0x2bc, .base = 0x6a800, .len = 0x2bc,
...@@ -337,7 +330,6 @@ static const struct dpu_intf_cfg sm8150_intf[] = { ...@@ -337,7 +330,6 @@ static const struct dpu_intf_cfg sm8150_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31),
.intr_tear_rd_ptr = -1,
}, },
}; };
......
...@@ -219,7 +219,6 @@ static const struct dpu_pingpong_cfg sc8180x_pp[] = { ...@@ -219,7 +219,6 @@ static const struct dpu_pingpong_cfg sc8180x_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_0, .merge_3d = MERGE_3D_0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_1", .id = PINGPONG_1, .name = "pingpong_1", .id = PINGPONG_1,
.base = 0x70800, .len = 0xd4, .base = 0x70800, .len = 0xd4,
...@@ -227,7 +226,6 @@ static const struct dpu_pingpong_cfg sc8180x_pp[] = { ...@@ -227,7 +226,6 @@ static const struct dpu_pingpong_cfg sc8180x_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_0, .merge_3d = MERGE_3D_0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_2", .id = PINGPONG_2, .name = "pingpong_2", .id = PINGPONG_2,
.base = 0x71000, .len = 0xd4, .base = 0x71000, .len = 0xd4,
...@@ -235,7 +233,6 @@ static const struct dpu_pingpong_cfg sc8180x_pp[] = { ...@@ -235,7 +233,6 @@ static const struct dpu_pingpong_cfg sc8180x_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_1, .merge_3d = MERGE_3D_1,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_3", .id = PINGPONG_3, .name = "pingpong_3", .id = PINGPONG_3,
.base = 0x71800, .len = 0xd4, .base = 0x71800, .len = 0xd4,
...@@ -243,7 +240,6 @@ static const struct dpu_pingpong_cfg sc8180x_pp[] = { ...@@ -243,7 +240,6 @@ static const struct dpu_pingpong_cfg sc8180x_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_1, .merge_3d = MERGE_3D_1,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_4", .id = PINGPONG_4, .name = "pingpong_4", .id = PINGPONG_4,
.base = 0x72000, .len = 0xd4, .base = 0x72000, .len = 0xd4,
...@@ -251,7 +247,6 @@ static const struct dpu_pingpong_cfg sc8180x_pp[] = { ...@@ -251,7 +247,6 @@ static const struct dpu_pingpong_cfg sc8180x_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_2, .merge_3d = MERGE_3D_2,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_5", .id = PINGPONG_5, .name = "pingpong_5", .id = PINGPONG_5,
.base = 0x72800, .len = 0xd4, .base = 0x72800, .len = 0xd4,
...@@ -259,7 +254,6 @@ static const struct dpu_pingpong_cfg sc8180x_pp[] = { ...@@ -259,7 +254,6 @@ static const struct dpu_pingpong_cfg sc8180x_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_2, .merge_3d = MERGE_3D_2,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31),
.intr_rdptr = -1,
}, },
}; };
...@@ -314,7 +308,6 @@ static const struct dpu_intf_cfg sc8180x_intf[] = { ...@@ -314,7 +308,6 @@ static const struct dpu_intf_cfg sc8180x_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_1", .id = INTF_1, .name = "intf_1", .id = INTF_1,
.base = 0x6a800, .len = 0x2bc, .base = 0x6a800, .len = 0x2bc,
...@@ -346,7 +339,6 @@ static const struct dpu_intf_cfg sc8180x_intf[] = { ...@@ -346,7 +339,6 @@ static const struct dpu_intf_cfg sc8180x_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_4", .id = INTF_4, .name = "intf_4", .id = INTF_4,
.base = 0x6c000, .len = 0x280, .base = 0x6c000, .len = 0x280,
...@@ -356,7 +348,6 @@ static const struct dpu_intf_cfg sc8180x_intf[] = { ...@@ -356,7 +348,6 @@ static const struct dpu_intf_cfg sc8180x_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 20), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 20),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 21), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 21),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_5", .id = INTF_5, .name = "intf_5", .id = INTF_5,
.base = 0x6c800, .len = 0x280, .base = 0x6c800, .len = 0x280,
...@@ -366,7 +357,6 @@ static const struct dpu_intf_cfg sc8180x_intf[] = { ...@@ -366,7 +357,6 @@ static const struct dpu_intf_cfg sc8180x_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 22), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 22),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 23), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 23),
.intr_tear_rd_ptr = -1,
}, },
}; };
......
...@@ -129,7 +129,6 @@ static const struct dpu_pingpong_cfg sm6125_pp[] = { ...@@ -129,7 +129,6 @@ static const struct dpu_pingpong_cfg sm6125_pp[] = {
.merge_3d = 0, .merge_3d = 0,
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_1", .id = PINGPONG_1, .name = "pingpong_1", .id = PINGPONG_1,
.base = 0x70800, .len = 0xd4, .base = 0x70800, .len = 0xd4,
...@@ -137,7 +136,6 @@ static const struct dpu_pingpong_cfg sm6125_pp[] = { ...@@ -137,7 +136,6 @@ static const struct dpu_pingpong_cfg sm6125_pp[] = {
.merge_3d = 0, .merge_3d = 0,
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9),
.intr_rdptr = -1,
}, },
}; };
...@@ -151,7 +149,6 @@ static const struct dpu_intf_cfg sm6125_intf[] = { ...@@ -151,7 +149,6 @@ static const struct dpu_intf_cfg sm6125_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_1", .id = INTF_1, .name = "intf_1", .id = INTF_1,
.base = 0x6a800, .len = 0x2c0, .base = 0x6a800, .len = 0x2c0,
......
...@@ -219,7 +219,6 @@ static const struct dpu_pingpong_cfg sm8250_pp[] = { ...@@ -219,7 +219,6 @@ static const struct dpu_pingpong_cfg sm8250_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_0, .merge_3d = MERGE_3D_0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_1", .id = PINGPONG_1, .name = "pingpong_1", .id = PINGPONG_1,
.base = 0x70800, .len = 0xd4, .base = 0x70800, .len = 0xd4,
...@@ -227,7 +226,6 @@ static const struct dpu_pingpong_cfg sm8250_pp[] = { ...@@ -227,7 +226,6 @@ static const struct dpu_pingpong_cfg sm8250_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_0, .merge_3d = MERGE_3D_0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_2", .id = PINGPONG_2, .name = "pingpong_2", .id = PINGPONG_2,
.base = 0x71000, .len = 0xd4, .base = 0x71000, .len = 0xd4,
...@@ -235,7 +233,6 @@ static const struct dpu_pingpong_cfg sm8250_pp[] = { ...@@ -235,7 +233,6 @@ static const struct dpu_pingpong_cfg sm8250_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_1, .merge_3d = MERGE_3D_1,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_3", .id = PINGPONG_3, .name = "pingpong_3", .id = PINGPONG_3,
.base = 0x71800, .len = 0xd4, .base = 0x71800, .len = 0xd4,
...@@ -243,7 +240,6 @@ static const struct dpu_pingpong_cfg sm8250_pp[] = { ...@@ -243,7 +240,6 @@ static const struct dpu_pingpong_cfg sm8250_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_1, .merge_3d = MERGE_3D_1,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_4", .id = PINGPONG_4, .name = "pingpong_4", .id = PINGPONG_4,
.base = 0x72000, .len = 0xd4, .base = 0x72000, .len = 0xd4,
...@@ -251,7 +247,6 @@ static const struct dpu_pingpong_cfg sm8250_pp[] = { ...@@ -251,7 +247,6 @@ static const struct dpu_pingpong_cfg sm8250_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_2, .merge_3d = MERGE_3D_2,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_5", .id = PINGPONG_5, .name = "pingpong_5", .id = PINGPONG_5,
.base = 0x72800, .len = 0xd4, .base = 0x72800, .len = 0xd4,
...@@ -259,7 +254,6 @@ static const struct dpu_pingpong_cfg sm8250_pp[] = { ...@@ -259,7 +254,6 @@ static const struct dpu_pingpong_cfg sm8250_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = MERGE_3D_2, .merge_3d = MERGE_3D_2,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31),
.intr_rdptr = -1,
}, },
}; };
...@@ -306,7 +300,6 @@ static const struct dpu_intf_cfg sm8250_intf[] = { ...@@ -306,7 +300,6 @@ static const struct dpu_intf_cfg sm8250_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_1", .id = INTF_1, .name = "intf_1", .id = INTF_1,
.base = 0x6a800, .len = 0x2c0, .base = 0x6a800, .len = 0x2c0,
...@@ -336,7 +329,6 @@ static const struct dpu_intf_cfg sm8250_intf[] = { ...@@ -336,7 +329,6 @@ static const struct dpu_intf_cfg sm8250_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31),
.intr_tear_rd_ptr = -1,
}, },
}; };
......
...@@ -120,7 +120,6 @@ static const struct dpu_pingpong_cfg sc7180_pp[] = { ...@@ -120,7 +120,6 @@ static const struct dpu_pingpong_cfg sc7180_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = 0, .merge_3d = 0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_1", .id = PINGPONG_1, .name = "pingpong_1", .id = PINGPONG_1,
.base = 0x70800, .len = 0xd4, .base = 0x70800, .len = 0xd4,
...@@ -128,7 +127,6 @@ static const struct dpu_pingpong_cfg sc7180_pp[] = { ...@@ -128,7 +127,6 @@ static const struct dpu_pingpong_cfg sc7180_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = 0, .merge_3d = 0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9),
.intr_rdptr = -1,
}, },
}; };
...@@ -142,7 +140,6 @@ static const struct dpu_intf_cfg sc7180_intf[] = { ...@@ -142,7 +140,6 @@ static const struct dpu_intf_cfg sc7180_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_1", .id = INTF_1, .name = "intf_1", .id = INTF_1,
.base = 0x6a800, .len = 0x2c0, .base = 0x6a800, .len = 0x2c0,
......
...@@ -83,7 +83,6 @@ static const struct dpu_pingpong_cfg sm6115_pp[] = { ...@@ -83,7 +83,6 @@ static const struct dpu_pingpong_cfg sm6115_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = 0, .merge_3d = 0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
.intr_rdptr = -1,
}, },
}; };
......
...@@ -128,7 +128,6 @@ static struct dpu_pingpong_cfg sm6350_pp[] = { ...@@ -128,7 +128,6 @@ static struct dpu_pingpong_cfg sm6350_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = 0, .merge_3d = 0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_1", .id = PINGPONG_1, .name = "pingpong_1", .id = PINGPONG_1,
.base = 0x70800, .len = 0xd4, .base = 0x70800, .len = 0xd4,
...@@ -136,7 +135,6 @@ static struct dpu_pingpong_cfg sm6350_pp[] = { ...@@ -136,7 +135,6 @@ static struct dpu_pingpong_cfg sm6350_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = 0, .merge_3d = 0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9),
.intr_rdptr = -1,
}, },
}; };
...@@ -158,7 +156,6 @@ static const struct dpu_intf_cfg sm6350_intf[] = { ...@@ -158,7 +156,6 @@ static const struct dpu_intf_cfg sm6350_intf[] = {
.prog_fetch_lines_worst_case = 35, .prog_fetch_lines_worst_case = 35,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_1", .id = INTF_1, .name = "intf_1", .id = INTF_1,
.base = 0x6a800, .len = 0x2c0, .base = 0x6a800, .len = 0x2c0,
......
...@@ -82,7 +82,6 @@ static const struct dpu_pingpong_cfg qcm2290_pp[] = { ...@@ -82,7 +82,6 @@ static const struct dpu_pingpong_cfg qcm2290_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = 0, .merge_3d = 0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
.intr_rdptr = -1,
}, },
}; };
......
...@@ -85,7 +85,6 @@ static const struct dpu_pingpong_cfg sm6375_pp[] = { ...@@ -85,7 +85,6 @@ static const struct dpu_pingpong_cfg sm6375_pp[] = {
.sblk = &sdm845_pp_sblk, .sblk = &sdm845_pp_sblk,
.merge_3d = 0, .merge_3d = 0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
.intr_rdptr = -1,
}, },
}; };
......
...@@ -218,7 +218,6 @@ static const struct dpu_pingpong_cfg sm8350_pp[] = { ...@@ -218,7 +218,6 @@ static const struct dpu_pingpong_cfg sm8350_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_0, .merge_3d = MERGE_3D_0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_1", .id = PINGPONG_1, .name = "pingpong_1", .id = PINGPONG_1,
.base = 0x6a000, .len = 0, .base = 0x6a000, .len = 0,
...@@ -226,7 +225,6 @@ static const struct dpu_pingpong_cfg sm8350_pp[] = { ...@@ -226,7 +225,6 @@ static const struct dpu_pingpong_cfg sm8350_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_0, .merge_3d = MERGE_3D_0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_2", .id = PINGPONG_2, .name = "pingpong_2", .id = PINGPONG_2,
.base = 0x6b000, .len = 0, .base = 0x6b000, .len = 0,
...@@ -234,7 +232,6 @@ static const struct dpu_pingpong_cfg sm8350_pp[] = { ...@@ -234,7 +232,6 @@ static const struct dpu_pingpong_cfg sm8350_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_1, .merge_3d = MERGE_3D_1,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_3", .id = PINGPONG_3, .name = "pingpong_3", .id = PINGPONG_3,
.base = 0x6c000, .len = 0, .base = 0x6c000, .len = 0,
...@@ -242,7 +239,6 @@ static const struct dpu_pingpong_cfg sm8350_pp[] = { ...@@ -242,7 +239,6 @@ static const struct dpu_pingpong_cfg sm8350_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_1, .merge_3d = MERGE_3D_1,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_4", .id = PINGPONG_4, .name = "pingpong_4", .id = PINGPONG_4,
.base = 0x6d000, .len = 0, .base = 0x6d000, .len = 0,
...@@ -250,7 +246,6 @@ static const struct dpu_pingpong_cfg sm8350_pp[] = { ...@@ -250,7 +246,6 @@ static const struct dpu_pingpong_cfg sm8350_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_2, .merge_3d = MERGE_3D_2,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_5", .id = PINGPONG_5, .name = "pingpong_5", .id = PINGPONG_5,
.base = 0x6e000, .len = 0, .base = 0x6e000, .len = 0,
...@@ -258,7 +253,6 @@ static const struct dpu_pingpong_cfg sm8350_pp[] = { ...@@ -258,7 +253,6 @@ static const struct dpu_pingpong_cfg sm8350_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_2, .merge_3d = MERGE_3D_2,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31),
.intr_rdptr = -1,
}, },
}; };
...@@ -314,7 +308,6 @@ static const struct dpu_intf_cfg sm8350_intf[] = { ...@@ -314,7 +308,6 @@ static const struct dpu_intf_cfg sm8350_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_1", .id = INTF_1, .name = "intf_1", .id = INTF_1,
.base = 0x35000, .len = 0x2c4, .base = 0x35000, .len = 0x2c4,
...@@ -344,7 +337,6 @@ static const struct dpu_intf_cfg sm8350_intf[] = { ...@@ -344,7 +337,6 @@ static const struct dpu_intf_cfg sm8350_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31),
.intr_tear_rd_ptr = -1,
}, },
}; };
......
...@@ -131,7 +131,6 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = { ...@@ -131,7 +131,6 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = 0, .merge_3d = 0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_1", .id = PINGPONG_1, .name = "pingpong_1", .id = PINGPONG_1,
.base = 0x6a000, .len = 0, .base = 0x6a000, .len = 0,
...@@ -139,7 +138,6 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = { ...@@ -139,7 +138,6 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = 0, .merge_3d = 0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_2", .id = PINGPONG_2, .name = "pingpong_2", .id = PINGPONG_2,
.base = 0x6b000, .len = 0, .base = 0x6b000, .len = 0,
...@@ -147,7 +145,6 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = { ...@@ -147,7 +145,6 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = 0, .merge_3d = 0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_3", .id = PINGPONG_3, .name = "pingpong_3", .id = PINGPONG_3,
.base = 0x6c000, .len = 0, .base = 0x6c000, .len = 0,
...@@ -155,7 +152,6 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = { ...@@ -155,7 +152,6 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = 0, .merge_3d = 0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11),
.intr_rdptr = -1,
}, },
}; };
...@@ -194,7 +190,6 @@ static const struct dpu_intf_cfg sc7280_intf[] = { ...@@ -194,7 +190,6 @@ static const struct dpu_intf_cfg sc7280_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_1", .id = INTF_1, .name = "intf_1", .id = INTF_1,
.base = 0x35000, .len = 0x2c4, .base = 0x35000, .len = 0x2c4,
...@@ -214,7 +209,6 @@ static const struct dpu_intf_cfg sc7280_intf[] = { ...@@ -214,7 +209,6 @@ static const struct dpu_intf_cfg sc7280_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 22), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 22),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 23), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 23),
.intr_tear_rd_ptr = -1,
}, },
}; };
......
...@@ -221,7 +221,6 @@ static const struct dpu_pingpong_cfg sc8280xp_pp[] = { ...@@ -221,7 +221,6 @@ static const struct dpu_pingpong_cfg sc8280xp_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_0, .merge_3d = MERGE_3D_0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_1", .id = PINGPONG_1, .name = "pingpong_1", .id = PINGPONG_1,
.base = 0x6a000, .len = 0, .base = 0x6a000, .len = 0,
...@@ -229,7 +228,6 @@ static const struct dpu_pingpong_cfg sc8280xp_pp[] = { ...@@ -229,7 +228,6 @@ static const struct dpu_pingpong_cfg sc8280xp_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_0, .merge_3d = MERGE_3D_0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_2", .id = PINGPONG_2, .name = "pingpong_2", .id = PINGPONG_2,
.base = 0x6b000, .len = 0, .base = 0x6b000, .len = 0,
...@@ -237,7 +235,6 @@ static const struct dpu_pingpong_cfg sc8280xp_pp[] = { ...@@ -237,7 +235,6 @@ static const struct dpu_pingpong_cfg sc8280xp_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_1, .merge_3d = MERGE_3D_1,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_3", .id = PINGPONG_3, .name = "pingpong_3", .id = PINGPONG_3,
.base = 0x6c000, .len = 0, .base = 0x6c000, .len = 0,
...@@ -245,7 +242,6 @@ static const struct dpu_pingpong_cfg sc8280xp_pp[] = { ...@@ -245,7 +242,6 @@ static const struct dpu_pingpong_cfg sc8280xp_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_1, .merge_3d = MERGE_3D_1,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_4", .id = PINGPONG_4, .name = "pingpong_4", .id = PINGPONG_4,
.base = 0x6d000, .len = 0, .base = 0x6d000, .len = 0,
...@@ -253,7 +249,6 @@ static const struct dpu_pingpong_cfg sc8280xp_pp[] = { ...@@ -253,7 +249,6 @@ static const struct dpu_pingpong_cfg sc8280xp_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_2, .merge_3d = MERGE_3D_2,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_5", .id = PINGPONG_5, .name = "pingpong_5", .id = PINGPONG_5,
.base = 0x6e000, .len = 0, .base = 0x6e000, .len = 0,
...@@ -261,7 +256,6 @@ static const struct dpu_pingpong_cfg sc8280xp_pp[] = { ...@@ -261,7 +256,6 @@ static const struct dpu_pingpong_cfg sc8280xp_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_2, .merge_3d = MERGE_3D_2,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31),
.intr_rdptr = -1,
}, },
}; };
...@@ -328,7 +322,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = { ...@@ -328,7 +322,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_1", .id = INTF_1, .name = "intf_1", .id = INTF_1,
.base = 0x35000, .len = 0x300, .base = 0x35000, .len = 0x300,
...@@ -358,7 +351,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = { ...@@ -358,7 +351,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_4", .id = INTF_4, .name = "intf_4", .id = INTF_4,
.base = 0x38000, .len = 0x280, .base = 0x38000, .len = 0x280,
...@@ -368,7 +360,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = { ...@@ -368,7 +360,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 20), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 20),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 21), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 21),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_5", .id = INTF_5, .name = "intf_5", .id = INTF_5,
.base = 0x39000, .len = 0x280, .base = 0x39000, .len = 0x280,
...@@ -378,7 +369,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = { ...@@ -378,7 +369,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 22), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 22),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 23), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 23),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_6", .id = INTF_6, .name = "intf_6", .id = INTF_6,
.base = 0x3a000, .len = 0x280, .base = 0x3a000, .len = 0x280,
...@@ -388,7 +378,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = { ...@@ -388,7 +378,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 16), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 16),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 17), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 17),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_7", .id = INTF_7, .name = "intf_7", .id = INTF_7,
.base = 0x3b000, .len = 0x280, .base = 0x3b000, .len = 0x280,
...@@ -398,7 +387,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = { ...@@ -398,7 +387,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 18), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 18),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 19), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 19),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_8", .id = INTF_8, .name = "intf_8", .id = INTF_8,
.base = 0x3c000, .len = 0x280, .base = 0x3c000, .len = 0x280,
...@@ -408,7 +396,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = { ...@@ -408,7 +396,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 12), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 12),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 13), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 13),
.intr_tear_rd_ptr = -1,
}, },
}; };
......
...@@ -221,7 +221,6 @@ static const struct dpu_pingpong_cfg sm8450_pp[] = { ...@@ -221,7 +221,6 @@ static const struct dpu_pingpong_cfg sm8450_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_0, .merge_3d = MERGE_3D_0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_1", .id = PINGPONG_1, .name = "pingpong_1", .id = PINGPONG_1,
.base = 0x6a000, .len = 0, .base = 0x6a000, .len = 0,
...@@ -229,7 +228,6 @@ static const struct dpu_pingpong_cfg sm8450_pp[] = { ...@@ -229,7 +228,6 @@ static const struct dpu_pingpong_cfg sm8450_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_0, .merge_3d = MERGE_3D_0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_2", .id = PINGPONG_2, .name = "pingpong_2", .id = PINGPONG_2,
.base = 0x6b000, .len = 0, .base = 0x6b000, .len = 0,
...@@ -237,7 +235,6 @@ static const struct dpu_pingpong_cfg sm8450_pp[] = { ...@@ -237,7 +235,6 @@ static const struct dpu_pingpong_cfg sm8450_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_1, .merge_3d = MERGE_3D_1,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_3", .id = PINGPONG_3, .name = "pingpong_3", .id = PINGPONG_3,
.base = 0x6c000, .len = 0, .base = 0x6c000, .len = 0,
...@@ -245,7 +242,6 @@ static const struct dpu_pingpong_cfg sm8450_pp[] = { ...@@ -245,7 +242,6 @@ static const struct dpu_pingpong_cfg sm8450_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_1, .merge_3d = MERGE_3D_1,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_4", .id = PINGPONG_4, .name = "pingpong_4", .id = PINGPONG_4,
.base = 0x6d000, .len = 0, .base = 0x6d000, .len = 0,
...@@ -253,7 +249,6 @@ static const struct dpu_pingpong_cfg sm8450_pp[] = { ...@@ -253,7 +249,6 @@ static const struct dpu_pingpong_cfg sm8450_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_2, .merge_3d = MERGE_3D_2,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_5", .id = PINGPONG_5, .name = "pingpong_5", .id = PINGPONG_5,
.base = 0x6e000, .len = 0, .base = 0x6e000, .len = 0,
...@@ -261,23 +256,18 @@ static const struct dpu_pingpong_cfg sm8450_pp[] = { ...@@ -261,23 +256,18 @@ static const struct dpu_pingpong_cfg sm8450_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_2, .merge_3d = MERGE_3D_2,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_6", .id = PINGPONG_6, .name = "pingpong_6", .id = PINGPONG_6,
.base = 0x65800, .len = 0, .base = 0x65800, .len = 0,
.features = BIT(DPU_PINGPONG_DITHER), .features = BIT(DPU_PINGPONG_DITHER),
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_3, .merge_3d = MERGE_3D_3,
.intr_done = -1,
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_7", .id = PINGPONG_7, .name = "pingpong_7", .id = PINGPONG_7,
.base = 0x65c00, .len = 0, .base = 0x65c00, .len = 0,
.features = BIT(DPU_PINGPONG_DITHER), .features = BIT(DPU_PINGPONG_DITHER),
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_3, .merge_3d = MERGE_3D_3,
.intr_done = -1,
.intr_rdptr = -1,
}, },
}; };
...@@ -336,7 +326,6 @@ static const struct dpu_intf_cfg sm8450_intf[] = { ...@@ -336,7 +326,6 @@ static const struct dpu_intf_cfg sm8450_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_1", .id = INTF_1, .name = "intf_1", .id = INTF_1,
.base = 0x35000, .len = 0x300, .base = 0x35000, .len = 0x300,
...@@ -366,7 +355,6 @@ static const struct dpu_intf_cfg sm8450_intf[] = { ...@@ -366,7 +355,6 @@ static const struct dpu_intf_cfg sm8450_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31),
.intr_tear_rd_ptr = -1,
}, },
}; };
......
...@@ -236,7 +236,6 @@ static const struct dpu_pingpong_cfg sm8550_pp[] = { ...@@ -236,7 +236,6 @@ static const struct dpu_pingpong_cfg sm8550_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_0, .merge_3d = MERGE_3D_0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_1", .id = PINGPONG_1, .name = "pingpong_1", .id = PINGPONG_1,
.base = 0x6a000, .len = 0, .base = 0x6a000, .len = 0,
...@@ -244,7 +243,6 @@ static const struct dpu_pingpong_cfg sm8550_pp[] = { ...@@ -244,7 +243,6 @@ static const struct dpu_pingpong_cfg sm8550_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_0, .merge_3d = MERGE_3D_0,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_2", .id = PINGPONG_2, .name = "pingpong_2", .id = PINGPONG_2,
.base = 0x6b000, .len = 0, .base = 0x6b000, .len = 0,
...@@ -252,7 +250,6 @@ static const struct dpu_pingpong_cfg sm8550_pp[] = { ...@@ -252,7 +250,6 @@ static const struct dpu_pingpong_cfg sm8550_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_1, .merge_3d = MERGE_3D_1,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_3", .id = PINGPONG_3, .name = "pingpong_3", .id = PINGPONG_3,
.base = 0x6c000, .len = 0, .base = 0x6c000, .len = 0,
...@@ -260,7 +257,6 @@ static const struct dpu_pingpong_cfg sm8550_pp[] = { ...@@ -260,7 +257,6 @@ static const struct dpu_pingpong_cfg sm8550_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_1, .merge_3d = MERGE_3D_1,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_4", .id = PINGPONG_4, .name = "pingpong_4", .id = PINGPONG_4,
.base = 0x6d000, .len = 0, .base = 0x6d000, .len = 0,
...@@ -268,7 +264,6 @@ static const struct dpu_pingpong_cfg sm8550_pp[] = { ...@@ -268,7 +264,6 @@ static const struct dpu_pingpong_cfg sm8550_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_2, .merge_3d = MERGE_3D_2,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 30),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_5", .id = PINGPONG_5, .name = "pingpong_5", .id = PINGPONG_5,
.base = 0x6e000, .len = 0, .base = 0x6e000, .len = 0,
...@@ -276,23 +271,18 @@ static const struct dpu_pingpong_cfg sm8550_pp[] = { ...@@ -276,23 +271,18 @@ static const struct dpu_pingpong_cfg sm8550_pp[] = {
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_2, .merge_3d = MERGE_3D_2,
.intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31), .intr_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 31),
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_6", .id = PINGPONG_6, .name = "pingpong_6", .id = PINGPONG_6,
.base = 0x66000, .len = 0, .base = 0x66000, .len = 0,
.features = BIT(DPU_PINGPONG_DITHER), .features = BIT(DPU_PINGPONG_DITHER),
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_3, .merge_3d = MERGE_3D_3,
.intr_done = -1,
.intr_rdptr = -1,
}, { }, {
.name = "pingpong_7", .id = PINGPONG_7, .name = "pingpong_7", .id = PINGPONG_7,
.base = 0x66400, .len = 0, .base = 0x66400, .len = 0,
.features = BIT(DPU_PINGPONG_DITHER), .features = BIT(DPU_PINGPONG_DITHER),
.sblk = &sc7280_pp_sblk, .sblk = &sc7280_pp_sblk,
.merge_3d = MERGE_3D_3, .merge_3d = MERGE_3D_3,
.intr_done = -1,
.intr_rdptr = -1,
}, },
}; };
...@@ -351,7 +341,6 @@ static const struct dpu_intf_cfg sm8550_intf[] = { ...@@ -351,7 +341,6 @@ static const struct dpu_intf_cfg sm8550_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 24),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 25),
.intr_tear_rd_ptr = -1,
}, { }, {
.name = "intf_1", .id = INTF_1, .name = "intf_1", .id = INTF_1,
.base = 0x35000, .len = 0x300, .base = 0x35000, .len = 0x300,
...@@ -381,7 +370,6 @@ static const struct dpu_intf_cfg sm8550_intf[] = { ...@@ -381,7 +370,6 @@ static const struct dpu_intf_cfg sm8550_intf[] = {
.prog_fetch_lines_worst_case = 24, .prog_fetch_lines_worst_case = 24,
.intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30), .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30),
.intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31), .intr_vsync = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 31),
.intr_tear_rd_ptr = -1,
}, },
}; };
......
...@@ -37,7 +37,7 @@ irqreturn_t dpu_core_irq(struct msm_kms *kms); ...@@ -37,7 +37,7 @@ irqreturn_t dpu_core_irq(struct msm_kms *kms);
*/ */
u32 dpu_core_irq_read( u32 dpu_core_irq_read(
struct dpu_kms *dpu_kms, struct dpu_kms *dpu_kms,
int irq_idx); unsigned int irq_idx);
/** /**
* dpu_core_irq_register_callback - For registering callback function on IRQ * dpu_core_irq_register_callback - For registering callback function on IRQ
...@@ -52,7 +52,7 @@ u32 dpu_core_irq_read( ...@@ -52,7 +52,7 @@ u32 dpu_core_irq_read(
*/ */
int dpu_core_irq_register_callback( int dpu_core_irq_register_callback(
struct dpu_kms *dpu_kms, struct dpu_kms *dpu_kms,
int irq_idx, unsigned int irq_idx,
void (*irq_cb)(void *arg), void (*irq_cb)(void *arg),
void *irq_arg); void *irq_arg);
...@@ -67,7 +67,7 @@ int dpu_core_irq_register_callback( ...@@ -67,7 +67,7 @@ int dpu_core_irq_register_callback(
*/ */
int dpu_core_irq_unregister_callback( int dpu_core_irq_unregister_callback(
struct dpu_kms *dpu_kms, struct dpu_kms *dpu_kms,
int irq_idx); unsigned int irq_idx);
/** /**
* dpu_debugfs_core_irq_init - register core irq debugfs * dpu_debugfs_core_irq_init - register core irq debugfs
......
...@@ -347,7 +347,7 @@ static int dpu_encoder_helper_wait_event_timeout(int32_t drm_id, ...@@ -347,7 +347,7 @@ static int dpu_encoder_helper_wait_event_timeout(int32_t drm_id,
u32 irq_idx, struct dpu_encoder_wait_info *info); u32 irq_idx, struct dpu_encoder_wait_info *info);
int dpu_encoder_helper_wait_for_irq(struct dpu_encoder_phys *phys_enc, int dpu_encoder_helper_wait_for_irq(struct dpu_encoder_phys *phys_enc,
int irq_idx, unsigned int irq_idx,
void (*func)(void *arg), void (*func)(void *arg),
struct dpu_encoder_wait_info *wait_info) struct dpu_encoder_wait_info *wait_info)
{ {
...@@ -1537,7 +1537,7 @@ void dpu_encoder_helper_trigger_start(struct dpu_encoder_phys *phys_enc) ...@@ -1537,7 +1537,7 @@ void dpu_encoder_helper_trigger_start(struct dpu_encoder_phys *phys_enc)
static int dpu_encoder_helper_wait_event_timeout( static int dpu_encoder_helper_wait_event_timeout(
int32_t drm_id, int32_t drm_id,
u32 irq_idx, unsigned int irq_idx,
struct dpu_encoder_wait_info *info) struct dpu_encoder_wait_info *info)
{ {
int rc = 0; int rc = 0;
...@@ -2482,8 +2482,6 @@ unsigned int dpu_encoder_helper_get_dsc(struct dpu_encoder_phys *phys_enc) ...@@ -2482,8 +2482,6 @@ unsigned int dpu_encoder_helper_get_dsc(struct dpu_encoder_phys *phys_enc)
void dpu_encoder_phys_init(struct dpu_encoder_phys *phys_enc, void dpu_encoder_phys_init(struct dpu_encoder_phys *phys_enc,
struct dpu_enc_phys_init_params *p) struct dpu_enc_phys_init_params *p)
{ {
int i;
phys_enc->hw_mdptop = p->dpu_kms->hw_mdp; phys_enc->hw_mdptop = p->dpu_kms->hw_mdp;
phys_enc->hw_intf = p->hw_intf; phys_enc->hw_intf = p->hw_intf;
phys_enc->hw_wb = p->hw_wb; phys_enc->hw_wb = p->hw_wb;
...@@ -2493,9 +2491,6 @@ void dpu_encoder_phys_init(struct dpu_encoder_phys *phys_enc, ...@@ -2493,9 +2491,6 @@ void dpu_encoder_phys_init(struct dpu_encoder_phys *phys_enc,
phys_enc->enc_spinlock = p->enc_spinlock; phys_enc->enc_spinlock = p->enc_spinlock;
phys_enc->enable_state = DPU_ENC_DISABLED; phys_enc->enable_state = DPU_ENC_DISABLED;
for (i = 0; i < ARRAY_SIZE(phys_enc->irq); i++)
phys_enc->irq[i] = -EINVAL;
atomic_set(&phys_enc->vblank_refcount, 0); atomic_set(&phys_enc->vblank_refcount, 0);
atomic_set(&phys_enc->pending_kickoff_cnt, 0); atomic_set(&phys_enc->pending_kickoff_cnt, 0);
atomic_set(&phys_enc->pending_ctlstart_cnt, 0); atomic_set(&phys_enc->pending_ctlstart_cnt, 0);
......
...@@ -193,7 +193,7 @@ struct dpu_encoder_phys { ...@@ -193,7 +193,7 @@ struct dpu_encoder_phys {
atomic_t pending_ctlstart_cnt; atomic_t pending_ctlstart_cnt;
atomic_t pending_kickoff_cnt; atomic_t pending_kickoff_cnt;
wait_queue_head_t pending_kickoff_wq; wait_queue_head_t pending_kickoff_wq;
int irq[INTR_IDX_MAX]; unsigned int irq[INTR_IDX_MAX];
bool has_intf_te; bool has_intf_te;
}; };
...@@ -364,7 +364,7 @@ void dpu_encoder_helper_report_irq_timeout(struct dpu_encoder_phys *phys_enc, ...@@ -364,7 +364,7 @@ void dpu_encoder_helper_report_irq_timeout(struct dpu_encoder_phys *phys_enc,
* @Return: 0 or -ERROR * @Return: 0 or -ERROR
*/ */
int dpu_encoder_helper_wait_for_irq(struct dpu_encoder_phys *phys_enc, int dpu_encoder_helper_wait_for_irq(struct dpu_encoder_phys *phys_enc,
int irq, unsigned int irq,
void (*func)(void *arg), void (*func)(void *arg),
struct dpu_encoder_wait_info *wait_info); struct dpu_encoder_wait_info *wait_info);
......
...@@ -494,7 +494,7 @@ struct dpu_mdp_cfg { ...@@ -494,7 +494,7 @@ struct dpu_mdp_cfg {
*/ */
struct dpu_ctl_cfg { struct dpu_ctl_cfg {
DPU_HW_BLK_INFO; DPU_HW_BLK_INFO;
s32 intr_start; unsigned int intr_start;
}; };
/** /**
...@@ -557,8 +557,8 @@ struct dpu_dspp_cfg { ...@@ -557,8 +557,8 @@ struct dpu_dspp_cfg {
struct dpu_pingpong_cfg { struct dpu_pingpong_cfg {
DPU_HW_BLK_INFO; DPU_HW_BLK_INFO;
u32 merge_3d; u32 merge_3d;
s32 intr_done; unsigned int intr_done;
s32 intr_rdptr; unsigned int intr_rdptr;
const struct dpu_pingpong_sub_blks *sblk; const struct dpu_pingpong_sub_blks *sblk;
}; };
...@@ -605,9 +605,9 @@ struct dpu_intf_cfg { ...@@ -605,9 +605,9 @@ struct dpu_intf_cfg {
u32 type; /* interface type*/ u32 type; /* interface type*/
u32 controller_id; u32 controller_id;
u32 prog_fetch_lines_worst_case; u32 prog_fetch_lines_worst_case;
s32 intr_underrun; unsigned int intr_underrun;
s32 intr_vsync; unsigned int intr_vsync;
s32 intr_tear_rd_ptr; unsigned int intr_tear_rd_ptr;
}; };
/** /**
...@@ -626,7 +626,7 @@ struct dpu_wb_cfg { ...@@ -626,7 +626,7 @@ struct dpu_wb_cfg {
u8 vbif_idx; u8 vbif_idx;
u32 maxlinewidth; u32 maxlinewidth;
u32 xin_id; u32 xin_id;
s32 intr_wb_done; unsigned int intr_wb_done;
const u32 *format_list; const u32 *format_list;
u32 num_formats; u32 num_formats;
enum dpu_clk_ctrl_type clk_ctrl; enum dpu_clk_ctrl_type clk_ctrl;
......
...@@ -199,15 +199,15 @@ static const struct dpu_intr_reg dpu_intr_set_7xxx[] = { ...@@ -199,15 +199,15 @@ static const struct dpu_intr_reg dpu_intr_set_7xxx[] = {
#define DPU_IRQ_MASK(irq_idx) (BIT(DPU_IRQ_BIT(irq_idx))) #define DPU_IRQ_MASK(irq_idx) (BIT(DPU_IRQ_BIT(irq_idx)))
static inline bool dpu_core_irq_is_valid(int irq_idx) static inline bool dpu_core_irq_is_valid(unsigned int irq_idx)
{ {
return irq_idx >= 0 && irq_idx < DPU_NUM_IRQS; return irq_idx && irq_idx <= DPU_NUM_IRQS;
} }
static inline struct dpu_hw_intr_entry *dpu_core_irq_get_entry(struct dpu_hw_intr *intr, static inline struct dpu_hw_intr_entry *dpu_core_irq_get_entry(struct dpu_hw_intr *intr,
int irq_idx) unsigned int irq_idx)
{ {
return &intr->irq_tbl[irq_idx]; return &intr->irq_tbl[irq_idx - 1];
} }
/** /**
...@@ -215,7 +215,7 @@ static inline struct dpu_hw_intr_entry *dpu_core_irq_get_entry(struct dpu_hw_int ...@@ -215,7 +215,7 @@ static inline struct dpu_hw_intr_entry *dpu_core_irq_get_entry(struct dpu_hw_int
* @dpu_kms: Pointer to DPU's KMS structure * @dpu_kms: Pointer to DPU's KMS structure
* @irq_idx: interrupt index * @irq_idx: interrupt index
*/ */
static void dpu_core_irq_callback_handler(struct dpu_kms *dpu_kms, int irq_idx) static void dpu_core_irq_callback_handler(struct dpu_kms *dpu_kms, unsigned int irq_idx)
{ {
struct dpu_hw_intr_entry *irq_entry = dpu_core_irq_get_entry(dpu_kms->hw_intr, irq_idx); struct dpu_hw_intr_entry *irq_entry = dpu_core_irq_get_entry(dpu_kms->hw_intr, irq_idx);
...@@ -238,7 +238,7 @@ irqreturn_t dpu_core_irq(struct msm_kms *kms) ...@@ -238,7 +238,7 @@ irqreturn_t dpu_core_irq(struct msm_kms *kms)
struct dpu_kms *dpu_kms = to_dpu_kms(kms); struct dpu_kms *dpu_kms = to_dpu_kms(kms);
struct dpu_hw_intr *intr = dpu_kms->hw_intr; struct dpu_hw_intr *intr = dpu_kms->hw_intr;
int reg_idx; int reg_idx;
int irq_idx; unsigned int irq_idx;
u32 irq_status; u32 irq_status;
u32 enable_mask; u32 enable_mask;
int bit; int bit;
...@@ -294,7 +294,8 @@ irqreturn_t dpu_core_irq(struct msm_kms *kms) ...@@ -294,7 +294,8 @@ irqreturn_t dpu_core_irq(struct msm_kms *kms)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static int dpu_hw_intr_enable_irq_locked(struct dpu_hw_intr *intr, int irq_idx) static int dpu_hw_intr_enable_irq_locked(struct dpu_hw_intr *intr,
unsigned int irq_idx)
{ {
int reg_idx; int reg_idx;
const struct dpu_intr_reg *reg; const struct dpu_intr_reg *reg;
...@@ -349,7 +350,8 @@ static int dpu_hw_intr_enable_irq_locked(struct dpu_hw_intr *intr, int irq_idx) ...@@ -349,7 +350,8 @@ static int dpu_hw_intr_enable_irq_locked(struct dpu_hw_intr *intr, int irq_idx)
return 0; return 0;
} }
static int dpu_hw_intr_disable_irq_locked(struct dpu_hw_intr *intr, int irq_idx) static int dpu_hw_intr_disable_irq_locked(struct dpu_hw_intr *intr,
unsigned int irq_idx)
{ {
int reg_idx; int reg_idx;
const struct dpu_intr_reg *reg; const struct dpu_intr_reg *reg;
...@@ -436,7 +438,8 @@ static void dpu_disable_all_irqs(struct dpu_kms *dpu_kms) ...@@ -436,7 +438,8 @@ static void dpu_disable_all_irqs(struct dpu_kms *dpu_kms)
wmb(); wmb();
} }
u32 dpu_core_irq_read(struct dpu_kms *dpu_kms, int irq_idx) u32 dpu_core_irq_read(struct dpu_kms *dpu_kms,
unsigned int irq_idx)
{ {
struct dpu_hw_intr *intr = dpu_kms->hw_intr; struct dpu_hw_intr *intr = dpu_kms->hw_intr;
int reg_idx; int reg_idx;
...@@ -500,7 +503,7 @@ struct dpu_hw_intr *dpu_hw_intr_init(void __iomem *addr, ...@@ -500,7 +503,7 @@ struct dpu_hw_intr *dpu_hw_intr_init(void __iomem *addr,
intr->irq_mask |= BIT(MDP_INTFn_INTR(intf->id)); intr->irq_mask |= BIT(MDP_INTFn_INTR(intf->id));
if (intf->intr_tear_rd_ptr != -1) if (intf->intr_tear_rd_ptr)
intr->irq_mask |= BIT(DPU_IRQ_REG(intf->intr_tear_rd_ptr)); intr->irq_mask |= BIT(DPU_IRQ_REG(intf->intr_tear_rd_ptr));
} }
...@@ -514,9 +517,10 @@ void dpu_hw_intr_destroy(struct dpu_hw_intr *intr) ...@@ -514,9 +517,10 @@ void dpu_hw_intr_destroy(struct dpu_hw_intr *intr)
kfree(intr); kfree(intr);
} }
int dpu_core_irq_register_callback(struct dpu_kms *dpu_kms, int irq_idx, int dpu_core_irq_register_callback(struct dpu_kms *dpu_kms,
void (*irq_cb)(void *arg), unsigned int irq_idx,
void *irq_arg) void (*irq_cb)(void *arg),
void *irq_arg)
{ {
struct dpu_hw_intr_entry *irq_entry; struct dpu_hw_intr_entry *irq_entry;
unsigned long irq_flags; unsigned long irq_flags;
...@@ -563,7 +567,8 @@ int dpu_core_irq_register_callback(struct dpu_kms *dpu_kms, int irq_idx, ...@@ -563,7 +567,8 @@ int dpu_core_irq_register_callback(struct dpu_kms *dpu_kms, int irq_idx,
return 0; return 0;
} }
int dpu_core_irq_unregister_callback(struct dpu_kms *dpu_kms, int irq_idx) int dpu_core_irq_unregister_callback(struct dpu_kms *dpu_kms,
unsigned int irq_idx)
{ {
struct dpu_hw_intr_entry *irq_entry; struct dpu_hw_intr_entry *irq_entry;
unsigned long irq_flags; unsigned long irq_flags;
...@@ -606,7 +611,7 @@ static int dpu_debugfs_core_irq_show(struct seq_file *s, void *v) ...@@ -606,7 +611,7 @@ static int dpu_debugfs_core_irq_show(struct seq_file *s, void *v)
int i, irq_count; int i, irq_count;
void *cb; void *cb;
for (i = 0; i < DPU_NUM_IRQS; i++) { for (i = 1; i <= DPU_NUM_IRQS; i++) {
spin_lock_irqsave(&dpu_kms->hw_intr->irq_lock, irq_flags); spin_lock_irqsave(&dpu_kms->hw_intr->irq_lock, irq_flags);
irq_entry = dpu_core_irq_get_entry(dpu_kms->hw_intr, i); irq_entry = dpu_core_irq_get_entry(dpu_kms->hw_intr, i);
irq_count = atomic_read(&irq_entry->count); irq_count = atomic_read(&irq_entry->count);
...@@ -642,7 +647,7 @@ void dpu_core_irq_preinstall(struct msm_kms *kms) ...@@ -642,7 +647,7 @@ void dpu_core_irq_preinstall(struct msm_kms *kms)
dpu_disable_all_irqs(dpu_kms); dpu_disable_all_irqs(dpu_kms);
pm_runtime_put_sync(&dpu_kms->pdev->dev); pm_runtime_put_sync(&dpu_kms->pdev->dev);
for (i = 0; i < DPU_NUM_IRQS; i++) { for (i = 1; i <= DPU_NUM_IRQS; i++) {
irq_entry = dpu_core_irq_get_entry(dpu_kms->hw_intr, i); irq_entry = dpu_core_irq_get_entry(dpu_kms->hw_intr, i);
atomic_set(&irq_entry->count, 0); atomic_set(&irq_entry->count, 0);
} }
...@@ -658,7 +663,7 @@ void dpu_core_irq_uninstall(struct msm_kms *kms) ...@@ -658,7 +663,7 @@ void dpu_core_irq_uninstall(struct msm_kms *kms)
return; return;
pm_runtime_get_sync(&dpu_kms->pdev->dev); pm_runtime_get_sync(&dpu_kms->pdev->dev);
for (i = 0; i < DPU_NUM_IRQS; i++) { for (i = 1; i <= DPU_NUM_IRQS; i++) {
irq_entry = dpu_core_irq_get_entry(dpu_kms->hw_intr, i); irq_entry = dpu_core_irq_get_entry(dpu_kms->hw_intr, i);
if (irq_entry->cb) if (irq_entry->cb)
DPU_ERROR("IRQ=[%d, %d] still enabled/registered\n", DPU_ERROR("IRQ=[%d, %d] still enabled/registered\n",
......
...@@ -36,9 +36,9 @@ enum dpu_hw_intr_reg { ...@@ -36,9 +36,9 @@ enum dpu_hw_intr_reg {
#define MDP_INTFn_INTR(intf) (MDP_INTF0_INTR + (intf - INTF_0)) #define MDP_INTFn_INTR(intf) (MDP_INTF0_INTR + (intf - INTF_0))
#define DPU_IRQ_IDX(reg_idx, offset) (reg_idx * 32 + offset) #define DPU_IRQ_IDX(reg_idx, offset) (1 + reg_idx * 32 + offset)
#define DPU_IRQ_REG(irq_idx) (irq_idx / 32) #define DPU_IRQ_REG(irq_idx) ((irq_idx - 1) / 32)
#define DPU_IRQ_BIT(irq_idx) (irq_idx % 32) #define DPU_IRQ_BIT(irq_idx) ((irq_idx - 1) % 32)
#define DPU_NUM_IRQS (MDP_INTR_MAX * 32) #define DPU_NUM_IRQS (MDP_INTR_MAX * 32)
......
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