[37/37] drm/amdgpu: enable VCN DPG for Renoir

Submitted by Alex Deucher on Aug. 21, 2019, 10:23 p.m.

Details

Message ID 20190821222359.13578-38-alexander.deucher@amd.com
State New
Headers show
Series "Enable power features for Renoir" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Alex Deucher Aug. 21, 2019, 10:23 p.m.
From: Thong Thai <thong.thai@amd.com>

This will enable indirect SRAM loading for VCN DPG mode initialization.

Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/soc15.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
index 5c211fa03328..fe2212df12a3 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
@@ -1173,7 +1173,9 @@  static int soc15_common_early_init(void *handle)
 				 AMD_CG_SUPPORT_ATHUB_LS |
 				 AMD_CG_SUPPORT_ATHUB_MGCG |
 				 AMD_CG_SUPPORT_DF_MGCG;
-		adev->pg_flags = AMD_PG_SUPPORT_SDMA;
+		adev->pg_flags = AMD_PG_SUPPORT_SDMA |
+				 AMD_PG_SUPPORT_VCN |
+				 AMD_PG_SUPPORT_VCN_DPG;
 		adev->external_rev_id = adev->rev_id + 0x91;
 
 		if (adev->pm.pp_feature & PP_GFXOFF_MASK)

Comments

Reviewed-by: Prike Liang <Prike.Liang@amd.com>


Thanks,
Prike
> -----Original Message-----

> From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of Alex

> Deucher

> Sent: Thursday, August 22, 2019 6:24 AM

> To: amd-gfx@lists.freedesktop.org

> Cc: Deucher, Alexander <Alexander.Deucher@amd.com>; Liu, Leo

> <Leo.Liu@amd.com>; Thai, Thong <Thong.Thai@amd.com>

> Subject: [PATCH 37/37] drm/amdgpu: enable VCN DPG for Renoir

> 

> From: Thong Thai <thong.thai@amd.com>

> 

> This will enable indirect SRAM loading for VCN DPG mode initialization.

> 

> Signed-off-by: Thong Thai <thong.thai@amd.com>

> Reviewed-by: Leo Liu <leo.liu@amd.com>

> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

> ---

>  drivers/gpu/drm/amd/amdgpu/soc15.c | 4 +++-

>  1 file changed, 3 insertions(+), 1 deletion(-)

> 

> diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c

> b/drivers/gpu/drm/amd/amdgpu/soc15.c

> index 5c211fa03328..fe2212df12a3 100644

> --- a/drivers/gpu/drm/amd/amdgpu/soc15.c

> +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c

> @@ -1173,7 +1173,9 @@ static int soc15_common_early_init(void *handle)

>  				 AMD_CG_SUPPORT_ATHUB_LS |

>  				 AMD_CG_SUPPORT_ATHUB_MGCG |

>  				 AMD_CG_SUPPORT_DF_MGCG;

> -		adev->pg_flags = AMD_PG_SUPPORT_SDMA;

> +		adev->pg_flags = AMD_PG_SUPPORT_SDMA |

> +				 AMD_PG_SUPPORT_VCN |

> +				 AMD_PG_SUPPORT_VCN_DPG;

>  		adev->external_rev_id = adev->rev_id + 0x91;

> 

>  		if (adev->pm.pp_feature & PP_GFXOFF_MASK)

> --

> 2.20.1

> 

> _______________________________________________

> amd-gfx mailing list

> amd-gfx@lists.freedesktop.org

> https://lists.freedesktop.org/mailman/listinfo/amd-gfx