All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/amd/display: setup system context for APUs
@ 2020-12-07 20:03 Roman.Li
  2020-12-07 20:03 ` [PATCH 2/2] drm/amd/display: add S/G support for Vangogh Roman.Li
  0 siblings, 1 reply; 3+ messages in thread
From: Roman.Li @ 2020-12-07 20:03 UTC (permalink / raw)
  To: amd-gfx, Alexander.Deucher, Charlene.Liu, Yifan1.Zhang; +Cc: Roman Li

From: Roman Li <roman.li@amd.com>

[Why]
Scatter/gather is APU feature.
But in dm it is limited only to Renoir.
Now we need it for Vangogh.

[How]
Apply system context setup in dm_init to all APUs.

Signed-off-by: Roman Li <roman.li@amd.com>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 a37948f2e596..fb2b23b696c2 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -1093,7 +1093,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
 	dc_hardware_init(adev->dm.dc);
 
 #if defined(CONFIG_DRM_AMD_DC_DCN)
-	if (adev->asic_type == CHIP_RENOIR) {
+	if (adev->apu_flags) {
 		struct dc_phy_addr_space_config pa_config;
 
 		mmhub_read_system_context(adev, &pa_config);
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] drm/amd/display: add S/G support for Vangogh
  2020-12-07 20:03 [PATCH 1/2] drm/amd/display: setup system context for APUs Roman.Li
@ 2020-12-07 20:03 ` Roman.Li
  2020-12-07 20:21   ` Kazlauskas, Nicholas
  0 siblings, 1 reply; 3+ messages in thread
From: Roman.Li @ 2020-12-07 20:03 UTC (permalink / raw)
  To: amd-gfx, Alexander.Deucher, Charlene.Liu, Yifan1.Zhang; +Cc: Roman Li

From: Roman Li <roman.li@amd.com>

[Why]
Scatter/gather feature is supported on Vangogh.

[How]
Add GTT domain support for Vangogh to enable
display buffers in system memory.

Signed-off-by: Roman Li <roman.li@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
index 63401bc8f37b..a638709e9c92 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
@@ -526,6 +526,7 @@ uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev,
 				domain |= AMDGPU_GEM_DOMAIN_GTT;
 			break;
 		case CHIP_RENOIR:
+		case CHIP_VANGOGH:
 			domain |= AMDGPU_GEM_DOMAIN_GTT;
 			break;
 
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/2] drm/amd/display: add S/G support for Vangogh
  2020-12-07 20:03 ` [PATCH 2/2] drm/amd/display: add S/G support for Vangogh Roman.Li
@ 2020-12-07 20:21   ` Kazlauskas, Nicholas
  0 siblings, 0 replies; 3+ messages in thread
From: Kazlauskas, Nicholas @ 2020-12-07 20:21 UTC (permalink / raw)
  To: Roman.Li, amd-gfx, Alexander.Deucher, Charlene.Liu, Yifan1.Zhang

On 2020-12-07 3:03 p.m., Roman.Li@amd.com wrote:
> From: Roman Li <roman.li@amd.com>
> 
> [Why]
> Scatter/gather feature is supported on Vangogh.
> 
> [How]
> Add GTT domain support for Vangogh to enable
> display buffers in system memory.
> 
> Signed-off-by: Roman Li <roman.li@amd.com>

Series is:

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>

Regards,
Nicholas Kazlauskas

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
> index 63401bc8f37b..a638709e9c92 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
> @@ -526,6 +526,7 @@ uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev,
>   				domain |= AMDGPU_GEM_DOMAIN_GTT;
>   			break;
>   		case CHIP_RENOIR:
> +		case CHIP_VANGOGH:
>   			domain |= AMDGPU_GEM_DOMAIN_GTT;
>   			break;
>   
> 

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-07 20:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-07 20:03 [PATCH 1/2] drm/amd/display: setup system context for APUs Roman.Li
2020-12-07 20:03 ` [PATCH 2/2] drm/amd/display: add S/G support for Vangogh Roman.Li
2020-12-07 20:21   ` Kazlauskas, Nicholas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.