Announcement

Collapse
No announcement yet.

AMD Begins Posting More KFD Patches For Discrete GPUs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • AMD Begins Posting More KFD Patches For Discrete GPUs

    Phoronix: AMD Begins Posting More KFD Patches For Discrete GPUs

    For the past number of months AMD has been working on upstreaming more KFD changes, AMDKFD is their kernel driver to the HSA compute stack. AMD began with upstreaming their APU changes while now they have finally moved onto their "dGPU" changes...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    What hardware generations will be supported by this?

    Comment


    • #3
      AFAIK the intent is to support the same as the current ROCM stack, so Fiji / Polaris / Vega plus Hawaii with some limitations.

      SI and earlier parts do not have MEC (aka ACE) hardware, and early CI/VI parts are missing some MEC/ACE functionality.
      Last edited by bridgman; 09 December 2017, 12:06 PM.
      Test signature

      Comment


      • #4
        Many APU systems with hardware support is still blocked by missing BIOS setup/configuration, especially wrongly defined CRAT table and no updates avail from motherboard vendors.

        bridgman Is there any way of overriding the CRAT, IVRS acpi tables found in many BIOSes with working ones during Linux boot?

        Most notably I am missing support from Vendors+AMI on a number of APUs, including Carrizo which is annoying as it support hsa in the silicon.

        Do you have any tool to generate a correct and verified CRAT etc table?

        Comment


        • #5
          So how does this help normal users? I'm not familiar with the HSA stuff.

          Comment


          • #6
            Originally posted by fusionS View Post
            Is there any way of overriding the CRAT, IVRS acpi tables found in many BIOSes with working ones during Linux boot?

            Most notably I am missing support from Vendors+AMI on a number of APUs, including Carrizo which is annoying as it support hsa in the silicon.

            Do you have any tool to generate a correct and verified CRAT etc table?
            For dGPUs we generate a CRAT on the fly (this is required because platform SBIOS does not know about the graphics card when being generated) and that could probably be extended to fix up APUs as well. See kfd_create_crat_image_virtual() in kfd_crat.c :

            https://github.com/RadeonOpenCompute...kfd/kfd_crat.c

            At the moment I believe we do a bit of on-the-fly patching of broken APU CRAT tables but if CRAT is missing completely we treat the APU like a CPU instead.

            CRAT issues notwithstanding, a bigger problem is that a lot of the BIOSes seem to disable IOMMU completely without providing a GUI option to enable... not sure we have a solution for that yet.
            Last edited by bridgman; 09 December 2017, 01:21 PM.
            Test signature

            Comment


            • #7
              Originally posted by caligula View Post
              So how does this help normal users? I'm not familiar with the HSA stuff.
              If "normal users" means "users not doing compute-intensive work" it doesn't. What it will do when finished, however, is allow use of ROCm compute paths using an upstream kernel instead of requiring out-of-tree code from the ROCm stack:

              AMD ROCm™ Software - GitHub Home. Contribute to ROCm/ROCm development by creating an account on GitHub.
              Last edited by bridgman; 09 December 2017, 01:58 PM.
              Test signature

              Comment


              • #8
                Originally posted by bridgman View Post

                If "normal users" means "users not doing compute-intensive work" it doesn't. What it will do when finished, however, is allow use of ROCm compute paths on the upstream open source driver stack:

                https://github.com/RadeonOpenCompute/ROCm
                Would (OpenCL) photography filters in Darktable/GIMP count as compute-intensive work?

                Comment


                • #9
                  Originally posted by caligula View Post
                  Would (OpenCL) photography filters in Darktable/GIMP count as compute-intensive work?
                  Yes - we have released an open source OpenCL implementation that runs over the ROCm stack. OpenCL-over-ROCm is the default implementation for Vega, however for earlier ASICs the default is OpenCL running over the graphics paths rather than ROCm/KFD.
                  Test signature

                  Comment


                  • #10
                    Thank you bridgman for the answer.
                    Will poke around on an APU laptop laying around. It has AMI bios with IOMMU enabled and working, but wrong CRAT and see what can be done virtually.

                    A lot of systems must have this problem.

                    Any chance of seeing (a possibly slower) but working OpenCL stack without the coherency benefits of hsa for systems where IOMMU/kfd is broken?

                    Comment

                    Working...
                    X