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

Mba fixes v2 #196

Closed babumoger closed 3 years ago

babumoger commented 3 years ago

Few fixes.

  1. MBA feature was broken for AMD
  2. Changed printing messages from SOCKET to Core Complex for AMD
  3. pqos reset fix.
  4. Addressed the comments from Michał Aleksiński for my earlier pull request.

Description

  1. The MBA feature was not working when trying to set the MBA limits on AMD. pqos -I OS -e mba:1=0xf NOTE: Mixed use of MSR and kernel interfaces to manage CAT or CMT & MBM may lead to unexpected behavior. ERROR: Expected MBA controller but not requested! SOCKET 0 MBA COS1 - FAILED! Allocation configuration error! The code was using the hard coded value to detect the feature. Changed it to use the vendor specific mba_max values while detecting the feature.

  2. Also fixed printing messages on AMD Before the change. SOCKET 0 MBA COS1 => 256% requested, 256% applied SOCKET 1 MBA COS1 => 256% requested, 256% applied SOCKET 2 MBA COS1 => 256% requested, 256% applied SOCKET 3 MBA COS1 => 256% requested, 256% applied

After the change.

Core Complex 0 MBA COS1 => 256 requested, 256 applied Core Complex 1 MBA COS1 => 256 requested, 256 applied Core Complex 2 MBA COS1 => 256 requested, 256 applied Core Complex 3 MBA COS1 => 256 requested, 256 applied

  1. F ix hard-coded MBA reset value pqos -I OS -R This was resetting the COS values to 100 on AMD systems. Changed it to reset based on vendor.

Affected parts

Motivation and Context

Without this fix MBA feature wont work on AMD.

How Has This Been Tested?

Tested on AMD system and sanity tested old intel machine.

Types of changes

Checklist:

babumoger commented 3 years ago

Let me know if there are any comments. Thanks

aleksinx commented 3 years ago

Changes from this pull request have been merged into master

babumoger commented 3 years ago

Thanks Closing the pull request.