intel / intel-cmt-cat

User space software for Intel(R) Resource Director Technology
http://www.intel.com/content/www/us/en/architecture-and-technology/resource-director-technology.html
Other
693 stars 183 forks source link

Potential issue during MBA reset on AMD #139

Closed mdcornu closed 4 years ago

mdcornu commented 4 years ago

MBA COS get reset to 0 by default. This may not be correct behavior on AMD platforms.

https://github.com/intel/intel-cmt-cat/blob/1e6ee29be038ca67cf8fe9760bf53d97dde849e3/lib/allocation.c#L1642

babumoger commented 4 years ago

Ok. Sure. Will investigate.

babumoger commented 4 years ago

Marcel, Yes. When I reset the MBA values(pqos -R), I see the MBA values are getting reset to 0. I expected it to go back to default values. Shouldn't we reset it to default maximum value(100 for Intel and 0x800 for AMD)? I am thinking this may be generic issue.

tkanteck commented 4 years ago

It doesn't seem to be a generic issue as the MBA reset works fine on Intel platforms

babumoger commented 4 years ago

Ok. got it. The reset values for Intel and AMD are different. For Intel, the reset value is 0 and for AMD reset value is 0x800. This patch should fix it. Will sent a pull request.

diff --git a/lib/allocation.c b/lib/allocation.c index d850c39..37b20f3 100644 --- a/lib/allocation.c +++ b/lib/allocation.c @@ -1632,6 +1632,8 @@ hw_alloc_reset(const enum pqos_cdp_config l3_cdp_cfg, */ for (j = 0; j < mba_id_num; j++) { unsigned core = 0;

kmabbasi commented 4 years ago

Thanks Babu

Patch has been merged to master branch. Therefore, closing this issue now.

Thanks, Khawar