Skip to contentSkip to conversation

drm/mxsfb: rename driver to mxsfb-drm

PATCH In review Stefan Agner 3 participants 8 messages Jun 12, 2018 – Jun 13, 2018

Subsystems (4)
lore
Share & tools
lore

Stefan Agner

author maintainer
#0 lore raw

PATCH 1/1 drm/mxsfb: rename driver to mxsfb-drm

There are two drivers for the LCDIF/MXSFB peripheral. If the DRM
and fbdev are compiled in, the registration of the second driver fails:
mxs-dma 33000000.dma-apbh: initialized
mxsfb 30730000.lcdif: 30730000.lcdif supply lcd not found, using dummy regulator mxsfb 30730000.lcdif: initialized
Error: Driver 'mxsfb' is already registered, aborting...

Avoid driver name conflict with MXS fbdev driver by renaming the more recently added DRM driver.

---
 drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/mxsfb/mxsfb_drv.c +1 -1
index 5cae8db9dcd4..db2935797428 100644
@@ -424,7 +424,7 @@ static struct platform_driver mxsfb_platform_driver = {
 	.remove		= mxsfb_remove,
 	.id_table	= mxsfb_devtype,
 	.driver	= {
-		.name		= "mxsfb",
+		.name		= "mxsfb-drm",
 		.of_match_table	= mxsfb_dt_ids,
 	},
 };
Signature · 6 lines
2.17.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Stefan Agner

There are two drivers for the LCDIF/MXSFB peripheral. If the DRM
and fbdev are compiled in, the registration of the second driver fails:
mxs-dma 33000000.dma-apbh: initialized
mxsfb 30730000.lcdif: 30730000.lcdif supply lcd not found, using dummy regulator mxsfb 30730000.lcdif: initialized
Error: Driver 'mxsfb' is already registered, aborting...

Quoted 4 lines

Avoid driver name conflict with MXS fbdev driver by renaming the more recently added DRM driver.

Yes, this driver name collision is annoying:

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

maintainer
#2 lore raw
Quoted 10 lines · Fabio Estevam
Quoted 8 lines · Stefan Agner

There are two drivers for the LCDIF/MXSFB peripheral. If the DRM
and fbdev are compiled in, the registration of the second driver fails:
mxs-dma 33000000.dma-apbh: initialized
mxsfb 30730000.lcdif: 30730000.lcdif supply lcd not found, using dummy regulator mxsfb 30730000.lcdif: initialized
Error: Driver 'mxsfb' is already registered, aborting...

Quoted 9 lines
Quoted 4 lines

Avoid driver name conflict with MXS fbdev driver by renaming the more recently added DRM driver.

Yes, this driver name collision is annoying:

Why dont we just kill the old fbdev driver instead ?

Signature · 6 lines
Best regards,
Marek Vasut
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
author maintainer
#3 lore raw
Quoted 14 lines · Marek Vasut
Quoted 13 lines · Fabio Estevam
Quoted 11 lines · Stefan Agner

There are two drivers for the LCDIF/MXSFB peripheral. If the DRM
and fbdev are compiled in, the registration of the second driver fails:
mxs-dma 33000000.dma-apbh: initialized
mxsfb 30730000.lcdif: 30730000.lcdif supply lcd not found, using dummy regulator mxsfb 30730000.lcdif: initialized
Error: Driver 'mxsfb' is already registered, aborting...

Avoid driver name conflict with MXS fbdev driver by renaming the more recently added DRM driver.

Quoted 7 lines
Quoted 6 lines
Quoted 1 line

Yes, this driver name collision is annoying:

Why dont we just kill the old fbdev driver instead ?

The config is outside of my direct control, it's a distro kernel...

Or what do you mean exactly? Send a patch to remove the fbdev driver?

--
Stefan
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

maintainer
#4 lore raw
Quoted 19 lines · Stefan Agner
Quoted 18 lines · Marek Vasut
Quoted 17 lines · Fabio Estevam
Quoted 8 lines · Stefan Agner

