Skip to content

Commit 0cea8a7

Browse files
committed
Merge: platform/x86: hfi: Updates to support AMD Hardware Feedback Interface Driver
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/1563 Description: updates for platform/x86: hfi: to support AMD Hardware Feedback Interface Driver JIRA: https://issues.redhat.com/browse/RHEL-107081 Omitted-fix: 619f55c (Fix comes in with generic updated). Build Info: 69066284 Tested: Successful tested on AMD (amd-krackan-01) system. Signed-off-by: Steve Best <sbest@redhat.com> Approved-by: Lenny Szubowicz <lszubowi@redhat.com> Approved-by: Tony Camuso <tcamuso@redhat.com> Approved-by: Radu Rendec <rrendec@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Scott Weaver <scweaver@redhat.com>
2 parents 9d36c8e + 7a5c164 commit 0cea8a7

File tree

8 files changed

+591
-0
lines changed

8 files changed

+591
-0
lines changed

arch/x86/include/asm/msr-index.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,11 @@
728728
#define MSR_AMD64_PERF_CNTR_GLOBAL_CTL 0xc0000301
729729
#define MSR_AMD64_PERF_CNTR_GLOBAL_STATUS_CLR 0xc0000302
730730

731+
/* AMD Hardware Feedback Support MSRs */
732+
#define MSR_AMD_WORKLOAD_CLASS_CONFIG 0xc0000500
733+
#define MSR_AMD_WORKLOAD_CLASS_ID 0xc0000501
734+
#define MSR_AMD_WORKLOAD_HRST 0xc0000502
735+
731736
/* AMD Last Branch Record MSRs */
732737
#define MSR_AMD64_LBR_SELECT 0xc000010e
733738

drivers/platform/x86/amd/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
source "drivers/platform/x86/amd/hsmp/Kconfig"
77
source "drivers/platform/x86/amd/pmf/Kconfig"
88
source "drivers/platform/x86/amd/pmc/Kconfig"
9+
source "drivers/platform/x86/amd/hfi/Kconfig"
910

1011
config AMD_3D_VCACHE
1112
tristate "AMD 3D V-Cache Performance Optimizer Driver"

drivers/platform/x86/amd/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ obj-$(CONFIG_AMD_PMC) += pmc/
1010
obj-$(CONFIG_AMD_HSMP) += hsmp/
1111
obj-$(CONFIG_AMD_PMF) += pmf/
1212
obj-$(CONFIG_AMD_WBRF) += wbrf.o
13+
obj-$(CONFIG_AMD_HFI) += hfi/
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
#
3+
# AMD Hardware Feedback Interface Driver
4+
#
5+
6+
config AMD_HFI
7+
bool "AMD Hetero Core Hardware Feedback Driver"
8+
depends on ACPI
9+
depends on CPU_SUP_AMD
10+
depends on SCHED_MC_PRIO
11+
help
12+
Select this option to enable the AMD Heterogeneous Core Hardware
13+
Feedback Interface. If selected, hardware provides runtime thread
14+
classification guidance to the operating system on the performance and
15+
energy efficiency capabilities of each heterogeneous CPU core. These
16+
capabilities may vary due to the inherent differences in the core types
17+
and can also change as a result of variations in the operating
18+
conditions of the system such as power and thermal limits.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
#
3+
# AMD Hardware Feedback Interface Driver
4+
#
5+
6+
obj-$(CONFIG_AMD_HFI) += amd_hfi.o
7+
amd_hfi-objs := hfi.o

0 commit comments

Comments
 (0)