# Kernel Errors in latest core update

**URL:** <https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444>\
**Category:** Hardware\
**Created:** [12 October 2023 11:35 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444 "2023-10-12T11:35:39Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![maintech](https://community.ipfire.org/user_avatar/community.ipfire.org/maintech/32/12848_2.png) [@maintech](https://community.ipfire.org/u/maintech)\
**Post date:** [12 October 2023 11:35 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/1 "2023-10-12T11:35:39Z")

</div>

After applying the latest update I am now getting a kernel error. If anyone knows what I need to do to correct these errors then please let me know.

Kernel and Firewall:

WARNING: Kernel Errors Present  
amd\_pstate\_ut: amd\_pstate\_ut\_check\_perf read CPPC\_CAP1 ret=-5 error! …: 1 Time(s)  
amd\_pstate\_ut: amd\_pstate\_ut\_pstate\_enable rdmsrl\_safe MSR\_AMD\_CPPC\_ENABLE ret=-5 error! …: 1 Time(s)

Thank you in advance for any help offered.

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [12 October 2023 11:51 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/2 "2023-10-12T11:51:53Z")

</div>

amd pstate is the AMD driver for the cpu frequency control mechanism.

Although there was no message indicating that a reboot was required, did you do a reboot or not.  
If not maybe a reboot would be useful. Not sure but it shouldn’t hurt.

Do you have the cpufrequtils addon installed.,

If yes then maybe uninstalling the addon and then re-installing it might help to get aligned.

Just to confirm, when you say latest core update, you do mean from CU179 to CU180. If yes, then I am not sure why the problem should occur now as there was no kernel update in CU180 and also the cpufrequtils addon hasn’t had an update.

Doing an internet search for those specific errors doesn’t come up with anything just links to the amd pstate info generally.

---

<div class="post-metadata">

**Author:** ![tphz](https://community.ipfire.org/user_avatar/community.ipfire.org/tphz/32/16551_2.png) [@tphz](https://community.ipfire.org/u/tphz)\
**Post date:** [12 October 2023 17:27 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/3 "2023-10-12T17:27:32Z")

</div>

I can confirm the presence of logs

```auto
17:14:03 kernel: amd_pstate_ut: 4 amd_pstate_ut_check_freq^I fail!
17:14:03 kernel: amd_pstate_ut: amd_pstate_ut_check_freq cpu0 max=1146803520 >= nominal=114933928 0 > lowest_nonlinear=-23502 > min=-23502 > 0, the formula is incorrect!
17:14:03 kernel: amd_pstate_ut: 3 amd_pstate_ut_check_perf^I fail!
17:14:03 kernel: amd_pstate_ut: amd_pstate_ut_check_perf read CPPC_CAP1 ret=-5 error!
17:14:03 kernel: amd_pstate_ut: get_shared_mem unable to open /sys/module/amd_pstate/parameters/s hared_mem file!
17:14:03 kernel: amd_pstate_ut: 2 amd_pstate_ut_check_enabled^I fail!
17:14:03 kernel: amd_pstate_ut: amd_pstate_ut_pstate_enable rdmsrl_safe MSR_AMD_CPPC_ENABLE ret=- 5 error!
17:14:03 kernel: amd_pstate_ut: get_shared_mem unable to open /sys/module/amd_pstate/parameters/s hared_mem file!
17:14:03 kernel: amd_pstate_ut: 1 amd_pstate_ut_acpi_cpc_valid^I fail!
17:14:03 kernel: amd_pstate_ut: amd_pstate_ut_acpi_cpc_valid the _CPC object is not present in SB IOS!

```

After uninstalling cpufrequtil and restarting IPFire, `amd_pstate_ut` errors disappear.  
After reinstalling cpufrequtils and restarting IPFire, the errors are visible.

However, `amd_pstate_ut:` errors are visible before upgrading to CU180.

e.g.

```auto
Oct 10 04:00:07 kernel: amd_pstate_ut: amd_pstate_ut_acpi_cpc_valid the _CPC object is not present in SBIOS!
Oct 10 04:00:07 kernel: amd_pstate_ut: 1 amd_pstate_ut_acpi_cpc_valid^I fail!
Oct 10 04:00:07 kernel: amd_pstate_ut: get_shared_mem unable to open /sys/module/amd_pstate/parameters/shared_mem file!
Oct 10 04:00:07 kernel: amd_pstate_ut: amd_pstate_ut_pstate_enable rdmsrl_safe MSR_AMD_CPPC_ENABLE ret=-5 error!
Oct 10 04:00:07 kernel: amd_pstate_ut: 2 amd_pstate_ut_check_enabled^I fail!
Oct 10 04:00:07 kernel: amd_pstate_ut: get_shared_mem unable to open /sys/module/amd_pstate/parameters/shared_mem file!
Oct 10 04:00:07 kernel: amd_pstate_ut: amd_pstate_ut_check_perf read CPPC_CAP1 ret=-5 error!
Oct 10 04:00:07 kernel: amd_pstate_ut: 3 amd_pstate_ut_check_perf^I fail!
Oct 10 04:00:07 kernel: amd_pstate_ut: amd_pstate_ut_check_freq cpu0 max=73704592 >= nominal=73704336 > lowest_nonlinear=-24169 > min=-24169 > 0, the formula is incorrect!
Oct 10 04:00:07 kernel: amd_pstate_ut: 4 amd_pstate_ut_check_freq^I fail!

```

BR

edit:

```auto
Processor
Intel(R) Celeron(R) J4105 CPU @ 1.50GHz x4
64 bit AES-NI NX PAE RDRAND VT-x/AMD-V 

```

[https://fireinfo.ipfire.org/profile/e8af17aa07b62a277979e02531ed944f7fc6a97e](https://fireinfo.ipfire.org/profile/e8af17aa07b62a277979e02531ed944f7fc6a97e)

---

<div class="post-metadata">

**Author:** ![pike\_it](https://community.ipfire.org/user_avatar/community.ipfire.org/pike_it/32/16763_2.png) [@pike\_it](https://community.ipfire.org/u/pike_it)\
**Post date:** [12 October 2023 17:44 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/4 "2023-10-12T17:44:31Z")

</div>

Smells like a small bug.

---

<div class="post-metadata">

**Author:** ![rodneyp](https://community.ipfire.org/user_avatar/community.ipfire.org/rodneyp/32/16575_2.png) [@rodneyp](https://community.ipfire.org/u/rodneyp)\
**Post date:** [12 October 2023 21:12 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/5 "2023-10-12T21:12:51Z")

</div>

Could this be a BIOS/UEFI fault ?

I am using an AMD APU, with cpufrequtils installed and get no errors in system log, after just upgrading to CU 180 stable. What do the many users on APU4 machines find ?

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [13 October 2023 06:30 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/6 "2023-10-13T06:30:10Z")

</div>

The amd pstate CPU performance scaling driver is supported from Zen2 and newer processors so is not available for the processor used in the APU machines.

---

<div class="post-metadata">

**Author:** ![rodneyp](https://community.ipfire.org/user_avatar/community.ipfire.org/rodneyp/32/16575_2.png) [@rodneyp](https://community.ipfire.org/u/rodneyp)\
**Post date:** [13 October 2023 07:26 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/7 "2023-10-13T07:26:49Z")

</div>

Thanks for that update.

Looks like the amd pstate CPU performance scaling driver is not needed anyway for APU. Mine typically reports CPU frequency in the range 600 to 700 MHz, although its nominal frequency is 1000 MHz.

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [13 October 2023 07:55 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/8 "2023-10-13T07:55:17Z")

</div>

Older amd processors use the ACPI driver for the frequency stuff.

I also have an APU4 and it has been going between 900 and 980 MHz.

Since the CU180 release it is going between 945 and 980 MHz but to be honest I rarely look at that graph and don’t get worried about it at all.

The frequency could have tightened up in range because of the various package updates and removing old cruft in the networking code, so the CPU is concentrating more on the core firewall activities but I don’t really know.

---

<div class="post-metadata">

**Author:** ![maintech](https://community.ipfire.org/user_avatar/community.ipfire.org/maintech/32/12848_2.png) [@maintech](https://community.ipfire.org/u/maintech)\
**Post date:** [13 October 2023 10:33 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/9 "2023-10-13T10:33:50Z")

</div>

I’m using an I7 zeon CPU. The only AMD component is the video card.

---

<div class="post-metadata">

**Author:** ![pike\_it](https://community.ipfire.org/user_avatar/community.ipfire.org/pike_it/32/16763_2.png) [@pike\_it](https://community.ipfire.org/u/pike_it)\
**Post date:** [13 October 2023 10:45 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/10 "2023-10-13T10:45:47Z")

</div>

> [@maintech](#):
>
> I7 zeon

I am not familiar with this CPU…

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [13 October 2023 12:03 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/11 "2023-10-13T12:03:05Z")

</div>

> [@maintech](#):
>
> I’m using an I7 zeon CPU. The only AMD component is the video card.

Interesting.

Let’s see what your system says for the scaling driver that is being used.

On the console run the command

`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver`

On my apu4 based system I get  
`acpi-cpufreq`

On an amd system that is able to use the pstate it would be  
`amd-pstate`

and for an intel system  
`intel_pstate`

There are other possibilities it could be for older intel and amd processors.

Let us know what you find.

---

<div class="post-metadata">

**Author:** ![tphz](https://community.ipfire.org/user_avatar/community.ipfire.org/tphz/32/16551_2.png) [@tphz](https://community.ipfire.org/u/tphz)\
**Post date:** [13 October 2023 17:17 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/12 "2023-10-13T17:17:29Z")

</div>

> [@bonnietwin](#):
>
> On the console run the command
> 
> `cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver`

The result has my IPFire: `intel_cpufreq`

---

<div class="post-metadata">

**Author:** ![cbrown](https://community.ipfire.org/user_avatar/community.ipfire.org/cbrown/32/16342_2.png) [@cbrown](https://community.ipfire.org/u/cbrown)\
**Post date:** [13 October 2023 17:32 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/13 "2023-10-13T17:32:08Z")

</div>

FWIW, on my Core Update **179** – [Intel(R) Celeron(R) CPU 3867U @ 1.80GHz x2](https://fireinfo.ipfire.org/profile/28e51db7a0a974df7f6ec45098e415da016916ea)  
I also see the **amd\_pstate\_ut** messages

```auto
[root@ipfire log]# grep amd_pstate messages
Oct 8 02:46:51 ipfire kernel: amd_pstate_ut: amd_pstate_ut_acpi_cpc_valid the _CPC object is not present in SBIOS!
Oct 8 02:46:51 ipfire kernel: amd_pstate_ut: 1 amd_pstate_ut_acpi_cpc_valid^I fail!
Oct 8 02:46:51 ipfire kernel: amd_pstate_ut: get_shared_mem unable to open /sys/module/amd_pstate/parameters/shared_mem file!
Oct 8 02:46:51 ipfire kernel: amd_pstate_ut: amd_pstate_ut_pstate_enable rdmsrl_safe MSR_AMD_CPPC_ENABLE ret=-5 error!
Oct 8 02:46:51 ipfire kernel: amd_pstate_ut: 2 amd_pstate_ut_check_enabled^I fail!
Oct 8 02:46:51 ipfire kernel: amd_pstate_ut: get_shared_mem unable to open /sys/module/amd_pstate/parameters/shared_mem file!
Oct 8 02:46:51 ipfire kernel: amd_pstate_ut: amd_pstate_ut_check_perf read CPPC_CAP1 ret=-5 error!
Oct 8 02:46:51 ipfire kernel: amd_pstate_ut: 3 amd_pstate_ut_check_perf^I fail!
Oct 8 02:46:51 ipfire kernel: RIP: 0010:amd_pstate_ut_check_freq+0x3d/0xfb [amd_pstate_ut]
Oct 8 02:46:51 ipfire kernel: ? amd_pstate_ut_check_freq+0x3d/0xfb [amd_pstate_ut]
Oct 8 02:46:51 ipfire kernel: amd_pstate_ut_init+0x1e/0x1000 [amd_pstate_ut]

```

[Edit] However this seems to have no negative impact on **intel\_pstate**

```auto
cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 4294.55 ms.
  hardware limits: 400 MHz - 1.80 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 400 MHz and 1.80 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency is 900 MHz.
analyzing CPU 1:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 1
  CPUs which need to have their frequency coordinated by software: 1
  maximum transition latency: 4294.55 ms.
  hardware limits: 400 MHz - 1.80 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 400 MHz and 1.80 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency is 900 MHz.

```

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [13 October 2023 18:06 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/14 "2023-10-13T18:06:23Z")

</div>

> [@tphz](#):
>
> The result has my IPFire: `intel_cpufreq`

This was an interim option for processors that were not able to use the intel\_pstate

Here is what the Arch Linux wiki page on cpu frequency scaling says about intel\_cpufreq

> Starting with kernel 5.7, the intel\_pstate scaling driver selects “passive mode” aka intel\_cpufreq for CPUs that do not support hardware-managed P-states (HWP), i.e. Intel Core i 5th generation or older. This driver acts similar to the ACPI driver on Intel CPUs, except that it does not have the 16-pstate limit of ACPI.

> [@cbrown](#):
>
> FWIW, on my Core Update **179** – [Intel(R) Celeron(R) CPU 3867U @ 1.80GHz x2](https://fireinfo.ipfire.org/profile/28e51db7a0a974df7f6ec45098e415da016916ea)  
> I also see the **amd\_pstate\_ut** messages

I would suspect that there is some bug in the kernel that is trying to use the amd\_pstate driver when the processor is an intel cpu.

The last kernel update was in CU178 with a change to 6.1.45

CU181 will have an update to 6.1.57

---

<div class="post-metadata">

**Author:** ![maintech](https://community.ipfire.org/user_avatar/community.ipfire.org/maintech/32/12848_2.png) [@maintech](https://community.ipfire.org/u/maintech)\
**Post date:** [13 October 2023 20:58 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/15 "2023-10-13T20:58:02Z")

</div>

> [@tphz](#):
>
> > [@bonnietwin](#):
> >
> > On the console run the command
> > 
> > `cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver`
> 
> The result has my IPFire: `intel_cpufreq`

The output I received was “acpi-cpufreq”.

---

<div class="post-metadata">

**Author:** ![rodneyp](https://community.ipfire.org/user_avatar/community.ipfire.org/rodneyp/32/16575_2.png) [@rodneyp](https://community.ipfire.org/u/rodneyp)\
**Post date:** [14 October 2023 00:00 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/16 "2023-10-14T00:00:43Z")

</div>

> [@bonnietwin](#):
>
> Older amd processors use the ACPI driver for the frequency stuff.

I removed the cpufrequtils package, but then:

- cat /sys/devices/system/cpu/cpu0/cpufreq/scaling\_driver reported “file not found”
- current freq went up about 150 MHz, for similar usage

Reinstalled cpufrequtils package & rebooted then:

- cat /sys/devices/system/cpu/cpu0/cpufreq/scaling\_driver reported “acpi-cpufreq”
- current freq soon returned to previous level

The reboot showed 4 CPU scaling drivers loading, including amd\_pstate & acpi-cpufreq

I conclude that cpufrequtils is useful with AMD APU

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [22 November 2023 08:44 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/17 "2023-11-22T08:44:24Z")

</div>

Split this topic on 22 November 2023 08:44 UTC

A post was split to a new topic: [Pci error - AER: Multiple Corrected error received](https://community.ipfire.org/t/pci-error-aer-multiple-corrected-error-received/10625)

---

<div class="post-metadata">

**Author:** ![arne\_f](https://community.ipfire.org/user_avatar/community.ipfire.org/arne_f/32/12760_2.png) [@arne\_f](https://community.ipfire.org/u/arne_f)\
**Post date:** [20 February 2024 12:21 UTC](https://community.ipfire.org/t/kernel-errors-in-latest-core-update/10444/18 "2024-02-20T12:21:21Z")

</div>

this amd\_pstate\_ut problem was a bug in the cpufreq initskript.  
It try to load the cpufreq driver modules. But amd\_pstate\_ut is no driver.  
It is a utility module to test the bios parameters for amd pstate. It give a oops on intel systems and off course complain about missing bios parametes…

The fixed cpufrequtils is in testing and will go to stable with core184