There are two drivers for the LCDIF/MXSFB peripheral. If the DRM
and fbdev are compiled in, the registration of the second driver fails:
mxs-dma 33000000.dma-apbh: initialized
mxsfb 30730000.lcdif: 30730000.lcdif supply lcd not found, using dummy regulator mxsfb 30730000.lcdif: initialized
Error: Driver 'mxsfb' is already registered, aborting...

Quoted 4 lines

Avoid driver name conflict with MXS fbdev driver by renaming the more recently added DRM driver.

Yes, this driver name collision is annoying:

Quoted 7 lines
Quoted 3 lines
Quoted 2 lines

Why dont we just kill the old fbdev driver instead ?

The config is outside of my direct control, it's a distro kernel...

Or what do you mean exactly? Send a patch to remove the fbdev driver?

Yes, remove the fbdev driver.

Signature · 6 lines
Best regards,
Marek Vasut
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
author maintainer
#5 lore raw

[adding Sascha and Bartlomiej]

Quoted 22 lines · Marek Vasut
Quoted 21 lines · Stefan Agner
Quoted 20 lines · Marek Vasut
Quoted 19 lines · Fabio Estevam
Quoted 8 lines · Stefan Agner

There are two drivers for the LCDIF/MXSFB peripheral. If the DRM
and fbdev are compiled in, the registration of the second driver fails:
mxs-dma 33000000.dma-apbh: initialized
mxsfb 30730000.lcdif: 30730000.lcdif supply lcd not found, using dummy regulator mxsfb 30730000.lcdif: initialized
Error: Driver 'mxsfb' is already registered, aborting...

Quoted 4 lines

Avoid driver name conflict with MXS fbdev driver by renaming the more recently added DRM driver.

Yes, this driver name collision is annoying:

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Why dont we just kill the old fbdev driver instead ?

The config is outside of my direct control, it's a distro kernel...

Or what do you mean exactly? Send a patch to remove the fbdev driver?

Yes, remove the fbdev driver.

Hm, forcing people to use the DRM driver with fbdev emulation is probably fine for most use cases. Currently you cannot use the fbdev ioctrl to change modes/settings to the framebuffer which is probably the only restriction...

It seems to me a rather extreme measure though, given we could fix the situation rather easily.

But I am ok to remove the fbdev driver, if that is what we want.

--
Stefan
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

reviewer
#6 lore raw
Quoted 2 lines · Stefan Agner

It seems to me a rather extreme measure though, given we could fix the situation rather easily.

There are dtb's using the fbdev mxsfb driver like for example:
arch/arm/boot/dts/imx28-evk.dts

If we kill the fbdev mxsfb driver then the display will stop working for some users and I don't think they will be happy.

Last time I tried it was not possible to use the original fbdev mxsfb bindings with the new drm driver.

Of course we can convert to the drm mxsfb driver, but IMHO we should avoid functional breakage all of a sudden.

In the meantime Stefan's patch seems to be a good approach.
_______________________________________________
dri-devel mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

maintainer
#7 lore raw
Quoted 10 lines · Fabio Estevam
Quoted 2 lines · Stefan Agner

It seems to me a rather extreme measure though, given we could fix the situation rather easily.

There are dtb's using the fbdev mxsfb driver like for example:
arch/arm/boot/dts/imx28-evk.dts

If we kill the fbdev mxsfb driver then the display will stop working for some users and I don't think they will be happy.

Maybe it's time to fix them ?

Having two drivers for the same hardware in the kernel is a bad idea and the new driver was in the kernel for long enough for the user of the old deprecated bindings migrated over I think.

Quoted 5 lines

Last time I tried it was not possible to use the original fbdev mxsfb bindings with the new drm driver.

Of course we can convert to the drm mxsfb driver, but IMHO we should avoid functional breakage all of a sudden.

The driver was in the kernel for over a year now though, so it's not new and sudden anymore.

Quoted 2 lines

In the meantime Stefan's patch seems to be a good approach.

Signature · 6 lines
Best regards,
Marek Vasut
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel