Commit 4f2c9838 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Rob Clark

drm/msm/dpu: fill missing details in hw catalog for sdm845 and sm8[12]50

Fill clk_inefficiency_factor, bw_inefficiency_factor and
min_prefill_lines in hw catalog data for sdm845 and sm8[12]50.

Efficiency factors are blindly copied from sc7180 data, while
min_prefill_lines is based on downstream display driver.
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20210401020533.3956787-1-dmitry.baryshkov@linaro.orgSigned-off-by: default avatarRob Clark <robdclark@chromium.org>
parent 095eed89
...@@ -817,6 +817,8 @@ static const struct dpu_perf_cfg sdm845_perf_data = { ...@@ -817,6 +817,8 @@ static const struct dpu_perf_cfg sdm845_perf_data = {
{.rd_enable = 1, .wr_enable = 1}, {.rd_enable = 1, .wr_enable = 1},
{.rd_enable = 1, .wr_enable = 0} {.rd_enable = 1, .wr_enable = 0}
}, },
.clk_inefficiency_factor = 105,
.bw_inefficiency_factor = 120,
}; };
static const struct dpu_perf_cfg sc7180_perf_data = { static const struct dpu_perf_cfg sc7180_perf_data = {
...@@ -852,6 +854,7 @@ static const struct dpu_perf_cfg sm8150_perf_data = { ...@@ -852,6 +854,7 @@ static const struct dpu_perf_cfg sm8150_perf_data = {
.min_core_ib = 2400000, .min_core_ib = 2400000,
.min_llcc_ib = 800000, .min_llcc_ib = 800000,
.min_dram_ib = 800000, .min_dram_ib = 800000,
.min_prefill_lines = 24,
.danger_lut_tbl = {0xf, 0xffff, 0x0}, .danger_lut_tbl = {0xf, 0xffff, 0x0},
.qos_lut_tbl = { .qos_lut_tbl = {
{.nentry = ARRAY_SIZE(sm8150_qos_linear), {.nentry = ARRAY_SIZE(sm8150_qos_linear),
...@@ -869,6 +872,8 @@ static const struct dpu_perf_cfg sm8150_perf_data = { ...@@ -869,6 +872,8 @@ static const struct dpu_perf_cfg sm8150_perf_data = {
{.rd_enable = 1, .wr_enable = 1}, {.rd_enable = 1, .wr_enable = 1},
{.rd_enable = 1, .wr_enable = 0} {.rd_enable = 1, .wr_enable = 0}
}, },
.clk_inefficiency_factor = 105,
.bw_inefficiency_factor = 120,
}; };
static const struct dpu_perf_cfg sm8250_perf_data = { static const struct dpu_perf_cfg sm8250_perf_data = {
...@@ -877,6 +882,7 @@ static const struct dpu_perf_cfg sm8250_perf_data = { ...@@ -877,6 +882,7 @@ static const struct dpu_perf_cfg sm8250_perf_data = {
.min_core_ib = 4800000, .min_core_ib = 4800000,
.min_llcc_ib = 0, .min_llcc_ib = 0,
.min_dram_ib = 800000, .min_dram_ib = 800000,
.min_prefill_lines = 35,
.danger_lut_tbl = {0xf, 0xffff, 0x0}, .danger_lut_tbl = {0xf, 0xffff, 0x0},
.qos_lut_tbl = { .qos_lut_tbl = {
{.nentry = ARRAY_SIZE(sc7180_qos_linear), {.nentry = ARRAY_SIZE(sc7180_qos_linear),
...@@ -894,6 +900,8 @@ static const struct dpu_perf_cfg sm8250_perf_data = { ...@@ -894,6 +900,8 @@ static const struct dpu_perf_cfg sm8250_perf_data = {
{.rd_enable = 1, .wr_enable = 1}, {.rd_enable = 1, .wr_enable = 1},
{.rd_enable = 1, .wr_enable = 0} {.rd_enable = 1, .wr_enable = 0}
}, },
.clk_inefficiency_factor = 105,
.bw_inefficiency_factor = 120,
}; };
/************************************************************* /*************************************************************
......
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