drm/amd/display: Disable GPUVM in IP resource configuration
authorVladimir Stempen <vladimir.stempen@amd.com>
Wed, 6 Jul 2022 19:57:12 +0000 (15:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Jul 2022 13:31:02 +0000 (09:31 -0400)
[Why]
VM enabled in IP configuration causes UCLK not
reaching DPM0. The expectation for VM enable should
be that KMD will indicate to DAL when VM is enabled,
then DAL will set the bit accordingly

[How]
Set gpuvm_enable to zero in DCN3_20 and DCN3_21 resource.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Vladimir Stempen <vladimir.stempen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c
drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c

index 631876832dfa738e8c841ef9006f361aeddaa437..0cb44ea9753b6d96a004bd91ef1e9dda0663a100 100644 (file)
@@ -120,7 +120,7 @@ static const struct IP_BASE DCN_BASE = { { { { 0x00000012, 0x000000C0, 0x000034C
 #define DCN3_2_MIN_COMPBUF_SIZE_KB 128
 
 struct _vcs_dpi_ip_params_st dcn3_2_ip = {
-       .gpuvm_enable = 1,
+       .gpuvm_enable = 0,
        .gpuvm_max_page_table_levels = 4,
        .hostvm_enable = 0,
        .rob_buffer_size_kbytes = 128,
index ebbeebf972dc0f4704a27669c5e986322ffefd45..d218c6dd71aa79ebfd14479c88e635dc04767419 100644 (file)
@@ -123,7 +123,7 @@ static const struct IP_BASE DCN_BASE = { { { { 0x00000012, 0x000000C0, 0x000034C
 #define DCN3_2_DEFAULT_DET_SIZE 256
 
 struct _vcs_dpi_ip_params_st dcn3_21_ip = {
-       .gpuvm_enable = 1,
+       .gpuvm_enable = 0,
        .gpuvm_max_page_table_levels = 4,
        .hostvm_enable = 0,
        .rob_buffer_size_kbytes = 128,