Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5348466ybh; Wed, 7 Aug 2019 04:43:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRPfgmTAwDZvtp4O2h90c8Z76LbLVwMK26Tza3lnRHkYMr8yMAu8aog43LS5UiX4u7jSeJ X-Received: by 2002:a63:ab08:: with SMTP id p8mr7648875pgf.340.1565178189553; Wed, 07 Aug 2019 04:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565178189; cv=none; d=google.com; s=arc-20160816; b=xtdlG8kTioX62M3SwsRbDrAa69hm8oMzs5G1bxxtedMwG2l46qH6eo73aTuROHE8pC hntlqq5PHxTYsvIqDHQl/1PjYqOQj0pQkLJWSXw8lCIQmWlrmMlcmvgG+7aEVxfNdNz5 hksy4/P8lQm1P5kGEnpcmFlpo8a6y39fpqJoCI9FHtL5XMeK2flexZcFSxEnbeyRTR8B /2y5wIFm9SmUYaZTkE+QXf0u1JVgLN+YROnKEY0RXrahhZNQPaz+fnaELqFZnJkCjkL9 DVNyZcYPRtsFLP82DDIiDvsN/aR7HI6H3vUKA4Ws/5mEG6JnG6bt7NAqhbFbS5gDx3/y K/PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ophHP/B0SKQaFCW0PvKYlfeOBSGBl+xlBqD0/j5JU/o=; b=MdwVkbc/mEdaKOY0v0KEBPMp2iBUZqRIUxlPFLGIy/Z4Eo9kVDONRiIa4PIS1UIr8E Go/m75BSxasyoZ7lbtByxEpqjLI6HhVMkV48rIuAclpwSnD3UfTPPooCfIz/9bNvUQzo WlVI3WcGp4qgjhdI8pbMs/8W7OaKKVF2KSA9e7DLmsZz9ORRAaiiiwFUSQXinIdoDXh0 nEoEgTdOudWj+HD5s5BieprCXEJbONJx4n5Y7AwmaYc0y7gb4MUQC4wfNsB8g7W8XT/1 bCPI526BHclCTbBShxO9cymcfsNXrdhi3Voua7CDCx6zElQM5HnmiZE2fXLH74h0GOhH HsVg== ARC-Authentication-Results: i=1; mx.google.com; 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 w19si40403371pga.462.2019.08.07.04.42.53; Wed, 07 Aug 2019 04:43:09 -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; 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 S1729568AbfHGLlV (ORCPT + 99 others); Wed, 7 Aug 2019 07:41:21 -0400 Received: from foss.arm.com ([217.140.110.172]:46970 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbfHGLlV (ORCPT ); Wed, 7 Aug 2019 07:41:21 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0860A28; Wed, 7 Aug 2019 04:41:21 -0700 (PDT) Received: from e107155-lin (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3B16A3F575; Wed, 7 Aug 2019 04:41:20 -0700 (PDT) Date: Wed, 7 Aug 2019 12:41:18 +0100 From: Sudeep Holla To: Al Stone Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J . Wysocki" , Len Brown Subject: Re: [PATCH] ACPI / CPPC: do not require the _PSD method when using CPPC Message-ID: <20190807114118.GJ16546@e107155-lin> References: <20190805170338.29493-1-ahs3@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190805170338.29493-1-ahs3@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 05, 2019 at 11:03:38AM -0600, Al Stone wrote: > According to the ACPI 6.3 specification, the _PSD method is optional > when using CPPC. The underlying assumption appears to be that each CPU > can change frequency independently from all other CPUs; _PSD is provided > to tell the OS that some processors can NOT do that. > > However, the acpi_get_psd() function returns -ENODEV if there is no _PSD > method present, or an ACPI error status if an error occurs when evaluating > _PSD, if present. This essentially makes _PSD mandatory when using CPPC, > in violation of the specification, and only on Linux. > > This has forced some firmware writers to provide a dummy _PSD, even though > it is irrelevant, but only because Linux requires it; other OSPMs follow > the spec. We really do not want to have OS specific ACPI tables, though. > > So, correct acpi_get_psd() so that it does not return an error if there > is no _PSD method present, but does return a failure when the method can > not be executed properly. This allows _PSD to be optional as it should > be. > Makes sense to me. FWIW, Reviewed-by: Sudeep Holla < sudeep.holla@arm.com> -- Regards, Sudeep