Skip to contentSkip to conversation

drm/amdgpu/sriov/vcn: skip ip revision check case to ip init for SIENNA_CICHLID

PATCH In review Jane Jian 4 participants 5 messages Nov 24, 2021 – Nov 29, 2021

Subsystems (2)
lore
Share & tools
lore

Jane Jian

author
#0 lore raw

PATCH 1/1 drm/amdgpu/sriov/vcn: skip ip revision check case to ip init for SIENNA_CICHLID

[WHY]
for sriov odd# vf will modify vcn0 engine ip revision(due to multimedia bandwidth feature), which will be mismatched with original vcn0 revision

[HOW]
add new version check for vcn0 disabled revision(3, 0, 192), typically modified under sriov mode

Change-Id I1ace32acbf3a13c0baac958508da1324ec387a58
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c       | 1 +
 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
index 503995c7ff6c..3f9b7b0bab3c 100644
@@ -923,6 +923,7 @@ static int amdgpu_discovery_set_mm_ip_blocks(struct amdgpu_device *adev)
 				amdgpu_device_ip_block_add(adev, &jpeg_v3_0_ip_block);
 			break;
 		case IP_VERSION(3, 0, 33):
+		case IP_VERSION(3, 0, 192):
 			amdgpu_device_ip_block_add(adev, &vcn_v3_0_ip_block);
 			break;
 		default:
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +1 -0
index 4f7c70845785..585961c2f5f2 100644
@@ -135,6 +135,7 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev)
 		break;
 	case IP_VERSION(3, 0, 0):
 	case IP_VERSION(3, 0, 64):
+	case IP_VERSION(3, 0, 192):
 		if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(10, 3, 0))
 			fw_name = FIRMWARE_SIENNA_CICHLID;
 		else
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Jane Jian

[WHY]
for sriov odd# vf will modify vcn0 engine ip revision(due to multimedia bandwidth feature), which will be mismatched with original vcn0 revision

[HOW]
add new version check for vcn0 disabled revision(3, 0, 192), typically modified under sriov mode

Quoted 33 lines

Change-Id: I1ace32acbf3a13c0baac958508da1324ec387a58

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c       | 1 +
 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
index 503995c7ff6c..3f9b7b0bab3c 100644
@@ -923,6 +923,7 @@ static int amdgpu_discovery_set_mm_ip_blocks(struct amdgpu_device *adev)
                                amdgpu_device_ip_block_add(adev, &jpeg_v3_0_ip_block);
                        break;
                case IP_VERSION(3, 0, 33):
+               case IP_VERSION(3, 0, 192):
                        amdgpu_device_ip_block_add(adev, &vcn_v3_0_ip_block);
                        break;
                default:
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +1 -1
index 4f7c70845785..585961c2f5f2 100644
@@ -135,6 +135,7 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev)
                break;
        case IP_VERSION(3, 0, 0):
        case IP_VERSION(3, 0, 64):
+       case IP_VERSION(3, 0, 192):
                if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(10, 3, 0))
                        fw_name = FIRMWARE_SIENNA_CICHLID;
                else
--

2.17.1

Reviewed-by Alex Deucher
#2 lore raw

[Public]

It's better to move 'case IP_VERSION(3, 0, 192)' after IP_VERSION(3, 0, 192)?

case IP_VERSION(3, 1, 1):
case IP_VERSION(3, 0, 2):
+ case IP_VERSION(3, 0, 192):

	amdgpu_device_ip_block_add(adev, &vcn_v3_0_ip_block);
	if (!amdgpu_sriov_vf(adev))
		amdgpu_device_ip_block_add(adev, &jpeg_v3_0_ip_block);
	break;

Regards,
Guchun

-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Wednesday, November 24, 2021 10:23 PM
To: Jian, Jane <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Chen, Guchun <[email protected]>; Chen, JingWen <[email protected]>; amd-gfx list <[email protected]>
Subject: Re: [PATCH] drm/amdgpu/sriov/vcn: skip ip revision check case to ip init for SIENNA_CICHLID

Quoted 11 lines · Jane Jian

