Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp470091pxb; Thu, 5 Nov 2020 05:10:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVZp7iSs585qaY5ORF8Xl0ZbqWdyTi2Ll+IVuzSOht6BoySWC1ApPfzJ/fPKeyS1cqSerJ X-Received: by 2002:aa7:c3c1:: with SMTP id l1mr2504728edr.153.1604581809886; Thu, 05 Nov 2020 05:10:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604581809; cv=none; d=google.com; s=arc-20160816; b=V51gIV/Tz4Rmatd8sbHSn6VQIBiSXiZLk1ibyXmF/RyjNMIFgJ/gXqiYgLH3y784tI uCsyOdng7p0yH3OhT26i0BJ7HtamabsKbMaL3mZbUPorYzE5EV20tWu2D0o7s/ztnk3R Nv11IizqMW/0Pm19Xo0CSmv44+YvulO7p75H03qqfJ7mlTdv1cwAuVr2xoioR4imloPy oelWmVXl4bcXLYyTxQHNDlYErTsZc6STBV5dVHytER/P0A/qerMki4pFy0YJgsoAOv/P x5ajeV8TSlGMyZPvZb5QABewI8n83w7uRStJm90dQ2avH1bzbuRw0gV3IQsWxcAVJ6lI ocMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=kdZgb+k5dRx1eb1k/ksppuSD/98WX1sN0LMVhJbD6Rg=; b=j5yqa4l3iaML9rLp6E0fJ7U3pe8B/Z54eKDEYEorRWMVCjiZoZd7A8sfbf6lIPmNdV JhcrgwUsB3Ur5pbGG5zaxteAKbBXlqQvRnk2B3DqNVRhxO93eydASjveSLgmc+8YNBgp 45bl5nkpxC4UzeKjYekgT15RWm+S/EF1xG1BDNPFpOlV2NRez1vUGtk3TEPFg1H47EV5 CujaqM9UuE6SOFnqmRr0SbCh8iXYbofqFls1rLDwH/egopFPFmB+wi1F7g+2Teumvrgj 2l8Yvs9KdymmMVFIxmN1FccPqQHpyVVrF/JN2JUPs8K/ZrV+RoFMFImeOCMMgICowWIc FhRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f22si1051888edx.179.2020.11.05.05.09.47; Thu, 05 Nov 2020 05:10:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729990AbgKENGH (ORCPT + 99 others); Thu, 5 Nov 2020 08:06:07 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:34016 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbgKENGH (ORCPT ); Thu, 5 Nov 2020 08:06:07 -0500 Received: by mail-ot1-f68.google.com with SMTP id j14so1341872ots.1; Thu, 05 Nov 2020 05:06:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kdZgb+k5dRx1eb1k/ksppuSD/98WX1sN0LMVhJbD6Rg=; b=t23ZMnXX6xGpHg8GrvX18snEhLrzgFK0OrkIc4XZBGnT4l+/dqQVCvVoqTGr8utLDX +F7O9wXlNlGsesxv5CwIB+auYfc7x7Jm6fw5SA+UtQ/8qEuKtspc2OHvNTCbzjMmFchv JOhjMCy3zz39B5HbAvbUt0ImNcgvijJmdA0yVej8L6BGD+Mo0BILmtW/4RDuUEfUf9yf rKRAIOLEsKvcuOuwauKzlb2lcwYqDbM5tUJPIhqKm6POjb93fp00Xj8HYHVi+X+6Mq7F qyPSXBOphxnGBBA5lzK/8iAZ3m9e1tUscGtOQFbcCM3gAMoJ5r1eIUoSLj5Bqlbw186h 5KXQ== X-Gm-Message-State: AOAM531yW9nAsEpKtbmCVhrvlBN7uRNkTP0j794yXj5qrB7zxdr0LTo2 JI25782e1VDwy3HZVWc3wWxiPA/aSIEs5B/0ZKY= X-Received: by 2002:a9d:222f:: with SMTP id o44mr1627406ota.321.1604581566378; Thu, 05 Nov 2020 05:06:06 -0800 (PST) MIME-Version: 1.0 References: <20201105125524.4409-1-ionela.voinescu@arm.com> <20201105125524.4409-9-ionela.voinescu@arm.com> In-Reply-To: <20201105125524.4409-9-ionela.voinescu@arm.com> From: "Rafael J. Wysocki" Date: Thu, 5 Nov 2020 14:05:55 +0100 Message-ID: Subject: Re: [PATCH 8/8] acpi: fix NONE coordination for domain mapping failure To: Ionela Voinescu Cc: "Rafael J. Wysocki" , Viresh Kumar , Len Brown , Sudeep Holla , Morten Rasmussen , Jeremy Linton , Linux PM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 5, 2020 at 1:57 PM Ionela Voinescu wrote: > > For errors parsing the _PSD domains, a separate domain is returned for > each CPU in the failed _PSD domain with no coordination (as per previous > comment). But contrary to the intention, the code was setting > CPUFREQ_SHARED_TYPE_ALL as coordination type. > > Change shared_type to CPUFREQ_SHARED_TYPE_NONE in case of errors parsing > the domain information. The function still return the error and the caller > is free to bail out the domain initialisation altogether in that case. > > Given that both functions return domains with a single CPU, this change > does not affect the functionality, but clarifies the intention. Is this related to any other patches in the series? > Signed-off-by: Ionela Voinescu > Cc: Rafael J. Wysocki > Cc: Len Brown > Cc: Viresh Kumar > --- > drivers/acpi/cppc_acpi.c | 2 +- > drivers/acpi/processor_perflib.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/acpi/cppc_acpi.c b/drivers/acpi/cppc_acpi.c > index 75e36b909ae6..e1e46cc66eeb 100644 > --- a/drivers/acpi/cppc_acpi.c > +++ b/drivers/acpi/cppc_acpi.c > @@ -477,7 +477,7 @@ int acpi_get_psd_map(unsigned int cpu, struct psd_data *domain) > /* Assume no coordination on any error parsing domain info */ > cpumask_clear(domain->shared_cpu_map); > cpumask_set_cpu(cpu, domain->shared_cpu_map); > - domain->shared_type = CPUFREQ_SHARED_TYPE_ALL; > + domain->shared_type = CPUFREQ_SHARED_TYPE_NONE; > > return -EFAULT; > } > diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c > index 5909e8fa4013..5ce638537791 100644 > --- a/drivers/acpi/processor_perflib.c > +++ b/drivers/acpi/processor_perflib.c > @@ -710,7 +710,7 @@ int acpi_processor_preregister_performance( > if (retval) { > cpumask_clear(pr->performance->shared_cpu_map); > cpumask_set_cpu(i, pr->performance->shared_cpu_map); > - pr->performance->shared_type = CPUFREQ_SHARED_TYPE_ALL; > + pr->performance->shared_type = CPUFREQ_SHARED_TYPE_NONE; > } > pr->performance = NULL; /* Will be set for real in register */ > } > -- > 2.17.1 >