Skip to contentSkip to conversation

xf86-video-tegra or xf86-video-modesetting?

DISCUSSION Thierry Reding 9 participants 16 messages Nov 24, 2012 – Nov 27, 2012 9 messages not in the archive Tegra architecture support

lore
Share & tools
lore
#0 lore raw

Hi,

With tegra-drm going into Linux 3.8 and NVIDIA posting initial patches for 2D acceleration on top of it, I've been looking at the various ways how this can best be leveraged.

The most obvious choice would be to start work on an xf86-video-tegra driver that uses the code currently in the works to implement the EXA callbacks that allow some of the rendering to be offloaded to the GPU. The way I would go about this is to fork xf86-video-modesetting, do some rebranding and add the various bits required to offload rendering.

However, that has all the usual drawbacks of a fork so I thought maybe it would be better to write some code to xf86-video-modesetting to add GPU-specific acceleration on top. Such code could be leveraged by other drivers as well and all of them could share a common base for the functionality provided through the standard DRM IOCTLs.

That approach has some disadvantages of its own, like the potential bloat if many GPUs do the same. It would also be a bit of a step back to the old monolithic days of X.

So what do other people think?

Thierry

#2 lore raw
In reply to a message not in the archive

Am Samstag, den 24.11.2012, 22:09 +0100 schrieb Thierry Reding:

Quoted 6 lines

Hi,

With tegra-drm going into Linux 3.8 and NVIDIA posting initial patches for 2D acceleration on top of it, I've been looking at the various ways how this can best be leveraged.

Quoted 6 lines

The most obvious choice would be to start work on an xf86-video-tegra driver that uses the code currently in the works to implement the EXA callbacks that allow some of the rendering to be offloaded to the GPU. The way I would go about this is to fork xf86-video-modesetting, do some rebranding and add the various bits required to offload rendering.

As much as I dislike to say this, but forking the modesetting driver to bring in the Tegra specific 2D accel might be the best way to go for now. Especially looking at the very limited resources available to tegradrm development and NVIDIAs expressed desire to do as few changes as possible to their downstream work.

Quoted 6 lines

However, that has all the usual drawbacks of a fork so I thought maybe it would be better to write some code to xf86-video-modesetting to add GPU-specific acceleration on top. Such code could be leveraged by other drivers as well and all of them could share a common base for the functionality provided through the standard DRM IOCTLs.

We don't have any standard DRM IOCTLs for doing acceleration today. The single fact that we are stitching together command streams in userspace for execution by the GPU renders a common interface unusable. We don't even have a common interface to allocate GPU resources suitable for
acceleration: the dumb IOCTLs are only guaranteed to give you a buffer the display engine can scan out from, nothing in there let's you set up more fancy things like tiling etc, which might be needed to operate on the buffer with other engines in some way.

Quoted 4 lines

That approach has some disadvantages of its own, like the potential bloat if many GPUs do the same. It would also be a bit of a step back to the old monolithic days of X.

For some thoughts about how a unified accelerated driver for various hardware devices could be done I would like to point at my presentation at this years XDC.
However doing this right might prove as a major task, so as I already said it might be more worthwhile to just stuff the Tegra specific bits into a fork of the modesetting driver.

Regards,
Lucas

#11 lore raw
In reply to a message not in the archive

Hello,

Quoted 10 lines · Thierry Reding

However, that has all the usual drawbacks of a fork so I thought maybe it would be better to write some code to xf86-video-modesetting to add GPU-specific acceleration on top. Such code could be leveraged by other drivers as well and all of them could share a common base for the functionality provided through the standard DRM IOCTLs.

That approach has some disadvantages of its own, like the potential bloat if many GPUs do the same. It would also be a bit of a step back to the old monolithic days of X.

You can always make the tegra part a submodule if you think putting it into the driver directly is too monolithic.

Thanks

Michal

#3 lore raw
In reply to Lucas Stach
Quoted 13 lines · Lucas Stach

Am Samstag, den 24.11.2012, 22:09 +0100 schrieb Thierry Reding:

Quoted 6 lines

Hi,

With tegra-drm going into Linux 3.8 and NVIDIA posting initial patches for 2D acceleration on top of it, I've been looking at the various ways how this can best be leveraged.

Quoted 6 lines

