* [PATCH 1/3] drm/amdgpu: initialize common sw config for v11_0_3
@ 2022-08-26 18:42 Alex Deucher
2022-08-26 18:42 ` [PATCH 2/3] drm/amdgpu: Enable pg/cg flags on GC11_0_3 for VCN Alex Deucher
2022-08-26 18:42 ` [PATCH 3/3] drm/amdgpu: add new ip block for SOC21 Alex Deucher
0 siblings, 2 replies; 3+ messages in thread
From: Alex Deucher @ 2022-08-26 18:42 UTC (permalink / raw)
To: amd-gfx; +Cc: Alex Deucher, Frank Min, Hawking Zhang
From: Hawking Zhang <Hawking.Zhang@amd.com>
init cp/pg_flags and extenal_rev_id
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Frank Min <Frank.Min@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/amdgpu/soc21.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c
index 55284b24f113..f87dfae4efda 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc21.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
@@ -627,6 +627,11 @@ static int soc21_common_early_init(void *handle)
AMD_PG_SUPPORT_JPEG;
adev->external_rev_id = adev->rev_id + 0x1;
break;
+ case IP_VERSION(11, 0, 3):
+ adev->cg_flags = 0;
+ adev->pg_flags = 0;
+ adev->external_rev_id = adev->rev_id + 0x20;
+ break;
default:
/* FIXME: not supported yet */
return -EINVAL;
--
2.37.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/3] drm/amdgpu: Enable pg/cg flags on GC11_0_3 for VCN
2022-08-26 18:42 [PATCH 1/3] drm/amdgpu: initialize common sw config for v11_0_3 Alex Deucher
@ 2022-08-26 18:42 ` Alex Deucher
2022-08-26 18:42 ` [PATCH 3/3] drm/amdgpu: add new ip block for SOC21 Alex Deucher
1 sibling, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2022-08-26 18:42 UTC (permalink / raw)
To: amd-gfx; +Cc: Sonny Jiang, John Clements, Alex Deucher, Leo Liu
From: Sonny Jiang <sonny.jiang@amd.com>
This enable VCN PG, CG, DPG and JPEG PG, CG
Signed-off-by: Sonny Jiang <sonny.jiang@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/amdgpu/soc21.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c
index f87dfae4efda..54bce19a52ec 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc21.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
@@ -628,8 +628,11 @@ static int soc21_common_early_init(void *handle)
adev->external_rev_id = adev->rev_id + 0x1;
break;
case IP_VERSION(11, 0, 3):
- adev->cg_flags = 0;
- adev->pg_flags = 0;
+ adev->cg_flags = AMD_CG_SUPPORT_VCN_MGCG |
+ AMD_CG_SUPPORT_JPEG_MGCG;
+ adev->pg_flags = AMD_PG_SUPPORT_VCN |
+ AMD_PG_SUPPORT_VCN_DPG |
+ AMD_PG_SUPPORT_JPEG;
adev->external_rev_id = adev->rev_id + 0x20;
break;
default:
--
2.37.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 3/3] drm/amdgpu: add new ip block for SOC21
2022-08-26 18:42 [PATCH 1/3] drm/amdgpu: initialize common sw config for v11_0_3 Alex Deucher
2022-08-26 18:42 ` [PATCH 2/3] drm/amdgpu: Enable pg/cg flags on GC11_0_3 for VCN Alex Deucher
@ 2022-08-26 18:42 ` Alex Deucher
1 sibling, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2022-08-26 18:42 UTC (permalink / raw)
To: amd-gfx; +Cc: Alex Deucher, Frank Min, Hawking Zhang
From: Hawking Zhang <Hawking.Zhang@amd.com>
Add ip block support for soc21_common.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Frank Min <Frank.Min@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
index 95d34590cad1..c2e8a9fe81f7 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
@@ -1506,6 +1506,7 @@ static int amdgpu_discovery_set_common_ip_blocks(struct amdgpu_device *adev)
case IP_VERSION(11, 0, 0):
case IP_VERSION(11, 0, 1):
case IP_VERSION(11, 0, 2):
+ case IP_VERSION(11, 0, 3):
amdgpu_device_ip_block_add(adev, &soc21_common_ip_block);
break;
default:
--
2.37.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-26 18:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-26 18:42 [PATCH 1/3] drm/amdgpu: initialize common sw config for v11_0_3 Alex Deucher
2022-08-26 18:42 ` [PATCH 2/3] drm/amdgpu: Enable pg/cg flags on GC11_0_3 for VCN Alex Deucher
2022-08-26 18:42 ` [PATCH 3/3] drm/amdgpu: add new ip block for SOC21 Alex Deucher
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.