]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/acpi: upload _PSD info for non-dom0 CPUs too
authorJoao Martins <joao.m.martins@oracle.com>
Mon, 5 Mar 2018 13:29:25 +0000 (13:29 +0000)
committerJack Vogel <jack.vogel@oracle.com>
Thu, 8 Mar 2018 23:07:34 +0000 (15:07 -0800)
commit9afa1a0041d1c0ab02971cd2b1133bb469b2c063
treecda5220c0a9e3705aafe4368ae9afe71eb61f73b
parenta0f42d8d39dc91b8f22ce97e34a88159ec13b195
xen/acpi: upload _PSD info for non-dom0 CPUs too

All uploaded PM data from non-dom0 CPUs takes the info from CPU 0 with a
different acpi_id. For processors which P-state coordination type is
HW_ALL (0xFD) it is OK to upload bogus P-state dependency information
(_PSD), because Xen will ignore any domains created for past CPUs.

Albeit for platforms which expose coordination types as SW_ANY or
SW_ALL, this will have some unintended side effects. Effectively, it
will look at the P-state domain existence and *if it already exists* it
will skip the acpi-cpufreq initialization and thus inherit the policy
from the first CPU in the cpufreq domain. Finally it and won't change
the original cpu target freq to P0 other than the first in the domain.

Which will make turbo boost not getting enabled (e.g. for 'performance'
governor) for all cpus and instead only those with unique P-state
domains.

This patch fixes that, by also evaluating _PSD when enumerate all ACPI
procesors and uploading that instead.

Orabug: 27655759
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Tested-by: Shih-Yu Huang <shih-yu.huang@oracle.com>
Reviewed-by: Ross Philipson <ross.philipson@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/xen-acpi-processor.c