Slashdot Mirror


A New Era For Linux's Low-level Graphics (collabora.com)

Slashdot reader mfilion writes: Over the past couple of years, Linux's low-level graphics infrastructure has undergone a quiet revolution. Since experimental core support for the atomic modesetting framework landed a couple of years ago, the DRM subsystem in the kernel has seen roughly 300,000 lines of code changed and 300,000 new lines added, when the new AMD driver (~2.5m lines) is excluded. Lately Weston has undergone the same revolution, albeit on a much smaller scale. Here, Daniel Stone, Graphics Lead at Collabora, puts the spotlight on the latest enhancements to Linux's low-level graphics infrastructure, including Atomic modesetting, Weston 4.0, and buffer modifiers.

35 of 61 comments (clear)

  1. Stuff it all in the Kernel. by Anonymous Coward · · Score: 1

    That's what the kernel is there for. EVERYTHING.

    1. Re:Stuff it all in the Kernel. by Spazmania · · Score: 4, Insightful

      The kernel is there to interface with the hardware. The Direct Rendering Manager interfaces with the graphics hardware.

      --
      Moderating "-1, Disagree" is simple censorship. Have the guts to post your opinion.
    2. Re:Stuff it all in the Kernel. by thinkwaitfast · · Score: 1

      Pretty sure (HOPE) that was sarcasm.

    3. Re:Stuff it all in the Kernel. by gweihir · · Score: 1

      You do not get it. At all. One primary task of the kernel is process isolation. Without controlling the graphics hardware (or any other hardware that can be shared among processes), that is not really possible. People these days really know nothing...

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  2. DRM rename by Anonymous Coward · · Score: 1

    They really need to rename the DRM subsystem.

    1. Re: DRM rename by Bing+Tsher+E · · Score: 3, Insightful

      The truth is, the 'Digital "Rights" Management' acronym is what needs to be replaced.

      It's not my digital rights that it manages, nor yours.

    2. Re: DRM rename by Anonymous Coward · · Score: 1

      I read it as "Digital Restrictions Management".

    3. Re:DRM rename by Hognoxious · · Score: 3, Funny

      How about systemDRM?

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    4. Re: DRM rename by Lord+Bitman · · Score: 1

      That does nothing to help the problem. It isn't "management", either. It's just broken software.

      True DRM, ie: something which actually tries to keep track of what I have the right to use, do, and consume, based on the often fickle nuances of intentional IP law, I would pay money for

      --
      -- 'The' Lord and Master Bitman On High, Master Of All
    5. Re: DRM rename by someoneOtherThanMe · · Score: 1

      No, it's just fine. Read "to manage something" as "to lessen something" or "to lessen the consequences of something". Like weight management, anger management, crisis management...

  3. Re:Oh boy by svanheulen · · Score: 5, Informative

    DRM in this context is "Direct Rendering Manager" not "Digital rights management" https://en.wikipedia.org/wiki/...

  4. Direct Rendering Manager by Anonymous Coward · · Score: 2, Informative

    A stupid name if there ever was one.

  5. Text mode by Spazmania · · Score: 4, Interesting

    How about letting me use the Direct Rendering Manager in X without disrupting my console text mode? Leave my text alone!

    --
    Moderating "-1, Disagree" is simple censorship. Have the guts to post your opinion.
  6. Re:Oh boy by ArchieBunker · · Score: 5, Funny

    Who the hell thought that was a good idea? Next up we have the New Accelerated Micro Binary Launcher Assembly.

    --
    Only the State obtains its revenue by coercion. - Murray Rothbard
  7. light by fluffernutter · · Score: 1

    I've tried a lot of distributions over the years and I can't say I've ever found an interface that felt totally 'light' for linux. I'm not a big fan of OS/X but I can say that it is one thing they got right. Windows even feels light by comparison. I hope it is changing for the better.

    --
    Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
    1. Re:light by execthts · · Score: 1

      Try xfce.

    2. Re:light by fluffernutter · · Score: 1

      I have. It is obvious that XFCE gets it's lightness from being minimal.

      --
      Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
    3. Re:light by fluffernutter · · Score: 1

      I meant 'full' windows managers. I did try DWM. It gets it's speed from pretty much forcing the users to configure it, too much tradeoff.

      --
      Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
    4. Re:light by OneHundredAndTen · · Score: 1

      What is it incapable of doing that you just can't do without?

  8. Re: Oh boy by svanheulen · · Score: 2

    Most consumer desktop video cards have a both an open source driver and a proprietary driver available for Linux.

  9. Actual tech news on Slashdot?? And it’s hidd by Anonymous Coward · · Score: 1

    Meanwhile, political bullshit drama and meaningless crapticles populate the homepage ...

    This site does not deserve the name "Slashdot". The tagline should be "News for 'tards, stuff that saddens."

  10. Re:Oh boy by Stormwatch · · Score: 2, Interesting

    Framerate-Accelerating General Graphics Operations Technology.

  11. Kernel mode settings by DrYak · · Score: 1

    Leave my text alone!

    That would require kernel-mode settings.
    But very likely you have still a user-mode-setting driver, because you're using Nvidia GPUs.

    Stop using Nvidia hardware with their proprietary blob that doesn't play nicely with the rest of the usual Linux stack.
    (In a gross over simplification, Nvidia basically recompile their Windows driver for Linux. So if they need something that work differently, or if Linux some things being done differently, well too bad for you. Too bad for you if you have a laptop that goes into suspend or want to switch to a text console virtual terminal)

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  12. Re:Oh boy by DeVilla · · Score: 3, Informative

    DRM was a term a video interface in the Linux kernel before it became a euphemism for consumer abuse in the publishing industry.

  13. Re:why is the graphics subsystem churning for deca by EzInKy · · Score: 1

    Because just about everyone wants killer graphics instead of just good enough?

    --
    Time is what keeps everything from happening all at once.
  14. Re:why is the graphics subsystem churning for deca by Gavagai80 · · Score: 1

    Making an X11 killer is easy. The problem is nobody will install that because it won't work with everyone's X11 stuff, so the developers have to go back and make their X11 killer do everything exactly like X11 does so that it works with decades of legacy software and workflows.

    --
    This space intentionally left blank
  15. Re:why is the graphics subsystem churning for deca by guruevi · · Score: 1

    X works and is great as a windowing system. Leaving the dressup to the client is good and with modern IPC is fast enough. Combine X with a good typesetting system (eg. LaTeX or Postscript) a la NeXT and what eventually evolved into Mac OS X and it is perfect - you can make pixel-perfect documents from screen to print or make any screen copy-pastable without the program requiring you to implement a custom menu or data export routine.

    In modern days, I would say a rendering engine (XML/HTML) may be better from a developer perspective (since you're already developing a web browser) but on the other hand, all the ML's are unnecessarily chatty.

    --
    Custom electronics and digital signage for your business: www.evcircuits.com
  16. Re:Somebody tell me by AHuxley · · Score: 2

    A free to pay game will look as pretty on Linux. Just like Windows and OS X and the cell phone.

    --
    Domestic spying is now "Benign Information Gathering"
  17. Re:why is the graphics subsystem churning for deca by serviscope_minor · · Score: 1

    decades of legacy software and workflows.

    Legacy, n. Something distinguished from the competition by actually working.

    I like remote windowing and I like middle click to paste.

    --
    SJW n. One who posts facts.
  18. jwm if you don't need desktop icons by technosaurus · · Score: 1

    jwm provides 90% of a desktop environment and is part of what makes Puppy Linux so fast/light, (disclaimer I've made a few contributions to Puppy and jwm)
    Switching to Wayland+Weston-alikes won't be much lighter (maybe faster due to GPU acceleration) and since decorations are handled by the apps it looks like a shinier version of the old mismatched motif/tcl-tk/gtk/kde UI days. Many of the problems with X that wayland was developed to solve have been quietly mitigated in the kernel, but not implemented in the Xserver or libraries AFAICT; for example: socket splicing (since Linux-4.2) could be used to speed up large X requests and c99 variable length arrays could be incorporated into X requests so that a single function could handle all requests as a pointer to a struct rather than copying and passing around a huge amount of data using a different function for each request... this should have been part of xcb
    If anyone is interested in making the situation better for wayland, check out the Wayland/Weston and Mesa source and this low level linux graphics tutorial: http://betteros.org/tut/graphi...

    1. Re:jwm if you don't need desktop icons by fluffernutter · · Score: 1

      I don't typically run linux on systems with GPU acceleration.

      --
      Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
  19. Re:Somebody tell me by OneHundredAndTen · · Score: 1

    So, if you are not into games, this does nothing for you?

  20. Re:why is the graphics subsystem churning for deca by Monster_user · · Score: 1

    Or, alternatively, be something worth porting to or developing for. If you want to be an X11 killer, then be something that kills the X11 software library.

  21. Re:Somebody tell me by drinkypoo · · Score: 1

    A free to pay game will look as pretty on Linux. Just like Windows and OS X and the cell phone.

    Your average free to pay game isn't available on Linux, even if the engine it's developed on is supported there. I play Armored Warfare, which is for PS4 and Windows only, even though it's based on Cryengine. Games are literally the only reason I still run Windows, and I both dual-boot and have a dedicated Linux box (plus various other small Linux systems, mostly ARM-based.)

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"