Skip to content

Commit c052159

Browse files
committed
Merge tag 'amd-drm-fixes-6.0-2022-09-07' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
amd-drm-fixes-6.0-2022-09-07: amdgpu: - Firmware header fix - SMU 13.x fix - Debugfs memory leak fix - NBIO 7.7 fix - Firmware memory leak fix amdkfd: - Debug output fix Signed-off-by: Dave Airlie <[email protected]> From: Alex Deucher <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents 7e18e42 + aac4cec commit c052159

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@ int amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu(
17281728
add_kgd_mem_to_kfd_bo_list(*mem, avm->process_info, user_addr);
17291729

17301730
if (user_addr) {
1731-
pr_debug("creating userptr BO for user_addr = %llu\n", user_addr);
1731+
pr_debug("creating userptr BO for user_addr = %llx\n", user_addr);
17321732
ret = init_user_pages(*mem, user_addr, criu_resume);
17331733
if (ret)
17341734
goto allocate_init_user_pages_failed;

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,14 @@ static int psp_sw_fini(void *handle)
486486
release_firmware(psp->ta_fw);
487487
psp->ta_fw = NULL;
488488
}
489-
if (adev->psp.cap_fw) {
489+
if (psp->cap_fw) {
490490
release_firmware(psp->cap_fw);
491491
psp->cap_fw = NULL;
492492
}
493-
493+
if (psp->toc_fw) {
494+
release_firmware(psp->toc_fw);
495+
psp->toc_fw = NULL;
496+
}
494497
if (adev->ip_versions[MP0_HWIP][0] == IP_VERSION(11, 0, 0) ||
495498
adev->ip_versions[MP0_HWIP][0] == IP_VERSION(11, 0, 7))
496499
psp_sysfs_fini(adev);

drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ union amdgpu_firmware_header {
390390
struct rlc_firmware_header_v2_1 rlc_v2_1;
391391
struct rlc_firmware_header_v2_2 rlc_v2_2;
392392
struct rlc_firmware_header_v2_3 rlc_v2_3;
393+
struct rlc_firmware_header_v2_4 rlc_v2_4;
393394
struct sdma_firmware_header_v1_0 sdma;
394395
struct sdma_firmware_header_v1_1 sdma_v1_1;
395396
struct sdma_firmware_header_v2_0 sdma_v2_0;

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ static void nbio_v7_7_sdma_doorbell_range(struct amdgpu_device *adev, int instan
6868
doorbell_range = REG_SET_FIELD(doorbell_range,
6969
GDC0_BIF_CSDMA_DOORBELL_RANGE,
7070
SIZE, doorbell_size);
71-
doorbell_range = REG_SET_FIELD(doorbell_range,
72-
GDC0_BIF_SDMA0_DOORBELL_RANGE,
73-
OFFSET, doorbell_index);
74-
doorbell_range = REG_SET_FIELD(doorbell_range,
75-
GDC0_BIF_SDMA0_DOORBELL_RANGE,
76-
SIZE, doorbell_size);
7771
} else {
7872
doorbell_range = REG_SET_FIELD(doorbell_range,
7973
GDC0_BIF_SDMA0_DOORBELL_RANGE,

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3288,6 +3288,7 @@ void crtc_debugfs_init(struct drm_crtc *crtc)
32883288
&crc_win_y_end_fops);
32893289
debugfs_create_file_unsafe("crc_win_update", 0644, dir, crtc,
32903290
&crc_win_update_fops);
3291+
dput(dir);
32913292
#endif
32923293
debugfs_create_file("amdgpu_current_bpc", 0644, crtc->debugfs_entry,
32933294
crtc, &amdgpu_current_bpc_fops);

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ static struct cmn2asic_msg_mapping smu_v13_0_7_message_map[SMU_MSG_MAX_COUNT] =
120120
MSG_MAP(DisallowGfxOff, PPSMC_MSG_DisallowGfxOff, 0),
121121
MSG_MAP(Mode1Reset, PPSMC_MSG_Mode1Reset, 0),
122122
MSG_MAP(PrepareMp1ForUnload, PPSMC_MSG_PrepareMp1ForUnload, 0),
123+
MSG_MAP(SetMGpuFanBoostLimitRpm, PPSMC_MSG_SetMGpuFanBoostLimitRpm, 0),
123124
};
124125

125126
static struct cmn2asic_mapping smu_v13_0_7_clk_map[SMU_CLK_COUNT] = {

0 commit comments

Comments
 (0)