Patch "drm/amd/display: Set hvm_enabled flag for S/G mode" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/amd/display: Set hvm_enabled flag for S/G mode

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-amd-display-set-hvm_enabled-flag-for-s-g-mode.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit dcd1f1716ea5a87bc8c1c3bb2284bfa95640eb4a
Author: Roman Li <roman.li@xxxxxxx>
Date:   Thu Jan 5 17:44:10 2023 -0500

    drm/amd/display: Set hvm_enabled flag for S/G mode
    
    [ Upstream commit 40e9f3f067bc6fb47b878f8ba0a9cc7b93abbf49 ]
    
    [Why]
    After enabling S/G on dcn314 a screen corruption may be observed.
    HostVM flag should be set in S/G mode to be included in DML calculations.
    
    [How]
    In S/G mode gpu_vm_support flag is set.
    Use its value to init is_hvm_enabled.
    
    Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@xxxxxxx>
    Acked-by: Alan Liu <HaoPing.Liu@xxxxxxx>
    Signed-off-by: Roman Li <roman.li@xxxxxxx>
    Tested-by: Daniel Wheeler <daniel.wheeler@xxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 25ffc51ae6fa7..050e7a52c8f62 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -1240,7 +1240,7 @@ static void mmhub_read_system_context(struct amdgpu_device *adev, struct dc_phy_
 	pa_config->gart_config.page_table_end_addr = page_table_end.quad_part << 12;
 	pa_config->gart_config.page_table_base_addr = page_table_base.quad_part;
 
-	pa_config->is_hvm_enabled = 0;
+	pa_config->is_hvm_enabled = adev->mode_info.gpu_vm_support;
 
 }
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux