Skip to contentSkip to conversation

drm/amdkfd: Fix isa version for the GC 10.3.7

PATCH In review Prike Liang 2 participants 5 messages Aug 24, 2022 – Aug 25, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdkfd: Fix isa version for the GC 10.3.7

Correct the isa version for handling KFD test.

Fixes 7c4f4f197e0c ("drm/amdkfd: Add GC 10.3.6 and 10.3.7 KFD definitions")
---
 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1 -1
index fdad1415f8bd..5ebbeac61379 100644
@@ -388,7 +388,7 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf)
 				f2g = &gfx_v10_3_kfd2kgd;
 			break;
 		case IP_VERSION(10, 3, 7):
-			gfx_target_version = 100307;
+			gfx_target_version = 100306;
 			if (!vf)
 				f2g = &gfx_v10_3_kfd2kgd;
 			break;
Signature · 1 line
2.25.1
#1 lore raw

[Public]

Add more for the review and awareness.

Regards,
--Prike

-----Original Message-----
From: Prike Liang <[email protected]>
Sent: Wednesday, August 24, 2022 2:41 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Zhang, Yifan <[email protected]>; Liang, Prike <[email protected]>
Subject: [PATCH] drm/amdkfd: Fix isa version for the GC 10.3.7

Correct the isa version for handling KFD test.

Fixes 7c4f4f197e0c ("drm/amdkfd: Add GC 10.3.6 and 10.3.7 KFD definitions")
---
 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1 -1
index fdad1415f8bd..5ebbeac61379 100644
@@ -388,7 +388,7 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf)
                                f2g = &gfx_v10_3_kfd2kgd;
                        break;
                case IP_VERSION(10, 3, 7):
-                       gfx_target_version = 100307;
+                       gfx_target_version = 100306;
                        if (!vf)
                                f2g = &gfx_v10_3_kfd2kgd;
                        break;

--
2.25.1

Reviewed-by
#2 lore raw

[Public]

Quoted 52 lines

-----Original Message-----
From: Liang, Prike <[email protected]>
Sent: Wednesday, August 24, 2022 8:40 PM
To: Liang, Prike <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Zhang, Yifan <[email protected]>; Liu, Aaron <[email protected]>; Limonciello, Mario <[email protected]>
Subject: RE: [PATCH] drm/amdkfd: Fix isa version for the GC 10.3.7

[Public]

Add more for the review and awareness.

Regards,
--Prike

-----Original Message-----
From: Prike Liang <[email protected]>
Sent: Wednesday, August 24, 2022 2:41 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Zhang, Yifan <[email protected]>; Liang, Prike <[email protected]>
Subject: [PATCH] drm/amdkfd: Fix isa version for the GC 10.3.7

Correct the isa version for handling KFD test.