[WHY]
for sriov odd# vf will modify vcn0 engine ip revision(due to multimedia bandwidth feature), which will be mismatched with original vcn0 revision

[HOW]
add new version check for vcn0 disabled revision(3, 0, 192), typically modified under sriov mode

Quoted 35 lines

Change-Id: I1ace32acbf3a13c0baac958508da1324ec387a58

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c       | 1 +
 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
index 503995c7ff6c..3f9b7b0bab3c 100644
@@ -923,6 +923,7 @@ static int amdgpu_discovery_set_mm_ip_blocks(struct amdgpu_device *adev)
                                amdgpu_device_ip_block_add(adev, &jpeg_v3_0_ip_block);
                        break;
                case IP_VERSION(3, 0, 33):
+               case IP_VERSION(3, 0, 192):
                        amdgpu_device_ip_block_add(adev, &vcn_v3_0_ip_block);
                        break;
                default:
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +1 -1
index 4f7c70845785..585961c2f5f2 100644
@@ -135,6 +135,7 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev)
                break;
        case IP_VERSION(3, 0, 0):
        case IP_VERSION(3, 0, 64):
+       case IP_VERSION(3, 0, 192):
                if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(10, 3, 0))
                        fw_name = FIRMWARE_SIENNA_CICHLID;
                else
--

2.17.1

Reviewed-by Alex Deucher
#3 lore raw

[Public]

A typo.

It's better to move 'case IP_VERSION(3, 0, 192)' after IP_VERSION(3, 0, 2)?

case IP_VERSION(3, 1, 1):
case IP_VERSION(3, 0, 2):
+ case IP_VERSION(3, 0, 192):

	amdgpu_device_ip_block_add(adev, &vcn_v3_0_ip_block);
	if (!amdgpu_sriov_vf(adev))
		amdgpu_device_ip_block_add(adev, &jpeg_v3_0_ip_block);
	break;

Regards,
Guchun

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Chen, Guchun
Sent: Thursday, November 25, 2021 10:19 AM
To: Alex Deucher <[email protected]>; Jian, Jane <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Chen, JingWen <[email protected]>; amd-gfx list <[email protected]>
Subject: RE: [PATCH] drm/amdgpu/sriov/vcn: skip ip revision check case to ip init for SIENNA_CICHLID

[Public]

It's better to move 'case IP_VERSION(3, 0, 192)' after IP_VERSION(3, 0, 192)?

case IP_VERSION(3, 1, 1):
case IP_VERSION(3, 0, 2):
+ case IP_VERSION(3, 0, 192):

	amdgpu_device_ip_block_add(adev, &vcn_v3_0_ip_block);
	if (!amdgpu_sriov_vf(adev))
		amdgpu_device_ip_block_add(adev, &jpeg_v3_0_ip_block);
	break;

Regards,
Guchun

-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Wednesday, November 24, 2021 10:23 PM
To: Jian, Jane <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Chen, Guchun <[email protected]>; Chen, JingWen <[email protected]>; amd-gfx list <[email protected]>
Subject: Re: [PATCH] drm/amdgpu/sriov/vcn: skip ip revision check case to ip init for SIENNA_CICHLID

Quoted 11 lines · Jane Jian

[WHY]
for sriov odd# vf will modify vcn0 engine ip revision(due to multimedia bandwidth feature), which will be mismatched with original vcn0 revision

[HOW]
add new version check for vcn0 disabled revision(3, 0, 192), typically modified under sriov mode

Quoted 35 lines

Change-Id: I1ace32acbf3a13c0baac958508da1324ec387a58

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c       | 1 +
 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
index 503995c7ff6c..3f9b7b0bab3c 100644
@@ -923,6 +923,7 @@ static int amdgpu_discovery_set_mm_ip_blocks(struct amdgpu_device *adev)
                                amdgpu_device_ip_block_add(adev, &jpeg_v3_0_ip_block);
                        break;
                case IP_VERSION(3, 0, 33):
