public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [RFC 0/1] drm/i915 : Wait until SYSTEM_RUNNING before loading CSR firmware
@ 2015-07-13 16:36 jay.p.patel
  2015-07-13 16:36 ` [RFC 1/1] " jay.p.patel
  0 siblings, 1 reply; 7+ messages in thread
From: jay.p.patel @ 2015-07-13 16:36 UTC (permalink / raw)
  To: intel-gfx

From: jay <jay.p.patel@intel.com>

Chrome OS is "noinitrd" OS. It does not normally allow in-built firmware in kernel.
i915 driver initialization precedes the initialization of file system. Hence, loading
fails whenever driver tries to load CSR firmware from file system.

The current implementation uses "request_firmware_nowait()" function which creates
an asynchronous thread running concurrently with the rest of the system initialization.
However it tries to load firmware only once and fails immediately if file does not
exist. The following link discusses the related issue.
(http://thread.gmane.org/gmane.linux.kernel/1787377/focus=1791177)

This patch is an interim solution which is targeted towards Chrome OS/Android and
to be used until a long term solution is available. request_firmware() is called
in a worker thread which initially waits for file system to be initialized and then
loads the firmware.

This patch is not a merge candidate but its targets an instigation of discussion on
sustainable near term solution for the problem.

Thanks,
Jay

Jay Patel (1):
  drm/i915 : Wait until SYSTEM_RUNNING before loading CSR firmware

 drivers/gpu/drm/i915/i915_drv.c  |  2 ++
 drivers/gpu/drm/i915/intel_csr.c | 58 ++++++++++++++++++++++++++++++++--------
 2 files changed, 49 insertions(+), 11 deletions(-)

-- 
2.1.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-08-13  2:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-13 16:36 [RFC 0/1] drm/i915 : Wait until SYSTEM_RUNNING before loading CSR firmware jay.p.patel
2015-07-13 16:36 ` [RFC 1/1] " jay.p.patel
2015-07-14  9:22   ` Daniel Vetter
2015-07-14 20:37     ` Greg KH
2015-07-15  9:34       ` Daniel Vetter
2015-08-12 23:47         ` Ausmus, James
2015-08-13  2:51         ` James Ausmus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox