From: Dima Zavin <dima@android.com>
To: Daniel Walker <dwalker@codeaurora.org>
Cc: linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH 5/5] arm: msm: smd: fix SMD modem processor sync condition
Date: Mon, 19 Apr 2010 12:06:55 -0700 [thread overview]
Message-ID: <t2v404ea8001004191206o2b029982uecddfc7312ae2fe3@mail.gmail.com> (raw)
In-Reply-To: <1271703705.15004.4.camel@c-dwalke-linux.qualcomm.com>
On Mon, Apr 19, 2010 at 12:01 PM, Daniel Walker <dwalker@codeaurora.org> wrote:
> On Mon, 2010-04-19 at 11:34 -0700, Dima Zavin wrote:
>> Do we really need a formalized blocking point here? The apps processor
>> can do other useful initialization work while the modem is booting.
>> The first time you do a proc_comm call, it checks the PCOM_READY
>> state, and will block anyway. Preventing the apps processor from
>> continuing until then is suboptimal. If there are bugs in the modem
>> code where it incorrectly stomps on shared resources, then those
>> should be fixed. This patch looks like a hack to me.
>
>
> Yes, we need to formalize a blocking point .. The apps processor waits
> in this way no matter what you do .. Like your saying above "The first
> time you do a proc_comm call, it checks the PCOM_READY state, and will
> block anyway" that's a hack .. What your saying is _maybe_ there exists
> a proc_comm call early enough to prevent a crash, or maybe not .. That's
> not formal enough.
That's not at all what I am saying. There's no maybe. If I don't need
anything from the modem, I won't make a proc_comm call. If there is a
crash because the modem is modifying shared resources that affect the
apps processor without an appropriate synchronization point, then it's
a bug on the modem side. Making this change will only mask modem bugs.
--Dima
> This patch makes this a formal process with a comment explain what is
> happening, and we will never see a crash related to this again.
>
> Daniel
>
>
next prev parent reply other threads:[~2010-04-19 19:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-19 18:03 [PATCH 5/5] arm: msm: smd: fix SMD modem processor sync condition Daniel Walker
2010-04-19 18:34 ` Dima Zavin
2010-04-19 19:01 ` Daniel Walker
2010-04-19 19:06 ` Dima Zavin [this message]
2010-04-19 19:11 ` Daniel Walker
2010-04-19 19:23 ` Dima Zavin
2010-04-19 19:42 ` Daniel Walker
2010-04-20 13:37 ` Pavel Machek
2010-04-20 15:44 ` [PATCH] " Daniel Walker
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=t2v404ea8001004191206o2b029982uecddfc7312ae2fe3@mail.gmail.com \
--to=dima@android.com \
--cc=dwalker@codeaurora.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).