Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp665622iob; Fri, 13 May 2022 09:46:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9Eg4L1aaKZV6dsXHQer66IG6OwIVbsOGMMrArdR/lnqU/pj+1fF8z1bhv5FEq6TGjEqEe X-Received: by 2002:a05:600c:1da5:b0:395:baf7:ca4c with SMTP id p37-20020a05600c1da500b00395baf7ca4cmr5447926wms.99.1652460406317; Fri, 13 May 2022 09:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652460406; cv=none; d=google.com; s=arc-20160816; b=M2yMr0POng6XsyV6nnEuDsCZv4cMJsjmqS0ofA691sSq6QhoOy8DpitxEpbal9Ci6Q 6KVlBWJTsYhKY0AJJfDDMMLfcQdxqREE3xFAv0Pz41B4q7UYjKmZrb5kL6+WR6cbL4iL CQkUkBVhO61Z2dtv9lMHG0OAZ1LqfnfMleqTNH5Mag6tm3u2Ere8uVuaKh4njydU4P0v hEBxbiJvmRImBdMnetFAD7x6wwHneRVyo50sQmVLUAh5qiwT5+w8tTI+EuO0cQew0UtV Pli2c6v8djDEfvzQe3Rv/38RgbVSHN39MZMs/xfMxZRwfCWiT1p8syFYiQElwta+AvwX r1/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=KSjuYRr3QuuoRQXQWdQLB7L2tLARfxhklQhPaAYt/Nk=; b=lZR6/d2ENL988AU87nt27UMLIuyLSIpZNBTFAnFoYk41GhtpUTDdD0ZmNmAcVqq+5T 5ArXfirK0AcTrFkPaG2fLgKSZX09KlktqP4ta5KFCaeu7j840OSeI1IbV2/R498wcz3F t0GP5jugodOmVpbOcfKUu7SFey3ufDM6qflj2rAlLCTsVlnsP1VOka4HDuNwCDti83qi 1ifn406GpEM6uugfBPljlHZLxaBC+jeGF/p8NJJsNgsldj5WEBqE9cFlAthEyZa8pbmM JVt/fGL5XoRnegI7VYbCGrCjghfRK9KLYl1oYA/b2fW5N2K5H0HExK27ThqAFhKrMfT7 I1BA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4-20020a1c4304000000b0039445458ee4si2644979wma.164.2022.05.13.09.46.16; Fri, 13 May 2022 09:46:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244524AbiEKOW2 (ORCPT + 99 others); Wed, 11 May 2022 10:22:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232954AbiEKOW0 (ORCPT ); Wed, 11 May 2022 10:22:26 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0255E62CFF; Wed, 11 May 2022 07:22:25 -0700 (PDT) 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 CD59EED1; Wed, 11 May 2022 07:22:24 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 24B343F66F; Wed, 11 May 2022 07:22:23 -0700 (PDT) Date: Wed, 11 May 2022 15:22:20 +0100 From: Sudeep Holla To: Pierre Gondois Cc: linux-kernel@vger.kernel.org, Ionela.Voinescu@arm.com, Sudeep Holla , Dietmar.Eggemann@arm.com, "Rafael J. Wysocki" , Len Brown , Viresh Kumar , Robert Moore , linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org, devel@acpica.org Subject: Re: [PATCH v1 2/5] ACPI: bus: Set CPPC _OSC bits for all and when CPPC_LIB is supported Message-ID: <20220511142220.sjfhikuf6fydnrkb@bogus> References: <20220511134559.1466925-1-pierre.gondois@arm.com> <20220511134559.1466925-2-pierre.gondois@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220511134559.1466925-2-pierre.gondois@arm.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 11, 2022 at 03:45:56PM +0200, Pierre Gondois wrote: > The _OSC method allows the OS and firmware to communicate about > supported features/capabitlities. It also allows the OS to take > control of some features. > > In ACPI 6.4, s6.2.11.2 Platform-Wide OSPM Capabilities, the CPPC > (resp. v2) bit should be set by the OS if it 'supports controlling > processor performance via the interfaces described in the _CPC > object'. > > The OS supports CPPC and parses the _CPC object only if > CONFIG_ACPI_CPPC_LIB is set. Replace the x86 specific > boot_cpu_has(X86_FEATURE_HWP) dynamic check with an arch > generic CONFIG_ACPI_CPPC_LIB build-time check. > > Note: > CONFIG_X86_INTEL_PSTATE selects CONFIG_ACPI_CPPC_LIB. While this is work as per the spec, by not sure what kind of ACPI firmware are in the wild. So be prepared to relax/constrain to original feature check for x86, unfortunate but may be needed. Anyways, Reviewed-by: Sudeep Holla -- Regards, Sudeep