[Bug 185681] amdgpu: powerplay initialization failed

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Fri Nov 4 15:04:11 UTC 2016


https://bugzilla.kernel.org/show_bug.cgi?id=185681

--- Comment #7 from René Linder <rene.linder at lihaso.ch> ---
https://cgit.freedesktop.org/~agd5f/linux/commit/drivers/gpu/drm/amd/powerplay?h=drm-fixes-4.9&id=025f8bfb84cbcaa78df31ab00d7e3c5f979e9e27

there is the iceland_get_evv_voltage who works ... and the new
smu7_get_evv_voltage uses generally the pptable in the beginning and thats
wrong.

There is a if for the V0 path but to late and wrong:


This must be switched bevore hwmgr->pptable (table_info) is requested.         
  if ((hwmgr->pp_table_version == PP_TABLE_V0)
                || !phm_get_sclk_for_voltage_evv(hwmgr,
Wrong part 2 should be hwmgr and not table_info:                   
table_info->vddc_lookup_table, vv_id, &sclk)) {
                if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
                        PHM_PlatformCaps_ClockStretcher)) {
                    for (j = 1; j < sclk_table->count; j++) {
                        if (sclk_table->entries[j].clk == sclk &&
                                sclk_table->entries[j].cks_enable == 0) {
                            sclk += 5000;
                            break;
                        }
                    }
                }

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the dri-devel mailing list