Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1822119ybl; Sat, 10 Aug 2019 10:28:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXMs5w76VLYjlH3zY8WDX0vc/xaRKeXwjWAQna6J4+Zg8NffFUZDgJmsBBYsBnLqPgKM+g X-Received: by 2002:a62:1901:: with SMTP id 1mr10063299pfz.172.1565458109078; Sat, 10 Aug 2019 10:28:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565458109; cv=none; d=google.com; s=arc-20160816; b=VoAsuTpHzgwHPCByjlxO20ZWnYNJ7kHPn5SwZt9gJkVL99kPgTIbVzfgcpUaxnGBN6 CoO2QIOrQ9NXrBWAJjPh+NaHGY5Ua6wjN9XH6CFgQUb1d30B7vuT6UZJrfAa3evXBwB7 q3SozMb6jgw0j1dn+w50od4KWa4xb7eSQ8oT2UWOe0jlARbmWa4SEP4PZmW1ngQzALUn 8psIfNwVwFQ1fwnSWF04PsuEqSn6knsC9modajnNsheBTJP+kBoW1XF+Dv9/WmwExn/r eDesBoXeUt7rzNKJBDF093q9UXpGvBcLHjJV8BLQ0bh2axgY4dt+SoQyq0X/yEhCIfeW i+1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:reply-to; bh=dmrs5pFCBj9On+SbjBpOAPXKaVn0DvMCZgTb4mfkLts=; b=FLssxxSlbHGzUw1Biwgjch1AXJ4U/qnGwV6Qe+iuZzPkaRqL1wIxlyDwY7oZqVSB22 J7gx/lHNqKMi+0g7awtp0WTnrkqfCJyKufGKBcM6cJbDvVj61rvIM1WhESKIrMdcac43 4GDZotT4oGXW177La3qyUZJgAcwetD5gQuv5ZEP0Q2LAp+n8LD1BAs0Lto7wwWjN1aen gxqLgOHbK98Bwky93Iqs9k4wpv5n2tMVO4mwsBH6ZMODUyLLR1u4PDyaQ6axjFtLrZIs oknsseFLNRn0WlOvmnxNfv1BIUIZgM0ce7j3XfiYRemcKsBZI4Mj4vFiSSx/I6zvEgp5 Xfsw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v97si6955532pjb.23.2019.08.10.10.28.13; Sat, 10 Aug 2019 10:28: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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726204AbfHJRZ4 (ORCPT + 99 others); Sat, 10 Aug 2019 13:25:56 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:39490 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726048AbfHJRZz (ORCPT ); Sat, 10 Aug 2019 13:25:55 -0400 Received: by mail-ot1-f66.google.com with SMTP id r21so138834954otq.6 for ; Sat, 10 Aug 2019 10:25:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=dmrs5pFCBj9On+SbjBpOAPXKaVn0DvMCZgTb4mfkLts=; b=NspqtQ4gxmdz+ii41eWfBkZ+X/acexIfuBbePWZUknrzvxEQx/jTX8S8QqhFW0nTbq ggPix53CEqUlqNb9POv3vDXJPEjjnZ7t/hAqqCzNQlpb8mzMWk32O7aUyQnx2TvElmmd 1ezP7yUDRWnPRPqz3FUrl+bTWdWzpQj/vYEZ7izk6lHs112YutZobwWD/ZLw2QfGQGvp uc1V6GBj3ORFyyzLaKZ6GxOfMkwzLYQEAzwSP8WOJjYOGno7D+iCeUI+fDai9ByFnsKl kg/MiLJDXhICCldlE6e+SA3i39p/cWYoEBXzxQrutALqQw4HRLs0/2P5R/ErgBXGvKoS 9VRQ== X-Gm-Message-State: APjAAAWturrxp7Mub1mZhqUbTwvM/CJF1NWlHg5HgiMLxnv6ptynB6SS 5vGYbuT4evwCRtcM82RfUdSFcg== X-Received: by 2002:a05:6638:c8:: with SMTP id w8mr3295587jao.52.1565457954493; Sat, 10 Aug 2019 10:25:54 -0700 (PDT) Received: from masetto.ahs3 (c-67-165-232-89.hsd1.co.comcast.net. [67.165.232.89]) by smtp.gmail.com with ESMTPSA id x23sm8466137iob.36.2019.08.10.10.25.53 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Sat, 10 Aug 2019 10:25:53 -0700 (PDT) Reply-To: ahs3@redhat.com Subject: Re: [PATCH] ACPI / CPPC: do not require the _PSD method when using CPPC To: Sudeep Holla Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J . Wysocki" , Len Brown References: <20190805170338.29493-1-ahs3@redhat.com> <20190807114118.GJ16546@e107155-lin> From: Al Stone Organization: Red Hat, Inc. Message-ID: Date: Sat, 10 Aug 2019 11:25:53 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190807114118.GJ16546@e107155-lin> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/7/19 5:41 AM, Sudeep Holla wrote: > 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 > Thanks for the review, Sudeep. All the ARM systems I've seen seem to have a _PSD so this hasn't been an issue there. Some newer platforms coming out are starting to use CPPC, though, and took the spec at face value :). -- ciao, al ----------------------------------- Al Stone Software Engineer Red Hat, Inc. ahs3@redhat.com -----------------------------------