13bc67a9 | 09-Jun-2025 |
Mario Limonciello <mario.limonciello@amd.com> |
platform/x86/amd: hfi: Add debugfs support
Add a dump of the class and capabilities table to debugfs to assist with debugging scheduler issues.
Signed-off-by: Mario Limonciello <mario.limonciello@a
platform/x86/amd: hfi: Add debugfs support
Add a dump of the class and capabilities table to debugfs to assist with debugging scheduler issues.
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/20250609200518.3616080-13-superm1@kernel.org
show more ...
|
216fe0d7 | 09-Jun-2025 |
Mario Limonciello <mario.limonciello@amd.com> |
platform/x86/amd: hfi: Set ITMT priority from ranking data
The static ranking data that is read at module load should be used to set up the priorities for the cores relative to the performance value
platform/x86/amd: hfi: Set ITMT priority from ranking data
The static ranking data that is read at module load should be used to set up the priorities for the cores relative to the performance values.
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/20250609200518.3616080-12-superm1@kernel.org
show more ...
|
263e66f9 | 09-Jun-2025 |
Perry Yuan <Perry.Yuan@amd.com> |
platform/x86: hfi: Add power management callback
Introduce power management callbacks for the `amd_hfi` driver. Specifically, add the `suspend` and `resume` callbacks to handle the necessary operat
platform/x86: hfi: Add power management callback
Introduce power management callbacks for the `amd_hfi` driver. Specifically, add the `suspend` and `resume` callbacks to handle the necessary operations during system low power states and wake-up.
Signed-off-by: Perry Yuan <Perry.Yuan@amd.com> Co-developed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/20250609200518.3616080-9-superm1@kernel.org
show more ...
|
bb20421c | 09-Jun-2025 |
Perry Yuan <Perry.Yuan@amd.com> |
platform/x86: hfi: Add online and offline callback support
There are some firmware parameters that need to be configured when a CPU core is brought online or offline.
When a CPU is online, it will
platform/x86: hfi: Add online and offline callback support
There are some firmware parameters that need to be configured when a CPU core is brought online or offline.
When a CPU is online, it will initialize the workload classification parameters to CPU firmware which will trigger the workload class ID updating function.
Once the CPU is going offline, it will need to disable the workload classification function and clear the history.
Signed-off-by: Perry Yuan <Perry.Yuan@amd.com> Co-developed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/20250609200518.3616080-8-superm1@kernel.org
show more ...
|
b6ffe4d9 | 09-Jun-2025 |
Perry Yuan <Perry.Yuan@amd.com> |
platform/x86: hfi: Init per-cpu scores for each class
Initialize per CPU score `amd_hfi_ipcc_scores` which store energy score and performance score data for each class.
Classic and dense cores are
platform/x86: hfi: Init per-cpu scores for each class
Initialize per CPU score `amd_hfi_ipcc_scores` which store energy score and performance score data for each class.
Classic and dense cores are ranked according to those values as energy efficiency capability or performance capability. OS scheduler will pick cores from the ranking list on each class ID for the thread which provide the class id got from hardware feedback interface.
Signed-off-by: Perry Yuan <Perry.Yuan@amd.com> Co-developed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/20250609200518.3616080-7-superm1@kernel.org
show more ...
|
d4e95ea7 | 09-Jun-2025 |
Perry Yuan <Perry.Yuan@amd.com> |
platform/x86: hfi: Parse CPU core ranking data from shared memory
When `amd_hfi` driver is loaded, it will use PCCT subspace type 4 table to retrieve the shared memory address which contains the CPU
platform/x86: hfi: Parse CPU core ranking data from shared memory
When `amd_hfi` driver is loaded, it will use PCCT subspace type 4 table to retrieve the shared memory address which contains the CPU core ranking table. This table includes a header that specifies the number of ranking data entries to be parsed and rank each CPU core with the Performance and Energy Efficiency capability as implemented by the CPU power management firmware.
Once the table has been parsed, each CPU is assigned a ranking score within its class. Subsequently, when the scheduler selects cores, it chooses from the ranking list based on the assigned scores in each class, thereby ensuring the optimal selection of CPU cores according to their predefined classifications and priorities.
Signed-off-by: Perry Yuan <Perry.Yuan@amd.com> Co-developed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/20250609200518.3616080-6-superm1@kernel.org
show more ...
|