From: Andrey Grodzovsky Subject: Re: [PATCH 6/8] drm/amd/display: enable GPU VM support Date: Thu, 26 Oct 2017 14:09:30 -0400 Message-ID: <590b04be-64ca-eb26-9fce-986c44297769@amd.com> References: <1509033983-2977-1-git-send-email-deathsimple@vodafone.de> <1509033983-2977-6-git-send-email-deathsimple@vodafone.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0840308919==" Return-path: In-Reply-To: <1509033983-2977-6-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org> List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "amd-gfx" To: =?UTF-8?Q?Christian_K=c3=b6nig?= , amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org This is a multi-part message in MIME format. --===============0840308919== Content-Type: multipart/alternative; boundary="------------783A85284D8EA6D748619DC3" This is a multi-part message in MIME format. --------------783A85284D8EA6D748619DC3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Reviewed-by: Andrey Grodzovsky On 2017-10-26 12:06 PM, Christian König wrote: > From: Christian König > > Just set the bit so that DC does the hardware programming. > > Signed-off-by: Christian König > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++ > 1 file changed, 2 insertions(+) > > 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 2188f20..ed4351a 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > @@ -417,6 +417,8 @@ static int amdgpu_dm_init(struct amdgpu_device *adev) > > init_data.dce_environment = DCE_ENV_PRODUCTION_DRV; > > + init_data.flags.gpu_vm_support = true; > + > if (amdgpu_dc_log) > init_data.log_mask = DC_DEFAULT_LOG_MASK; > else --------------783A85284D8EA6D748619DC3 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org>

On 2017-10-26 12:06 PM, Christian König wrote:
From: Christian König <christian.koenig-5C7GfCeVMHo@public.gmane.org>

Just set the bit so that DC does the hardware programming.

Signed-off-by: Christian König <christian.koenig-5C7GfCeVMHo@public.gmane.org>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++
 1 file changed, 2 insertions(+)

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 2188f20..ed4351a 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -417,6 +417,8 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
 
 	init_data.dce_environment = DCE_ENV_PRODUCTION_DRV;
 
+	init_data.flags.gpu_vm_support = true;
+
 	if (amdgpu_dc_log)
 		init_data.log_mask = DC_DEFAULT_LOG_MASK;
 	else

--------------783A85284D8EA6D748619DC3-- --===============0840308919== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KYW1kLWdmeCBt YWlsaW5nIGxpc3QKYW1kLWdmeEBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cHM6Ly9saXN0cy5m cmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9hbWQtZ2Z4Cg== --===============0840308919==--