diff --git a/drivers/memory_debug/ddr_tool/ddr_band_op_s1a.c b/drivers/memory_debug/ddr_tool/ddr_band_op_s1a.c index 9b8130cd6..ff0c5f3cb 100644 --- a/drivers/memory_debug/ddr_tool/ddr_band_op_s1a.c +++ b/drivers/memory_debug/ddr_tool/ddr_band_op_s1a.c @@ -117,7 +117,7 @@ static void s1a_dmc_range_config(struct ddr_bandwidth *db, int channel, static unsigned long s1a_get_dmc_freq_quick(struct ddr_bandwidth *db) { - db->ddr_freq = readl(db->pll_reg) * 1000000; + db->ddr_freq = (readl(db->pll_reg) & 0xffff) * 1000000; db->dmc_freq = db->ddr_freq >> 1; return db->dmc_freq; diff --git a/drivers/memory_debug/ddr_tool/ddr_band_op_s5.c b/drivers/memory_debug/ddr_tool/ddr_band_op_s5.c index c5b534cca..e2b106b06 100644 --- a/drivers/memory_debug/ddr_tool/ddr_band_op_s5.c +++ b/drivers/memory_debug/ddr_tool/ddr_band_op_s5.c @@ -136,7 +136,7 @@ static void s5_dmc_range_config(struct ddr_bandwidth *db, int channel, static unsigned long s5_get_dmc_freq_quick(struct ddr_bandwidth *db) { - db->ddr_freq = readl(db->pll_reg) * 1000000; + db->ddr_freq = (readl(db->pll_reg) & 0xffff) * 1000000; db->dmc_freq = db->ddr_freq >> 1; return db->dmc_freq; diff --git a/drivers/memory_debug/ddr_tool/ddr_band_op_s6.c b/drivers/memory_debug/ddr_tool/ddr_band_op_s6.c index 8b7f61995..4be33ace0 100644 --- a/drivers/memory_debug/ddr_tool/ddr_band_op_s6.c +++ b/drivers/memory_debug/ddr_tool/ddr_band_op_s6.c @@ -44,7 +44,7 @@ static void s6_dmc_port_config(struct ddr_bandwidth *db, int channel, int port) static unsigned long s6_get_dmc_freq_quick(struct ddr_bandwidth *db) { - db->ddr_freq = readl(db->pll_reg) * 1000000; + db->ddr_freq = (readl(db->pll_reg) & 0xffff) * 1000000; /* S6 dmc freq = 1/4 ddr freq */ db->dmc_freq = db->ddr_freq >> 2; diff --git a/drivers/memory_debug/ddr_tool/ddr_band_op_s7.c b/drivers/memory_debug/ddr_tool/ddr_band_op_s7.c index ed1032ed3..a520abd5c 100644 --- a/drivers/memory_debug/ddr_tool/ddr_band_op_s7.c +++ b/drivers/memory_debug/ddr_tool/ddr_band_op_s7.c @@ -124,7 +124,7 @@ static void s7_dmc_range_config(struct ddr_bandwidth *db, int channel, static unsigned long s7_get_dmc_freq_quick(struct ddr_bandwidth *db) { - db->ddr_freq = readl(db->pll_reg) * 1000000; + db->ddr_freq = (readl(db->pll_reg) & 0xffff) * 1000000; db->dmc_freq = db->ddr_freq >> 1; return db->dmc_freq; diff --git a/drivers/memory_debug/ddr_tool/ddr_band_op_t5m.c b/drivers/memory_debug/ddr_tool/ddr_band_op_t5m.c index 86c0153da..72254b471 100644 --- a/drivers/memory_debug/ddr_tool/ddr_band_op_t5m.c +++ b/drivers/memory_debug/ddr_tool/ddr_band_op_t5m.c @@ -136,7 +136,7 @@ static void t5m_dmc_range_config(struct ddr_bandwidth *db, int channel, static unsigned long t5m_get_dmc_freq_quick(struct ddr_bandwidth *db) { - db->ddr_freq = readl(db->pll_reg) * 1000000; + db->ddr_freq = (readl(db->pll_reg) & 0xffff) * 1000000; db->dmc_freq = db->ddr_freq >> 1; if (db->soc_feature & DMC_ASYMMETRY) { diff --git a/drivers/memory_debug/ddr_tool/ddr_band_op_txhd2.c b/drivers/memory_debug/ddr_tool/ddr_band_op_txhd2.c index 800a89db3..92dea4d54 100644 --- a/drivers/memory_debug/ddr_tool/ddr_band_op_txhd2.c +++ b/drivers/memory_debug/ddr_tool/ddr_band_op_txhd2.c @@ -117,7 +117,7 @@ static void txhd2_dmc_range_config(struct ddr_bandwidth *db, int channel, static unsigned long txhd2_get_dmc_freq_quick(struct ddr_bandwidth *db) { - db->ddr_freq = readl(db->pll_reg) * 1000000; + db->ddr_freq = (readl(db->pll_reg) & 0xffff) * 1000000; db->dmc_freq = db->ddr_freq >> 1; return db->dmc_freq; diff --git a/patchinfo/I74e8f59def96916abd44cd39eaa28b615e3d8fdd b/patchinfo/I74e8f59def96916abd44cd39eaa28b615e3d8fdd new file mode 100644 index 000000000..4fb0a94e6 --- /dev/null +++ b/patchinfo/I74e8f59def96916abd44cd39eaa28b615e3d8fdd @@ -0,0 +1 @@ +SWPL-206552