The most obvious choice would be to start work on an xf86-video-tegra driver that uses the code currently in the works to implement the EXA callbacks that allow some of the rendering to be offloaded to the GPU. The way I would go about this is to fork xf86-video-modesetting, do some rebranding and add the various bits required to offload rendering.

Quoted 5 lines

As much as I dislike to say this, but forking the modesetting driver to bring in the Tegra specific 2D accel might be the best way to go for now. Especially looking at the very limited resources available to tegradrm development and NVIDIAs expressed desire to do as few changes as possible to their downstream work.

So true. But I'm not sure if it's a good excuse to not do things the right way, even if it ends up being more work. If the general situation can be improved then I think it's worth the effort.

Quoted 6 lines
Quoted 6 lines

However, that has all the usual drawbacks of a fork so I thought maybe it would be better to write some code to xf86-video-modesetting to add GPU-specific acceleration on top. Such code could be leveraged by other drivers as well and all of them could share a common base for the functionality provided through the standard DRM IOCTLs.

Quoted 8 lines

We don't have any standard DRM IOCTLs for doing acceleration today. The single fact that we are stitching together command streams in userspace for execution by the GPU renders a common interface unusable. We don't even have a common interface to allocate GPU resources suitable for
acceleration: the dumb IOCTLs are only guaranteed to give you a buffer the display engine can scan out from, nothing in there let's you set up more fancy things like tiling etc, which might be needed to operate on the buffer with other engines in some way.

With the common base that could be shared I meant all the modesetting code and framebuffer setup that xf86-video-modesetting already does. I've been wanting to add support for planes as well, which comes with another set of standard IOCTLs in DRM.

Rewriting all of that in different drivers doesn't seem very desirable to me and sounds like a lot of wasted effort. And that's not couting the maintenance burden to keep up with the latest changes in the generic modesetting driver.

Quoted 10 lines
Quoted 4 lines

That approach has some disadvantages of its own, like the potential bloat if many GPUs do the same. It would also be a bit of a step back to the old monolithic days of X.

For some thoughts about how a unified accelerated driver for various hardware devices could be done I would like to point at my presentation at this years XDC.
However doing this right might prove as a major task, so as I already said it might be more worthwhile to just stuff the Tegra specific bits into a fork of the modesetting driver.

One major advantage of putting this into the modesetting driver is that as more hardware support is added common patterns might emerge and make it easier to refactor things into generic code.

Thierry

#13 lore raw
In reply to a message not in the archive
Quoted 11 lines · Michal Suchanek

Hello,

Quoted 6 lines · Thierry Reding

However, that has all the usual drawbacks of a fork so I thought maybe it would be better to write some code to xf86-video-modesetting to add GPU-specific acceleration on top. Such code could be leveraged by other drivers as well and all of them could share a common base for the functionality provided through the standard DRM IOCTLs.

Quoted 7 lines
Quoted 4 lines

That approach has some disadvantages of its own, like the potential bloat if many GPUs do the same. It would also be a bit of a step back to the old monolithic days of X.

You can always make the tegra part a submodule if you think putting it into the driver directly is too monolithic.

Good point. I suppose it could also be made selectable at compile time, similar to how things are done in libdrm. I'm not particularly worried about the monolithic aspect, but I wanted to bring it up for discussion and see what other people think.

Thierry

#10 lore raw
In reply to Lucas Stach
Quoted 5 lines · Lucas Stach

As much as I dislike to say this, but forking the modesetting driver to bring in the Tegra specific 2D accel might be the best way to go for now. Especially looking at the very limited resources available to tegradrm development and NVIDIAs expressed desire to do as few changes as possible to their downstream work.

Which changes to downstream work would these be? What changes would help in getting the acceleration support into mode setting driver?

We've done quite a lot of changes in downstream nvhost to help upstreaming, and I'll keep downstream nvhost as close to upstream as possible when/if nvhost wiggles its way into upstream. But you might be talking about something else.

Quoted 3 lines

We don't have any standard DRM IOCTLs for doing acceleration today. The single fact that we are stitching together command streams in userspace for execution by the GPU renders a common interface unusable. We don't

Command streams for Tegra 2D are easiest to stitch together in user space. We have discussed the possibility to implement some simple operations in kernel, too, f.ex. using 2D to clear or copy a memory region. But in the end there are not too many reasons to implement that in kernel versus doing it in user space.

Do we have to even attempt standardizing the IOCTLs? The standardization could happen in libdrm level. We've already implemented some common 2D operations for Tegra 2D, but we haven't yet solved the question that where should we put the code in - in our internal tree it's now inside libdrm. None of the other GPUs supported by libdrm implement acceleration inside libdrm, so if we follow that, we'll just provide libtegradrm with the 2D operations. That'll require a Tegra specific modesetting driver.

Path of least resistance?

Terje

#14 lore raw
In reply to a message not in the archive
Quoted 16 lines · Thierry Reding

going into Linux 3.8 and NVIDIA posting initial patches
for 2D acceleration on top of it, I've been looking at the various ways how this can best be leveraged.

The most obvious choice would be to start work on an xf86-video-tegra driver that uses the code currently in the works to implement the EXA callbacks that allow some of the rendering to be offloaded to the GPU. The way I would go about this is to fork xf86-video-modesetting, do some rebranding and add the various bits required to offload rendering.

However, that has all the usual drawbacks of a fork so I thought maybe it would be better to write some code to xf86-video-modesetting to add GPU-specific acceleration on top. Such code could be leveraged by other drivers as well and all of them could share a common base for the functionality provided through the standard DRM IOCTLs.

Quoted 3 lines

That approach has some disadvantages of its own, like the potential bloat if many GPUs do the same. It would also be a bit of a step back to the old monolithic days of X.

Just fork and fill in your own GPU specific bits. Most accel stuff ends up being very GPU specific.

Alex

#21 lore raw
In reply to a message not in the archive

In technical, it's true to focus xf86-video-modesetting on the hardware independent stuffs/making frameworks and GPU vendors upstreams their hardware dependent codes. But this needs a lot of cooperation and the progress would be slow. This is not GPU vendors want so I assume they'll not put lots of efforts into it.

So I think it's better to fork the xf86-video-modesetting right now unless someday most of the GPU vendors are willing to work together and do contributions to modesetting driver.

Mark

Quoted 31 lines · Thierry Reding

* PGP Signed by an unknown key

Hi,

With tegra-drm going into Linux 3.8 and NVIDIA posting initial patches for 2D acceleration on top of it, I've been looking at the various ways how this can best be leveraged.

The most obvious choice would be to start work on an xf86-video-tegra driver that uses the code currently in the works to implement the EXA callbacks that allow some of the rendering to be offloaded to the GPU. The way I would go about this is to fork xf86-video-modesetting, do some rebranding and add the various bits required to offload rendering.

However, that has all the usual drawbacks of a fork so I thought maybe it would be better to write some code to xf86-video-modesetting to add GPU-specific acceleration on top. Such code could be leveraged by other drivers as well and all of them could share a common base for the functionality provided through the standard DRM IOCTLs.

That approach has some disadvantages of its own, like the potential bloat if many GPUs do the same. It would also be a bit of a step back to the old monolithic days of X.

So what do other people think?

Thierry

* Unknown Key
* 0x7F3EB3A1

#16 lore raw
In reply to a message not in the archive
Quoted 18 lines · Alex Deucher
Quoted 16 lines · Thierry Reding

going into Linux 3.8 and NVIDIA posting initial patches
for 2D acceleration on top of it, I've been looking at the various ways how this can best be leveraged.

The most obvious choice would be to start work on an xf86-video-tegra driver that uses the code currently in the works to implement the EXA callbacks that allow some of the rendering to be offloaded to the GPU. The way I would go about this is to fork xf86-video-modesetting, do some rebranding and add the various bits required to offload rendering.

However, that has all the usual drawbacks of a fork so I thought maybe it would be better to write some code to xf86-video-modesetting to add GPU-specific acceleration on top. Such code could be leveraged by other drivers as well and all of them could share a common base for the functionality provided through the standard DRM IOCTLs.

Quoted 6 lines
Quoted 3 lines

That approach has some disadvantages of its own, like the potential bloat if many GPUs do the same. It would also be a bit of a step back to the old monolithic days of X.

Just fork and fill in your own GPU specific bits. Most accel stuff ends up being very GPU specific.

That doesn't exclude the alternative that I described. Maybe I didn't express what I had in mind very clearly. What I propose is to add some code to the modesetting driver that would allow GPU-specific code to be called if matching hardware is detected (perhaps as stupidly as looking at the DRM driver name/version). Such code could perhaps be called from the DDX' .ScreenInit and call the GPU-specific function to register an EXA driver.

That would allow a large body of code (modesetting, VT switching, ...) to be shared among a number of drivers instead of duplicating the code for each one and having to keep merging updates from the modesetting driver as it evolves. So the GPU-specific acceleration would just sit on top of the existing code and only be activated on specific hardware. What I'm *not* proposing is to create an abstraction layer for acceleration.

Thierry

#18 lore raw
In reply to a message not in the archive
Quoted 34 lines · Thierry Reding
Quoted 18 lines · Alex Deucher
Quoted 16 lines · Thierry Reding

going into Linux 3.8 and NVIDIA posting initial patches
for 2D acceleration on top of it, I've been looking at the various ways how this can best be leveraged.

The most obvious choice would be to start work on an xf86-video-tegra driver that uses the code currently in the works to implement the EXA callbacks that allow some of the rendering to be offloaded to the GPU. The way I would go about this is to fork xf86-video-modesetting, do some rebranding and add the various bits required to offload rendering.

However, that has all the usual drawbacks of a fork so I thought maybe it would be better to write some code to xf86-video-modesetting to add GPU-specific acceleration on top. Such code could be leveraged by other drivers as well and all of them could share a common base for the functionality provided through the standard DRM IOCTLs.

Quoted 6 lines
Quoted 3 lines

That approach has some disadvantages of its own, like the potential bloat if many GPUs do the same. It would also be a bit of a step back to the old monolithic days of X.

Just fork and fill in your own GPU specific bits. Most accel stuff ends up being very GPU specific.

That doesn't exclude the alternative that I described. Maybe I didn't express what I had in mind very clearly. What I propose is to add some code to the modesetting driver that would allow GPU-specific code to be called if matching hardware is detected (perhaps as stupidly as looking at the DRM driver name/version). Such code could perhaps be called from the DDX' .ScreenInit and call the GPU-specific function to register an EXA driver.

Quoted 8 lines

That would allow a large body of code (modesetting, VT switching, ...) to be shared among a number of drivers instead of duplicating the code for each one and having to keep merging updates from the modesetting driver as it evolves. So the GPU-specific acceleration would just sit on top of the existing code and only be activated on specific hardware. What I'm *not* proposing is to create an abstraction layer for acceleration.

vmware kinda did something like that initially with modesetting, it was a bit messier, it would be nice though to just plug in stuff like glamor and things, but you still need to deal with pixmap allocation on a per-gpu basis.

I'd rather make the modesetting code into a library, either separate or in the X server, but i've also investigated that and found it was too much effort for me at the time also.

Dave.

#20 lore raw
In reply to a message not in the archive
Quoted 45 lines · Dave Airlie
Quoted 34 lines · Thierry Reding
Quoted 18 lines · Alex Deucher
Quoted 16 lines · Thierry Reding

going into Linux 3.8 and NVIDIA posting initial patches
for 2D acceleration on top of it, I've been looking at the various ways how this can best be leveraged.

The most obvious choice would be to start work on an xf86-video-tegra driver that uses the code currently in the works to implement the EXA callbacks that allow some of the rendering to be offloaded to the GPU. The way I would go about this is to fork xf86-video-modesetting, do some rebranding and add the various bits required to offload rendering.

However, that has all the usual drawbacks of a fork so I thought maybe it would be better to write some code to xf86-video-modesetting to add GPU-specific acceleration on top. Such code could be leveraged by other drivers as well and all of them could share a common base for the functionality provided through the standard DRM IOCTLs.

Quoted 6 lines
Quoted 3 lines

That approach has some disadvantages of its own, like the potential bloat if many GPUs do the same. It would also be a bit of a step back to the old monolithic days of X.

Just fork and fill in your own GPU specific bits. Most accel stuff ends up being very GPU specific.

That doesn't exclude the alternative that I described. Maybe I didn't express what I had in mind very clearly. What I propose is to add some code to the modesetting driver that would allow GPU-specific code to be called if matching hardware is detected (perhaps as stupidly as looking at the DRM driver name/version). Such code could perhaps be called from the DDX' .ScreenInit and call the GPU-specific function to register an EXA driver.

Quoted 8 lines

That would allow a large body of code (modesetting, VT switching, ...) to be shared among a number of drivers instead of duplicating the code for each one and having to keep merging updates from the modesetting driver as it evolves. So the GPU-specific acceleration would just sit on top of the existing code and only be activated on specific hardware. What I'm *not* proposing is to create an abstraction layer for acceleration.

