Skip to content

Commit 80e8990

Browse files
committed
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 <[email protected]> From: Alex Deucher <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents 370678c + beaf10e commit 80e8990

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ amdgpu_atomfirmware_get_vram_info(struct amdgpu_device *adev,
204204
(mode_info->atom_context->bios + data_offset);
205205
switch (crev) {
206206
case 11:
207+
case 12:
207208
mem_channel_number = igp_info->v11.umachannelnumber;
208209
/* channel width is 64 */
209210
if (vram_width)

drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2784,7 +2784,7 @@ static ssize_t amdgpu_hwmon_show_sclk(struct device *dev,
27842784
if (r)
27852785
return r;
27862786

2787-
return snprintf(buf, PAGE_SIZE, "%d\n", sclk * 10 * 1000);
2787+
return snprintf(buf, PAGE_SIZE, "%u\n", sclk * 10 * 1000);
27882788
}
27892789

27902790
static ssize_t amdgpu_hwmon_show_sclk_label(struct device *dev,
@@ -2819,7 +2819,7 @@ static ssize_t amdgpu_hwmon_show_mclk(struct device *dev,
28192819
if (r)
28202820
return r;
28212821

2822-
return snprintf(buf, PAGE_SIZE, "%d\n", mclk * 10 * 1000);
2822+
return snprintf(buf, PAGE_SIZE, "%u\n", mclk * 10 * 1000);
28232823
}
28242824

28252825
static ssize_t amdgpu_hwmon_show_mclk_label(struct device *dev,

drivers/gpu/drm/amd/display/dc/core/dc.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2538,10 +2538,12 @@ void dc_commit_updates_for_stream(struct dc *dc,
25382538

25392539
copy_stream_update_to_stream(dc, context, stream, stream_update);
25402540

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+
}
25452547
}
25462548

25472549
commit_planes_for_stream(

drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,11 @@ static int vega20_smu_init(struct pp_hwmgr *hwmgr)
522522
priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].version = 0x01;
523523
priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].size = sizeof(DpmActivityMonitorCoeffInt_t);
524524

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+
}
528530

529531
return 0;
530532

@@ -560,7 +562,8 @@ static int vega20_smu_fini(struct pp_hwmgr *hwmgr)
560562
(struct vega20_smumgr *)(hwmgr->smu_backend);
561563
struct amdgpu_device *adev = hwmgr->adev;
562564

563-
smu_v11_0_i2c_eeprom_control_fini(&adev->pm.smu_i2c);
565+
if (adev->psp.ras.ras)
566+
smu_v11_0_i2c_eeprom_control_fini(&adev->pm.smu_i2c);
564567

565568
if (priv) {
566569
amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PPTABLE].handle,

0 commit comments

Comments
 (0)