msm: vidc: Load firmware early only if early-fw-load is true
Load firmware early during probe, only if early-fw-load entry
is set to true in video dtsi. Also fix a race condition issue
related to ocmem allocation during early firmware download.
Video driver calls suspend immediatly after sys init done response
is received from firmware. The suspend call leads to triggering
power collapse immediately. During power collapse, venus hfi
detects there is no ocmem to unset. The ocmem gets allocated only
after the first power collapse is triggered. So the first
power collapse fails. In mean time ocmem gets allocated and
driver goes in to power collapse after two seconds. By removing
suspend call during early firmware download, we prevent the race
condition.
Change-Id: I33b0155faf14c11477a8c205c714ae429dc54550
Signed-off-by:
Arun Menon <avmenon@codeaurora.org>
Loading
Please register or sign in to comment