Skip to contentSkip to conversation

drm/sti: Remove select of CONFIG_FW_LOADER_USER_HELPER_FALLBACK

PATCH In review Takashi Iwai 3 participants 6 messages Oct 19, 2015 – Nov 2, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/sti: Remove select of CONFIG_FW_LOADER_USER_HELPER_FALLBACK

The commit [4fdbc678fe4d: drm: sti: add HQVDP plane] added the select of CONFIG_FW_LOADER_USER_HELPER_FALLBACK by some unwritten reason. But this config is known to be harmful, and is present only for compatibility reason for an old exotic system that mandates udev interaction which isn't supposed to be selected by a driver. Let's remove it.

Fixes 4fdbc678fe4d ('drm: sti: add HQVDP plane')
---
 drivers/gpu/drm/sti/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/sti/Kconfig +0 -1
index fbccc105819b..a18159074b76 100644
@@ -6,7 +6,6 @@ config DRM_STI
 	select DRM_GEM_CMA_HELPER
 	select DRM_KMS_CMA_HELPER
 	select DRM_PANEL
-	select FW_LOADER_USER_HELPER_FALLBACK
 	help
 	  Choose this option to enable DRM on STM stiH41x chipset
 
Signature · 6 lines
2.6.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

Hi Takashi,

Removing FW_LOADER_USER_HELPER_FALLBACK leads to a failure in our HQVDP firmware execution.
Indeed, our firmware is not built-in. It is a proprietary firmware uploaded into the file system that's why we need the USER_HELPER_FALLBACK to be able to load it once file system is available.

BR
Vincent

Quoted 20 lines · Takashi Iwai

The commit [4fdbc678fe4d: drm: sti: add HQVDP plane] added the select of CONFIG_FW_LOADER_USER_HELPER_FALLBACK by some unwritten reason. But this config is known to be harmful, and is present only for compatibility reason for an old exotic system that mandates udev interaction which isn't supposed to be selected by a driver. Let's remove it.

Fixes 4fdbc678fe4d ('drm: sti: add HQVDP plane')
---
  drivers/gpu/drm/sti/Kconfig | 1 -
  1 file changed, 1 deletion(-)
drivers/gpu/drm/sti/Kconfig +0 -0
index fbccc105819b..a18159074b76 100644

drivers/gpu/drm/sti/Kconfig config DRM_STI · line 11

Quoted 7 lines
drivers/gpu/drm/sti/Kconfig +0 -1
@@ -6,7 +6,6 @@ config DRM_STI
  	select DRM_GEM_CMA_HELPER
  	select DRM_KMS_CMA_HELPER
  	select DRM_PANEL
-	select FW_LOADER_USER_HELPER_FALLBACK
  	help
  	  Choose this option to enable DRM on STM stiH41x chipset
 

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

#2 lore raw
Quoted 8 lines · Vincent ABRIOU

Hi Takashi,

Removing FW_LOADER_USER_HELPER_FALLBACK leads to a failure in our HQVDP firmware execution.
Indeed, our firmware is not built-in. It is a proprietary firmware uploaded into the file system that's why we need the USER_HELPER_FALLBACK to be able to load it once file system is available.

It's not the option a driver can set. It's a global control option that is applied *all* drivers.

If the fallback behavior is mandatory by a weird reason, you'd need to adjust in a different way; e.g. modify the firmware loader code to provide a new API for the driver to give a fallback (i.e. the another flip of request_firmware_direct()) and use that API explicitly.

But I don't believe it's the case. Judging from your comment, it's your system setup that requires the user-space fallback. So don't make the fallback thing mandatory.

thanks,

Takashi

Quoted 19 lines

BR
Vincent

Quoted 14 lines · Takashi Iwai

The commit [4fdbc678fe4d: drm: sti: add HQVDP plane] added the select of CONFIG_FW_LOADER_USER_HELPER_FALLBACK by some unwritten reason. But this config is known to be harmful, and is present only for compatibility reason for an old exotic system that mandates udev interaction which isn't supposed to be selected by a driver. Let's remove it.

Fixes 4fdbc678fe4d ('drm: sti: add HQVDP plane')
---
  drivers/gpu/drm/sti/Kconfig | 1 -
  1 file changed, 1 deletion(-)
Quoted 13 lines

drivers/gpu/drm/sti/Kconfig config DRM_STI · line 11

Quoted 13 lines
drivers/gpu/drm/sti/Kconfig +0 -1
index fbccc105819b..a18159074b76 100644
@@ -6,7 +6,6 @@ config DRM_STI
  	select DRM_GEM_CMA_HELPER
  	select DRM_KMS_CMA_HELPER
  	select DRM_PANEL
-	select FW_LOADER_USER_HELPER_FALLBACK
  	help
  	  Choose this option to enable DRM on STM stiH41x chipset
 

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

#3 lore raw
In reply to Vincent ABRIOU
Quoted 8 lines · Vincent ABRIOU

Hi Takashi,

Removing FW_LOADER_USER_HELPER_FALLBACK leads to a failure in our HQVDP firmware execution.
Indeed, our firmware is not built-in. It is a proprietary firmware uploaded into the file system that's why we need the USER_HELPER_FALLBACK to be able to load it once file system is available.

Hmm most other DRM drivers also require firmware. Whist some allow the firmware to be picked in initrd it's not a strict requirement. So I'm wondering how come there hasn't been (m)any reports, considering that neither one sets USER_HELPER_FALLBACK.

Perhaps they also need it, or something in the sti module is done differently ? Just some food for thought.

Regards,
Emil
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
Quoted 10 lines · Emil Velikov
Quoted 8 lines · Vincent ABRIOU

Hi Takashi,

Removing FW_LOADER_USER_HELPER_FALLBACK leads to a failure in our HQVDP firmware execution.
Indeed, our firmware is not built-in. It is a proprietary firmware uploaded into the file system that's why we need the USER_HELPER_FALLBACK to be able to load it once file system is available.

Quoted 7 lines

Hmm most other DRM drivers also require firmware. Whist some allow the firmware to be picked in initrd it's not a strict requirement. So I'm wondering how come there hasn't been (m)any reports, considering that neither one sets USER_HELPER_FALLBACK.

Perhaps they also need it, or something in the sti module is done differently ? Just some food for thought.

It's the option each user decides to set or not, depending on the deployed system. Most of PCs don't need them, and actually enabling this option causes troubles for them. On other embedded systems, this might be still needed. So, it's the system setup issue, and not the thing a driver needs to care.

Imagine that your driver has "select EXT3_FS" because your system requires it; without that option, it won't boot, OMG!
Is it the right thing? Obviously no. The same logic is applied to this case, too.

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

#5 lore raw

Hi Takashi,

I made a rework to load the firmware at a different time, when file system is available.
I am now able to remove FW_LOADER_USER_HELPER_FALLBACK. I will submit a new patch for this.

Vincent

Quoted 32 lines · Takashi Iwai
Quoted 10 lines · Emil Velikov
Quoted 8 lines · Vincent ABRIOU

Hi Takashi,

Removing FW_LOADER_USER_HELPER_FALLBACK leads to a failure in our HQVDP firmware execution.
Indeed, our firmware is not built-in. It is a proprietary firmware uploaded into the file system that's why we need the USER_HELPER_FALLBACK to be able to load it once file system is available.

Quoted 7 lines

Hmm most other DRM drivers also require firmware. Whist some allow the firmware to be picked in initrd it's not a strict requirement. So I'm wondering how come there hasn't been (m)any reports, considering that neither one sets USER_HELPER_FALLBACK.

Perhaps they also need it, or something in the sti module is done differently ? Just some food for thought.

It's the option each user decides to set or not, depending on the deployed system. Most of PCs don't need them, and actually enabling this option causes troubles for them. On other embedded systems, this might be still needed. So, it's the system setup issue, and not the thing a driver needs to care.

Imagine that your driver has "select EXT3_FS" because your system requires it; without that option, it won't boot, OMG!
Is it the right thing? Obviously no. The same logic is applied to this case, too.

Quoted 6 lines

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

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