Fixes 7c4f4f197e0c ("drm/amdkfd: Add GC 10.3.6 and 10.3.7 KFD

definitions")

---
 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1 -1
index fdad1415f8bd..5ebbeac61379 100644
@@ -388,7 +388,7 @@ struct kfd_dev *kgd2kfd_probe(struct
 amdgpu_device *adev, bool vf)
                                f2g = &gfx_v10_3_kfd2kgd;
                        break;
                case IP_VERSION(10, 3, 7):
-                       gfx_target_version = 100307;
+                       gfx_target_version = 100306;
                        if (!vf)
                                f2g = &gfx_v10_3_kfd2kgd;
                        break;

--
2.25.1

#3 lore raw

[Public]

Because GC_IP_VERSION 10.3.6&10.3.7 all use 1036 ISA version, one nit-pick as below. It looks better.

		case IP_VERSION(10, 3, 6):
		case IP_VERSION(10, 3, 7):
			gfx_target_version = 100306;
			if (!vf)
				f2g = &gfx_v10_3_kfd2kgd;
			break;
Quoted 68 lines

-----Original Message-----
From: Liu, Aaron
Sent: Thursday, August 25, 2022 8:15 AM
To: Liang, Prike <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Zhang, Yifan <[email protected]>; Limonciello, Mario <[email protected]>
Subject: RE: [PATCH] drm/amdkfd: Fix isa version for the GC 10.3.7

[Public]

Quoted 6 lines

-----Original Message-----
From: Liang, Prike <[email protected]>
Sent: Wednesday, August 24, 2022 8:40 PM
To: Liang, Prike <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Zhang, Yifan <[email protected]>; Liu,

Aaron

Quoted 10 lines

<[email protected]>; Limonciello, Mario <[email protected]>
Subject: RE: [PATCH] drm/amdkfd: Fix isa version for the GC 10.3.7

[Public]

Add more for the review and awareness.

Regards,
--Prike

Quoted 6 lines

-----Original Message-----
From: Prike Liang <[email protected]>
Sent: Wednesday, August 24, 2022 2:41 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Zhang, Yifan <[email protected]>; Liang,

Prike

drivers/gpu/drm/amd/amdkfd/kfd_device.c struct kfd_dev *kgd2kfd_probe(struct

Quoted 18 lines

<[email protected]>
Subject: [PATCH] drm/amdkfd: Fix isa version for the GC 10.3.7

Correct the isa version for handling KFD test.

Fixes 7c4f4f197e0c ("drm/amdkfd: Add GC 10.3.6 and 10.3.7 KFD

definitions")

---
 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +0 -0
index fdad1415f8bd..5ebbeac61379 100644
@@ -388,7 +388,7 @@ struct kfd_dev *kgd2kfd_probe(struct

amdgpu_device

Quoted 12 lines
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1 -1
 *adev, bool vf)
                                f2g = &gfx_v10_3_kfd2kgd;
                        break;
                case IP_VERSION(10, 3, 7):
-                       gfx_target_version = 100307;
+                       gfx_target_version = 100306;
                        if (!vf)
                                f2g = &gfx_v10_3_kfd2kgd;
                        break;

--
2.25.1

#4 lore raw

Thanks, it makes sense and will refine the code before push.

Regards,
--Prike

-----Original Message-----
From: Liu, Aaron <[email protected]>
Sent: Thursday, August 25, 2022 8:28 AM
To: Liang, Prike <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Zhang, Yifan <[email protected]>; Limonciello, Mario <[email protected]>
Subject: RE: [PATCH] drm/amdkfd: Fix isa version for the GC 10.3.7

[Public]

Because GC_IP_VERSION 10.3.6&10.3.7 all use 1036 ISA version, one nit-pick as below. It looks better.

		case IP_VERSION(10, 3, 6):
		case IP_VERSION(10, 3, 7):
			gfx_target_version = 100306;
			if (!vf)
				f2g = &gfx_v10_3_kfd2kgd;
			break;
Quoted 69 lines

-----Original Message-----
From: Liu, Aaron
Sent: Thursday, August 25, 2022 8:15 AM
To: Liang, Prike <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Zhang, Yifan <[email protected]>; Limonciello, Mario <[email protected]>
Subject: RE: [PATCH] drm/amdkfd: Fix isa version for the GC 10.3.7

[Public]

Quoted 7 lines

-----Original Message-----
From: Liang, Prike <[email protected]>
Sent: Wednesday, August 24, 2022 8:40 PM
To: Liang, Prike <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Zhang, Yifan <[email protected]>; Liu,

Aaron

Quoted 10 lines

<[email protected]>; Limonciello, Mario <[email protected]>
Subject: RE: [PATCH] drm/amdkfd: Fix isa version for the GC 10.3.7

[Public]

Add more for the review and awareness.

Regards,
--Prike

Quoted 6 lines

-----Original Message-----
From: Prike Liang <[email protected]>
Sent: Wednesday, August 24, 2022 2:41 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Zhang, Yifan <[email protected]>; Liang,

Prike

drivers/gpu/drm/amd/amdkfd/kfd_device.c struct kfd_dev *kgd2kfd_probe(struct

Quoted 18 lines

<[email protected]>
Subject: [PATCH] drm/amdkfd: Fix isa version for the GC 10.3.7

Correct the isa version for handling KFD test.

Fixes 7c4f4f197e0c ("drm/amdkfd: Add GC 10.3.6 and 10.3.7 KFD

definitions")

---
 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +0 -0
index fdad1415f8bd..5ebbeac61379 100644
@@ -388,7 +388,7 @@ struct kfd_dev *kgd2kfd_probe(struct

amdgpu_device

Quoted 12 lines
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1 -1
 *adev, bool vf)
                                f2g = &gfx_v10_3_kfd2kgd;
                        break;
                case IP_VERSION(10, 3, 7):
-                       gfx_target_version = 100307;
+                       gfx_target_version = 100306;
                        if (!vf)
                                f2g = &gfx_v10_3_kfd2kgd;
                        break;

--
2.25.1