All of lore.kernel.org
 help / color / mirror / Atom feed
* AMD Pstate
@ 2021-11-21 10:37 Mike Lothian
  2021-11-21 11:52 ` Huang Rui
  2021-11-23 10:47 ` Mike Lothian
  0 siblings, 2 replies; 15+ messages in thread
From: Mike Lothian @ 2021-11-21 10:37 UTC (permalink / raw)
  To: Huang Rui; +Cc: Linux PM list

Hi

I'm not subscribed to the mailing list so apologies for emailing you directly

It looks like something isn't quite right with the kconfig selects

SCHED_MC_PRIO can't be enabled without CPU_SUP_INTEL



│ Symbol: X86_AMD_PSTATE [=y]

                                                              │
 │ Type  : bool

                                                               │
 │ Defined at drivers/cpufreq/Kconfig.x86:37

                                                               │
 │   Prompt: AMD Processor P-State driver

                                                               │
 │   Depends on: CPU_FREQ [=y] && X86 [=y]

                                                               │
 │   Location:

                                                               │
 │     Main menu

                                                               │
 │       -> Power management and ACPI options

                                                               │
 │         -> CPU Frequency scaling

                                                               │
 │           -> CPU Frequency scaling (CPU_FREQ [=y])

                                                               │
 │ Selects: ACPI_PROCESSOR [=y] && ACPI_CPPC_LIB [=n] &&
CPU_FREQ_GOV_SCHEDUTIL [=y]



│ Symbol: ACPI_CPPC_LIB [=n]

                                                              │
 │ Type  : bool

                                                               │
 │ Defined at drivers/acpi/Kconfig:268

                                                               │
 │   Depends on: ACPI [=y] && ACPI_PROCESSOR [=y]

                                                               │
 │ Selects: MAILBOX [=n] && PCC [=n]

                                                               │
 │ Selected by [n]:

                                                               │
 │   - X86_INTEL_PSTATE [=n] && CPU_FREQ [=y] && X86 [=y] && X86_64
[=y] && ACPI [=y] && SCHED_MC_PRIO [=n]
                                                                  │
 │   - X86_AMD_PSTATE [=y] && CPU_FREQ [=y] && X86 [=y] && X86_64 [=y]
&& ACPI [=y] && SCHED_MC_PRIO [=n]
                                                               │
 │   - ACPI_CPPC_CPUFREQ [=n] && CPU_FREQ [=y] && (ARM || ARM64) &&
ACPI_PROCESSOR [=y]



│ Symbol: SCHED_MC_PRIO [=n]

                                                              │
 │ Type  : bool

                                                               │
 │ Defined at arch/x86/Kconfig:1029

                                                               │
 │   Prompt: CPU core priorities scheduler support

                                                               │
 │   Depends on: SCHED_MC [=y] && CPU_SUP_INTEL [=n]

                                                               │
 │   Location:

                                                               │
 │     Main menu

                                                               │
 │       -> Processor type and features

                                                               │
 │ (1)     -> Multi-core scheduler support (SCHED_MC [=y])

                                                               │
 │ Selects: X86_INTEL_PSTATE [=n] && CPU_FREQ [=y]



I've used this patch to work around the issue:

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 95dd1ee01546..bdfcf155f48e 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1028,8 +1028,8 @@ config SCHED_MC

config SCHED_MC_PRIO
       bool "CPU core priorities scheduler support"
-       depends on SCHED_MC && CPU_SUP_INTEL
-       select X86_INTEL_PSTATE
+       depends on SCHED_MC && CPU_SUP_AMD
+       select X86_AMD_PSTATE
       select CPU_FREQ
       default y
       help

Which gets things working here

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-12-03  3:27 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-21 10:37 AMD Pstate Mike Lothian
2021-11-21 11:52 ` Huang Rui
2021-11-21 12:35   ` Huang Rui
2021-11-23 10:47 ` Mike Lothian
2021-11-23 11:17   ` Huang Rui
2021-11-23 11:22     ` Mike Lothian
2021-11-23 11:32       ` Huang Rui
2021-11-24  0:17         ` Mike Lothian
     [not found]           ` <YZ22dYQ8dgQTwqnh@amd.com>
     [not found]             ` <CAHbf0-FnFpkmZ2bkfS2S=Cw_RLbK1y7eSHySAFGVecs+t+-aVg@mail.gmail.com>
2021-11-26 10:50               ` Mike Lothian
2021-11-26 11:32                 ` Du, Xiaojian
2021-11-26 13:24                   ` Mike Lothian
2021-11-30 10:50                     ` Huang Rui
     [not found]                       ` <CAHbf0-EWVeD8xehHZc8ff-4vYbXC69z=kMf0_=RXJsHKG_2M7Q@mail.gmail.com>
2021-12-01  6:51                         ` Huang Rui
2021-12-03  1:08                           ` Mike Lothian
2021-12-03  3:27                             ` Huang Rui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.