CAT definition in the scenario xmls
jordan.nowak22@...
Hi ACRN experts, |
|
Minggui Cao
Hi, for CAT support (L2/L3), you can check it by cpuid;
For L2, if on core platform it is private for a physical core, L3/LLC is shared between cores, if hyper-threading is not enabled, L2 CAT not helpful.
L2/L3 CAT use different MSR to set, so no matter the cache ways the same or not.
You can refer ACRN: release_2.5 branch, the tgl-rvp board industry scenario has L3 CAT setting.
From: acrn-users@... <acrn-users@...>
On Behalf Of jordan.nowak22@...
Sent: Tuesday, March 29, 2022 11:02 PM To: acrn-users@... Subject: [acrn-users] CAT definition in the scenario xmls
Hi ACRN experts, |
|
jordan.nowak22@...
Hi Minggui,
Do you mean that for L3 CAT setting, i also need specify it in the board xmls in the CLOS info portion? if i want to use both L2 and L3 CAT, how would i definte that in the board xmls? |
|
Minggui Cao
Yes, it is for L3 CAT. You can check tgl-rvp.xml the board file, there are some changes for L3 info.
Current, ACRN just supports one of L2/L3 CAT, if you need support both, you can do it as hard code.
Thanks Minggui
From: acrn-users@... <acrn-users@...>
On Behalf Of jordan.nowak22@...
Sent: Wednesday, March 30, 2022 4:00 PM To: acrn-users@... Subject: Re: [acrn-users] CAT definition in the scenario xmls
Hi Minggui, |
|
Hi Minggui,
For both L2 and L3 CAT support, do you have any example when you say hard code? or is there any documentation that states this? |
|
Minggui Cao
Hi, Jordan, You can use “wrmsr “ in ACRN console first to configure L2 CAT. If it works for your expectation. You can it into rdt code.
Thanks! Minggui
From: acrn-users@... <acrn-users@...>
On Behalf Of jordan.nowak22@...
Sent: Thursday, March 31, 2022 9:35 AM To: acrn-users@... Subject: Re: [acrn-users] CAT definition in the scenario xmls
[Edited Message Follows] Hi Minggui, |
|
jordan.nowak22@...
Yes i already tested on ACRN console, what i'm trying to achieve is a permanent configuration
When you say RDT code. do you mean this below path to code? hypervisor/arch/x86/rdt.c |
|
Minggui Cao
Yes, correct.
You can add your code in function: setup_clos
There is a data structure: res_cap_info, if possible, you also can re-use it to configure your L2 CAT.
Thanks Minggui
From: acrn-users@... <acrn-users@...>
On Behalf Of jordan.nowak22@...
Sent: Friday, April 1, 2022 2:54 PM To: acrn-users@... Subject: Re: [acrn-users] CAT definition in the scenario xmls
Yes i already tested on ACRN console, what i'm trying to achieve is a permanent configuration |
|
I’d love to see that being added to our code, would you care to develop and patch and submit it upstream? 😉
Thanks!
From: acrn-users@... <acrn-users@...>
On Behalf Of Minggui Cao
Sent: Saturday, April 2, 2022 2:04 am To: acrn-users@... Subject: Re: [acrn-users] CAT definition in the scenario xmls
Yes, correct.
You can add your code in function: setup_clos
There is a data structure: res_cap_info, if possible, you also can re-use it to configure your L2 CAT.
Thanks Minggui
From:
acrn-users@... <acrn-users@...>
On Behalf Of jordan.nowak22@...
Yes i already tested on ACRN console, what i'm trying to achieve is a permanent configuration |
|
jordan.nowak22@...
Hi Minggui,
toggle quoted message
Show quoted text
i've tried https://github.com/projectacrn/acrn-hypervisor/commit/61074ce1ee1e3925699613c92a49db0264ebf4c3 Similar parameter that i define in my board and scenario xmls. but i run into a trouble in booting up has this been tested? see this below logs from ACRN Shell.
|
|
Minggui Cao
It depends on your board, you can use wrmsr in ACRN console to try your setting first.
Thanks! Minggui
From: acrn-users@... <acrn-users@...>
On Behalf Of jordan.nowak22@...
Sent: Monday, April 11, 2022 11:32 AM To: acrn-users@... Subject: Re: [acrn-users] CAT definition in the scenario xmls
Hi Minggui,
|
|
jordan.nowak22@...
Hi Minggui,
The settings that i set in wrmsr through ACRN console is working. i'm trying to reproduce this through VM Configuration. Below is the xmls that i trying to set, but its weird that ACRN is not booting up after i change the value in xmls.
<CLOS_INFO> rdt resources supported: L3 rdt resource clos max: 4 rdt resource mask max: '0xfff' </CLOS_INFO>
<RDT> <RDT_ENABLED>y</RDT_ENABLED> <CDP_ENABLED>n</CDP_ENABLED> <CLOS_MASK>0x0ff</CLOS_MASK> <CLOS_MASK>0xf00</CLOS_MASK> <CLOS_MASK>0x0ff</CLOS_MASK> <CLOS_MASK>0x0ff</CLOS_MASK> </RDT> |
|
Minggui Cao
I mean you can get L3 caches info from CPUID first.
And then you can try cmd in ACRN console: rdmsr 0xc90
or wrmsr 0xc90 0x0ff
thanks! Minggui
From: acrn-users@... <acrn-users@...>
On Behalf Of jordan.nowak22@...
Sent: Monday, April 11, 2022 2:14 PM To: acrn-users@... Subject: Re: [acrn-users] CAT definition in the scenario xmls
Hi Minggui,
<CLOS_INFO> rdt resources supported: L3 rdt resource clos max: 4 rdt resource mask max: '0xfff' </CLOS_INFO>
<RDT> <RDT_ENABLED>y</RDT_ENABLED> <CDP_ENABLED>n</CDP_ENABLED> <CLOS_MASK>0x0ff</CLOS_MASK> <CLOS_MASK>0xf00</CLOS_MASK> <CLOS_MASK>0x0ff</CLOS_MASK> <CLOS_MASK>0x0ff</CLOS_MASK> </RDT> |
|