Skip to contentSkip to conversation

drm/amdgpu: enable display for cyan skillfish

PATCH In review Lang Yu 4 participants 5 messages Oct 12, 2021

Subsystems (2)
lore
Share & tools
lore

Lang Yu

author
#0 lore raw

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
index 2bebd2ce6474..4228c7964175 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw

[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
index 2bebd2ce6474..4228c7964175 100644
@@ -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
#2 lore raw
In reply to Lang Yu

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
---
  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
index 2bebd2ce6474..4228c7964175 100644

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 -2
  		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;
  		}

Kind regards,

Paul

author
#3 lore raw

[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
---
  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
index 2bebd2ce6474..4228c7964175 100644
@@ -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 -0
  		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

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +0 -0
  		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)

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 -2
  		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

Reviewed-by on v1 1/1
#4 lore raw
In reply to Lang Yu
Quoted 4 lines · Lang Yu

Display support for cyan skillfish is ready now. Enable it!

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
index 2bebd2ce6474..4228c7964175 100644
@@ -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