[PATCH OLK-6.6] arm-spe: Fix typos in the arm_spe_to_htpg()
hulk inclusion category: bugfix bugzilla: https://atomgit.com/openeuler/kernel/issues/7491 -------------------------------- When enabling the Hotpage control register to filter the remote access PA, the operation performs a bit-field shift rather than a comparison. Fixes: 9081b8b4bfef ("arm-spe: Boost SPE add TLB hot page and remote access tracking") Signed-off-by: Zeng Heng <zengheng4@huawei.com> --- drivers/arm/mm_monitor/mm_spe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/arm/mm_monitor/mm_spe.c b/drivers/arm/mm_monitor/mm_spe.c index c742388850d4..ac67a279a0b8 100644 --- a/drivers/arm/mm_monitor/mm_spe.c +++ b/drivers/arm/mm_monitor/mm_spe.c @@ -217,8 +217,8 @@ static u64 arm_spe_to_htpg(void) reg |= boost_spe->sft_cfg << SYS_OMHTPG_EL1_SFT_CFG_SHIFT; if (boost_spe->boost_spe_pa_flt_en || boost_spe->rmt_acc_pa_flt_en) { - reg |= 1 < SYS_OMHTPG_EL1_PAEN_SHIFT; - reg |= 1 < SYS_OMHTPG_EL1_RMPAFLEN_SHIFT; + reg |= 1 << SYS_OMHTPG_EL1_PAEN_SHIFT; + reg |= 1 << SYS_OMHTPG_EL1_RMPAFLEN_SHIFT; if (boost_spe->pa_flt_pt < 0x8000000 && boost_spe->pa_flt_mask < 0x8000000) { reg |= boost_spe->pa_flt_pt << SYS_OMHTPG_EL1_PAFL_SHIFT; -- 2.25.1
反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://atomgit.com/openeuler/kernel/merge_requests/19840 邮件列表地址:https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/V3A... FeedBack: The patch(es) which you have sent to kernel@openeuler.org mailing list has been converted to a pull request successfully! Pull request link: https://atomgit.com/openeuler/kernel/merge_requests/19840 Mailing list address: https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/V3A...
participants (2)
-
patchwork bot -
Zeng Heng