Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6578185rwr; Tue, 9 May 2023 18:01:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4k9I6yGLU2MvAisgMaGcM4eYCiNeQ8JDjZhveML++HssYE39T2t4D7m5K4rlEZiwoom+Q3 X-Received: by 2002:aca:1c1a:0:b0:394:a7a:e03c with SMTP id c26-20020aca1c1a000000b003940a7ae03cmr1675552oic.39.1683680486415; Tue, 09 May 2023 18:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683680486; cv=none; d=google.com; s=arc-20160816; b=fISIkY9ECyhsNEzFzpWnf+/Zo1nkIwjl3ZzHlIfuJeZLwJrB7rzylVXIqOF8YYvJ1a pF2gPkM2I1LWhAu30YB616p5sKp39TDPqPzqzz4dnKgChB5IlcfITBM8p6/GQTdf1Frb /ArRdoks4ID90Je0KmjoC1kDOVj2++/csACNO2nDxZShlHRz+aINLT1brJt/BWsBUD6J IHZwhXN8Zi+6iTfgFPEjxXZYbvE59wlfDwD9vWr2o5Wd9MVlj6mSyBxX9boClimfqUVP 8kDUIdTasIxolMRpKXY3EJXgOCFXn9TOXdxnYlEnopI1axWKpEVRvmxoXfH5IubAGRES ZotQ== 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:mail-followup-to:message-id:subject:cc:to:from:date; bh=noX2b4g57qrXB4RWB0VUMgUxvllJ3dWiyh1521VGe3c=; b=oS93qGvKb3OxFWrW3j1kpz4yI0sA7FCO3J/z4X+esDkEWyjRHKE/zkQexc2ScCDUan rkkjjpiJFIyfTvLXJ/t+CtVtw0Ez9JNaFCtqJ+BiMA6TDu4yh5l0t+OAfdoPxFT95R96 BrNg7OZ9Ot2QFxat9UzWvjsnNIJuHx9rDjhkFgzenFCdQy7CLkSDID4xIIS9Nif9Uk5w /l0xWDQM3yjQw8YRKh70YHFQ+8R60MnOdu7btY+3ik3+TmaeL7fVm7BF0H9jt6KfDVyW mjI9iad/zTf/NZV7/WjzuwXEnbwJU78ogOh8DbgD4E9iUr6WE/8Y0mQmNebjQkk5UhYV Fzug== 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=kevinlocke.name Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v82-20020aca6155000000b003940c7677a2si1680579oib.14.2023.05.09.18.01.13; Tue, 09 May 2023 18:01:26 -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=kevinlocke.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234959AbjEJAIY (ORCPT + 99 others); Tue, 9 May 2023 20:08:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbjEJAIX (ORCPT ); Tue, 9 May 2023 20:08:23 -0400 X-Greylist: delayed 488 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 09 May 2023 17:08:22 PDT Received: from vulcan.kevinlocke.name (vulcan.kevinlocke.name [107.191.43.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 864E5273D; Tue, 9 May 2023 17:08:22 -0700 (PDT) Received: from kevinolos.kevinlocke.name (071-015-196-093.res.spectrum.com [71.15.196.93]) (Authenticated sender: kevin@kevinlocke.name) by vulcan.kevinlocke.name (Postfix) with ESMTPSA id DD959395E4EB; Wed, 10 May 2023 00:00:10 +0000 (UTC) Received: by kevinolos.kevinlocke.name (Postfix, from userid 1000) id AC700130072A; Tue, 9 May 2023 18:00:07 -0600 (MDT) Date: Tue, 9 May 2023 18:00:07 -0600 From: Kevin Locke To: Petr Pavlu Cc: rafael@kernel.org, lenb@kernel.org, viresh.kumar@linaro.org, pmladek@suse.com, mcgrof@kernel.org, linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] ACPI: cpufreq: use a platform device to load ACPI PPC and PCC drivers Message-ID: Mail-Followup-To: Petr Pavlu , rafael@kernel.org, lenb@kernel.org, viresh.kumar@linaro.org, pmladek@suse.com, mcgrof@kernel.org, linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230316151036.10181-1-petr.pavlu@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230316151036.10181-1-petr.pavlu@suse.com> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 Thu, 2023-03-16 at 16:10 +0100, Petr Pavlu wrote: > The patch extends the ACPI parsing logic to check the ACPI namespace if > the PPC or PCC interface is present and creates a virtual platform > device for each if it is available. The acpi-cpufreq and pcc-cpufreq > drivers are then updated to map to these devices. > > This allows to try loading acpi-cpufreq and pcc-cpufreq only once during > boot and only if a given interface is available in the firmware. As a result of this patch (691a637123470bfe63bccf5836ead40fac4c7fab) my ThinkPad T430 with an i5-3320M CPU configured with CONFIG_X86_INTEL_PSTATE=y and CONFIG_X86_ACPI_CPUFREQ=m (Debian's amd64 kernel config) now logs kernel: acpi-cpufreq: probe of acpi-cpufreq failed with error -17 during boot. Presumably this occurs because loading acpi-cpufreq returns -EEXIST when intel-pstate is already loaded (or built-in, as in this case). I'm unsure why the message was not printed before; perhaps a difference between driver probing for platform and cpu bus types? Although the error message is not wrong, it may lead to unnecessary investigation by sysadmins, as it did for me. I thought it was worth reporting so you can consider whether the change is desirable. Cheers, Kevin