summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gk20a/pmu_gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
index 539ad44e..98d6e2df 100644
--- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
@@ -2066,7 +2066,7 @@ void pmu_copy_to_dmem(struct pmu_gk20a *pmu,
2066 2066
2067 data = gk20a_readl(g, pwr_falcon_dmemc_r(port)) & addr_mask; 2067 data = gk20a_readl(g, pwr_falcon_dmemc_r(port)) & addr_mask;
2068 size = ALIGN(size, 4); 2068 size = ALIGN(size, 4);
2069 if (data != dst + size) { 2069 if (data != ((dst + size) & addr_mask)) {
2070 gk20a_err(dev_from_gk20a(g), 2070 gk20a_err(dev_from_gk20a(g),
2071 "copy failed. bytes written %d, expected %d", 2071 "copy failed. bytes written %d, expected %d",
2072 data - dst, size); 2072 data - dst, size);