Re: [PATCH 1/3] selftests/resctrl: Generalize non-contiguous CAT check

2024-08-21 Thread Muhammad Usama Anjum
On 8/13/24 3:45 PM, Ilpo Järvinen wrote: > arch_supports_noncont_cat() checks if vendor is ARCH_AMD and if that is > not true, ARCH_INTEL is assumed which might not be true either because > get_vendor() can also return zero if neither AMD nor Intel is detected. > > Generalize the vendor check usin

[PATCH 1/3] selftests/resctrl: Generalize non-contiguous CAT check

2024-08-13 Thread Ilpo Järvinen
arch_supports_noncont_cat() checks if vendor is ARCH_AMD and if that is not true, ARCH_INTEL is assumed which might not be true either because get_vendor() can also return zero if neither AMD nor Intel is detected. Generalize the vendor check using switch/case logic and return false for unknown ve