Re: [PATCH v2 12/23] x86/resctrl: Abstract and use supports_mba_mbps()

From: James Morse
Date: Wed Oct 27 2021 - 12:50:25 EST


On 07/10/2021 07:13, tan.shaopeng@xxxxxxxxxxx wrote:
>> To determine whether the mba_MBps option to resctrl should be supported,
>> resctrl tests the boot cpus' x86_vendor.
>>
>> This isn't portable, and needs abstracting behind a helper so this check can be
>> part of the filesystem code that moves to /fs/.
>>
>> Re-use the tests set_mba_sc() does to determine if the mba_sc is supported
>> on this system. An 'alloc_capable' test is added so that support for the controls
>> isn't implied by the 'delay_linear' property, which is always true for MPAM.
>>
>> Signed-off-by: James Morse <james.morse@xxxxxxx>
>
> Reviewed-by: Shaopeng Tan <tan.shaopeng@xxxxxxxxxxx>

Thanks!

James