Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3012191pxb; Sun, 8 Nov 2020 23:12:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5mEZiOqmi2XGQx4bGZOlKJMdf84wzYAWgoUPearEBEM94jvqqI7v5QNNhDlhTVaueLyWQ X-Received: by 2002:a05:6402:1542:: with SMTP id p2mr13885266edx.298.1604905970765; Sun, 08 Nov 2020 23:12:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604905970; cv=none; d=google.com; s=arc-20160816; b=gCz42owghuA8WMTBgp7Ck8urdD5LQvIjO8DCiK0lQrc1Ltx6xqO+zhugML/2nGCMyy MttOPaGiJ9/KSBTueGAVoP1/D6ABYW1ptT9YsZsw6D+FR/XRHTIcS86yov+AraTU7/SB 5Wr2VWtJy468nvgSnyUYIIlFWFnrm8zTbW8DaWPnytbHW1HML203EMlhYSGqYzuEdvuL pTaETuOWf7cpKjgUQrXDZwBYtLi7gpiEC6fajp5Q5gK2eCqPSiwUm/q4e3qWEuLbhoqm CyhXgIJDwYpJu2bbmZVTLxpO1U7B7TksEGsBo2BGl2WljzVx+qI6rSwp7OFEHS7k8ow+ MqJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=eshRac5/MmHHShiRX7ctDUm71bdkmrovJAks2obZ/b4=; b=HOTwbUz5uscTEt9dsubc8bGjxjow80fe3T1Q7T0Zb6IUo1FwH2ScrR42CnnAuFPseG K8DovaEG8CPTa6n8eRYHl0iC5ZCDWIhja5ifK5rGS7wN+XCR/VKV5rgGuSNJRgdVbZfD 7yttBjRkrrRvB6oEXJy76CvwwqwJIspLoebxF1xp7JUZH37QaYNgSgPzZghuZeQLDm9u zO4pu7a6HlrG3CWoof4p5dKGVGdwBCqdC64P6UlUhybVCS4cVqgr/ZcslL4WsOyOyzmV +9HJPPVyqHaxVrqNCZySrDl2Ni72fwoYm0h1B286/Im6r67RXeJwz4yDTjaoEs7MIeNB nxcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VBrl+3KU; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v17si6784597ejh.77.2020.11.08.23.12.27; Sun, 08 Nov 2020 23:12:50 -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; dkim=pass header.i=@linaro.org header.s=google header.b=VBrl+3KU; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729567AbgKIHKH (ORCPT + 99 others); Mon, 9 Nov 2020 02:10:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728873AbgKIHKG (ORCPT ); Mon, 9 Nov 2020 02:10:06 -0500 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 387E7C0613CF for ; Sun, 8 Nov 2020 23:10:05 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id w4so6324218pgg.13 for ; Sun, 08 Nov 2020 23:10:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=eshRac5/MmHHShiRX7ctDUm71bdkmrovJAks2obZ/b4=; b=VBrl+3KUJgU0+gCP8koHfcudNuLo9tb5uwCbhpfLgMUfC0bSHdS3tg9vbLI/vElXdI ZXvrA9dAXmJJKEsgJP8DTgjr4EKVfgT8Oj8tkticKBq6NUUNm8H9EmKO3me28z+U27IG fgE7N0MSj8wwPbo6tQ2NimNjbkQaW2OFjUv5Ku21gb+9ohGkbZJQl/8w3UjXvKU7xQSf ENK4iFVR449My+b8c9GRCWqwE/5uvHsDIThnSUNYVTXZa0LL/+PQw7l8SZpG7iw88WV8 xuqM8R2wMB2Qfdk8lIk5hHwvH4d1Y5+DO1K7LXvKqn42Y7MiKclbTGc+4ALa+F8w13SN pIAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=eshRac5/MmHHShiRX7ctDUm71bdkmrovJAks2obZ/b4=; b=LeoDY6bXBAvAH3yf9UW14LSLk4/IwybHpls58xA6D828smh6H94cDmtnyGauLxV3yB acZlsEXaUO19v6cQPQQhbEE73riY5FC0/WqcHfOncdt19N6m3jWGciv+ij+A/QK2S7eJ AqcBxNm8cqLNy0RUf3TpaKP03/hTR7GX2vk8H58Bg/Lk2NiC/hM+Wa48jVlb2rTaEvSB aXnaFxLSY1ttK7M65F8XYtKrYMQmLkzNNQrfF6sXmALM9KjEwT29Ck+ZYQiUkg6NEa6+ bMyCHB0CSDZ4AR5Jb8sCs7pcvQEJy8CawFoIq3CRozXDa9jayclR4t6Y9tKAglMEza1Z eYBw== X-Gm-Message-State: AOAM533ap9mXeZzuosmaC7z15WCgD4dUghTluQXACiXgoj76cwFfsDBQ RylWRzvJ9LPzXp1PyvJ3JnYPZw== X-Received: by 2002:a17:90a:460b:: with SMTP id w11mr8596455pjg.12.1604905804835; Sun, 08 Nov 2020 23:10:04 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id d11sm10472459pfo.198.2020.11.08.23.10.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Nov 2020 23:10:04 -0800 (PST) Date: Mon, 9 Nov 2020 12:40:02 +0530 From: Viresh Kumar To: Ionela Voinescu Cc: rjw@rjwysocki.net, lenb@kernel.org, sudeep.holla@arm.com, morten.rasmussen@arm.com, jeremy.linton@arm.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 8/8] acpi: fix NONE coordination for domain mapping failure Message-ID: <20201109071002.s44db2o7silvc7fh@vireshk-i7> References: <20201105125524.4409-1-ionela.voinescu@arm.com> <20201105125524.4409-9-ionela.voinescu@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201105125524.4409-9-ionela.voinescu@arm.com> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05-11-20, 12:55, 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. > > 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 */ > } Acked-by: Viresh Kumar -- viresh