8 Star 12 Fork 10

openEuler / prefetch_tuning

 / 详情

BIOS设置CPU Prefetch 关闭时,policy的值为-1,不在0-15的范围内

待办的
任务
创建于  
2023-02-09 11:06

当鲲鹏BIOS中的预取设置为关闭时,发现policy的值为-1
输入图片说明
readme中,policy设置的范围为0-15
输入图片说明

为何policy的值可以为-1,-1和0的区别是什么

评论 (4)

ji 创建了任务

Hi jiyongnan, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: A-Tune, and any of the maintainers: @谢志鹏 , @gaoruoshu , @Monday , @HuBin95

openeuler-ci-bot 添加了
 
sig/A-Tune
标签

由于在BIOS中禁用了prefetch,因此对于每个cpu,无法设置prefetch策略,也无法获取到有效的prefetch策略。
显示为-1,表示与预置的16种prefetch策略(0-15号)均不匹配;若能匹配,则显示0-15中的一个数字。

HuBin95 添加了
 
kind/wait_for_update
标签

由于在BIOS中禁用了prefetch,因此对于每个cpu,无法设置prefetch策略
---针对这一点,提出质疑,禁用prefetch后,仍然可以设置0-15的值

设置0-15的值,也即往cpu的prefetch相关寄存器写对应policy的属性值,这个可以设置,但BIOS禁用prefetch后,cpu属性值的设置是无法生效的。

代码中,使用 set_prefetch 函数向cpu寄存器写入 policy 的值:
set_prefetch 中,没有检查 write_sysreg 的返回值。
输入图片说明
输入图片说明
输入图片说明
输入图片说明

HuBin95 移除了
 
kind/wait_for_update
标签
HuBin95 添加了
 
kind/wait_for_update
标签

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936
C
1
https://gitee.com/openeuler/prefetch_tuning.git
git@gitee.com:openeuler/prefetch_tuning.git
openeuler
prefetch_tuning
prefetch_tuning

搜索帮助