Quoted 4 lines

vmware kinda did something like that initially with modesetting, it was a bit messier, it would be nice though to just plug in stuff like glamor and things, but you still need to deal with pixmap allocation on a per-gpu basis.

I'm still very new to this game and I probably have a lot of catching up to do. However I would expect it to be possible to override pixmap allocation with GPU specific implementations. I've been looking at some implementations of DDX drivers and I seem to remember that pixmap management was done in the EXA driver, in which case it would be part of the GPU specific code anyway.

Quoted 3 lines

I'd rather make the modesetting code into a library, either separate or in the X server, but i've also investigated that and found it was too much effort for me at the time also.

That idea occurred to me as well. Given my lack of experience I'm not sure I'd be very well suited for the job if you already judged it to be too much effort...

Thierry

#5 lore raw
In reply to a message not in the archive
Quoted 44 lines · Thierry Reding
Quoted 13 lines · Lucas Stach

Am Samstag, den 24.11.2012, 22:09 +0100 schrieb Thierry Reding:

Quoted 6 lines

Hi,

With tegra-drm going into Linux 3.8 and NVIDIA posting initial patches for 2D acceleration on top of it, I've been looking at the various ways how this can best be leveraged.

Quoted 6 lines

The most obvious choice would be to start work on an xf86-video-tegra driver that uses the code currently in the works to implement the EXA callbacks that allow some of the rendering to be offloaded to the GPU. The way I would go about this is to fork xf86-video-modesetting, do some rebranding and add the various bits required to offload rendering.

Quoted 5 lines

As much as I dislike to say this, but forking the modesetting driver to bring in the Tegra specific 2D accel might be the best way to go for now. Especially looking at the very limited resources available to tegradrm development and NVIDIAs expressed desire to do as few changes as possible to their downstream work.

So true. But I'm not sure if it's a good excuse to not do things the right way, even if it ends up being more work. If the general situation can be improved then I think it's worth the effort.

Quoted 6 lines
Quoted 6 lines

However, that has all the usual drawbacks of a fork so I thought maybe it would be better to write some code to xf86-video-modesetting to add GPU-specific acceleration on top. Such code could be leveraged by other drivers as well and all of them could share a common base for the functionality provided through the standard DRM IOCTLs.

Quoted 8 lines

We don't have any standard DRM IOCTLs for doing acceleration today. The single fact that we are stitching together command streams in userspace for execution by the GPU renders a common interface unusable. We don't even have a common interface to allocate GPU resources suitable for
acceleration: the dumb IOCTLs are only guaranteed to give you a buffer the display engine can scan out from, nothing in there let's you set up more fancy things like tiling etc, which might be needed to operate on the buffer with other engines in some way.

With the common base that could be shared I meant all the modesetting code and framebuffer setup that xf86-video-modesetting already does. I've been wanting to add support for planes as well, which comes with another set of standard IOCTLs in DRM.

Quoted 5 lines

Rewriting all of that in different drivers doesn't seem very desirable to me and sounds like a lot of wasted effort. And that's not couting the maintenance burden to keep up with the latest changes in the generic modesetting driver.

You don't really end up rewriting it, most people just copy the modesetting driver, change the name, and start adding acceleration; in which case, the work is already done. Also, the generic code doesn't change much. Based on other ddxes, you rarely have to change the modesetting and framebuffer code. Most of the work ends up being the device specific acceleration and memory management code. Also, depending on what hardware is available, I'm not sure traditional 2D engines will gain much over shadowfb other than hw accelerated buffer swaps for GL. In my opinion something like glamor is the best bet for mapping legacy X APIs on to modern GL hw.

Alex

#22 lore raw
In reply to a message not in the archive
Quoted 11 lines · Thierry Reding

Hi,

With tegra-drm going into Linux 3.8 and NVIDIA posting initial patches for 2D acceleration on top of it, I've been looking at the various ways how this can best be leveraged.

The most obvious choice would be to start work on an xf86-video-tegra driver that uses the code currently in the works to implement the EXA callbacks that allow some of the rendering to be offloaded to the GPU. The way I would go about this is to fork xf86-video-modesetting, do some rebranding and add the various bits required to offload rendering.

From a purely logistical standpoint, if you do choose to create a fork, calling it xf86-video-tegra might be a problem since there's already an existing tegra_drv.so.

