[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cpufreq drivers not working on T480S


  • To: Jason Andryuk <jandryuk@xxxxxxxxx>, Milky <milky_way_303030@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 6 Jan 2026 09:25:14 +0100
  • Autocrypt: addr=jbeulich@xxxxxxxx; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 06 Jan 2026 08:25:27 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 06.01.2026 02:03, Jason Andryuk wrote:
> On Tue, Dec 30, 2025 at 8:50 PM Milky <milky_way_303030@xxxxxxxxx> wrote:
>> (Re-CC'ing the ML because I forgot by accident. Hopefully the quoted
>> sections provide sufficient context)
>>
>> On Tuesday, December 30th, 2025 at 10:44 AM, Jason Andryuk 
>> <jandryuk@xxxxxxxxx> wrote:
> 
>> As suggested, I added the debug parameters to the dom0 kernel. Before or
>> after `modprobe xen-acpi-processor dyndbg==pmf`, there is no useful
>> debug information that I could find, apart from the
>> `xen_acpi_processor:get_max_acpi_id` message as seen below.
>>
>> ```
>> # sudo dmesg | grep xen.acpi
>> [    2.282851] Kernel command line: placeholder 
>> root=/dev/mapper/qubes_dom0-root ro rd.luks.uuid=<...> 
>> rd.lvm.lv=qubes_dom0/root rd.lvm.lv=qubes_dom0/swap 
>> plymouth.ignore-serial-consoles 6.6.77-1.qubes.fc37.x86_64 x86_64 rhgb 
>> loglevel=9 "dyndbg=module xen_acpi_processor +p" 
>> "xen_acpi_processor.dyndbg=func * +p" rd.qubes.hide_all_usb
>> [    5.224092] xen_acpi_processor: Max ACPI ID: 6
> 
> You successfully turned on dyndbg to get that output, but there is no
> further output.  This makes me think something else is wrong and
> xen-acpi-processor doesn't upload anything.
> 
> The call here 
> https://elixir.bootlin.com/linux/v6.18.2/source/drivers/xen/xen-acpi-processor.c#L557
> to
> https://elixir.bootlin.com/linux/v6.18.2/source/drivers/acpi/processor_perflib.c#L421
> goes into some acpi code.  Maybe there are other messages in dmesg
> around the same time?  Maybe you'd have to turn on more debugging to
> get them.
> 
>> # sudo lsmod | grep xen_acpi
>> <no output>
>>
>> # sudo modprobe xen-acpi-processor dyndbg==pmf
>> modprobe: ERROR: could not insert 'xen_acpi_processor': No such device
>> ```
> 
>>> Maybe also with Xen's command line try cpufreq=xen:no-hwp to disable
>>> HWP and see if the regular ACPI cpufreq driver works better.
>>>
>>> I'm thinking it's something where xen-acpi-processor didn't upload
>>> ACPI CPU data, which means cpufreq isn't running. That may also be
>>> why you see that bogus CPU frequency.
>>
>> After booting with `xen:no-hwp`, I wasn't sure how to check if the
>> regular ACPI cpufreq driver is operational. Is `xenpm` still the
>> correct way to query for CPU info? I've tried the following:
>>
>> ```
>> # sudo xl dmesg | grep -i hwp
>> (XEN) Command line: placeholder cpufreq=xen:no-hwp,verbose loglvl=all 
>> dom0_mem=min:1024M dom0_mem=max:4096M ucode=scan smt=off 
>> gnttab_max_frames=2048 gnttab_max_maptrack_frames=4096 no-real-mode edd=off
>> (XEN) HWP: 1 notify: 1 act-window: 1 energy-perf: 1 pkg-level: 0 peci: 0
>> (XEN) HWP: Hardware Duty Cycling (HDC) supported, enabled
>> (XEN) HWP: HW_FEEDBACK not supported
> 
> no-hwp failed to disable HWP.  But if there is no ACPI CPU data, it
> wouldn't work either.

There isn't any "no-hwp" option that we would recognize, is there? Iirc HWP
isn't enabled by default, so simply not saying "cpufreq=hwp" should disable
the driver? (I already found the original report confusing in this regard,
hence why I preferred to not reply so far. I wonder if there are local
patches in use.)

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.