apply our clock settings
This commit is contained in:
parent
ad5b25a6df
commit
8fdc42ee97
31
nixos/fuchsia/services/amdgpu-clocks.nix
Normal file
31
nixos/fuchsia/services/amdgpu-clocks.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Our custom power state
|
||||
environment.etc = {
|
||||
"default/amdgpu-custom-states.card0" = {
|
||||
text = ''
|
||||
# For Navi (and Radeon7) we can only set highest SCLK & MCLK, "state 1":
|
||||
OD_SCLK:
|
||||
1: 1800MHz
|
||||
OD_MCLK:
|
||||
1: 875MHz
|
||||
# More fine-grain control of clocks and voltages are done with VDDC curve:
|
||||
OD_VDDC_CURVE:
|
||||
0: 800MHz @ 699mV
|
||||
1: 1450MHz @ 795mV
|
||||
2: 1800MHz @ 950mV
|
||||
# Force power limit (in micro watts):
|
||||
FORCE_POWER_CAP: 200000000
|
||||
FORCE_PERF_LEVEL: manual
|
||||
'';
|
||||
|
||||
# The UNIX file mode bits
|
||||
mode = "0440";
|
||||
};
|
||||
};
|
||||
|
||||
# Install our overclocking script.
|
||||
environment.systemPackages = with pkgs; [ amdgpu-clocks ];
|
||||
}
|
||||
|
7
nixos/fuchsia/services/default.nix
Normal file
7
nixos/fuchsia/services/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./amdgpu-clocks.nix
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue