Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'amd-drm-fixes-5.8-2020-07-01' of git://people.freedesktop.org/~agd5f/linux into drm-fixes

amd-drm-fixes-5.8-2020-07-01:

amdgpu:
- Fix for vega20 boards without RAS support
- DC bandwidth revalidation fix
- Fix Renoir vram info fetching
- Fix hwmon freq printing

Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Alex Deucher <alexdeucher@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200701194415.4065-1-alexander.deucher@amd.com

+16 -10
+1
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
··· 204 204 (mode_info->atom_context->bios + data_offset); 205 205 switch (crev) { 206 206 case 11: 207 + case 12: 207 208 mem_channel_number = igp_info->v11.umachannelnumber; 208 209 /* channel width is 64 */ 209 210 if (vram_width)
+2 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
··· 2784 2784 if (r) 2785 2785 return r; 2786 2786 2787 - return snprintf(buf, PAGE_SIZE, "%d\n", sclk * 10 * 1000); 2787 + return snprintf(buf, PAGE_SIZE, "%u\n", sclk * 10 * 1000); 2788 2788 } 2789 2789 2790 2790 static ssize_t amdgpu_hwmon_show_sclk_label(struct device *dev, ··· 2819 2819 if (r) 2820 2820 return r; 2821 2821 2822 - return snprintf(buf, PAGE_SIZE, "%d\n", mclk * 10 * 1000); 2822 + return snprintf(buf, PAGE_SIZE, "%u\n", mclk * 10 * 1000); 2823 2823 } 2824 2824 2825 2825 static ssize_t amdgpu_hwmon_show_mclk_label(struct device *dev,
+6 -4
drivers/gpu/drm/amd/display/dc/core/dc.c
··· 2538 2538 2539 2539 copy_stream_update_to_stream(dc, context, stream, stream_update); 2540 2540 2541 - if (!dc->res_pool->funcs->validate_bandwidth(dc, context, false)) { 2542 - DC_ERROR("Mode validation failed for stream update!\n"); 2543 - dc_release_state(context); 2544 - return; 2541 + if (update_type > UPDATE_TYPE_FAST) { 2542 + if (!dc->res_pool->funcs->validate_bandwidth(dc, context, false)) { 2543 + DC_ERROR("Mode validation failed for stream update!\n"); 2544 + dc_release_state(context); 2545 + return; 2546 + } 2545 2547 } 2546 2548 2547 2549 commit_planes_for_stream(
+7 -4
drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c
··· 522 522 priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].version = 0x01; 523 523 priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].size = sizeof(DpmActivityMonitorCoeffInt_t); 524 524 525 - ret = smu_v11_0_i2c_eeprom_control_init(&adev->pm.smu_i2c); 526 - if (ret) 527 - goto err4; 525 + if (adev->psp.ras.ras) { 526 + ret = smu_v11_0_i2c_eeprom_control_init(&adev->pm.smu_i2c); 527 + if (ret) 528 + goto err4; 529 + } 528 530 529 531 return 0; 530 532 ··· 562 560 (struct vega20_smumgr *)(hwmgr->smu_backend); 563 561 struct amdgpu_device *adev = hwmgr->adev; 564 562 565 - smu_v11_0_i2c_eeprom_control_fini(&adev->pm.smu_i2c); 563 + if (adev->psp.ras.ras) 564 + smu_v11_0_i2c_eeprom_control_fini(&adev->pm.smu_i2c); 566 565 567 566 if (priv) { 568 567 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PPTABLE].handle,