Slashdot Mirror


AMD Is Open-Sourcing Their Official Vulkan Linux Driver (phoronix.com)

An anonymous reader writes: While many of you have likely heard of the "RADV" open-source Vulkan driver, it's been a community-written driver up to this point in the absence of AMD's official, cross-platform Vulkan driver being open-source. That's now changed with AMD now open-sourcing their official Vulkan driver. The code drop is imminent and they are encouraging the use of it for quick support of new AMD hardware, access to the Radeon GPU Profiler, easy integration of AMD Vulkan extensions, and enabling third-party extensions. For now at least it does provide better Vulkan performance than RADV but the RADV developers have indicated they plan to continue development of their Mesa-based Vulkan driver.

75 comments

  1. He who controls the geeks controls the future by paulatz · · Score: 5, Insightful

    Maybe AMD has understood that if you have the geeks on your side, than the next generation of general consumers will be yours as well. Because nobody, except the geeks, can tell two brands of hardware apart but everybody ask their geek family member for advice

    --
    this post contain no useful information, no need to mod it down
    1. Re:He who controls the geeks controls the future by NoNonAlphaCharsHere · · Score: 4, Funny

      Developers! Developers! Developers! Developers! Developers!

      Where have I heard that before?

    2. Re:He who controls the geeks controls the future by Wootery · · Score: 1

      Not the same thing.

    3. Re:He who controls the geeks controls the future by Anonymous Coward · · Score: 4, Informative

      AMD has understood this like a decade ago. They've invested _a lot_ in open source graphics stack, release the specs (even they still have proprietary FGLXR driver), and SUSE employs developers who solely do Radeon drivers based on these specs. You gotta be slightly careful when getting cards, but all in all, the open source driver is freaking fantastic (on older R280 mine beating FGLXR in performance on most open source games).

      Check out https://www.x.org/wiki/RadeonFeature/

    4. Re:He who controls the geeks controls the future by NoNonAlphaCharsHere · · Score: 1

      Oh, I think it is. In this era of GPU-driven machine learning, commitment == lockin. AMD is inviting people to play right down on the metal with this.

    5. Re:He who controls the geeks controls the future by Anonymous Coward · · Score: 0

      Funny. My experience with Radeons on Linux is completely opposite and that's the only gfx brand I can recommend that's pretty much guaranteed to work like a charm with open drivers (unlike Intel or Nvidia) :P

    6. Re:He who controls the geeks controls the future by fisted · · Score: 1

      Your whole rant is ridiculous because the problems you encountered were due to the driver not being open source, which apparently is now going to change

    7. Re:He who controls the geeks controls the future by Anonymous Coward · · Score: 0

      the problems you encountered were due to the driver not being open source

      Bullshit! But, like the coal miners who voted for Trump, you'll believe what you'll believe.

    8. Re:He who controls the geeks controls the future by Anonymous Coward · · Score: 0

      No. You're mixing Geeks and FOSS-fags together as if they're the same. Geeks care about the entire product, hardware, software, and everything else. FOSS-fags just care about "open sores." Geeks have wider social circles and can interact with others outside their own. FOSS-fags, not so much.

    9. Re:He who controls the geeks controls the future by Anonymous Coward · · Score: 0

      There was nothing even approaching an argument there. Don't bother trying. You fail too hard.

    10. Re:He who controls the geeks controls the future by Anonymous Coward · · Score: 0

      You were what, 12? Grow up already.

    11. Re:He who controls the geeks controls the future by Anonymous Coward · · Score: 0

      No, the only foss fags are the ones you're desperate to find because you have no dick and tiny balls.

    12. Re:He who controls the geeks controls the future by Anonymous Coward · · Score: 0

      You are right about one source of the issue and miss the other one. In the past AMD released implementation details bit for bit to help the open source OpenGL driver along, every damn time this happened sites like Slashdot praised it, claimed it fixed all issues and improved performance of what already worked a thousand fold, etc. . By now it is less about technical merit, I just consider the community around that driver to consist of untrustworthy liars and this is yet another claim that all things will be better (TM) because AMD has open sourced yet another bread crump. The announcements and lies just gets repetitive when you actually want to do something with it other than have an open source boner.

    13. Re:He who controls the geeks controls the future by Anonymous Coward · · Score: 1

      It's unfortunately that you are so incredibly wrong about the Radeon cards on Linux.
      I suppose that's what happens when you form permanent opinions about something and continue believing that for a decade.

    14. Re:He who controls the geeks controls the future by Anonymous Coward · · Score: 0

      I'll use whatever driver David Airlie is working on. In Dave I trust.

    15. Re:He who controls the geeks controls the future by Anonymous Coward · · Score: 0

      guess that makes you one of those fee-tards (i feel obligated to explain the joke to you; you see, it's a play on 'freetard')

    16. Re: He who controls the geeks controls the future by Type44Q · · Score: 1

      This is why "Linux on the desktop" figures are so greatly misleading: one influential geek has as much effect as dozens or even hundreds of everyday users.

    17. Re:He who controls the geeks controls the future by 0100010001010011 · · Score: 1

      It depends on how they opensource it. We've seen this out of AMD before. Dumping a bunch of manuals and code on volunteers doesn't actually do much.

      I don't care if I pay more for Nvidia because Nvidia pays people to develop drivers for my platforms and they work. I don't have any "closed binaries" moral issue when I need to get work done. AMD just dumped their codebase and said "Hey, there it is, do our work for us as well as pay us money for the hardware".

    18. Re:He who controls the geeks controls the future by Anonymous Coward · · Score: 0

      *throws a chair*

    19. Re:He who controls the geeks controls the future by pots · · Score: 1

      Yes, he only said it five times. That's hardly comparable.

    20. Re:He who controls the geeks controls the future by Anonymous Coward · · Score: 1

      AMD has but ATI did not. ATI literally laughed in the face of open source and especially Linux. I know because I was there when their president of marketing laughed in my face when I asked about broader Linux support and higher quality drivers.

      The ATI/AMD products have suffered because ATI was such a shitty company with shitty drivers and shitty executives. NVIDIA on the other hand has always embraced the Linux community. While these days people like to shit on them NVIDIA supported Linux while ATI was literally laughing in your face. AMD is simply trying to extract market share from the very market they ignored and laughed out while NVIDIA literally created the entire market segment.

    21. Re:He who controls the geeks controls the future by mlyle · · Score: 1

      Yah, because the proprietary NV drivers on linux is such a great experience free of oddness. /s

      AMD is doing the right things, which is nice. And beyond that, the experience is good for modern AMD hardware on Linux.

    22. Re:He who controls the geeks controls the future by Anonymous Coward · · Score: 0

      You seem to be conflating AMD and ATI. You are making references to ATIs past behaviour before they were bought out by AMD, and implying that it is still the same people making the decisions despite AMD having owned them for many years now.

      What was going on when ATI were independent of AMD is mostly irrelevant, unless you are studying their history. It seems much had changed with them since they were bought by AMD.

    23. Re:He who controls the geeks controls the future by bridgmanAMD · · Score: 1

      AMD has but ATI did not. ATI literally laughed in the face of open source and especially Linux.

      Actually no. ATI supported and funded open source driver development from the time that Linux gaming became a possibility (~1998 with the introduction of DRI) until 2002 when we acquired FireGL and hoped that their pre-existing closed-source Linux workstation driver (fglrx) would be a good replacement. As it turned out, fglrx was OK for workstation users but never worked out well for consumer/desktop users. We looked at restarting the open source driver effort a couple of times but since that was also the point where DRM was starting to become a big and risky requirement (big penalties for failing to maintain robust DRM coupled with security-by-obscurity industry DRM model) the conclusion was that the risk was too high. Once we joined up with AMD we picked up a second major revenue stream (CPUs) so even if the worst-case happened on the GPU side (open source drivers providing a starting point for cracking our DRM and crippling our ability to sell into OEM markets) the company would still survive. Management was willing to accept the risk so we restarted open source driver support in 2007.

    24. Re:He who controls the geeks controls the future by bridgmanAMD · · Score: 1

      AMD just dumped their codebase and said "Hey, there it is, do our work for us as well as pay us money for the hardware".

      Citation needed. I don't think we have ever done that with Linux drivers. We have been hiring developers to contribute to the existing open source driver projects for a decade now. If you think we dumped a driver code base and walked away from it please give me an idea what you are talking about. Thanks.

  2. They've done the impossible by zaphirplane · · Score: 5, Insightful

    Nvidia and firmware makers tell us it's impossible because of 3rd party, security, competitive edge and a whole bunch of what now looks like excuses. I would love to hear from all the nay sayers how it was made possible ;)
    well done, I hope system makers start making intel CPU with AMD GPU (sorry not meant as a back hand compliment)

    1. Re:They've done the impossible by Wootery · · Score: 3, Informative

      Pretty safe bet, now that Intel CPU + AMD GPU on a chip has been announced.

    2. Re:They've done the impossible by StormReaver · · Score: 1

      [W]ell done, I hope system makers start making intel CPU with AMD GPU....

      This strengthens my decision to buy AMD everywhere.

    3. Re:They've done the impossible by Anonymous Coward · · Score: 0

      It's risky, because no hardware is flawless, and a lot of problems are worked around in drivers.. so if you open your drivers, you also show that your hardware has issues, which may have legal repercussions.

    4. Re:They've done the impossible by GameboyRMH · · Score: 1

      I'm definitely favoring AMD cards for my Linux computers now, which is all but one of them! I may even give AMD cards a closer look on my gaming PC since they tend to get handed-down to one of the non-gaming PCs later on. It's a shame Nvidia has a practical monopoly on GPU-accelerated physics.

      --
      "When information is power, privacy is freedom" - Jah-Wren Ryel
    5. Re:They've done the impossible by Anonymous Coward · · Score: 0

      Transparency of issues in development and testing ALWAYS weighs heavily in the company's favor when a court is deciding on liability. If a company is forward and transparent in their findings, even if the resulting outcome of the issue is egregious, most likely the company will walk away intact because they had taken reasonable efforts during development and testing.

      Where a company runs into problems is when the court uncovers intentional opaqueness in this process in order to hide or mask issues from watchdogs or consumers. And to be completely honest, I would rather see these companies get the equivalent to a public execution just to showcase to others that this is not the way to do business.

      This is true of any business where a development and testing process is key to a product that fills a vital niche (i.e., pharmaceuticals, medical equipment, transportation equipment, computer software/hardware, etc.) where liability could involve consumers' life, limb or financial integrity.

    6. Re:They've done the impossible by Anonymous Coward · · Score: 0

      These GPU physics are overblown :
      - modern games are likely to use "compute shaders". That's cross-vendor
      - some just use the CPU only
      - some even use the CPU version of the PhysX API ! This might not use the GPU at all.
      - a handful use GPU PhysX, but that's just newspapers on the floor in some random Batman game

    7. Re:They've done the impossible by BronsCon · · Score: 1

      Indeed, even when I buy Intel I'll strive to buy AMD. I don't have use for an APU, but if I ever do, Intel is back on my list of possible buys.

      --
      APK quotes people (including myself) without context and should not be trusted. Just thought you should know.
    8. Re:They've done the impossible by GameboyRMH · · Score: 1

      - a handful use GPU PhysX, but that's just newspapers on the floor in some random Batman game

      Don't forget flying glass shards and billowing plastic sheets in Mirror's Edge 1!

      (There are a few others)

      --
      "When information is power, privacy is freedom" - Jah-Wren Ryel
    9. Re:They've done the impossible by ausekilis · · Score: 1

      Intel has been playing catch-up in the integrated GPU space for years. While they are getting better, they're still leaps and bound behind AMD's APU's.

      That said, I'm curious where things will shake out 5 to 10 years down the line. Maybe Intel will have learned a bit about GPU's and not be so friendly with AMD.

  3. It is ironic you say that... by Anonymous Coward · · Score: 2, Insightful

    Because AMD via AGESA has locked up all that same firmware on both the CPU/Motherboard and GPU platforms as closed source opaque and proprietary modules, same as everyone else.

    What Intel and AMD have done (and Nvidia may have to do in the future in order to survive) is foist the many eyes/bugfixing part for the more resource intensive part of the driver architecture on the open source community, while maintaining control over the aspects which most endanger the end-user, while providing security to the content industry, and backdoors to the intelligence industry.

    Unless we can get new players into both the cpu/motherboard platform ecosystem, and the GPU/Compute ecosystem, we are going to find ourselves with less and less control of own devices, and a harder and harder time of keeping 'secure-ish' hardware performant enough to retain access to modern applications and tools which leverage or require newer devices/memory capacities.

    Until SATA/hard disks get fully replaced we at least have access to higher capacity long term storage, but basically every other peripheral is rapidly leaving pre-ME/PSP/Trustzone hardware in the dust.

    1. Re: It is ironic you say that... by Type44Q · · Score: 1

      Unless we can get new players into both the cpu/motherboard platform ecosystem, and the GPU/Compute ecosystem, we are going to find ourselves with less and less control of own devices...

      Are "new players" somehow resistant to National Security Letters?

    2. Re: It is ironic you say that... by Anonymous Coward · · Score: 0

      If they are based outside of the USA and don't care about getting US gov contracts they will be.

  4. I know the brand of GPU I'll buy for XMas. by Anonymous Coward · · Score: 0

    I know the brand of GPU I'll buy for XMas.

  5. why you bastards!! by Anonymous Coward · · Score: 0

    Now that I got an alienware 13R3 you release the ryzen and this.... bollocks!

    1. Re:why you bastards!! by fisted · · Score: 1

      Cool story. Now be a good consumer and purchase more products. Only way to get that feeling of pride and accomplishment.

  6. AMD and opensource by DrYak · · Score: 3, Informative

    They've invested _a lot_ in open source graphics stack, release the specs (even they still have proprietary FGLXR driver)

    I might even add :
    their opensource driver is now currently considered the "official recommended one", while AMDGPU-PRO (the current closed source one, basically the successor of FGLXR, but with bits rewritten from scratch for better code sharing with the opensource drivers - it's mostly only a blob "libGL.so") is currently only recommended for workstation users that have weird compatibility requirement for "that old mission-critical CAD software over there" that requires compatibility profiles.

    but all in all, the open source driver is freaking fantastic (on older R280 mine beating FGLXR in performance on most open source games).

    One of the reason for AMD to recommend the opensource drivers is exactly this.

    Add to that the finally managed to get DAL/DC/whatever-it's-called-now upstream in the kernel, and the recently open-source ROCm + OpenCL stack is also in the process of getting upstreamed...
    It globally sounds very nice.

    We just needs to see how this opensourced "official" Vuklan drivers co-evolves with the community-built "RADV" one.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  7. Time has passed. by DrYak · · Score: 3, Informative

    Yup, there used to be, a long time ago, a period where basically you had closed-source FGLRX which was feature complete, but extremely buggy and crash-prone. And the then-recently started various opensource source drivers efforts (some by AMD opensource devs, other completely reverse engineered by 3rd party devs...) which were lacking lots of feature, though a lot more stable than the blobs.

    That was about a decade ago.

    In 2017, the official driver according to AMD *is* the opensource driver, it's feature complete (full support up to GL 4.5 and GLES 3.1, 4.6 should be ready soonish), maintained upstream (in vanilla kernel and mesa3d) by paid developpers including on AMD's payroll.
    It's fucking stable.
    (In my opinion, best experience with a rolling-release distro like openSUSE Tumbleweed - which has an up-to-date kernel/Mesa3d/LLVM and GPU drivers devs on their payroll)

    Meanwhile, Nvidia are still problematic with laptops (mainly due to not playing nice with the linux API to handle weird stuff like optimus, etc.) sometime very broken (due to insisting on using user-mode-setting, on my laptop it's just plain broken whenever the laptops goes into/resumes sleep).
    I personally have to resort to nouveau, which is great piece of work (given the way it was developed through reverse engineering only) but needs to constantly play catch-up and will always be lagging feature-wise.
    (At least with my rolling distro, I'm getting fixes not long after they are written by the devs).

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re: Time has passed. by Anonymous Coward · · Score: 0

      To be fair, Optimus is broken like hell and crashes a bunch of mainstream games and doesn't even respect your prioritization settings.

    2. Re:Time has passed. by Seven+Spirals · · Score: 1

      When I first read the story, it sounded to me like just the 3D Vulkan driver was going to be open-sourced. Then I read this and it sounds like you are implying that the whole kit and caboodle has been open sourced. I guess I'm a bit behind on this and I have a question if you have time to answer. Is the is the KMS module and the regular X11 display (2d) driver also completely open source at this point? I switched from Linux to BSD years ago, but I still have a Linux rig around (Devuan rig). I notice that there is still a message about kernel taint after I install all the fglrx packages. However, I remember that NetBSD got a KMS port a few years back that "unlocked" a ton of my old hardware with Radeon chipsets. However, I never dug down far enough to tell if it was using the so-called "radeonHD" open source drivers or code straight from AMD. Not trying to gainsay you, just asking if you know.

  8. Wrong open-sourcing effort by DrYak · · Score: 2

    Oh, I think it is. In this era of GPU-driven machine learning, commitment == lockin. AMD is inviting people to play right down on the metal with this.

    You got the wrong opensource driver.

    Vulkan is about "right down on the metal" mostly in the graphics departement (through there are idea to run computations using Vulkan).

    The "right down on the metal" drivers stack that got open sourced by AMD that target "GPU-driven machin learning" (and any other GPU computation), is the ROCm + OpenCL stack (with ROCm being the "down on the metal" part).
    AMD has recently finished their opensourcing efforts for that one too, and the necessary component are in the process of getting integrated up-stream (so soonish, your favorite Linux distro should be able to do ROCm and OpenCL right out of the box, instead of relying on custom package carefully crafted on 3rd party opensource repos).

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re:Wrong open-sourcing effort by Anonymous Coward · · Score: 0

      Oh, I think it is. In this era of GPU-driven machine learning, commitment == lockin. AMD is inviting people to play right down on the metal with this.

      You got the wrong opensource driver.

      Vulkan is about "right down on the metal" mostly in the graphics departement (through there are idea to run computations using Vulkan).

      The "right down on the metal" drivers stack that got open sourced by AMD that target "GPU-driven machin learning" (and any other GPU computation), is the ROCm + OpenCL stack (with ROCm being the "down on the metal" part).
      AMD has recently finished their opensourcing efforts for that one too, and the necessary component are in the process of getting integrated up-stream (so soonish, your favorite Linux distro should be able to do ROCm and OpenCL right out of the box, instead of relying on custom package carefully crafted on 3rd party opensource repos).

      Any idea what is the timeline on this? I've heard that all the required stuff for ROCm should be upstreamed by 4.16. Is that true?

    2. Re:Wrong open-sourcing effort by BronsCon · · Score: 2

      The driver code will show how to talk directly to the hardware; you'll be able to reverse engineer this driver much more easily now that you'll have the code, and bypass it entirely for certain operations. That's as "right down on the metal" as it gets, and you won't be limited to just graphics, even though this driver might be, because you'll have access tot he entire lexicon, courtesy of a cursory read through the source code.

      If that's something you actually care about and know how to make proper use of, reading through driver source to learn it won't be so onerous of a task.

      --
      APK quotes people (including myself) without context and should not be trusted. Just thought you should know.
    3. Re:Wrong open-sourcing effort by Anonymous Coward · · Score: 0

      Any idea what is the timeline on this? I've heard that all the required stuff for ROCm should be upstreamed by 4.16. Is that true?

      It's looking more like February before we have everything ready, so 4.17 more likely than 4.16.

    4. Re:Wrong open-sourcing effort by bridgmanAMD · · Score: 1

      Sorry, thought I was logged in already.

  9. Fascinating and completely logical. by Anonymous Coward · · Score: 0

    I, for one, welcome our new Vulcan overlords. May the Force be with you.

  10. No Love For Windows by Anonymous Coward · · Score: 0

    Can You Build It On Windows?

    With this official Vulkan driver being shared across platforms, I was curious if this open-source access would allow it to be built on Microsoft Windows or if they are not opening up all of the bits for the Windows integration, etc. The AMD response to this question was, no, the code they are pushing out was stripped down to just their Linux code.

    I guess Windows users don't get nice things.

    1. Re:No Love For Windows by thevirtualcat · · Score: 1

      There's very little point.

      Unless you want to run 32-bit Windows or run in Test Signing Mode, most people aren't going to be able to run the kernel mode components of a self-built driver. (User mode components would still work with a few annoying warnings, but I'm not sure how much of what they're releasing is user mode and how much is kernel mode.)

  11. Open source GPU is much closer now. by Gravis+Zero · · Score: 3, Interesting

    Perhaps the greatest limiting factor in getting an open source GPU (source for firmware available) has always been implementing drivers and graphics libraries. Vulkan drastically reduced this requirement by creating a common platform for graphics libraries to execute on (see SPIR-V) and this can be a template for drivers. This leaves on two elements locked away: the firmware and the hardware itself. This is a massive reduction in labor for those who wish to bring an open source GPU to the market. It might not be the best/fastest GPU but it will be up to date and as functional as it's counterparts.

    --
    Anons need not reply. Questions end with a question mark.
  12. Drop means discontinue by jabberw0k · · Score: 1

    If your favorite retailer drops your product, that means they no longer carry it. Is AMD dropping their video cards?

    1. Re: Drop means discontinue by Type44Q · · Score: 1

      So you're actually getting "retailer drops product" confused with"manufacturer drops code?" Really?

  13. AMD for the WIN! need ThreadRipper board with ipmi by Joe_Dragon · · Score: 1

    AMD for the WIN! Now we need ThreadRipper boards with ipmi!!!

  14. It's All About Mining by Anonymous Coward · · Score: 0

    It's all about getting more hashes out of their cards. By open-sourcing their drivers, more developers will throw more brain power at further optimizations for mining.

  15. The GPU is NOT open source by Anonymous Coward · · Score: 0

    The driver is open source, but who cares? The hardware itself is closed source, can be filled with vulnerabilities, back-doors, bugs, etc. and nobody can tell.

    Your head is firmly wedged up your anus if you think there is anything "open" going on here.

  16. But who will use this? by Anonymous Coward · · Score: 0

    so you need recent AMD hardware (GCN 1.2 and up), bleeding edge distro, and also use linux in the first place, and then find some application that use it - while devs are instead wasting time adding Wayland support to some subsets of things.

    I am bored by all these things that promise the moon*
    * if you're lucky it will be useful in Ubuntu 20.04
    ** experimental
    *** add boot parameter=zorglub

    The only fun I ever had was with OpenGL 1. Make your game or app single-threaded and i686 for all I care, and designed to work without Internet. Then maybe it'll work? rather than an error message telling I smell, or an internet login prompt I have no intention of honoring.

    1. Re:But who will use this? by bridgmanAMD · · Score: 1

      so you need recent AMD hardware (GCN 1.2 and up), bleeding edge distro, and also use linux in the first place, and then find some application that use it

      The Vulkan driver code supports back to SI (aka GCN 1.0), which launched in late 2011 and early 2012.

      The code is for a userspace driver so just depends on having a suitably recent kernel driver & libdrm (already open source and already picked up by pretty much every distro on the planet). I would not call RHEL bleeding edge, although their kernel definitely has some newer bits than the base 3.10 version would suggest.

      Re; having to use Linux in the first place along with an application that uses Vulkan, yes guilty as charged :)

  17. what a tiny little brain you have by Anonymous Coward · · Score: 0

    Drop means discontinue

    too bad your microscopic brain can't figure out that words can have more than one meaning

    1. Re:what a tiny little brain you have by BronsCon · · Score: 1

      He tried to drop the mic but he dropped the ball instead.

      Come on -1, Funny moderation! We can do this!

      --
      APK quotes people (including myself) without context and should not be trusted. Just thought you should know.
  18. Really? I'm skeptical, this lie goes back *years* by Anonymous Coward · · Score: 0

    My company focuses on free software and every time it has been announced that AMD has released the source code we investigate only to find that it is *still* dependent on proprietary software. I have little hope today because crying wolf only works for so long. None-the-less I'll probably have someone investigate AGAIN, but I'm doubting this is anything more than a public relations stunt, as that's all its ever been prior to this.

  19. Been using it awhile by phorm · · Score: 1

    RX480, 4GB. I've been using the FOSS drivers for about a year now and they're GREAT. I did have to compile my own kernel in the earlier days but now the ones that come with Ubuntu etc seem to work just fine out of the box.

  20. Open-source efforts: AMD has been doing it for age by DrYak · · Score: 1

    The driver code will show how to talk directly to the hardware;

    The lower level of the stack has been available for ages :

    Initially in the form of "radeon.ko" a separate opensource effort progressively more and more supported by AMD themselve.

    And the "amdgpu.ko" as part of a complete rewrite from the ground up by AMD devs, with the aim to enable as much code sharing as possible including between multiple drivers stacks (used by both the usual opensource driver stack AMD has been supporting, and amdgpu-pro - basically a binary libGL.so that is the current day successor of fglrx) and between multiple OSes (a little bit like Nvidia is doing, and unlike Intel which have basically 2 stacks - but rewritten from the ground up for this purpose, unlike Nvidia who have basically punched their Windows code until it more or less compiles on Linux because why spending ressource playing nice with Linux API to make laptops work ?).

    Recently DAL/DC has been accepted upstream in the amdgpu frame work (the above mentioned complete stack re-write wasn't done by the usual AMD opensource crew, but by mainly by their usual multi-OS drivers crew, meaning that the quality wasn't up to level at the beginning - Linus having loudly complained that it was a giant piling of useless abstraction layering. A few rewrite and quality improvement later and it's now upstream).

    All these successive infrastructures have been successfully leveraged by mesa 3d, which now serves as the official AMD driver for nearly anything (amdgpu-pro is mainly recommended for workstation users that have that weird CAD software that relies on compatibility profiles).
    This is development which has been going in the open for ages, partially funded by AMD themselves.

    Even Vulkan API itself isn't a big surprise. As AMD took so much time until getting all the necessary internal validation to release the Vulkan driver in opensource, independent developer have in the meantime - as a programming exercice - started the "RADV" vulkan driver, which by now ended up being nearly fully conformant and compatible with most games.
    (Well, it helps that by design the Vulkan API is a very thin layer above the lower level stack).

    There isn't much new radical things to be discovered in that opensourcing. Most of the big chunk have already have been opened by AMD in the past.
    This is mainly a "good news" because AMD keeping up their promise to open up everything eventually (though they were slow on this last Vulkan part).

    The only thing to be gained is to for the RADV developers to see how AMD official Vulkan has solved a few problems here and there that RADV might be missing. And because now the AMD driver is opensource, they could also do the same (see if tiny bits of RADV can be used as inspiration, without the legal department starting to scream that they are tainted).

    you'll be able to reverse engineer this driver much more easily now that you'll have the code, and bypass it entirely for certain operations.

    As mentioned above : there's not much to reverse engineer here.
    Vulkan API is a very thin layer to begin with, and all component underneath (to which you would be trying to "bypass") were already open sourced since ages, because those underneath component are the exact same (kernel module "amdgpu.ko", libDRM.so, etc.) also used by the opensource driver (mesa3d) and the opensource Vulkan experiment, in addition to being used by the AMD-written software (the amgdpu-pro libGL.so for workstation users, the currently being opensourced offical AMD vulkan driver, and the recently opensourced and currently getting accepting upstream gpgpu stack ROCm and OpenCL).

    It doesn't bring much new to the table, it's just AMD being true to their opening promises.

    That's as "right down on the metal" as it gets, and you won't be limited to just graphics, even though this driver might be, because you'll have access tot he entire lexicon, courtesy o

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  21. no news... by DrYak · · Score: 1

    I've heard that all the required stuff for ROCm should be upstreamed by 4.16. Is that true?

    I can't be of any help here. My information don't go beyond what's currently being spoken about on phoronix
    (though in addition to upstreaming stuff into the 4.16 kernel, I think there are also things that need to be upstreamed into LLVM too, for the CL language compilation, etc.) : My current work in research doesn't involve much gpgpu computing, and I haven't been playing at home with openCL cryptocoin mining for a while.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  22. great news by sad_ · · Score: 1

    i actually like AMD, my first PC has an AMD processor and almost all replacements after that also were from AMD.

    I've been using nvidia GPU's now on linux for so long, because the driver, even though closed, at least worked best. The last 2 years AMD has made so many improvements and has open source implementations that my next GPU probably will be AMD based.

    At first Valve only supported nvidia for steam and steamos, but i think even they are now involved in improving the AMD oss drivers and a lot of games just work.

    --
    On a long enough timeline, the survival rate for everyone drops to zero.
  23. AMD open-source stack by DrYak · · Score: 1

    When I first read the story, it sounded to me like just the 3D Vulkan driver was going to be open-sourced.

    Correct, today article is about the official AMD's Vulkan driver joining the current giant open-source gang-band that has been going in the kernel.
    It's just he latest bit to be added.

    Then I read this and it sounds like you are implying that the whole kit and caboodle has been open sourced.

    Yup, the whole rest has been open-source more or less for ages. This last bit more or less completes everything (except for a few tiny bits that are only available in the closed-source GL and which only target a few weird cases, mostly closed-source CAD software on workstations and of absolutely no relevance in the Linux open-source word)

    Is the is the KMS module and the regular X11 display (2d) driver also completely open source at this point?

    Yes, absolutely completely, and actually doubly so.

    - First round started with a bunch of opensouce efforts, some paid by third parties (historical efforts around opensourcing the r200), some by independing reverse engineering (a few independant playing with R600), and finally, after the AMD-ATI acquisition, AMD promising to opensource everything progressively.

    This started the first wave of KMS / DRI / etc. of drivers, including the "radeon.ko" that was until recently.
    AMD even started paying their own opensource driver developpers, while still maintaining their own fglrx stack in parallel.

    The opensource drivers have been getting progressively better, with AMD at one point deciding that mesa was going to be the official pre-HD Radeon (up to r400/r500) driver stack, and droping support out of fglrx.

    - Second round came more recently around the time AMD started making GCN-based cards.
    They have decide the rewrite completely the bottom part of the stack (the KMS and DRI, mostly switching from "radeon.ko" to "amdgpu.ko"), with the aim of sharing this new code among multiple implementation (the same low level stack is used since by both the opensource mesa drivers, and the amdgpu-pro, which is the successor of fglrx), and also sharing the code among multiple OSes (sharing it with Windows among other. Unlike Intel who keep two separate stacks. But by rewriting everything from the ground up for this tasks, unlike Nvidia who basically beat their Windows code until it more or less compiles on Linux and standard API and laptop users being damned).

    (Though incidentally, this new re-written layer, being the first time Linux-contact for lots of AMD multi-os devs, has been criticized for its quality and has only recently reach a quality level for the last bits - "DAL/DC" to be accepted upstream without Linus puking over the quality).

    The long term idea was that mesa was going to be the official openGL driver - just like they did with older radeons - and amdgpu-pro was only to be used for the weird corner cases.

    Longterm promises were to opensource the other driver component, including gpgpu stacks (ROCm and OpenCL, recently opensourced to the last bit, and currently getting up-streamed), and including the Vulkan driver (today's bit).

    The rest of the stack (KMS and DRI) has been opensourced for quite some time. That enabled 3rd party devs to write their own Vulkan implementation (RADV) which has now matured into being quite feature complete and conformant.

    (for the record of small detail : LLVM is the compiler currently used by various drivers including AMD to get gpu-specific code compiled into GPU binaries.
    e.g.: the GLSL and SPIR-V used by OpenGL shaders.
    AMD gets most of it upstreamed too, with bits of the gpgpu ROCm+OpenCL and the current Vulkan code still in the process of their pull-request)

    I switched from Linux to BSD years ago, but I still have a Linux rig around (Devuan rig).

    You would need a quite recent distro to join the latest opensource celebration and radeon expe

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re:AMD open-source stack by Seven+Spirals · · Score: 1

      Wow, this is great detail and excellent explanation. If I wasn't on the thread I'd dump some mod points on this. Thank you, I read it all, understood, and appreciated it. You have great insight into the nuances of the Radeon driver narrative. I look forward to seeing the open source vendor supported code making its way to other places, too.

  24. AMD SI/CIK GCN 1.x support in amdgpu is bad by deepclutch · · Score: 1

    There are a large number of middle budget laptops from HP and Dell that comes with rebranded AMD SI and CIK cards which have only GCN 1.0 or 1.1 supported. I have a HP 15-BS576TX which is a June 2017 launch which has AMD 520 discrete card. So, does many models with AMD 520/530 cards which are recognized in amdgpu as HD8xxx cards. The driver performance is most of the times laggard compared to radeon driver. I hope the developers kindly give some attention to this also. The only hope is amdgpu project with these cards. I have pkppa (Padoka stable) repo enabled in my Ubuntu 17.10 system. https://www.phoronix.com/forum...

    --
    move to FOSS,save ur nation's resources.
    1. Re:AMD SI/CIK GCN 1.x support in amdgpu is bad by bridgmanAMD · · Score: 1

      Why do you say "the only hope is amdgpu" when radeon is the officially supported driver for your card ? Agree that you will want to move to amdgpu eventually in order to get Vulkan support, and as you know we published the first open source Vulkan support for amdgpu this morning, but other than "Vulkan vs OpenGL" I don't think you should be expecting any more performance from amdgpu than from radeon.

  25. Re:Really? I'm skeptical, this lie goes back *year by bridgmanAMD · · Score: 1

    Just curious, which proprietary software are you talking about ? Be careful not to conflate hardware microcode (which runs on GPU state machines) with software running on the CPU. The only software running on the CPU is the on-card VBIOS, but even that is written in an interpreted bytecode with an open source interpreter included in the driver.