Unverified Commit 7dfcf66a authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!2481 Introduce PBHA and PBHA bit0 to control the usage of HBM Cache precisely

Merge Pull Request from: @ci-robot 
 
PR sync from: Wupeng Ma <mawupeng1@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/XTEXXS6LTDPZLZUMINEOZIKT6R3XSQHX/ 
From: Ma Wupeng <mawupeng1@huawei.com>

Patch 1: move FDT init out of kaslr_early_init for future use.
Patch 2 to 8: enable feature PBHA for arm64.
Patch 9-18: Control the usage of HBM cache for kernel and task precisely.
Patch 19: Enable feature PBHA for arm64 by default.

Changelog since v5:
- Return -EINVAL if pbha bit0 is not enabled in pbha_bit0_update_vma in
  patch #15

Changelog since v4:
- update pbha_bit0_update_pgprot to pgprot_pbha_bit0

Changelog since v3:
- update desc for patch #15

Changelog since v2:
- correct the error Documentation in patch #18

Changelog since v1:
- fix kabi broken due to include files

James Morse (7):
  KVM: arm64: Detect and enable PBHA for stage2
  dt-bindings: Rename the description of cpu nodes cpu.yaml
  dt-bindings: arm: Add binding for Page Based Hardware Attributes
  arm64: cpufeature: Enable PBHA bits for stage1
  arm64: mm: Add pgprot_pbha() to allow drivers to request PBHA values
  KVM: arm64: Configure PBHA bits for stage2
  Documentation: arm64: Describe the support and expectations for PBHA

Ma Wupeng (11):
  arm64: cpufeature: Enable PBHA for stage1 early via FDT
  arm64: mm: Detect and enable PBHA bit0 at early startup
  arm64: mm: Update kernel pte entries if pbha bit0 enabled
  arm64: mm: Show PBHA bit 59 as PBHA0 in ptdump
  arm64: mm: Introduce VM_PBHA_BIT0 to enable pbha bit0 for single vma
  arm64: mm: Set PBHA0 bit for VM_PBHA_BIT0
  arm64: mm: Introduce procfs interface to update PBHA0 bit
  arm64: mm: Set flag VM_PBHA_BIT0 for global init task
  arm64: mm: Introduce prctl to control pbha behavior
  arm64: mm: Introduce kernel param pbha
  openeuler: configs: arm64: Enable PBHA by default

Marc Zyngier (1):
  arm64: Extract early FDT mapping from kaslr_early_init()


-- 
2.25.1
 
https://gitee.com/openeuler/kernel/issues/I7ZC0H 
 
Link:https://gitee.com/openeuler/kernel/pulls/2481

 

Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Reviewed-by: default avatarZucheng Zheng <zhengzucheng@huawei.com>
Reviewed-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents 1422b1b2 35ed7d91
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment