]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/powerplay: add data structure of bootup values
authorHuang Rui <ray.huang@amd.com>
Sat, 15 Dec 2018 07:36:58 +0000 (15:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:03:55 +0000 (15:03 -0500)
This patch adds data structures for bootup values.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h

index a12af78a2b9c20a0be649fd698d3cf46d15d48fb..6d0db61179db764caddc3cf68084e546d10ebe6e 100644 (file)
@@ -38,13 +38,29 @@ struct smu_table {
        uint64_t mc_address;
        void *cpu_addr;
        struct amdgpu_bo *bo;
+};
 
+struct smu_bios_boot_up_values
+{
+       uint32_t                        revision;
+       uint32_t                        gfxclk;
+       uint32_t                        uclk;
+       uint32_t                        socclk;
+       uint32_t                        dcefclk;
+       uint16_t                        vddc;
+       uint16_t                        vddci;
+       uint16_t                        mvddc;
+       uint16_t                        vdd_gfx;
+       uint8_t                         cooling_id;
+       uint32_t                        pp_table_id;
 };
 
 struct smu_table_context
 {
        void                            *power_play_table;
        uint32_t                        power_play_table_size;
+
+       struct smu_bios_boot_up_values  boot_values;
        struct smu_table                *tables;
        uint32_t                        table_count;
 };