• addie@feddit.uk
          link
          fedilink
          arrow-up
          7
          ·
          2 days ago

          “Register bit twiddling.” Setting all the modes that all their various cards can operate in, with the associated code for sending the bit updates over the connection bus. Tedious stuff that’s very prone to copy-paste errors if written by hand.

          At some point you have to take AMDs word for it that these codes = this functionality, but if the right graphics come out then it can’t be so wrong.

    • boredsquirrel@slrpnk.net
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      2 days ago

      On an Intel machine, this makes me want to compile my kernel so much

      I should learn how to compile RPM kernels on COPR

  • drspod@lemmy.ml
    link
    fedilink
    arrow-up
    8
    ·
    2 days ago

    From my understanding, a lot of code in the graphics drivers is special-case handling for specific games to optimize for the way that the game uses the APIs. Is this correct?

    In which case it would make sense to have the game-specific code loaded dynamically when that game is launched, since 99.99% of the game specific code will be for games that the user never runs.

    • stupidcasey@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      2 days ago

      From my understanding 99.999% of those “Game ready drivers” are patches for machines that you do not use but have to download anyway to keep everything on the same version.

  • Vik@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    Worth noting from the original article

    Fedora is working around this in their latest packages by beginning to probe SimpleDRM immediately. Fedora / Red Hat though isn’t the only ones using Plymouth but is largely in use by all major Linux distributions of the past decade. But in recent years the AMDGPU driver has only continued to grow much larger in supporting newer GPUs and tacking on additional features and optimizations.

  • boredsquirrel@slrpnk.net
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    2 days ago

    Monolithic kernels and drivers are an issue.

    I understand why its easy, but on Fedora Atomic I even have all the userspace drivers for intel, amd, nvidia and maybe more, even though I clearly just use intel…

    • xan1242@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      2 days ago

      This is the real issue. This is one area that Windows, despite its historical hardships, handles much better.

      (Mac OS too but they killed kexts for the public anyway)

      I’d love to see a more dynamic approach (that doesn’t rely on DKMS) someday.

      • Chewy@discuss.tchncs.de
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 days ago

        I believe the advantage is that old drivers still work as they are all in the kernel. With them sharing much code it’s not even that big of a disk space issue. Edit: A more dynamic approach would be great though, especially with this size issue popping up.

        In a way it’s great that I’m able to replace any part of my system and it just works without me having to make sure the old GPU driver doesn’t leave some traces behind–altough while writing this the latter part shouldn’t be an issue with Windows auto download and installation of drivers.

    • Coelacanthus@lemmy.kde.social
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      The problem is not caused by mono kernel. Just because AMDGPU driver was developed in mono style. i.e. they include the code of all generations in one driver. In monolithic kernel, the developer can develop drivers with “micro” style. e.g. Intel’s GPU driver doesn’t use mono style, they created a new driver when they changed GPU hardware architecture.

      Monolithic kernel is a concept about address space. If all parts of a kernel are running in the same address space, this is a monolithic kernel, otherwise it’s a micro kernel.

      This problem is about how to split parts, but not how to place parts in memory.