You could probably graft tegradrm support onto xf86-video-nv pretty easily, if you want to reuse an existing driver package.

-- Aaron

#24 lore raw
In reply to a message not in the archive
Quoted 13 lines · Aaron Plattner
Quoted 11 lines · Thierry Reding

Hi,

With tegra-drm going into Linux 3.8 and NVIDIA posting initial patches for 2D acceleration on top of it, I've been looking at the various ways how this can best be leveraged.

The most obvious choice would be to start work on an xf86-video-tegra driver that uses the code currently in the works to implement the EXA callbacks that allow some of the rendering to be offloaded to the GPU. The way I would go about this is to fork xf86-video-modesetting, do some rebranding and add the various bits required to offload rendering.

Quoted 3 lines

From a purely logistical standpoint, if you do choose to create a fork, calling it xf86-video-tegra might be a problem since there's already an existing tegra_drv.so.

Right, you already use that name. Anyone have any great ideas for a new name?

Quoted 2 lines

You could probably graft tegradrm support onto xf86-video-nv pretty easily, if you want to reuse an existing driver package.

I think I'd rather go with a fork of the modesetting driver since it already provides everything that we need and only the acceleration bits need to be added on top.

Thierry

#7 lore raw
In reply to a message not in the archive
Quoted 2 lines · Alex Deucher

On Sun, Nov 25, 2012 at 8:37 AM, Thierry Reding <[email protected]> wrote:

...

Quoted 11 lines
Quoted 10 lines

With the common base that could be shared I meant all the modesetting code and framebuffer setup that xf86-video-modesetting already does. I've been wanting to add support for planes as well, which comes with another set of standard IOCTLs in DRM.

Rewriting all of that in different drivers doesn't seem very desirable to me and sounds like a lot of wasted effort. And that's not couting the maintenance burden to keep up with the latest changes in the generic modesetting driver.

Quoted 10 lines

You don't really end up rewriting it, most people just copy the modesetting driver, change the name, and start adding acceleration; in which case, the work is already done. Also, the generic code doesn't change much. Based on other ddxes, you rarely have to change the modesetting and framebuffer code. Most of the work ends up being the device specific acceleration and memory management code. Also, depending on what hardware is available, I'm not sure traditional 2D engines will gain much over shadowfb other than hw accelerated buffer swaps for GL. In my opinion something like glamor is the best bet for mapping legacy X APIs on to modern GL hw.

Rather than have every driver cut/paste the modesetting code, can't the modesetting core of the DDX be pulled out into a utility library or similar, so that it can just be compiled/linked into all the DDXs without actually duplicating the code? That way there's no code duplication, but each DDX can still be flexible about all the HW-specific code without making a monolithic DDX.

#9 lore raw
In reply to a message not in the archive
Quoted 26 lines · Stephen Warren
Quoted 2 lines · Alex Deucher

On Sun, Nov 25, 2012 at 8:37 AM, Thierry Reding <[email protected]> wrote:

...

Quoted 11 lines
Quoted 10 lines

With the common base that could be shared I meant all the modesetting code and framebuffer setup that xf86-video-modesetting already does. I've been wanting to add support for planes as well, which comes with another set of standard IOCTLs in DRM.

Rewriting all of that in different drivers doesn't seem very desirable to me and sounds like a lot of wasted effort. And that's not couting the maintenance burden to keep up with the latest changes in the generic modesetting driver.

Quoted 10 lines

You don't really end up rewriting it, most people just copy the modesetting driver, change the name, and start adding acceleration; in which case, the work is already done. Also, the generic code doesn't change much. Based on other ddxes, you rarely have to change the modesetting and framebuffer code. Most of the work ends up being the device specific acceleration and memory management code. Also, depending on what hardware is available, I'm not sure traditional 2D engines will gain much over shadowfb other than hw accelerated buffer swaps for GL. In my opinion something like glamor is the best bet for mapping legacy X APIs on to modern GL hw.

Quoted 7 lines

Rather than have every driver cut/paste the modesetting code, can't the modesetting core of the DDX be pulled out into a utility library or similar, so that it can just be compiled/linked into all the DDXs without actually duplicating the code? That way there's no code duplication, but each DDX can still be flexible about all the HW-specific code without making a monolithic DDX.

If someone has the time to look into it further, it could probably be done. I'm not sure there would be much to share at the end however.

Alex