Skip to contentSkip to conversation

Status of ROCm runtime upstream kernels

DISCUSSION Tom Stellard 2 participants 4 messages Sep 25, 2017 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 5ea1dae3-22f3-66dc-d853-088fc17bccfc-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org

#2 lore raw

Yes, it's only on CZ and KV for now.

You also need a custom Thunk from here because the ioctl ABI is getting changed in the upstreaming process:
https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/tree/fxkamd/drm-next-wip

KV support in the user mode package is currently lacking. I was able to hack the OpenCL driver to enable KV support with a simple patch:

commit 2761ff8bb444cf93de4d3d182b38d1da140df986

Author: Felix Kuehling <[email protected]>
Date:   Fri Sep 8 16:14:23 2017 -0400

Enable Kaveri

runtime/device/rocm/rocdevice.cpp +2 -0
index 16db78a..edd3cbd 100644
@@ -76,6 +76,8 @@ static HsaDeviceId getHsaDeviceId(hsa_agent_t device, uint32_t& pci_id) {
   }
 
   switch (gfxipVersion) {
+    case 700:
+      return HSA_SPECTRE_ID;
     case 701:
       return HSA_HAWAII_ID;
     case 801:

Regards,
  Felix

Quoted 11 lines · Tom Stellard

Hi Felix,

In a mailing list post[1], you mentioned that you had the ROCm runtime working on an upstream kernel, which kernel version was this and was it only Kaveri and Carrizo?

Thanks,
Tom

[1] https://lists.freedesktop.org/archives/amd-gfx/2017-September/012951.html

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 903f5525-a082-89a5-2cbe-04a4e437dfb5-5C7GfCeVMHo@public.gmane.org

#4 lore raw
Quoted 2 lines · Felix Kuehling

Yes, it's only on CZ and KV for now.

And which kernel version do I need?

-Tom

Quoted 30 lines

You also need a custom Thunk from here because the ioctl ABI is getting changed in the upstreaming process:
https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/tree/fxkamd/drm-next-wip

KV support in the user mode package is currently lacking. I was able to hack the OpenCL driver to enable KV support with a simple patch:

commit 2761ff8bb444cf93de4d3d182b38d1da140df986

Author: Felix Kuehling <[email protected]>
Date:   Fri Sep 8 16:14:23 2017 -0400

Enable Kaveri

runtime/device/rocm/rocdevice.cpp +2 -0
index 16db78a..edd3cbd 100644
@@ -76,6 +76,8 @@ static HsaDeviceId getHsaDeviceId(hsa_agent_t device, uint32_t& pci_id) {
   }
 
   switch (gfxipVersion) {
+    case 700:
+      return HSA_SPECTRE_ID;
     case 701:
       return HSA_HAWAII_ID;
     case 801:
Quoted 17 lines

Regards,
Felix

Quoted 11 lines · Tom Stellard

Hi Felix,

In a mailing list post[1], you mentioned that you had the ROCm runtime working on an upstream kernel, which kernel version was this and was it only Kaveri and Carrizo?

Thanks,
Tom

[1] https://lists.freedesktop.org/archives/amd-gfx/2017-September/012951.html

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 43560d93-854b-79e6-dd9c-6fb0e5d18ac0-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org

#6 lore raw
Quoted 4 lines · Tom Stellard
Quoted 2 lines · Felix Kuehling

Yes, it's only on CZ and KV for now.

And which kernel version do I need?

Current amd-staging-drm-next should work. The necessary patches are making their way into Linux 4.14.

Regards,
  Felix

Quoted 49 lines

-Tom

Quoted 46 lines

You also need a custom Thunk from here because the ioctl ABI is getting changed in the upstreaming process:
https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/tree/fxkamd/drm-next-wip

KV support in the user mode package is currently lacking. I was able to hack the OpenCL driver to enable KV support with a simple patch:

commit 2761ff8bb444cf93de4d3d182b38d1da140df986

Author: Felix Kuehling <[email protected]>
Date:   Fri Sep 8 16:14:23 2017 -0400

Enable Kaveri

runtime/device/rocm/rocdevice.cpp +2 -0
index 16db78a..edd3cbd 100644
@@ -76,6 +76,8 @@ static HsaDeviceId getHsaDeviceId(hsa_agent_t device, uint32_t& pci_id) {
   }
 
   switch (gfxipVersion) {
+    case 700:
+      return HSA_SPECTRE_ID;
     case 701:
       return HSA_HAWAII_ID;
     case 801:

Regards,
Felix

Quoted 11 lines · Tom Stellard

Hi Felix,

In a mailing list post[1], you mentioned that you had the ROCm runtime working on an upstream kernel, which kernel version was this and was it only Kaveri and Carrizo?

Thanks,
Tom

[1] https://lists.freedesktop.org/archives/amd-gfx/2017-September/012951.html

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx