Skip to content

Instantly share code, notes, and snippets.

@cyring
Created October 11, 2022 09:53
Show Gist options
  • Save cyring/bf56d2db34247fd249036d519b32de28 to your computer and use it in GitHub Desktop.
Save cyring/bf56d2db34247fd249036d519b32de28 to your computer and use it in GitHub Desktop.
Ryzen 5 6600H
AMD Ryzen 5 6600H with Radeon Graphics
@cyring
Copy link
Author

cyring commented Oct 17, 2022

UMC

2023-01-03-150711_644x452_scrot
2023-01-03-150552_644x648_scrot

SoC

(Work in progress)

MSR_AMD_F17H_PMGT_MISC

static void Call_SVI_RMB(const unsigned int plane0, const unsigned int plane1,
                        const unsigned long long factor)
{
        AMD_RMB_SVI SVI = {.value = 0};
        ZEN_PMGT_MISC PM = {.value = 0};
        UNUSED(factor);

        Core_AMD_SMN_Read(      SVI,
                                SMU_AMD_RMB_SVI(plane0),
                                PRIVATE(OF(Zen)).Device.DF );

        PUBLIC(RO(Proc))->PowerThermal.VID.CPU = SVI.SVI1;
/*
        Core_AMD_SMN_Read(      SVI,
                                SMU_AMD_RMB_SVI(plane1),
                                PRIVATE(OF(Zen)).Device.DF );
*/
        RDMSR(PM, MSR_AMD_F17H_PMGT_MISC);
        PUBLIC(RO(Proc))->PowerThermal.VID.SOC = PM.CurDFVid;
}

2022-12-17-002902_644x452_scrot

CPU @ 0x006f010 , SoC @ 0x006f018

2022-12-29-143050_644x424_scrot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment