[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240402104950.170632-1-sgsu.park@samsung.com>
Date: Tue, 2 Apr 2024 19:49:50 +0900
From: Seongsu Park <sgsu.park@...sung.com>
To: catalin.marinas@....com, will@...nel.org, ardb@...nel.org,
mark.rutland@....com
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
sgsu.park@...sung.com, Leem ChaeHoon <infinite.run@...il.com>, Gyeonggeon
Choi <gychoi@...dent.42seoul.kr>, Soomin Cho <to.soomin@...il.com>, DaeRo
Lee <skseofh@...il.com>, kmasta <kmasta.study@...il.com>
Subject: [PATCH] arm64: Fix double TCR_T0SZ_OFFSET shift
We have already shifted the value of t0sz in TCR_T0SZ by TCR_T0SZ_OFFSET.
So, the TCR_T0SZ_OFFSET shift here should be removed.
Co-developed-by: Leem ChaeHoon <infinite.run@...il.com>
Signed-off-by: Leem ChaeHoon <infinite.run@...il.com>
Co-developed-by: Gyeonggeon Choi <gychoi@...dent.42seoul.kr>
Signed-off-by: Gyeonggeon Choi <gychoi@...dent.42seoul.kr>
Co-developed-by: Soomin Cho <to.soomin@...il.com>
Signed-off-by: Soomin Cho <to.soomin@...il.com>
Co-developed-by: DaeRo Lee <skseofh@...il.com>
Signed-off-by: DaeRo Lee <skseofh@...il.com>
Co-developed-by: kmasta <kmasta.study@...il.com>
Signed-off-by: kmasta <kmasta.study@...il.com>
Signed-off-by: Seongsu Park <sgsu.park@...sung.com>
---
arch/arm64/include/asm/mmu_context.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/include/asm/mmu_context.h b/arch/arm64/include/asm/mmu_context.h
index c768d16b81a4..58de99836d2e 100644
--- a/arch/arm64/include/asm/mmu_context.h
+++ b/arch/arm64/include/asm/mmu_context.h
@@ -76,7 +76,7 @@ static inline void __cpu_set_tcr_t0sz(unsigned long t0sz)
return;
tcr &= ~TCR_T0SZ_MASK;
- tcr |= t0sz << TCR_T0SZ_OFFSET;
+ tcr |= t0sz;
write_sysreg(tcr, tcr_el1);
isb();
}
--
2.34.1
Powered by blists - more mailing lists