+               case IP_VERSION(3, 0, 192):
                        amdgpu_device_ip_block_add(adev, &vcn_v3_0_ip_block);
                        break;
                default:
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +1 -1
index 4f7c70845785..585961c2f5f2 100644
@@ -135,6 +135,7 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev)
                break;
        case IP_VERSION(3, 0, 0):
        case IP_VERSION(3, 0, 64):
+       case IP_VERSION(3, 0, 192):
                if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(10, 3, 0))
                        fw_name = FIRMWARE_SIENNA_CICHLID;
                else
--

2.17.1

maintainer Reviewed-by
#4 lore raw

[Public]

Yes, that makes more sense.

Alex

________________________________
From: Chen, Guchun <[email protected]>
Sent: Wednesday, November 24, 2021 9:21 PM
To: Chen, Guchun <[email protected]>; Alex Deucher <[email protected]>; Jian, Jane <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Chen, JingWen <[email protected]>; amd-gfx list <[email protected]>
Subject: RE: [PATCH] drm/amdgpu/sriov/vcn: skip ip revision check case to ip init for SIENNA_CICHLID

[Public]

A typo.

It's better to move 'case IP_VERSION(3, 0, 192)' after IP_VERSION(3, 0, 2)?

case IP_VERSION(3, 1, 1):
case IP_VERSION(3, 0, 2):
+ case IP_VERSION(3, 0, 192):

        amdgpu_device_ip_block_add(adev, &vcn_v3_0_ip_block);
        if (!amdgpu_sriov_vf(adev))
                amdgpu_device_ip_block_add(adev, &jpeg_v3_0_ip_block);
        break;

Regards,
Guchun

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Chen, Guchun
Sent: Thursday, November 25, 2021 10:19 AM
To: Alex Deucher <[email protected]>; Jian, Jane <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Chen, JingWen <[email protected]>; amd-gfx list <[email protected]>
Subject: RE: [PATCH] drm/amdgpu/sriov/vcn: skip ip revision check case to ip init for SIENNA_CICHLID

[Public]

It's better to move 'case IP_VERSION(3, 0, 192)' after IP_VERSION(3, 0, 192)?

case IP_VERSION(3, 1, 1):
case IP_VERSION(3, 0, 2):
+ case IP_VERSION(3, 0, 192):

        amdgpu_device_ip_block_add(adev, &vcn_v3_0_ip_block);
        if (!amdgpu_sriov_vf(adev))
                amdgpu_device_ip_block_add(adev, &jpeg_v3_0_ip_block);
        break;

Regards,
Guchun

-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Wednesday, November 24, 2021 10:23 PM
To: Jian, Jane <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Chen, Guchun <[email protected]>; Chen, JingWen <[email protected]>; amd-gfx list <[email protected]>
Subject: Re: [PATCH] drm/amdgpu/sriov/vcn: skip ip revision check case to ip init for SIENNA_CICHLID

Quoted 11 lines · Jane Jian

[WHY]
for sriov odd# vf will modify vcn0 engine ip revision(due to multimedia bandwidth feature), which will be mismatched with original vcn0 revision

[HOW]
add new version check for vcn0 disabled revision(3, 0, 192), typically modified under sriov mode

Quoted 35 lines

Change-Id: I1ace32acbf3a13c0baac958508da1324ec387a58

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c       | 1 +
 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
index 503995c7ff6c..3f9b7b0bab3c 100644
@@ -923,6 +923,7 @@ static int amdgpu_discovery_set_mm_ip_blocks(struct amdgpu_device *adev)
                                amdgpu_device_ip_block_add(adev, &jpeg_v3_0_ip_block);
                        break;
                case IP_VERSION(3, 0, 33):
+               case IP_VERSION(3, 0, 192):
                        amdgpu_device_ip_block_add(adev, &vcn_v3_0_ip_block);
                        break;
                default:
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +1 -1
index 4f7c70845785..585961c2f5f2 100644
@@ -135,6 +135,7 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev)
                break;
        case IP_VERSION(3, 0, 0):
        case IP_VERSION(3, 0, 64):
+       case IP_VERSION(3, 0, 192):
                if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(10, 3, 0))
                        fw_name = FIRMWARE_SIENNA_CICHLID;
                else
--

2.17.1