From: Felipe Balbi <balbi@kernel.org>
To: Felipe Balbi <balbi@ti.com>, linux-usb@vger.kernel.org
Cc: tim.bird@sonymobile.com, linux-arm-msm@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, ivan.ivanov@linaro.org,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Subject: Re: [PATCH] usb: phy: msm: fix error handling in probe.
Date: Wed, 13 Jan 2016 01:41:41 -0600 [thread overview]
Message-ID: <8760yyhqoa.fsf@ti.com> (raw)
In-Reply-To: <1452593376-7163-1-git-send-email-srinivas.kandagatla@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 2251 bytes --]
Hi,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org> writes:
> This driver registers for extcon events as part of its probe, but
> never unregisters them in case of error in the probe path.
>
> There were multiple issues noticed due to this missing error handling.
> One of them is random crashes if the regulators are not ready yet by the
> time probe is invoked.
>
> Ivan's previous attempt [1] to fix this issue, did not really address
> all the failure cases like regualtor failures.
>
> [1] https://lkml.org/lkml/2015/9/7/62
>
> Without this patch the kernel would carsh with log:
> ...
> Unable to handle kernel paging request at virtual address 17d78410
> pgd = ffffffc001a5c000
> [17d78410] *pgd=00000000b6806003, *pud=00000000b6806003, *pmd=0000000000000000
> Internal error: Oops: 96000005 [#1] PREEMPT SMP
> Modules linked in:
> CPU: 0 PID: 6 Comm: kworker/u8:0 Not tainted 4.4.0+ #48
> Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
> Workqueue: deferwq deferred_probe_work_func
> task: ffffffc03686e900 ti: ffffffc0368b0000 task.ti: ffffffc0368b0000
> PC is at raw_notifier_chain_register+0x1c/0x44
> LR is at extcon_register_notifier+0x88/0xc8
> pc : [<ffffffc0000da43c>] lr : [<ffffffc000606298>] pstate: 80000085
> sp : ffffffc0368b3a70
> x29: ffffffc0368b3a70 x28: ffffffc03680c310
> x27: ffffffc035518000 x26: ffffffc035518000
> x25: ffffffc03bfa20e0 x24: ffffffc035580a18
> x23: 0000000000000000 x22: ffffffc035518458
> x21: ffffffc0355e9a60 x20: ffffffc035518000
> x19: 0000000000000000 x18: 0000000000000028
> x17: 0000000000000003 x16: ffffffc0018153c8
> x15: 0000000000000001 x14: ffffffc03686f0f8
> x13: ffffffc03686f0f8 x12: 0000000000000003
> x11: 0000000000000001 x10: 0000000000000001
> x9 : ffffffc03686f0f8 x8 : 0000e3872014c1a1
> x7 : 0000000000000028 x6 : 0000000000000000
> x5 : 0000000000000001 x4 : 0000000000000000
> x3 : 00000000354fb170 x2 : 0000000017d78400
> x1 : ffffffc0355e9a60 x0 : ffffffc0354fb268
>
you need to "blame" a commit with:
Fixes: First-12-characters-of-commit-hash ("commit subject line")
and if the failing commit sits in a released kernel, you also need to
add:
Cc: <stable@vger.kernel.org> # vX.Y
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Felipe Balbi <balbi@kernel.org>
To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
Felipe Balbi <balbi@ti.com>,
linux-usb@vger.kernel.org
Cc: tim.bird@sonymobile.com, linux-arm-msm@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, ivan.ivanov@linaro.org,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Subject: Re: [PATCH] usb: phy: msm: fix error handling in probe.
Date: Wed, 13 Jan 2016 01:41:41 -0600 [thread overview]
Message-ID: <8760yyhqoa.fsf@ti.com> (raw)
In-Reply-To: <1452593376-7163-1-git-send-email-srinivas.kandagatla@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 2251 bytes --]
Hi,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org> writes:
> This driver registers for extcon events as part of its probe, but
> never unregisters them in case of error in the probe path.
>
> There were multiple issues noticed due to this missing error handling.
> One of them is random crashes if the regulators are not ready yet by the
> time probe is invoked.
>
> Ivan's previous attempt [1] to fix this issue, did not really address
> all the failure cases like regualtor failures.
>
> [1] https://lkml.org/lkml/2015/9/7/62
>
> Without this patch the kernel would carsh with log:
> ...
> Unable to handle kernel paging request at virtual address 17d78410
> pgd = ffffffc001a5c000
> [17d78410] *pgd=00000000b6806003, *pud=00000000b6806003, *pmd=0000000000000000
> Internal error: Oops: 96000005 [#1] PREEMPT SMP
> Modules linked in:
> CPU: 0 PID: 6 Comm: kworker/u8:0 Not tainted 4.4.0+ #48
> Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
> Workqueue: deferwq deferred_probe_work_func
> task: ffffffc03686e900 ti: ffffffc0368b0000 task.ti: ffffffc0368b0000
> PC is at raw_notifier_chain_register+0x1c/0x44
> LR is at extcon_register_notifier+0x88/0xc8
> pc : [<ffffffc0000da43c>] lr : [<ffffffc000606298>] pstate: 80000085
> sp : ffffffc0368b3a70
> x29: ffffffc0368b3a70 x28: ffffffc03680c310
> x27: ffffffc035518000 x26: ffffffc035518000
> x25: ffffffc03bfa20e0 x24: ffffffc035580a18
> x23: 0000000000000000 x22: ffffffc035518458
> x21: ffffffc0355e9a60 x20: ffffffc035518000
> x19: 0000000000000000 x18: 0000000000000028
> x17: 0000000000000003 x16: ffffffc0018153c8
> x15: 0000000000000001 x14: ffffffc03686f0f8
> x13: ffffffc03686f0f8 x12: 0000000000000003
> x11: 0000000000000001 x10: 0000000000000001
> x9 : ffffffc03686f0f8 x8 : 0000e3872014c1a1
> x7 : 0000000000000028 x6 : 0000000000000000
> x5 : 0000000000000001 x4 : 0000000000000000
> x3 : 00000000354fb170 x2 : 0000000017d78400
> x1 : ffffffc0355e9a60 x0 : ffffffc0354fb268
>
you need to "blame" a commit with:
Fixes: First-12-characters-of-commit-hash ("commit subject line")
and if the failing commit sits in a released kernel, you also need to
add:
Cc: <stable@vger.kernel.org> # vX.Y
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
next prev parent reply other threads:[~2016-01-13 7:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-12 10:09 [PATCH] usb: phy: msm: fix error handling in probe Srinivas Kandagatla
2016-01-13 7:41 ` Felipe Balbi [this message]
2016-01-13 7:41 ` Felipe Balbi
[not found] ` <1452593376-7163-1-git-send-email-srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-01-13 9:13 ` [PATCH v2] " Srinivas Kandagatla
2016-01-13 9:13 ` Srinivas Kandagatla
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=8760yyhqoa.fsf@ti.com \
--to=balbi@kernel.org \
--cc=balbi@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=ivan.ivanov@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=tim.bird@sonymobile.com \
/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.