From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: Linus Walleij <linus.walleij@linaro.org>,
Kumar Gala <galak@codeaurora.org>,
"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>
Cc: Bjorn Andersson <Bjorn.Andersson@sonymobile.com>
Subject: Re: Failure booting DragonBoard APQ8060 after mach-qcom introduction
Date: Mon, 11 Aug 2014 17:35:49 +0100 [thread overview]
Message-ID: <53E8F0E5.3010805@linaro.org> (raw)
In-Reply-To: <CACRpkdYLkKmy_pSizrSvE3x1qpGBUY=djLY0AAyt9CqOzdOoVg@mail.gmail.com>
Hi Linus,
On 11/08/14 13:49, Linus Walleye wrote:
> On Mon, Aug 11, 2014 at 1:42 PM, Linus Walleij <linus.walleij@linaro.org> wrote:
>> On Mon, Aug 11, 2014 at 1:21 PM, Linus Walleij <linus.walleij@linaro.org> wrote:
>>
>>> The symptom is that not even earlyprints come up if I put some
>>> printascii() in start_kernel.
>>
>> Bah that was me not realizing that the defaults for DEBUG_UART_PHYS
>> and DEBUG_UART_VIRT has to be set up properly... now I get the
>> earlyprints.
>>
>> It seems to hang in the gsbi driver probe, off to debug.
>
> It appears that this oneliner gets the kernel booting again:
>
> diff --git a/drivers/soc/qcom/qcom_gsbi.c b/drivers/soc/qcom/qcom_gsbi.c
> index 447458e696a9..1759a3c9140a 100644
> --- a/drivers/soc/qcom/qcom_gsbi.c
> +++ b/drivers/soc/qcom/qcom_gsbi.c
> @@ -57,7 +57,7 @@ static int gsbi_probe(struct platform_device *pdev)
> /* make sure the gsbi control write is not reordered */
> wmb();
>
> - clk_disable_unprepare(hclk);
> + //clk_disable_unprepare(hclk);
>
> return of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev);
> }
>
> The kernel hangs during disable/unprepare of the hclk for the GSBI.
> Turning off hclk's could be dangerous if there are vital system
> components using the hclk which does not yet have a reference
> taken in the kernel, due to missing drivers or similar.
>
There is a patch to fix this
http://www.spinics.net/lists/linux-arm-msm/msg09633.html
> Any ideas?
IMO, hclk is also used by the serial IP, disabling the clock while its
being used by early printk would result in hang, I think that's what you
are seeing.
--srini
>
> Yours,
> Linus Walleij
> --
> To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2014-08-11 16:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-11 11:21 Failure booting DragonBoard APQ8060 after mach-qcom introduction Linus Walleij
2014-08-11 11:42 ` Linus Walleij
2014-08-11 12:49 ` Linus Walleij
2014-08-11 16:35 ` Srinivas Kandagatla [this message]
2014-08-11 18:55 ` Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53E8F0E5.3010805@linaro.org \
--to=srinivas.kandagatla@linaro.org \
--cc=Bjorn.Andersson@sonymobile.com \
--cc=galak@codeaurora.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.