* Oops on linux-next during reboot, possibly related to "mmc: core: Handle card shutdown from mmc_bus"
@ 2013-07-01 11:40 Tuomas Tynkkynen
2013-07-02 6:59 ` Jaehoon Chung
2013-07-02 10:56 ` Ulf Hansson
0 siblings, 2 replies; 3+ messages in thread
From: Tuomas Tynkkynen @ 2013-07-01 11:40 UTC (permalink / raw)
To: linux-mmc; +Cc: Ulf Hansson
Hi,
On next-20130628 I get the following Oops during reboot:
[ 89.814921] Unable to handle kernel NULL pointer dereference at virtual address 0000004c
[ 89.824208] pgd = ecd54000
[ 89.827276] [0000004c] *pgd=00000000
[ 89.831340] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[<c040b244>] (mmc_bus_shutdown+0x24/0x70) from [<c032aa6c>] (device_shutdown+0x44/0x19c)
[<c032aa6c>] (device_shutdown+0x44/0x19c) from [<c0054508>] (kernel_restart_prepare+0x44/0x48)
[<c0054508>] (kernel_restart_prepare+0x44/0x48) from [<c0054528>] (kernel_restart+0x1c/0x70)
[<c0054528>] (kernel_restart+0x1c/0x70) from [<c0054704>] (SyS_reboot+0x168/0x1f0)
[<c0054704>] (SyS_reboot+0x168/0x1f0) from [<c000ed00>] (ret_fast_syscall+0x0/0x30)
The corresponding line in mmc_bus_shutdown is "drv->shutdown(card);"
and 'drv' seems indeed to be NULL.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Oops on linux-next during reboot, possibly related to "mmc: core: Handle card shutdown from mmc_bus"
2013-07-01 11:40 Oops on linux-next during reboot, possibly related to "mmc: core: Handle card shutdown from mmc_bus" Tuomas Tynkkynen
@ 2013-07-02 6:59 ` Jaehoon Chung
2013-07-02 10:56 ` Ulf Hansson
1 sibling, 0 replies; 3+ messages in thread
From: Jaehoon Chung @ 2013-07-02 6:59 UTC (permalink / raw)
To: Tuomas Tynkkynen; +Cc: linux-mmc, Ulf Hansson
Hi Tuomas,
It seems to produce this problem when wifi is enabled.
In case of WiFi, used the sdio_bus_register in sdio_bus.c.
Then i think right that "shutdown callback function" is existed in WiFi driver.
And need to use the sdio_bus_shutdown, not mmc_bus_shutdown.
sdio is used sdio_driver and mmc/sd is used mmc_driver.
I think that didnt consider this point.
Maybe need to check whether drv is NULL or not.
If i misunderstood something, let me know.
Best Regards,
Jaehoon Chung
On 07/01/2013 08:40 PM, Tuomas Tynkkynen wrote:
> Hi,
>
> On next-20130628 I get the following Oops during reboot:
> [ 89.814921] Unable to handle kernel NULL pointer dereference at virtual address 0000004c
> [ 89.824208] pgd = ecd54000
> [ 89.827276] [0000004c] *pgd=00000000
> [ 89.831340] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
>
> [<c040b244>] (mmc_bus_shutdown+0x24/0x70) from [<c032aa6c>] (device_shutdown+0x44/0x19c)
> [<c032aa6c>] (device_shutdown+0x44/0x19c) from [<c0054508>] (kernel_restart_prepare+0x44/0x48)
> [<c0054508>] (kernel_restart_prepare+0x44/0x48) from [<c0054528>] (kernel_restart+0x1c/0x70)
> [<c0054528>] (kernel_restart+0x1c/0x70) from [<c0054704>] (SyS_reboot+0x168/0x1f0)
> [<c0054704>] (SyS_reboot+0x168/0x1f0) from [<c000ed00>] (ret_fast_syscall+0x0/0x30)
>
> The corresponding line in mmc_bus_shutdown is "drv->shutdown(card);"
> and 'drv' seems indeed to be NULL.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Oops on linux-next during reboot, possibly related to "mmc: core: Handle card shutdown from mmc_bus"
2013-07-01 11:40 Oops on linux-next during reboot, possibly related to "mmc: core: Handle card shutdown from mmc_bus" Tuomas Tynkkynen
2013-07-02 6:59 ` Jaehoon Chung
@ 2013-07-02 10:56 ` Ulf Hansson
1 sibling, 0 replies; 3+ messages in thread
From: Ulf Hansson @ 2013-07-02 10:56 UTC (permalink / raw)
To: Tuomas Tynkkynen; +Cc: linux-mmc
On 1 July 2013 13:40, Tuomas Tynkkynen <ttynkkynen@nvidia.com> wrote:
> Hi,
>
> On next-20130628 I get the following Oops during reboot:
> [ 89.814921] Unable to handle kernel NULL pointer dereference at virtual address 0000004c
> [ 89.824208] pgd = ecd54000
> [ 89.827276] [0000004c] *pgd=00000000
> [ 89.831340] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
>
> [<c040b244>] (mmc_bus_shutdown+0x24/0x70) from [<c032aa6c>] (device_shutdown+0x44/0x19c)
> [<c032aa6c>] (device_shutdown+0x44/0x19c) from [<c0054508>] (kernel_restart_prepare+0x44/0x48)
> [<c0054508>] (kernel_restart_prepare+0x44/0x48) from [<c0054528>] (kernel_restart+0x1c/0x70)
> [<c0054528>] (kernel_restart+0x1c/0x70) from [<c0054704>] (SyS_reboot+0x168/0x1f0)
> [<c0054704>] (SyS_reboot+0x168/0x1f0) from [<c000ed00>] (ret_fast_syscall+0x0/0x30)
>
> The corresponding line in mmc_bus_shutdown is "drv->shutdown(card);"
> and 'drv' seems indeed to be NULL.
Hi Tuomas,
Your observations is correct, thanks for reporting and testing.
I have just sent a fixup patch that will solve the issue.
Kind regards
Ulf Hansson
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-07-02 10:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-01 11:40 Oops on linux-next during reboot, possibly related to "mmc: core: Handle card shutdown from mmc_bus" Tuomas Tynkkynen
2013-07-02 6:59 ` Jaehoon Chung
2013-07-02 10:56 ` Ulf Hansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox