Received: by 10.213.65.68 with SMTP id h4csp256477imn; Tue, 20 Mar 2018 02:43:29 -0700 (PDT) X-Google-Smtp-Source: AG47ELtWsYPu7kgncYfDufx/4PsgfZmOMuTYO9L6t8dG7o2CNJrUB3e1usoeK9twu5kGO5/AXM3S X-Received: by 10.99.168.68 with SMTP id i4mr11476352pgp.420.1521539009806; Tue, 20 Mar 2018 02:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521539009; cv=none; d=google.com; s=arc-20160816; b=v3iwU1Qr7CgpoaSDTbT85U+ZQF1wg+GYR7nkeg2XLJH7BBgVHHUdJALoivJ5YWbd1Q 7X/y9OxAhhdZ/D3oiPXEmvcbarAegW1zYWc1Aeqd6upl8FdykDLPHrTtPSu1+GZ9VDSM YCkvLBiACkTNUZjRjViXGSRdiKyeDBPws49Pcj0mWwfdfxB8kOr3kh859tSkxoxHzm35 teKHub1TjCgHg58yZ6onu3oXv3Dah24b+8jAGRNPMCqZt7pfRvK6fvOIjsD0PVI8+EYG X+0wDowSVwRF09BC/zZBI1zGR9dkg+MHYkRC7bhytvNlV4tiD6eRGgj96FXiTPI+ZE5F zhDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=92z1VzQYvDdyP13rkdUGSXd09GtaLnp6HYd9kMwViJI=; b=0uNCvdQ1YG4ekOGX9LwXxaW3vYM+HwB2ruZ1mZRfRv0A3i948GT1J3K9CMpWHLKxD3 riSBDytyObb0KpZex1HCQY8RdgOu436asjTavJQi/568vh5OLMtEiMHJxOqhZYdtXBl6 UtZbYdjgR3iAqWRgXf1HpO/6L2TRq6L1/3u9B5FNA06okmM6FqocuYW1UNOi70u9msjT 3sXT+BaHukSDhG/v8HKoltYc8ALTurSgLceO/BWeCJ9kypq1fTrF0KtWEPh+UY2TvmjD rYFdLKxGQqrcSyv1CEEXrfLNvDUY1oaMYDhYUEhpGAs5gHWEojFQiSGRPyaMRfylIot1 lO+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=D4vaW3J/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n23-v6si1259478pll.175.2018.03.20.02.43.12; Tue, 20 Mar 2018 02:43:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=D4vaW3J/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752449AbeCTJlx (ORCPT + 99 others); Tue, 20 Mar 2018 05:41:53 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:38841 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752015AbeCTJlu (ORCPT ); Tue, 20 Mar 2018 05:41:50 -0400 Received: by mail-ot0-f196.google.com with SMTP id 95-v6so997088ote.5; Tue, 20 Mar 2018 02:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=92z1VzQYvDdyP13rkdUGSXd09GtaLnp6HYd9kMwViJI=; b=D4vaW3J/9x7ss1+Su5l6sQmUALDvkxa5KPbAYUyCHKwDqvTd/zkp0OzLr+KEErlRjh lEjuh8uYPZoaDqQOTT5OI4CSmqVE8k1zkQk9U9Q91at66rNIGonq06vP3cgj86SoHqBY s7EedZPuDTyohj7lBwdm6vaO6a/p5/j0q2zh+VivxSOM6zX09dfXJ//cgXLayilOGqJw HgU+Q5jSN1cg9iaS3j17JLbflE7SQfqKgC1YgGuGNP1tPK7uWKKY7QHiuMLlaZPDemDO nlWH6jQJ13JKP6W5zKv3INxMwyvgzPtZqeLmOSHDi5SlxhGm6+onfcODqQPdyGnLxrp+ WcRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=92z1VzQYvDdyP13rkdUGSXd09GtaLnp6HYd9kMwViJI=; b=mk8KsK1oFC6LSN3PN0JkDrG7ArAqaEghTTdORwKi8uQ0WeXMMCuQrEf4LLaF7hP+hB 8MB7K1Y0GBFLg3fBovfic/QCvXMUt4zCp/9VVY/lDyDpFbWhMnGx54jo/PqAfy8QLkVo 52Xgy1wRlJes9Lo6HTPno429hC8Tkn37oM6CwPp2mXzSpNnbYLQo23YpqO9iQ/uqm3eS XmIu6fCaWzQ+AJAZ8p6tRnEo3fJH827syOqUU8U3PGoIYeHRtyQDWL9rN50vUvoSrSxk 4Wp7uZ5NX9uudB+K6lrU93lYhyYC+hQv8dbtzOjWtPWEEznpEoydKd13aobFgfrDF0rw UvWg== X-Gm-Message-State: AElRT7GCQBd1NtrtyrKDMZfaztPaa8xqE8PuaJiiCrb43jMESgouh8p8 i5ygogAQnphsyGZqEAOWP7BaCjvREUgubY/oYrg= X-Received: by 2002:a9d:4082:: with SMTP id n2-v6mr2425464ote.150.1521538909938; Tue, 20 Mar 2018 02:41:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:9f7:0:0:0:0:0 with HTTP; Tue, 20 Mar 2018 02:41:49 -0700 (PDT) In-Reply-To: References: <20180315142205.15839-1-joao.m.martins@oracle.com> From: "Rafael J. Wysocki" Date: Tue, 20 Mar 2018 10:41:49 +0100 X-Google-Sender-Auth: QsMOgOH5wDSEgkLWV5ClT6CmsSY Message-ID: Subject: Re: [PATCH v3] xen/acpi: upload _PSD info for non Dom0 CPUs too To: Joao Martins Cc: Boris Ostrovsky , Linux Kernel Mailing List , Juergen Gross , "Rafael J. Wysocki" , Len Brown , Robert Moore , Erik Schmauss , xen-devel@lists.xenproject.org, ACPI Devel Maling List , devel@acpica.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 16, 2018 at 2:57 PM, Joao Martins wrote: > On 03/15/2018 03:45 PM, Boris Ostrovsky wrote: >> On 03/15/2018 10:22 AM, Joao Martins wrote: >>> All uploaded PM data from non-dom0 CPUs takes the info from vCPU 0 and >>> changing only the 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 cpufreq 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. This will finally lead to the original cpu not >>> changing 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. >>> >>> This patch fixes that, by also evaluating _PSD when we enumerate all ACPI >>> processors and thus always uploading the correct info to Xen. We export >>> acpi_processor_get_psd() for that this purpose, but change signature >>> to not assume an existent of acpi_processor given that ACPI isn't creating >>> an acpi_processor for non-dom0 CPUs. >>> >>> Signed-off-by: Joao Martins >> >> Reviewed-by: Boris Ostrovsky >> > Thanks! > > I suppose what's remaining is review (or ack) from ACPI folks on the interface > changes made to acpi_processor_get_psd(). There you go: Acked-by: Rafael J. Wysocki Do you want to route this via Xen?