<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 14, 2018 at 8:07 PM, Rob Clark <span dir="ltr"><<a href="mailto:robdclark@gmail.com" target="_blank">robdclark@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Aug 14, 2018 at 9:00 AM Pradeep Reddy<br>
<<a href="mailto:pradeep.mundlapudi5@gmail.com">pradeep.mundlapudi5@gmail.com</a><wbr>> wrote:<br>
><br>
> Hi Archit,<br>
><br>
> I have enabled splash screen (penguin) in bootloader with fastboot oem select-display-panel hdmi. Kernel crashes during boot. I identified that there is issue with below two smmu clocks.<br>
> static struct clk_branch smmu_mdp_ahb_clk = {<br>
>         .halt_reg = 0x2454,<br>
>         .clkr = {<br>
>                 .enable_reg = 0x2454,<br>
>                 .enable_mask = BIT(0),<br>
><br>
> static struct clk_branch smmu_mdp_axi_clk = {<br>
>         .halt_reg = 0x2458,<br>
>         .clkr = {<br>
>                 .enable_reg = 0x2458,<br>
>                 .enable_mask = BIT(0),<br>
><br>
> I tried to reset the clocks in mmcc_msm8996_probe, with the below changes.<br>
>        regmap_update_bits(regmap, 0x2454, BIT(0), 0);<br>
>         regmap_update_bits(regmap, 0x2458, BIT(0), 0);<br>
><br>
> Then i don't see a kernel crash but blue screen appears after penguin for some time. Then HDMI display comes up.<br>
><br>
> Can you please let me know better way to reset smmu clocks?<br>
><br>
<br>
</span>tbh, this is probably the tip of the iceberg.. It is going to take a<br>
fair bit of work to make this work properly, especially with something<br>
like hdmi were we need to readback hw state to figure out display<br>
timings.  I started something a year or so back on db410c, but it<br>
needs some clk framework changes and some gdsc changes.  I'm not sure<br>
anyone has had a chance to pick up this work since then.<br>
<br>
Do you *really* need to enable the display from the bootloader.  By<br>
*far* the easiest solution is to not do that.<br>
<br></blockquote><div>Thanks Rob, for detailed  explanation.</div><div>Some of Android users use hdmi as primary display. when they switch to linux, they face kernel crash. </div><div>we suggest them to run the command 'fastboot oem select-display-panel' (blank string). </div><div>so, thought to come up with better solution.</div><div><br></div><div>Thanks,</div><div>Pradeep</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
BR,<br>
-R<br>
</blockquote></div><br></div></div>