drm/amdgpu: enable display for cyan skillfish
Subsystems (2)
PATCH 1/1 drm/amdgpu: enable display for cyan skillfish
Display support for cyan skillfish is ready now. Enable it!
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -2
@@ -736,6 +736,7 @@ static int amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (1 ,0 ,1 ):case IP_VERSION (2 ,0 ,2 ):case IP_VERSION (2 ,0 ,0 ): +case IP_VERSION (2 ,0 ,3 ):case IP_VERSION (2 ,1 ,0 ):case IP_VERSION (3 ,0 ,0 ):case IP_VERSION (3 ,0 ,2 ):
@@ -745,8 +746,6 @@ static int amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (3 ,1 ,3 ):amdgpu_device_ip_block_add (adev, &dm_ip_block);break ; -case IP_VERSION (2 ,0 ,3 ): -break ;default :return -EINVAL ; }
Signature · 1 line
2.25.1
[AMD Official Use Only]
+ Charlene.
-----Original Message-----
From: Yu, Lang <[email protected]>
Sent: Tuesday, October 12, 2021 2:16 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Yu, Lang <[email protected]>
Subject: [PATCH] drm/amdgpu: enable display for cyan skillfish
Display support for cyan skillfish is ready now. Enable it!
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -2
@@ -736,6 +736,7 @@ static int amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (1 ,0 ,1 ):case IP_VERSION (2 ,0 ,2 ):case IP_VERSION (2 ,0 ,0 ): +case IP_VERSION (2 ,0 ,3 ):case IP_VERSION (2 ,1 ,0 ):case IP_VERSION (3 ,0 ,0 ):case IP_VERSION (3 ,0 ,2 ):
@@ -745,8 +746,6 @@ static int amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (3 ,1 ,3 ):amdgpu_device_ip_block_add (adev, &dm_ip_block);break ; -case IP_VERSION (2 ,0 ,3 ): -break ;default :return -EINVAL ; }
Signature · 1 line
2.25.1
Dear Lang,
Am 12.10.21 um 08:16 schrieb Lang Yu:
Quoted 1 line
Display support for cyan skillfish is ready now.
What is the last commit making it “ready”?
Quoted 1 line
Enable it!
How did you test the patch?
Quoted 10 lines
Signed-off-by Lang Yu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c static int amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev) · line 739
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1
-0@@ -736,6 +736,7 @@ static int amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (1 ,0 ,1 ):case IP_VERSION (2 ,0 ,2 ):case IP_VERSION (2 ,0 ,0 ): +case IP_VERSION (2 ,0 ,3 ):
The numbers are not ordered. Could you please put a patch before this one, fixing the ordering?
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c static int amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev) · line 751
Quoted 13 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +0
-2case IP_VERSION (2 ,1 ,0 ):case IP_VERSION (3 ,0 ,0 ):case IP_VERSION (3 ,0 ,2 ):@@ -745,8 +746,6 @@ static int amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (3 ,1 ,3 ):amdgpu_device_ip_block_add (adev, &dm_ip_block);break ; -case IP_VERSION (2 ,0 ,3 ): -break ;default :return -EINVAL ; }
Kind regards,
Paul
[Public]
Quoted 8 lines
-----Original Message-----
From: Paul Menzel <[email protected]>
Sent: Tuesday, October 12, 2021 4:51 PM
To: Yu, Lang <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/amdgpu: enable display for cyan skillfish
Quoted 7 lines
Dear Lang,
Am 12.10.21 um 08:16 schrieb Lang Yu:
Quoted 1 line
Display support for cyan skillfish is ready now.
What is the last commit making it “ready”?
This one,
commit 4ac93fa0ec12a887b40b81d9b8b7fcd1033f48d5 drm/amd/display: add cyan_skillfish display support
Actually, it is fine before switching to amdgpu_discovery_set_ip_blocks. During developing amdgpu_discovery_set_ip_blocks, it is not ready. So skip to enable it.
Quoted 3 lines
Quoted 1 line
Enable it!
How did you test the patch?
I compiled amdgpu driver with this patch and loaded it on ubuntu 20.04. The display worked well. Otherwise the display won't work.
Regards,
Lang
Quoted 39 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c static int
Quoted 11 lines
Signed-off-by Lang Yu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +0
-0@@ -736,6 +736,7 @@ static int
amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev)drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c static int amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev) · line 739
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1
-0case IP_VERSION (1 ,0 ,1 ):case IP_VERSION (2 ,0 ,2 ):case IP_VERSION (2 ,0 ,0 ): +case IP_VERSION (2 ,0 ,3 ):The numbers are not ordered. Could you please put a patch before this one, fixing the ordering?
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c static int
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +0
-0case IP_VERSION (2 ,1 ,0 ):case IP_VERSION (3 ,0 ,0 ):case IP_VERSION (3 ,0 ,2 ):@@ -745,8 +746,6 @@ static int
amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev)drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c static int amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev) · line 751
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +0
-2case IP_VERSION (3 ,1 ,3 ):amdgpu_device_ip_block_add (adev, &dm_ip_block);break ; -case IP_VERSION (2 ,0 ,3 ): -break ;default :return -EINVAL ; }Kind regards,
Paul
Quoted 4 lines · Lang Yu
Display support for cyan skillfish is ready now. Enable it!
Signed-off-by Lang Yu <[email protected]>
Whoops. this is my mistake. I lost the display enablement when the IP discovery patches and the cyan skillfish display patches crossed.
Quoted 28 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1
-3@@ -736,6 +736,7 @@ static int amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (1 ,0 ,1 ):case IP_VERSION (2 ,0 ,2 ):case IP_VERSION (2 ,0 ,0 ): +case IP_VERSION (2 ,0 ,3 ):case IP_VERSION (2 ,1 ,0 ):case IP_VERSION (3 ,0 ,0 ):case IP_VERSION (3 ,0 ,2 ):@@ -745,8 +746,6 @@ static int amdgpu_discovery_set_display_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (3 ,1 ,3 ):amdgpu_device_ip_block_add (adev, &dm_ip_block);break ; -case IP_VERSION (2 ,0 ,3 ): -break ;default :return -EINVAL ; } --2.25.1