Skip to content

Commit 078a3be

Browse files
committed
Merge tag 'amd-drm-fixes-5.19-2022-06-29' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
amd-drm-fixes-5.19-2022-06-29: amdgpu: - GPU recovery fix - Fix integer type usage in fourcc header for AMD modifiers - KFD TLB flush fix for gfx9 APUs - Display fix Signed-off-by: Dave Airlie <[email protected]> From: Alex Deucher <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents 8cdf1b5 + a775e4e commit 078a3be

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,8 @@ int amdgpu_amdkfd_flush_gpu_tlb_pasid(struct amdgpu_device *adev,
714714
{
715715
bool all_hub = false;
716716

717-
if (adev->family == AMDGPU_FAMILY_AI)
717+
if (adev->family == AMDGPU_FAMILY_AI ||
718+
adev->family == AMDGPU_FAMILY_RV)
718719
all_hub = true;
719720

720721
return amdgpu_gmc_flush_gpu_tlb_pasid(adev, pasid, flush_type, all_hub);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5164,7 +5164,7 @@ int amdgpu_device_gpu_recover_imp(struct amdgpu_device *adev,
51645164
*/
51655165
amdgpu_unregister_gpu_instance(tmp_adev);
51665166

5167-
drm_fb_helper_set_suspend_unlocked(adev_to_drm(adev)->fb_helper, true);
5167+
drm_fb_helper_set_suspend_unlocked(adev_to_drm(tmp_adev)->fb_helper, true);
51685168

51695169
/* disable ras on ALL IPs */
51705170
if (!need_emergency_restart &&

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ int amdgpu_irq_init(struct amdgpu_device *adev)
320320
if (!amdgpu_device_has_dc_support(adev)) {
321321
if (!adev->enable_virtual_display)
322322
/* Disable vblank IRQs aggressively for power-saving */
323+
/* XXX: can this be enabled for DC? */
323324
adev_to_drm(adev)->vblank_disable_immediate = true;
324325

325326
r = drm_vblank_init(adev_to_drm(adev), adev->mode_info.num_crtc);

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4259,9 +4259,6 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
42594259
}
42604260
}
42614261

4262-
/* Disable vblank IRQs aggressively for power-saving. */
4263-
adev_to_drm(adev)->vblank_disable_immediate = true;
4264-
42654262
/* loops over all connectors on the board */
42664263
for (i = 0; i < link_cnt; i++) {
42674264
struct dc_link *link = NULL;

include/uapi/drm/drm_fourcc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,11 +1444,11 @@ drm_fourcc_canonicalize_nvidia_format_mod(__u64 modifier)
14441444
#define AMD_FMT_MOD_PIPE_MASK 0x7
14451445

14461446
#define AMD_FMT_MOD_SET(field, value) \
1447-
((uint64_t)(value) << AMD_FMT_MOD_##field##_SHIFT)
1447+
((__u64)(value) << AMD_FMT_MOD_##field##_SHIFT)
14481448
#define AMD_FMT_MOD_GET(field, value) \
14491449
(((value) >> AMD_FMT_MOD_##field##_SHIFT) & AMD_FMT_MOD_##field##_MASK)
14501450
#define AMD_FMT_MOD_CLEAR(field) \
1451-
(~((uint64_t)AMD_FMT_MOD_##field##_MASK << AMD_FMT_MOD_##field##_SHIFT))
1451+
(~((__u64)AMD_FMT_MOD_##field##_MASK << AMD_FMT_MOD_##field##_SHIFT))
14521452

14531453
#if defined(__cplusplus)
14541454
}

0 commit comments

Comments
 (0)