Page MenuHomeFreeBSD

acpi: add a driver for ACPI CPPC
Needs ReviewPublic

Authored by cognet on Sun, Jul 12, 10:59 PM.
Tags
None
Referenced Files
F163019247: D58205.id.diff
Sun, Jul 19, 6:19 AM
Unknown Object (File)
Sat, Jul 18, 6:35 PM
Unknown Object (File)
Sat, Jul 18, 7:29 AM
Unknown Object (File)
Fri, Jul 17, 2:59 AM
Unknown Object (File)
Thu, Jul 16, 2:31 AM
Unknown Object (File)
Tue, Jul 14, 5:58 PM

Details

Reviewers
andrew
Summary

Add a new driver, acpi_cppc, for ACPI CPPC (Collaborative Processor
Performance Control). When ACPI provides _CPC, this makes it possible
to control the CPU frequency via cpufreq.
Oonly System Memory registers are supported. PCC is not, as I have no hardware
to test it on, and Functional Fixed Hardware is already supported by other
drivers.
There is nothing arm64-specific in there, however for now it is only built
for arm64, as I haven't tested it anywhere else, and this is the only
platform I expect it to be used for now. The day it is needed somewhere else,
we can just make it MI.
This allows me to control the CPUs frequency on my Radxa Orion O6.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

How does this compare with D55474?

sys/dev/acpica/acpi_cppc.c
44

Needed?

How does this compare with D55474?

Oh I was not aware of that one, it seems more complete than what I have, and a bit more complex. But if it lands, mine won't be needed anymore, I'll just write whatever is needed to use it for my board.

HI, my patch is only the library part. It needs extra work to become a driver.

HI, my patch is only the library part. It needs extra work to become a driver.

hey Hi!

Yes I've seen that, my plan is now to wait for your library to land, and then I'll work from there to create the driver :) I will probably have a few questions for you

sys/dev/acpica/acpi_cppc.c
44

No :) I'm gonna remove it