Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
* Kevin Hilman [150910 10:03]: > On Tue, Sep 1, 2015 at 8:03 AM, Tony Lindgren wrote: > > * Grygorii Strashko [150901 07:57]: > >> On 09/01/2015 05:50 PM, Tony Lindgren wrote: > >> >> > >> >>On -next, Above crash signature could be related to race > >> >>"ARM: OMAP2+: omap-device: fix race deferred probe of omap_hsmmc vs > >> >>omap_device_late_init" > >> >>http://www.spinics.net/lists/linux-omap/msg121622.html > >> > > >> >Good point thanks, yes that's the case. MMC probing fails and then we hit > >> >this > >> >separate issue while MMC is trying to probe. Applying your fix makes the > >> >abort disappear, but naturally does not get MMC working again. > >> > >> you may need CONFIG_GPIO_PCF857X=y for dra7-evm > > > > This is a regression at least on omap4 as pointed out by Olof. > > FWIW, this problem still exists in mainline[1], and note that it fails > for omap2plus_defconfig which already has CONFIG_REGULATOR_PBIAS=y, so > that is not the fix for this issue. There are also the pbias regulator fixes pending.. And the .dts fixes pending.. So looks like it's going to be few more days. AFAIK, also the multi_v7_defconfig change is needed.. Regards, Tony > [1] > http://kernelci.org/boot/omap4-panda-es/?mainline_defconfig -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
On Tue, Sep 1, 2015 at 8:03 AM, Tony Lindgren wrote: > * Grygorii Strashko [150901 07:57]: >> On 09/01/2015 05:50 PM, Tony Lindgren wrote: >> >> >> >>On -next, Above crash signature could be related to race >> >>"ARM: OMAP2+: omap-device: fix race deferred probe of omap_hsmmc vs >> >>omap_device_late_init" >> >>http://www.spinics.net/lists/linux-omap/msg121622.html >> > >> >Good point thanks, yes that's the case. MMC probing fails and then we hit >> >this >> >separate issue while MMC is trying to probe. Applying your fix makes the >> >abort disappear, but naturally does not get MMC working again. >> >> you may need CONFIG_GPIO_PCF857X=y for dra7-evm > > This is a regression at least on omap4 as pointed out by Olof. FWIW, this problem still exists in mainline[1], and note that it fails for omap2plus_defconfig which already has CONFIG_REGULATOR_PBIAS=y, so that is not the fix for this issue. Kevin [1] http://kernelci.org/boot/omap4-panda-es/?mainline_defconfig -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
On Tue, Sep 1, 2015 at 8:03 AM, Tony Lindgrenwrote: > * Grygorii Strashko [150901 07:57]: >> On 09/01/2015 05:50 PM, Tony Lindgren wrote: >> >> >> >>On -next, Above crash signature could be related to race >> >>"ARM: OMAP2+: omap-device: fix race deferred probe of omap_hsmmc vs >> >>omap_device_late_init" >> >>http://www.spinics.net/lists/linux-omap/msg121622.html >> > >> >Good point thanks, yes that's the case. MMC probing fails and then we hit >> >this >> >separate issue while MMC is trying to probe. Applying your fix makes the >> >abort disappear, but naturally does not get MMC working again. >> >> you may need CONFIG_GPIO_PCF857X=y for dra7-evm > > This is a regression at least on omap4 as pointed out by Olof. FWIW, this problem still exists in mainline[1], and note that it fails for omap2plus_defconfig which already has CONFIG_REGULATOR_PBIAS=y, so that is not the fix for this issue. Kevin [1] http://kernelci.org/boot/omap4-panda-es/?mainline_defconfig -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
* Kevin Hilman[150910 10:03]: > On Tue, Sep 1, 2015 at 8:03 AM, Tony Lindgren wrote: > > * Grygorii Strashko [150901 07:57]: > >> On 09/01/2015 05:50 PM, Tony Lindgren wrote: > >> >> > >> >>On -next, Above crash signature could be related to race > >> >>"ARM: OMAP2+: omap-device: fix race deferred probe of omap_hsmmc vs > >> >>omap_device_late_init" > >> >>http://www.spinics.net/lists/linux-omap/msg121622.html > >> > > >> >Good point thanks, yes that's the case. MMC probing fails and then we hit > >> >this > >> >separate issue while MMC is trying to probe. Applying your fix makes the > >> >abort disappear, but naturally does not get MMC working again. > >> > >> you may need CONFIG_GPIO_PCF857X=y for dra7-evm > > > > This is a regression at least on omap4 as pointed out by Olof. > > FWIW, this problem still exists in mainline[1], and note that it fails > for omap2plus_defconfig which already has CONFIG_REGULATOR_PBIAS=y, so > that is not the fix for this issue. There are also the pbias regulator fixes pending.. And the .dts fixes pending.. So looks like it's going to be few more days. AFAIK, also the multi_v7_defconfig change is needed.. Regards, Tony > [1] > http://kernelci.org/boot/omap4-panda-es/?mainline_defconfig -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
* Grygorii Strashko [150901 07:57]: > On 09/01/2015 05:50 PM, Tony Lindgren wrote: > >> > >>On -next, Above crash signature could be related to race > >>"ARM: OMAP2+: omap-device: fix race deferred probe of omap_hsmmc vs > >>omap_device_late_init" > >>http://www.spinics.net/lists/linux-omap/msg121622.html > > > >Good point thanks, yes that's the case. MMC probing fails and then we hit > >this > >separate issue while MMC is trying to probe. Applying your fix makes the > >abort disappear, but naturally does not get MMC working again. > > you may need CONFIG_GPIO_PCF857X=y for dra7-evm This is a regression at least on omap4 as pointed out by Olof. Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
On 09/01/2015 05:50 PM, Tony Lindgren wrote: * Grygorii Strashko [150901 07:36]: On 09/01/2015 12:14 AM, Tony Lindgren wrote: * Tony Lindgren [150831 14:02]: And I must have tested next-20150827 instead of next-20150828. Or else it does not happen on every boot. In any case, I'm now getting the following on next-20150831 most of the time: [9.493133] omap_hsmmc 4809c000.mmc: using lookup tables for GPIO lookup [9.500274] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed [9.506378] [ cut here ] [9.508941] WARNING: CPU: 0 PID: 6 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x224/0x350() [9.520568] 4400.ocp:L3 Custom Error: MASTER MPU TARGET L4PER2 (Read): Data Access in User mode during Functional access [9.524810] Modules linked in: rtc_twl twl4030_wdt [9.534820] CPU: 0 PID: 6 Comm: kworker/u4:0 Not tainted 4.2.0-next-20150831-2-gf55bad8 #1113 [9.544830] Hardware name: Generic OMAP4 (Flattened Device Tree) [9.544830] Workqueue: deferwq deferred_probe_work_func [9.554809] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [9.564819] [] (show_stack) from [] (dump_stack+0x84/0x9c) [9.574829] [] (dump_stack) from [] (warn_slowpath_common+0x78/0xb4) [9.574951] [] (warn_slowpath_common) from [] (warn_slowpath_fmt+0x30/0x40) [9.584686] [] (warn_slowpath_fmt) from [] (l3_interrupt_handler+0x224/0x350) [9.594818] [] (l3_interrupt_handler) from [] (handle_irq_event_percpu+0x44/0x1f0) [9.604827] [] (handle_irq_event_percpu) from [] (handle_irq_event+0x40/0x64) [9.614807] [] (handle_irq_event) from [] (handle_fasteoi_irq+0xcc/0x1c4) [9.625396] [] (handle_fasteoi_irq) from [] (generic_handle_irq+0x28/0x3c) [9.638732] [] (generic_handle_irq) from [] (__handle_domain_irq+0x64/0xe0) [9.647827] [] (__handle_domain_irq) from [] (gic_handle_irq+0x40/0x8c) [9.654693] [] (gic_handle_irq) from [] (__irq_svc+0x58/0x78) [9.664367] Exception stack(0xee0cfd80 to 0xee0cfdc8) [9.665130] fd80: ee1ec010 c082f174 00d0 ee6b0800 ee6ae850 ee1ec000 ee1ec010 [9.674835] fda0: ee6b0cc0 00ee fa09c000 0003 ee0cfdd0 c04cd748 c04df4e0 [9.684814] fdc0: 2113 [9.684814] [] (__irq_svc) from [] (devm_clk_get+0x8/0x70) [9.694824] [] (devm_clk_get) from [] (omap_hsmmc_probe+0x2e8/0x9f0) [9.704833] [] (omap_hsmmc_probe) from [] (platform_drv_probe+0x44/0xac) [9.714691] [] (platform_drv_probe) from [] (driver_probe_device+0x1f4/0x2f0) [9.724548] [] (driver_probe_device) from [] (bus_for_each_drv+0x64/0x98) [9.733459] [] (bus_for_each_drv) from [] (__device_attach+0xb0/0x118) [9.734832] [] (__device_attach) from [] (bus_probe_device+0x88/0x90) [9.744812] [] (bus_probe_device) from [] (deferred_probe_work_func+0x60/0x90) [9.760040] [] (deferred_probe_work_func) from [] (process_one_work+0x1a4/0x558) [9.769470] [] (process_one_work) from [] (worker_thread+0x3c/0x514) [9.774688] [] (worker_thread) from [] (kthread+0xd4/0xf0) [9.785614] [] (kthread) from [] (ret_from_fork+0x14/0x24) [9.785614] ---[ end trace 402743bd8cfdde2f ]--- And with the (currently almost useless) l3 interrupt stuff taken out by removing the ti,omap4-l3-noc compatible from omap4.dtsi, we get a real trace that might be of some help to you: [8.440917] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed [8.447418] Unhandled fault: imprecise external abort (0x1406) at 0xbeafaa10 [8.454925] pgd = c0004000 [8.454986] [beafaa10] *pgd=/root/init: line 14: /sys/devices/6800.ocp/4 8098000.spi/spi_master/spi1/spi1[8.461334] Internal error: : 1406 [#1] SMP ARM .2/backlight/acx565akm/brightness: No such file [8.473175] Modules linked in:or directory rtc_twl twl4030_wdt [8.483520] CPU: 1 PID: 66 Comm: kworker/u4:1 Not tainted 4.2.0-next-20150831-2-gf55bad8-dirty #1115 [8.493652] Hardware name: Generic OMAP4 (Flattened Device Tree) [8.498352] Workqueue: deferwq deferred_probe_work_func [8.505493] task: ee5f4f40 ti: ee5f6000 task.ti: ee5f6000 [8.510803] PC is at devm_clk_get+0x8/0x70 [8.514801] LR is at omap_hsmmc_probe+0x2e8/0x9f0 [8.520385] pc : []lr : []psr: 20010013 [8.520385] sp : ee5f7dd0 ip : 0003 fp : fa09c000 [8.532470] r10: 00ee r9 : ee6904c0 r8 : [8.537963] r7 : ee1ec010 r6 : ee1ec000 r5 : ee6e7dd0 r4 : ee69 [8.544769] r3 : r2 : 00d0 r1 : c082f184 r0 : ee1ec010 [8.551666] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none [8.559143] Control: 10c5387d Table: ae73804a DAC: 0051 [8.564727] Process kworker/u4:1 (pid: 66, stack limit = 0xee5f6218) [8.571441] Stack: (0xee5f7dd0 to 0xee5f8000) [8.576263] 7dc0: ee69 ee6e7dd0 ee1ec000 c04cd748 [8.584930] 7de0: c09cf8f8 ee1ed270 ee5de150
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
* Grygorii Strashko [150901 07:36]: > On 09/01/2015 12:14 AM, Tony Lindgren wrote: > > * Tony Lindgren [150831 14:02]: > >> > >> And I must have tested next-20150827 instead of next-20150828. Or > >> else it does not happen on every boot. In any case, I'm now getting > >> the following on next-20150831 most of the time: > >> > >> [9.493133] omap_hsmmc 4809c000.mmc: using lookup tables for GPIO lookup > >> [9.500274] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed > >> [9.506378] [ cut here ] > >> [9.508941] WARNING: CPU: 0 PID: 6 at drivers/bus/omap_l3_noc.c:147 > >> l3_interrupt_handler+0x224/0x350() > >> [9.520568] 4400.ocp:L3 Custom Error: MASTER MPU TARGET L4PER2 > >> (Read): Data Access in User mode during Functional access > >> [9.524810] Modules linked in: rtc_twl twl4030_wdt > >> [9.534820] CPU: 0 PID: 6 Comm: kworker/u4:0 Not tainted > >> 4.2.0-next-20150831-2-gf55bad8 #1113 > >> [9.544830] Hardware name: Generic OMAP4 (Flattened Device Tree) > >> [9.544830] Workqueue: deferwq deferred_probe_work_func > >> [9.554809] [] (unwind_backtrace) from [] > >> (show_stack+0x10/0x14) > >> [9.564819] [] (show_stack) from [] > >> (dump_stack+0x84/0x9c) > >> [9.574829] [] (dump_stack) from [] > >> (warn_slowpath_common+0x78/0xb4) > >> [9.574951] [] (warn_slowpath_common) from [] > >> (warn_slowpath_fmt+0x30/0x40) > >> [9.584686] [] (warn_slowpath_fmt) from [] > >> (l3_interrupt_handler+0x224/0x350) > >> [9.594818] [] (l3_interrupt_handler) from [] > >> (handle_irq_event_percpu+0x44/0x1f0) > >> [9.604827] [] (handle_irq_event_percpu) from [] > >> (handle_irq_event+0x40/0x64) > >> [9.614807] [] (handle_irq_event) from [] > >> (handle_fasteoi_irq+0xcc/0x1c4) > >> [9.625396] [] (handle_fasteoi_irq) from [] > >> (generic_handle_irq+0x28/0x3c) > >> [9.638732] [] (generic_handle_irq) from [] > >> (__handle_domain_irq+0x64/0xe0) > >> [9.647827] [] (__handle_domain_irq) from [] > >> (gic_handle_irq+0x40/0x8c) > >> [9.654693] [] (gic_handle_irq) from [] > >> (__irq_svc+0x58/0x78) > >> [9.664367] Exception stack(0xee0cfd80 to 0xee0cfdc8) > >> [9.665130] fd80: ee1ec010 c082f174 00d0 ee6b0800 ee6ae850 > >> ee1ec000 ee1ec010 > >> [9.674835] fda0: ee6b0cc0 00ee fa09c000 0003 ee0cfdd0 > >> c04cd748 c04df4e0 > >> [9.684814] fdc0: 2113 > >> [9.684814] [] (__irq_svc) from [] > >> (devm_clk_get+0x8/0x70) > >> [9.694824] [] (devm_clk_get) from [] > >> (omap_hsmmc_probe+0x2e8/0x9f0) > >> [9.704833] [] (omap_hsmmc_probe) from [] > >> (platform_drv_probe+0x44/0xac) > >> [9.714691] [] (platform_drv_probe) from [] > >> (driver_probe_device+0x1f4/0x2f0) > >> [9.724548] [] (driver_probe_device) from [] > >> (bus_for_each_drv+0x64/0x98) > >> [9.733459] [] (bus_for_each_drv) from [] > >> (__device_attach+0xb0/0x118) > >> [9.734832] [] (__device_attach) from [] > >> (bus_probe_device+0x88/0x90) > >> [9.744812] [] (bus_probe_device) from [] > >> (deferred_probe_work_func+0x60/0x90) > >> [9.760040] [] (deferred_probe_work_func) from [] > >> (process_one_work+0x1a4/0x558) > >> [9.769470] [] (process_one_work) from [] > >> (worker_thread+0x3c/0x514) > >> [9.774688] [] (worker_thread) from [] > >> (kthread+0xd4/0xf0) > >> [9.785614] [] (kthread) from [] > >> (ret_from_fork+0x14/0x24) > >> [9.785614] ---[ end trace 402743bd8cfdde2f ]--- > > > > And with the (currently almost useless) l3 interrupt stuff taken out by > > removing the ti,omap4-l3-noc compatible from omap4.dtsi, we get a real > > trace that might be of some help to you: > > > > [8.440917] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed > > [8.447418] Unhandled fault: imprecise external abort (0x1406) at > > 0xbeafaa10 > > [8.454925] pgd = c0004000 > > [8.454986] [beafaa10] *pgd=/root/init: line 14: > > /sys/devices/6800.ocp/4 > > 8098000.spi/spi_master/spi1/spi1[8.461334] Internal error: : 1406 [#1] > > SMP ARM > > .2/backlight/acx565akm/brightness: No such file [8.473175] Modules > > linked in:or directory > > rtc_twl twl4030_wdt > > [8.483520] CPU: 1 PID: 66 Comm: kworker/u4:1 Not tainted > > 4.2.0-next-20150831-2-gf55bad8-dirty #1115 > > [8.493652] Hardware name: Generic OMAP4 (Flattened Device Tree) > > [8.498352] Workqueue: deferwq deferred_probe_work_func > > [8.505493] task: ee5f4f40 ti: ee5f6000 task.ti: ee5f6000 > > [8.510803] PC is at devm_clk_get+0x8/0x70 > > [8.514801] LR is at omap_hsmmc_probe+0x2e8/0x9f0 > > [8.520385] pc : []lr : []psr: 20010013 > > [8.520385] sp : ee5f7dd0 ip : 0003 fp : fa09c000 > > [8.532470] r10: 00ee r9 : ee6904c0 r8 : > > [8.537963] r7 : ee1ec010 r6 : ee1ec000 r5 : ee6e7dd0 r4 : ee69 > > [8.544769] r3 : r2 : 00d0 r1 : c082f184 r0 : ee1ec010 > >
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
On 09/01/2015 12:14 AM, Tony Lindgren wrote: > * Tony Lindgren [150831 14:02]: >> >> And I must have tested next-20150827 instead of next-20150828. Or >> else it does not happen on every boot. In any case, I'm now getting >> the following on next-20150831 most of the time: >> >> [9.493133] omap_hsmmc 4809c000.mmc: using lookup tables for GPIO lookup >> [9.500274] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed >> [9.506378] [ cut here ] >> [9.508941] WARNING: CPU: 0 PID: 6 at drivers/bus/omap_l3_noc.c:147 >> l3_interrupt_handler+0x224/0x350() >> [9.520568] 4400.ocp:L3 Custom Error: MASTER MPU TARGET L4PER2 >> (Read): Data Access in User mode during Functional access >> [9.524810] Modules linked in: rtc_twl twl4030_wdt >> [9.534820] CPU: 0 PID: 6 Comm: kworker/u4:0 Not tainted >> 4.2.0-next-20150831-2-gf55bad8 #1113 >> [9.544830] Hardware name: Generic OMAP4 (Flattened Device Tree) >> [9.544830] Workqueue: deferwq deferred_probe_work_func >> [9.554809] [] (unwind_backtrace) from [] >> (show_stack+0x10/0x14) >> [9.564819] [] (show_stack) from [] >> (dump_stack+0x84/0x9c) >> [9.574829] [] (dump_stack) from [] >> (warn_slowpath_common+0x78/0xb4) >> [9.574951] [] (warn_slowpath_common) from [] >> (warn_slowpath_fmt+0x30/0x40) >> [9.584686] [] (warn_slowpath_fmt) from [] >> (l3_interrupt_handler+0x224/0x350) >> [9.594818] [] (l3_interrupt_handler) from [] >> (handle_irq_event_percpu+0x44/0x1f0) >> [9.604827] [] (handle_irq_event_percpu) from [] >> (handle_irq_event+0x40/0x64) >> [9.614807] [] (handle_irq_event) from [] >> (handle_fasteoi_irq+0xcc/0x1c4) >> [9.625396] [] (handle_fasteoi_irq) from [] >> (generic_handle_irq+0x28/0x3c) >> [9.638732] [] (generic_handle_irq) from [] >> (__handle_domain_irq+0x64/0xe0) >> [9.647827] [] (__handle_domain_irq) from [] >> (gic_handle_irq+0x40/0x8c) >> [9.654693] [] (gic_handle_irq) from [] >> (__irq_svc+0x58/0x78) >> [9.664367] Exception stack(0xee0cfd80 to 0xee0cfdc8) >> [9.665130] fd80: ee1ec010 c082f174 00d0 ee6b0800 ee6ae850 >> ee1ec000 ee1ec010 >> [9.674835] fda0: ee6b0cc0 00ee fa09c000 0003 ee0cfdd0 >> c04cd748 c04df4e0 >> [9.684814] fdc0: 2113 >> [9.684814] [] (__irq_svc) from [] >> (devm_clk_get+0x8/0x70) >> [9.694824] [] (devm_clk_get) from [] >> (omap_hsmmc_probe+0x2e8/0x9f0) >> [9.704833] [] (omap_hsmmc_probe) from [] >> (platform_drv_probe+0x44/0xac) >> [9.714691] [] (platform_drv_probe) from [] >> (driver_probe_device+0x1f4/0x2f0) >> [9.724548] [] (driver_probe_device) from [] >> (bus_for_each_drv+0x64/0x98) >> [9.733459] [] (bus_for_each_drv) from [] >> (__device_attach+0xb0/0x118) >> [9.734832] [] (__device_attach) from [] >> (bus_probe_device+0x88/0x90) >> [9.744812] [] (bus_probe_device) from [] >> (deferred_probe_work_func+0x60/0x90) >> [9.760040] [] (deferred_probe_work_func) from [] >> (process_one_work+0x1a4/0x558) >> [9.769470] [] (process_one_work) from [] >> (worker_thread+0x3c/0x514) >> [9.774688] [] (worker_thread) from [] >> (kthread+0xd4/0xf0) >> [9.785614] [] (kthread) from [] >> (ret_from_fork+0x14/0x24) >> [9.785614] ---[ end trace 402743bd8cfdde2f ]--- > > And with the (currently almost useless) l3 interrupt stuff taken out by > removing the ti,omap4-l3-noc compatible from omap4.dtsi, we get a real > trace that might be of some help to you: > > [8.440917] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed > [8.447418] Unhandled fault: imprecise external abort (0x1406) at > 0xbeafaa10 > [8.454925] pgd = c0004000 > [8.454986] [beafaa10] *pgd=/root/init: line 14: > /sys/devices/6800.ocp/4 > 8098000.spi/spi_master/spi1/spi1[8.461334] Internal error: : 1406 [#1] > SMP ARM > .2/backlight/acx565akm/brightness: No such file [8.473175] Modules linked > in:or directory > rtc_twl twl4030_wdt > [8.483520] CPU: 1 PID: 66 Comm: kworker/u4:1 Not tainted > 4.2.0-next-20150831-2-gf55bad8-dirty #1115 > [8.493652] Hardware name: Generic OMAP4 (Flattened Device Tree) > [8.498352] Workqueue: deferwq deferred_probe_work_func > [8.505493] task: ee5f4f40 ti: ee5f6000 task.ti: ee5f6000 > [8.510803] PC is at devm_clk_get+0x8/0x70 > [8.514801] LR is at omap_hsmmc_probe+0x2e8/0x9f0 > [8.520385] pc : []lr : []psr: 20010013 > [8.520385] sp : ee5f7dd0 ip : 0003 fp : fa09c000 > [8.532470] r10: 00ee r9 : ee6904c0 r8 : > [8.537963] r7 : ee1ec010 r6 : ee1ec000 r5 : ee6e7dd0 r4 : ee69 > [8.544769] r3 : r2 : 00d0 r1 : c082f184 r0 : ee1ec010 > [8.551666] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment > none > [8.559143] Control: 10c5387d Table: ae73804a DAC: 0051 > [8.564727] Process kworker/u4:1 (pid: 66, stack limit = 0xee5f6218) > [8.571441]
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
* Grygorii Strashko[150901 07:36]: > On 09/01/2015 12:14 AM, Tony Lindgren wrote: > > * Tony Lindgren [150831 14:02]: > >> > >> And I must have tested next-20150827 instead of next-20150828. Or > >> else it does not happen on every boot. In any case, I'm now getting > >> the following on next-20150831 most of the time: > >> > >> [9.493133] omap_hsmmc 4809c000.mmc: using lookup tables for GPIO lookup > >> [9.500274] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed > >> [9.506378] [ cut here ] > >> [9.508941] WARNING: CPU: 0 PID: 6 at drivers/bus/omap_l3_noc.c:147 > >> l3_interrupt_handler+0x224/0x350() > >> [9.520568] 4400.ocp:L3 Custom Error: MASTER MPU TARGET L4PER2 > >> (Read): Data Access in User mode during Functional access > >> [9.524810] Modules linked in: rtc_twl twl4030_wdt > >> [9.534820] CPU: 0 PID: 6 Comm: kworker/u4:0 Not tainted > >> 4.2.0-next-20150831-2-gf55bad8 #1113 > >> [9.544830] Hardware name: Generic OMAP4 (Flattened Device Tree) > >> [9.544830] Workqueue: deferwq deferred_probe_work_func > >> [9.554809] [] (unwind_backtrace) from [] > >> (show_stack+0x10/0x14) > >> [9.564819] [] (show_stack) from [] > >> (dump_stack+0x84/0x9c) > >> [9.574829] [] (dump_stack) from [] > >> (warn_slowpath_common+0x78/0xb4) > >> [9.574951] [] (warn_slowpath_common) from [] > >> (warn_slowpath_fmt+0x30/0x40) > >> [9.584686] [] (warn_slowpath_fmt) from [] > >> (l3_interrupt_handler+0x224/0x350) > >> [9.594818] [] (l3_interrupt_handler) from [] > >> (handle_irq_event_percpu+0x44/0x1f0) > >> [9.604827] [] (handle_irq_event_percpu) from [] > >> (handle_irq_event+0x40/0x64) > >> [9.614807] [] (handle_irq_event) from [] > >> (handle_fasteoi_irq+0xcc/0x1c4) > >> [9.625396] [] (handle_fasteoi_irq) from [] > >> (generic_handle_irq+0x28/0x3c) > >> [9.638732] [] (generic_handle_irq) from [] > >> (__handle_domain_irq+0x64/0xe0) > >> [9.647827] [] (__handle_domain_irq) from [] > >> (gic_handle_irq+0x40/0x8c) > >> [9.654693] [] (gic_handle_irq) from [] > >> (__irq_svc+0x58/0x78) > >> [9.664367] Exception stack(0xee0cfd80 to 0xee0cfdc8) > >> [9.665130] fd80: ee1ec010 c082f174 00d0 ee6b0800 ee6ae850 > >> ee1ec000 ee1ec010 > >> [9.674835] fda0: ee6b0cc0 00ee fa09c000 0003 ee0cfdd0 > >> c04cd748 c04df4e0 > >> [9.684814] fdc0: 2113 > >> [9.684814] [] (__irq_svc) from [] > >> (devm_clk_get+0x8/0x70) > >> [9.694824] [] (devm_clk_get) from [] > >> (omap_hsmmc_probe+0x2e8/0x9f0) > >> [9.704833] [] (omap_hsmmc_probe) from [] > >> (platform_drv_probe+0x44/0xac) > >> [9.714691] [] (platform_drv_probe) from [] > >> (driver_probe_device+0x1f4/0x2f0) > >> [9.724548] [] (driver_probe_device) from [] > >> (bus_for_each_drv+0x64/0x98) > >> [9.733459] [] (bus_for_each_drv) from [] > >> (__device_attach+0xb0/0x118) > >> [9.734832] [] (__device_attach) from [] > >> (bus_probe_device+0x88/0x90) > >> [9.744812] [] (bus_probe_device) from [] > >> (deferred_probe_work_func+0x60/0x90) > >> [9.760040] [] (deferred_probe_work_func) from [] > >> (process_one_work+0x1a4/0x558) > >> [9.769470] [] (process_one_work) from [] > >> (worker_thread+0x3c/0x514) > >> [9.774688] [] (worker_thread) from [] > >> (kthread+0xd4/0xf0) > >> [9.785614] [] (kthread) from [] > >> (ret_from_fork+0x14/0x24) > >> [9.785614] ---[ end trace 402743bd8cfdde2f ]--- > > > > And with the (currently almost useless) l3 interrupt stuff taken out by > > removing the ti,omap4-l3-noc compatible from omap4.dtsi, we get a real > > trace that might be of some help to you: > > > > [8.440917] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed > > [8.447418] Unhandled fault: imprecise external abort (0x1406) at > > 0xbeafaa10 > > [8.454925] pgd = c0004000 > > [8.454986] [beafaa10] *pgd=/root/init: line 14: > > /sys/devices/6800.ocp/4 > > 8098000.spi/spi_master/spi1/spi1[8.461334] Internal error: : 1406 [#1] > > SMP ARM > > .2/backlight/acx565akm/brightness: No such file [8.473175] Modules > > linked in:or directory > > rtc_twl twl4030_wdt > > [8.483520] CPU: 1 PID: 66 Comm: kworker/u4:1 Not tainted > > 4.2.0-next-20150831-2-gf55bad8-dirty #1115 > > [8.493652] Hardware name: Generic OMAP4 (Flattened Device Tree) > > [8.498352] Workqueue: deferwq deferred_probe_work_func > > [8.505493] task: ee5f4f40 ti: ee5f6000 task.ti: ee5f6000 > > [8.510803] PC is at devm_clk_get+0x8/0x70 > > [8.514801] LR is at omap_hsmmc_probe+0x2e8/0x9f0 > > [8.520385] pc : []lr : []psr: 20010013 > > [8.520385] sp : ee5f7dd0 ip : 0003 fp : fa09c000 > > [8.532470] r10: 00ee r9 : ee6904c0 r8 : > > [8.537963] r7 : ee1ec010 r6 : ee1ec000 r5 : ee6e7dd0 r4 : ee69 > > [8.544769] r3 : r2
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
On 09/01/2015 12:14 AM, Tony Lindgren wrote: > * Tony Lindgren[150831 14:02]: >> >> And I must have tested next-20150827 instead of next-20150828. Or >> else it does not happen on every boot. In any case, I'm now getting >> the following on next-20150831 most of the time: >> >> [9.493133] omap_hsmmc 4809c000.mmc: using lookup tables for GPIO lookup >> [9.500274] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed >> [9.506378] [ cut here ] >> [9.508941] WARNING: CPU: 0 PID: 6 at drivers/bus/omap_l3_noc.c:147 >> l3_interrupt_handler+0x224/0x350() >> [9.520568] 4400.ocp:L3 Custom Error: MASTER MPU TARGET L4PER2 >> (Read): Data Access in User mode during Functional access >> [9.524810] Modules linked in: rtc_twl twl4030_wdt >> [9.534820] CPU: 0 PID: 6 Comm: kworker/u4:0 Not tainted >> 4.2.0-next-20150831-2-gf55bad8 #1113 >> [9.544830] Hardware name: Generic OMAP4 (Flattened Device Tree) >> [9.544830] Workqueue: deferwq deferred_probe_work_func >> [9.554809] [] (unwind_backtrace) from [] >> (show_stack+0x10/0x14) >> [9.564819] [] (show_stack) from [] >> (dump_stack+0x84/0x9c) >> [9.574829] [] (dump_stack) from [] >> (warn_slowpath_common+0x78/0xb4) >> [9.574951] [] (warn_slowpath_common) from [] >> (warn_slowpath_fmt+0x30/0x40) >> [9.584686] [] (warn_slowpath_fmt) from [] >> (l3_interrupt_handler+0x224/0x350) >> [9.594818] [] (l3_interrupt_handler) from [] >> (handle_irq_event_percpu+0x44/0x1f0) >> [9.604827] [] (handle_irq_event_percpu) from [] >> (handle_irq_event+0x40/0x64) >> [9.614807] [] (handle_irq_event) from [] >> (handle_fasteoi_irq+0xcc/0x1c4) >> [9.625396] [] (handle_fasteoi_irq) from [] >> (generic_handle_irq+0x28/0x3c) >> [9.638732] [] (generic_handle_irq) from [] >> (__handle_domain_irq+0x64/0xe0) >> [9.647827] [] (__handle_domain_irq) from [] >> (gic_handle_irq+0x40/0x8c) >> [9.654693] [] (gic_handle_irq) from [] >> (__irq_svc+0x58/0x78) >> [9.664367] Exception stack(0xee0cfd80 to 0xee0cfdc8) >> [9.665130] fd80: ee1ec010 c082f174 00d0 ee6b0800 ee6ae850 >> ee1ec000 ee1ec010 >> [9.674835] fda0: ee6b0cc0 00ee fa09c000 0003 ee0cfdd0 >> c04cd748 c04df4e0 >> [9.684814] fdc0: 2113 >> [9.684814] [] (__irq_svc) from [] >> (devm_clk_get+0x8/0x70) >> [9.694824] [] (devm_clk_get) from [] >> (omap_hsmmc_probe+0x2e8/0x9f0) >> [9.704833] [] (omap_hsmmc_probe) from [] >> (platform_drv_probe+0x44/0xac) >> [9.714691] [] (platform_drv_probe) from [] >> (driver_probe_device+0x1f4/0x2f0) >> [9.724548] [] (driver_probe_device) from [] >> (bus_for_each_drv+0x64/0x98) >> [9.733459] [] (bus_for_each_drv) from [] >> (__device_attach+0xb0/0x118) >> [9.734832] [] (__device_attach) from [] >> (bus_probe_device+0x88/0x90) >> [9.744812] [] (bus_probe_device) from [] >> (deferred_probe_work_func+0x60/0x90) >> [9.760040] [] (deferred_probe_work_func) from [] >> (process_one_work+0x1a4/0x558) >> [9.769470] [] (process_one_work) from [] >> (worker_thread+0x3c/0x514) >> [9.774688] [] (worker_thread) from [] >> (kthread+0xd4/0xf0) >> [9.785614] [] (kthread) from [] >> (ret_from_fork+0x14/0x24) >> [9.785614] ---[ end trace 402743bd8cfdde2f ]--- > > And with the (currently almost useless) l3 interrupt stuff taken out by > removing the ti,omap4-l3-noc compatible from omap4.dtsi, we get a real > trace that might be of some help to you: > > [8.440917] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed > [8.447418] Unhandled fault: imprecise external abort (0x1406) at > 0xbeafaa10 > [8.454925] pgd = c0004000 > [8.454986] [beafaa10] *pgd=/root/init: line 14: > /sys/devices/6800.ocp/4 > 8098000.spi/spi_master/spi1/spi1[8.461334] Internal error: : 1406 [#1] > SMP ARM > .2/backlight/acx565akm/brightness: No such file [8.473175] Modules linked > in:or directory > rtc_twl twl4030_wdt > [8.483520] CPU: 1 PID: 66 Comm: kworker/u4:1 Not tainted > 4.2.0-next-20150831-2-gf55bad8-dirty #1115 > [8.493652] Hardware name: Generic OMAP4 (Flattened Device Tree) > [8.498352] Workqueue: deferwq deferred_probe_work_func > [8.505493] task: ee5f4f40 ti: ee5f6000 task.ti: ee5f6000 > [8.510803] PC is at devm_clk_get+0x8/0x70 > [8.514801] LR is at omap_hsmmc_probe+0x2e8/0x9f0 > [8.520385] pc : []lr : []psr: 20010013 > [8.520385] sp : ee5f7dd0 ip : 0003 fp : fa09c000 > [8.532470] r10: 00ee r9 : ee6904c0 r8 : > [8.537963] r7 : ee1ec010 r6 : ee1ec000 r5 : ee6e7dd0 r4 : ee69 > [8.544769] r3 : r2 : 00d0 r1 : c082f184 r0 : ee1ec010 > [8.551666] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment > none > [8.559143] Control: 10c5387d Table: ae73804a DAC: 0051 > [8.564727] Process kworker/u4:1 (pid: 66, stack limit = 0xee5f6218)
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
On 09/01/2015 05:50 PM, Tony Lindgren wrote: * Grygorii Strashko[150901 07:36]: On 09/01/2015 12:14 AM, Tony Lindgren wrote: * Tony Lindgren [150831 14:02]: And I must have tested next-20150827 instead of next-20150828. Or else it does not happen on every boot. In any case, I'm now getting the following on next-20150831 most of the time: [9.493133] omap_hsmmc 4809c000.mmc: using lookup tables for GPIO lookup [9.500274] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed [9.506378] [ cut here ] [9.508941] WARNING: CPU: 0 PID: 6 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x224/0x350() [9.520568] 4400.ocp:L3 Custom Error: MASTER MPU TARGET L4PER2 (Read): Data Access in User mode during Functional access [9.524810] Modules linked in: rtc_twl twl4030_wdt [9.534820] CPU: 0 PID: 6 Comm: kworker/u4:0 Not tainted 4.2.0-next-20150831-2-gf55bad8 #1113 [9.544830] Hardware name: Generic OMAP4 (Flattened Device Tree) [9.544830] Workqueue: deferwq deferred_probe_work_func [9.554809] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [9.564819] [] (show_stack) from [] (dump_stack+0x84/0x9c) [9.574829] [] (dump_stack) from [] (warn_slowpath_common+0x78/0xb4) [9.574951] [] (warn_slowpath_common) from [] (warn_slowpath_fmt+0x30/0x40) [9.584686] [] (warn_slowpath_fmt) from [] (l3_interrupt_handler+0x224/0x350) [9.594818] [] (l3_interrupt_handler) from [] (handle_irq_event_percpu+0x44/0x1f0) [9.604827] [] (handle_irq_event_percpu) from [] (handle_irq_event+0x40/0x64) [9.614807] [] (handle_irq_event) from [] (handle_fasteoi_irq+0xcc/0x1c4) [9.625396] [] (handle_fasteoi_irq) from [] (generic_handle_irq+0x28/0x3c) [9.638732] [] (generic_handle_irq) from [] (__handle_domain_irq+0x64/0xe0) [9.647827] [] (__handle_domain_irq) from [] (gic_handle_irq+0x40/0x8c) [9.654693] [] (gic_handle_irq) from [] (__irq_svc+0x58/0x78) [9.664367] Exception stack(0xee0cfd80 to 0xee0cfdc8) [9.665130] fd80: ee1ec010 c082f174 00d0 ee6b0800 ee6ae850 ee1ec000 ee1ec010 [9.674835] fda0: ee6b0cc0 00ee fa09c000 0003 ee0cfdd0 c04cd748 c04df4e0 [9.684814] fdc0: 2113 [9.684814] [] (__irq_svc) from [] (devm_clk_get+0x8/0x70) [9.694824] [] (devm_clk_get) from [] (omap_hsmmc_probe+0x2e8/0x9f0) [9.704833] [] (omap_hsmmc_probe) from [] (platform_drv_probe+0x44/0xac) [9.714691] [] (platform_drv_probe) from [] (driver_probe_device+0x1f4/0x2f0) [9.724548] [] (driver_probe_device) from [] (bus_for_each_drv+0x64/0x98) [9.733459] [] (bus_for_each_drv) from [] (__device_attach+0xb0/0x118) [9.734832] [] (__device_attach) from [] (bus_probe_device+0x88/0x90) [9.744812] [] (bus_probe_device) from [] (deferred_probe_work_func+0x60/0x90) [9.760040] [] (deferred_probe_work_func) from [] (process_one_work+0x1a4/0x558) [9.769470] [] (process_one_work) from [] (worker_thread+0x3c/0x514) [9.774688] [] (worker_thread) from [] (kthread+0xd4/0xf0) [9.785614] [] (kthread) from [] (ret_from_fork+0x14/0x24) [9.785614] ---[ end trace 402743bd8cfdde2f ]--- And with the (currently almost useless) l3 interrupt stuff taken out by removing the ti,omap4-l3-noc compatible from omap4.dtsi, we get a real trace that might be of some help to you: [8.440917] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed [8.447418] Unhandled fault: imprecise external abort (0x1406) at 0xbeafaa10 [8.454925] pgd = c0004000 [8.454986] [beafaa10] *pgd=/root/init: line 14: /sys/devices/6800.ocp/4 8098000.spi/spi_master/spi1/spi1[8.461334] Internal error: : 1406 [#1] SMP ARM .2/backlight/acx565akm/brightness: No such file [8.473175] Modules linked in:or directory rtc_twl twl4030_wdt [8.483520] CPU: 1 PID: 66 Comm: kworker/u4:1 Not tainted 4.2.0-next-20150831-2-gf55bad8-dirty #1115 [8.493652] Hardware name: Generic OMAP4 (Flattened Device Tree) [8.498352] Workqueue: deferwq deferred_probe_work_func [8.505493] task: ee5f4f40 ti: ee5f6000 task.ti: ee5f6000 [8.510803] PC is at devm_clk_get+0x8/0x70 [8.514801] LR is at omap_hsmmc_probe+0x2e8/0x9f0 [8.520385] pc : []lr : []psr: 20010013 [8.520385] sp : ee5f7dd0 ip : 0003 fp : fa09c000 [8.532470] r10: 00ee r9 : ee6904c0 r8 : [8.537963] r7 : ee1ec010 r6 : ee1ec000 r5 : ee6e7dd0 r4 : ee69 [8.544769] r3 : r2 : 00d0 r1 : c082f184 r0 : ee1ec010 [8.551666] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none [8.559143] Control: 10c5387d Table: ae73804a DAC: 0051 [8.564727] Process kworker/u4:1 (pid: 66, stack limit = 0xee5f6218) [8.571441] Stack: (0xee5f7dd0 to 0xee5f8000) [8.576263] 7dc0: ee69 ee6e7dd0 ee1ec000 c04cd748 [8.584930] 7de0:
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
* Grygorii Strashko[150901 07:57]: > On 09/01/2015 05:50 PM, Tony Lindgren wrote: > >> > >>On -next, Above crash signature could be related to race > >>"ARM: OMAP2+: omap-device: fix race deferred probe of omap_hsmmc vs > >>omap_device_late_init" > >>http://www.spinics.net/lists/linux-omap/msg121622.html > > > >Good point thanks, yes that's the case. MMC probing fails and then we hit > >this > >separate issue while MMC is trying to probe. Applying your fix makes the > >abort disappear, but naturally does not get MMC working again. > > you may need CONFIG_GPIO_PCF857X=y for dra7-evm This is a regression at least on omap4 as pointed out by Olof. Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
* Tony Lindgren [150831 14:02]: > > And I must have tested next-20150827 instead of next-20150828. Or > else it does not happen on every boot. In any case, I'm now getting > the following on next-20150831 most of the time: > > [9.493133] omap_hsmmc 4809c000.mmc: using lookup tables for GPIO lookup > [9.500274] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed > [9.506378] [ cut here ] > [9.508941] WARNING: CPU: 0 PID: 6 at drivers/bus/omap_l3_noc.c:147 > l3_interrupt_handler+0x224/0x350() > [9.520568] 4400.ocp:L3 Custom Error: MASTER MPU TARGET L4PER2 (Read): > Data Access in User mode during Functional access > [9.524810] Modules linked in: rtc_twl twl4030_wdt > [9.534820] CPU: 0 PID: 6 Comm: kworker/u4:0 Not tainted > 4.2.0-next-20150831-2-gf55bad8 #1113 > [9.544830] Hardware name: Generic OMAP4 (Flattened Device Tree) > [9.544830] Workqueue: deferwq deferred_probe_work_func > [9.554809] [] (unwind_backtrace) from [] > (show_stack+0x10/0x14) > [9.564819] [] (show_stack) from [] > (dump_stack+0x84/0x9c) > [9.574829] [] (dump_stack) from [] > (warn_slowpath_common+0x78/0xb4) > [9.574951] [] (warn_slowpath_common) from [] > (warn_slowpath_fmt+0x30/0x40) > [9.584686] [] (warn_slowpath_fmt) from [] > (l3_interrupt_handler+0x224/0x350) > [9.594818] [] (l3_interrupt_handler) from [] > (handle_irq_event_percpu+0x44/0x1f0) > [9.604827] [] (handle_irq_event_percpu) from [] > (handle_irq_event+0x40/0x64) > [9.614807] [] (handle_irq_event) from [] > (handle_fasteoi_irq+0xcc/0x1c4) > [9.625396] [] (handle_fasteoi_irq) from [] > (generic_handle_irq+0x28/0x3c) > [9.638732] [] (generic_handle_irq) from [] > (__handle_domain_irq+0x64/0xe0) > [9.647827] [] (__handle_domain_irq) from [] > (gic_handle_irq+0x40/0x8c) > [9.654693] [] (gic_handle_irq) from [] > (__irq_svc+0x58/0x78) > [9.664367] Exception stack(0xee0cfd80 to 0xee0cfdc8) > [9.665130] fd80: ee1ec010 c082f174 00d0 ee6b0800 ee6ae850 > ee1ec000 ee1ec010 > [9.674835] fda0: ee6b0cc0 00ee fa09c000 0003 ee0cfdd0 > c04cd748 c04df4e0 > [9.684814] fdc0: 2113 > [9.684814] [] (__irq_svc) from [] > (devm_clk_get+0x8/0x70) > [9.694824] [] (devm_clk_get) from [] > (omap_hsmmc_probe+0x2e8/0x9f0) > [9.704833] [] (omap_hsmmc_probe) from [] > (platform_drv_probe+0x44/0xac) > [9.714691] [] (platform_drv_probe) from [] > (driver_probe_device+0x1f4/0x2f0) > [9.724548] [] (driver_probe_device) from [] > (bus_for_each_drv+0x64/0x98) > [9.733459] [] (bus_for_each_drv) from [] > (__device_attach+0xb0/0x118) > [9.734832] [] (__device_attach) from [] > (bus_probe_device+0x88/0x90) > [9.744812] [] (bus_probe_device) from [] > (deferred_probe_work_func+0x60/0x90) > [9.760040] [] (deferred_probe_work_func) from [] > (process_one_work+0x1a4/0x558) > [9.769470] [] (process_one_work) from [] > (worker_thread+0x3c/0x514) > [9.774688] [] (worker_thread) from [] > (kthread+0xd4/0xf0) > [9.785614] [] (kthread) from [] > (ret_from_fork+0x14/0x24) > [9.785614] ---[ end trace 402743bd8cfdde2f ]--- And with the (currently almost useless) l3 interrupt stuff taken out by removing the ti,omap4-l3-noc compatible from omap4.dtsi, we get a real trace that might be of some help to you: [8.440917] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed [8.447418] Unhandled fault: imprecise external abort (0x1406) at 0xbeafaa10 [8.454925] pgd = c0004000 [8.454986] [beafaa10] *pgd=/root/init: line 14: /sys/devices/6800.ocp/4 8098000.spi/spi_master/spi1/spi1[8.461334] Internal error: : 1406 [#1] SMP ARM .2/backlight/acx565akm/brightness: No such file [8.473175] Modules linked in:or directory rtc_twl twl4030_wdt [8.483520] CPU: 1 PID: 66 Comm: kworker/u4:1 Not tainted 4.2.0-next-20150831-2-gf55bad8-dirty #1115 [8.493652] Hardware name: Generic OMAP4 (Flattened Device Tree) [8.498352] Workqueue: deferwq deferred_probe_work_func [8.505493] task: ee5f4f40 ti: ee5f6000 task.ti: ee5f6000 [8.510803] PC is at devm_clk_get+0x8/0x70 [8.514801] LR is at omap_hsmmc_probe+0x2e8/0x9f0 [8.520385] pc : []lr : []psr: 20010013 [8.520385] sp : ee5f7dd0 ip : 0003 fp : fa09c000 [8.532470] r10: 00ee r9 : ee6904c0 r8 : [8.537963] r7 : ee1ec010 r6 : ee1ec000 r5 : ee6e7dd0 r4 : ee69 [8.544769] r3 : r2 : 00d0 r1 : c082f184 r0 : ee1ec010 [8.551666] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none [8.559143] Control: 10c5387d Table: ae73804a DAC: 0051 [8.564727] Process kworker/u4:1 (pid: 66, stack limit = 0xee5f6218) [8.571441] Stack: (0xee5f7dd0 to 0xee5f8000) [8.576263] 7dc0: ee69 ee6e7dd0 ee1ec000 c04cd748 [8.584930] 7de0: c09cf8f8 ee1ed270 ee5de150
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
* Kishon Vijay Abraham I [150830 22:47]: > Hi, > > On Saturday 29 August 2015 12:33 AM, Tony Lindgren wrote: > > * Olof Johansson [150828 11:11]: > >> Hi, > >> > >> On Thu, Aug 27, 2015 at 2:13 AM, Kishon Vijay Abraham I > >> wrote: > >>> Now return error only if the return value of > >>> devm_regulator_get_optional() is not the same as -ENODEV, since with > >>> -EPROBE_DEFER, the regulator can be obtained later and all other > >>> errors are fatal. > >>> > >>> Signed-off-by: Kishon Vijay Abraham I > >>> Tested-by: Tony Lindgren > >> > >> I bisected boot failures on Panda ES with multi_v7_defconfig down to > >> this commit on last night's -next build: > >> > >> http://arm-soc.lixom.net/bootlogs/next/next-20150828/pandaes-arm-multi_v7_defconfig.html > > > > MMC is working for me at least on Duovero. Interesting that you also > > have all kind of errors there, I guess this is some older revision > > of the board. > > > > Anyways, Kishon, care to look into what might be causing this? > > I think this might be because my pbias fix [1] patch wasn't merged yet. > I'll try to get that resolved asap. Kishon, as there seems to be an ongoing discussion with the regulator regmap stuff for pbias, I suggest you provide a fix for the hsmmc driver instead for now or revert some patches to remove the dependency and get things working. And I must have tested next-20150827 instead of next-20150828. Or else it does not happen on every boot. In any case, I'm now getting the following on next-20150831 most of the time: [9.493133] omap_hsmmc 4809c000.mmc: using lookup tables for GPIO lookup [9.500274] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed [9.506378] [ cut here ] [9.508941] WARNING: CPU: 0 PID: 6 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x224/0x350() [9.520568] 4400.ocp:L3 Custom Error: MASTER MPU TARGET L4PER2 (Read): Data Access in User mode during Functional access [9.524810] Modules linked in: rtc_twl twl4030_wdt [9.534820] CPU: 0 PID: 6 Comm: kworker/u4:0 Not tainted 4.2.0-next-20150831-2-gf55bad8 #1113 [9.544830] Hardware name: Generic OMAP4 (Flattened Device Tree) [9.544830] Workqueue: deferwq deferred_probe_work_func [9.554809] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [9.564819] [] (show_stack) from [] (dump_stack+0x84/0x9c) [9.574829] [] (dump_stack) from [] (warn_slowpath_common+0x78/0xb4) [9.574951] [] (warn_slowpath_common) from [] (warn_slowpath_fmt+0x30/0x40) [9.584686] [] (warn_slowpath_fmt) from [] (l3_interrupt_handler+0x224/0x350) [9.594818] [] (l3_interrupt_handler) from [] (handle_irq_event_percpu+0x44/0x1f0) [9.604827] [] (handle_irq_event_percpu) from [] (handle_irq_event+0x40/0x64) [9.614807] [] (handle_irq_event) from [] (handle_fasteoi_irq+0xcc/0x1c4) [9.625396] [] (handle_fasteoi_irq) from [] (generic_handle_irq+0x28/0x3c) [9.638732] [] (generic_handle_irq) from [] (__handle_domain_irq+0x64/0xe0) [9.647827] [] (__handle_domain_irq) from [] (gic_handle_irq+0x40/0x8c) [9.654693] [] (gic_handle_irq) from [] (__irq_svc+0x58/0x78) [9.664367] Exception stack(0xee0cfd80 to 0xee0cfdc8) [9.665130] fd80: ee1ec010 c082f174 00d0 ee6b0800 ee6ae850 ee1ec000 ee1ec010 [9.674835] fda0: ee6b0cc0 00ee fa09c000 0003 ee0cfdd0 c04cd748 c04df4e0 [9.684814] fdc0: 2113 [9.684814] [] (__irq_svc) from [] (devm_clk_get+0x8/0x70) [9.694824] [] (devm_clk_get) from [] (omap_hsmmc_probe+0x2e8/0x9f0) [9.704833] [] (omap_hsmmc_probe) from [] (platform_drv_probe+0x44/0xac) [9.714691] [] (platform_drv_probe) from [] (driver_probe_device+0x1f4/0x2f0) [9.724548] [] (driver_probe_device) from [] (bus_for_each_drv+0x64/0x98) [9.733459] [] (bus_for_each_drv) from [] (__device_attach+0xb0/0x118) [9.734832] [] (__device_attach) from [] (bus_probe_device+0x88/0x90) [9.744812] [] (bus_probe_device) from [] (deferred_probe_work_func+0x60/0x90) [9.760040] [] (deferred_probe_work_func) from [] (process_one_work+0x1a4/0x558) [9.769470] [] (process_one_work) from [] (worker_thread+0x3c/0x514) [9.774688] [] (worker_thread) from [] (kthread+0xd4/0xf0) [9.785614] [] (kthread) from [] (ret_from_fork+0x14/0x24) [9.785614] ---[ end trace 402743bd8cfdde2f ]--- > [1] -> http://lkml.iu.edu/hypermail/linux/kernel/1507.3/01594.html With patch 1/2 of the above applied, I'm getting this instead: [2.930938] [ cut here ] [2.935852] WARNING: CPU: 0 PID: 6 at drivers/regulator/core.c:2105 _regulator_disable+0x13c/0x1d4() [2.945465] unbalanced disables for pbias_mmc_omap4 [2.945465] Modules linked in: [2.950592] CPU: 0 PID: 6 Comm: kworker/u4:0 Not tainted 4.2.0-next-20150831-3-gc5112ac-dirty #1114 [2.963684] Hardware name: Generic OMAP4 (Flattened Device Tree) [2.970031] Workqueue: deferwq
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
* Kishon Vijay Abraham I[150830 22:47]: > Hi, > > On Saturday 29 August 2015 12:33 AM, Tony Lindgren wrote: > > * Olof Johansson [150828 11:11]: > >> Hi, > >> > >> On Thu, Aug 27, 2015 at 2:13 AM, Kishon Vijay Abraham I > >> wrote: > >>> Now return error only if the return value of > >>> devm_regulator_get_optional() is not the same as -ENODEV, since with > >>> -EPROBE_DEFER, the regulator can be obtained later and all other > >>> errors are fatal. > >>> > >>> Signed-off-by: Kishon Vijay Abraham I > >>> Tested-by: Tony Lindgren > >> > >> I bisected boot failures on Panda ES with multi_v7_defconfig down to > >> this commit on last night's -next build: > >> > >> http://arm-soc.lixom.net/bootlogs/next/next-20150828/pandaes-arm-multi_v7_defconfig.html > > > > MMC is working for me at least on Duovero. Interesting that you also > > have all kind of errors there, I guess this is some older revision > > of the board. > > > > Anyways, Kishon, care to look into what might be causing this? > > I think this might be because my pbias fix [1] patch wasn't merged yet. > I'll try to get that resolved asap. Kishon, as there seems to be an ongoing discussion with the regulator regmap stuff for pbias, I suggest you provide a fix for the hsmmc driver instead for now or revert some patches to remove the dependency and get things working. And I must have tested next-20150827 instead of next-20150828. Or else it does not happen on every boot. In any case, I'm now getting the following on next-20150831 most of the time: [9.493133] omap_hsmmc 4809c000.mmc: using lookup tables for GPIO lookup [9.500274] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed [9.506378] [ cut here ] [9.508941] WARNING: CPU: 0 PID: 6 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x224/0x350() [9.520568] 4400.ocp:L3 Custom Error: MASTER MPU TARGET L4PER2 (Read): Data Access in User mode during Functional access [9.524810] Modules linked in: rtc_twl twl4030_wdt [9.534820] CPU: 0 PID: 6 Comm: kworker/u4:0 Not tainted 4.2.0-next-20150831-2-gf55bad8 #1113 [9.544830] Hardware name: Generic OMAP4 (Flattened Device Tree) [9.544830] Workqueue: deferwq deferred_probe_work_func [9.554809] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [9.564819] [] (show_stack) from [] (dump_stack+0x84/0x9c) [9.574829] [] (dump_stack) from [] (warn_slowpath_common+0x78/0xb4) [9.574951] [] (warn_slowpath_common) from [] (warn_slowpath_fmt+0x30/0x40) [9.584686] [] (warn_slowpath_fmt) from [] (l3_interrupt_handler+0x224/0x350) [9.594818] [] (l3_interrupt_handler) from [] (handle_irq_event_percpu+0x44/0x1f0) [9.604827] [] (handle_irq_event_percpu) from [] (handle_irq_event+0x40/0x64) [9.614807] [] (handle_irq_event) from [] (handle_fasteoi_irq+0xcc/0x1c4) [9.625396] [] (handle_fasteoi_irq) from [] (generic_handle_irq+0x28/0x3c) [9.638732] [] (generic_handle_irq) from [] (__handle_domain_irq+0x64/0xe0) [9.647827] [] (__handle_domain_irq) from [] (gic_handle_irq+0x40/0x8c) [9.654693] [] (gic_handle_irq) from [] (__irq_svc+0x58/0x78) [9.664367] Exception stack(0xee0cfd80 to 0xee0cfdc8) [9.665130] fd80: ee1ec010 c082f174 00d0 ee6b0800 ee6ae850 ee1ec000 ee1ec010 [9.674835] fda0: ee6b0cc0 00ee fa09c000 0003 ee0cfdd0 c04cd748 c04df4e0 [9.684814] fdc0: 2113 [9.684814] [] (__irq_svc) from [] (devm_clk_get+0x8/0x70) [9.694824] [] (devm_clk_get) from [] (omap_hsmmc_probe+0x2e8/0x9f0) [9.704833] [] (omap_hsmmc_probe) from [] (platform_drv_probe+0x44/0xac) [9.714691] [] (platform_drv_probe) from [] (driver_probe_device+0x1f4/0x2f0) [9.724548] [] (driver_probe_device) from [] (bus_for_each_drv+0x64/0x98) [9.733459] [] (bus_for_each_drv) from [] (__device_attach+0xb0/0x118) [9.734832] [] (__device_attach) from [] (bus_probe_device+0x88/0x90) [9.744812] [] (bus_probe_device) from [] (deferred_probe_work_func+0x60/0x90) [9.760040] [] (deferred_probe_work_func) from [] (process_one_work+0x1a4/0x558) [9.769470] [] (process_one_work) from [] (worker_thread+0x3c/0x514) [9.774688] [] (worker_thread) from [] (kthread+0xd4/0xf0) [9.785614] [] (kthread) from [] (ret_from_fork+0x14/0x24) [9.785614] ---[ end trace 402743bd8cfdde2f ]--- > [1] -> http://lkml.iu.edu/hypermail/linux/kernel/1507.3/01594.html With patch 1/2 of the above applied, I'm getting this instead: [2.930938] [ cut here ] [2.935852] WARNING: CPU: 0 PID: 6 at drivers/regulator/core.c:2105 _regulator_disable+0x13c/0x1d4() [2.945465] unbalanced disables for pbias_mmc_omap4 [2.945465] Modules linked in: [2.950592] CPU: 0 PID: 6 Comm: kworker/u4:0 Not tainted 4.2.0-next-20150831-3-gc5112ac-dirty #1114 [2.963684] Hardware name: Generic
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
* Tony Lindgren[150831 14:02]: > > And I must have tested next-20150827 instead of next-20150828. Or > else it does not happen on every boot. In any case, I'm now getting > the following on next-20150831 most of the time: > > [9.493133] omap_hsmmc 4809c000.mmc: using lookup tables for GPIO lookup > [9.500274] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed > [9.506378] [ cut here ] > [9.508941] WARNING: CPU: 0 PID: 6 at drivers/bus/omap_l3_noc.c:147 > l3_interrupt_handler+0x224/0x350() > [9.520568] 4400.ocp:L3 Custom Error: MASTER MPU TARGET L4PER2 (Read): > Data Access in User mode during Functional access > [9.524810] Modules linked in: rtc_twl twl4030_wdt > [9.534820] CPU: 0 PID: 6 Comm: kworker/u4:0 Not tainted > 4.2.0-next-20150831-2-gf55bad8 #1113 > [9.544830] Hardware name: Generic OMAP4 (Flattened Device Tree) > [9.544830] Workqueue: deferwq deferred_probe_work_func > [9.554809] [] (unwind_backtrace) from [] > (show_stack+0x10/0x14) > [9.564819] [] (show_stack) from [] > (dump_stack+0x84/0x9c) > [9.574829] [] (dump_stack) from [] > (warn_slowpath_common+0x78/0xb4) > [9.574951] [] (warn_slowpath_common) from [] > (warn_slowpath_fmt+0x30/0x40) > [9.584686] [] (warn_slowpath_fmt) from [] > (l3_interrupt_handler+0x224/0x350) > [9.594818] [] (l3_interrupt_handler) from [] > (handle_irq_event_percpu+0x44/0x1f0) > [9.604827] [] (handle_irq_event_percpu) from [] > (handle_irq_event+0x40/0x64) > [9.614807] [] (handle_irq_event) from [] > (handle_fasteoi_irq+0xcc/0x1c4) > [9.625396] [] (handle_fasteoi_irq) from [] > (generic_handle_irq+0x28/0x3c) > [9.638732] [] (generic_handle_irq) from [] > (__handle_domain_irq+0x64/0xe0) > [9.647827] [] (__handle_domain_irq) from [] > (gic_handle_irq+0x40/0x8c) > [9.654693] [] (gic_handle_irq) from [] > (__irq_svc+0x58/0x78) > [9.664367] Exception stack(0xee0cfd80 to 0xee0cfdc8) > [9.665130] fd80: ee1ec010 c082f174 00d0 ee6b0800 ee6ae850 > ee1ec000 ee1ec010 > [9.674835] fda0: ee6b0cc0 00ee fa09c000 0003 ee0cfdd0 > c04cd748 c04df4e0 > [9.684814] fdc0: 2113 > [9.684814] [] (__irq_svc) from [] > (devm_clk_get+0x8/0x70) > [9.694824] [] (devm_clk_get) from [] > (omap_hsmmc_probe+0x2e8/0x9f0) > [9.704833] [] (omap_hsmmc_probe) from [] > (platform_drv_probe+0x44/0xac) > [9.714691] [] (platform_drv_probe) from [] > (driver_probe_device+0x1f4/0x2f0) > [9.724548] [] (driver_probe_device) from [] > (bus_for_each_drv+0x64/0x98) > [9.733459] [] (bus_for_each_drv) from [] > (__device_attach+0xb0/0x118) > [9.734832] [] (__device_attach) from [] > (bus_probe_device+0x88/0x90) > [9.744812] [] (bus_probe_device) from [] > (deferred_probe_work_func+0x60/0x90) > [9.760040] [] (deferred_probe_work_func) from [] > (process_one_work+0x1a4/0x558) > [9.769470] [] (process_one_work) from [] > (worker_thread+0x3c/0x514) > [9.774688] [] (worker_thread) from [] > (kthread+0xd4/0xf0) > [9.785614] [] (kthread) from [] > (ret_from_fork+0x14/0x24) > [9.785614] ---[ end trace 402743bd8cfdde2f ]--- And with the (currently almost useless) l3 interrupt stuff taken out by removing the ti,omap4-l3-noc compatible from omap4.dtsi, we get a real trace that might be of some help to you: [8.440917] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed [8.447418] Unhandled fault: imprecise external abort (0x1406) at 0xbeafaa10 [8.454925] pgd = c0004000 [8.454986] [beafaa10] *pgd=/root/init: line 14: /sys/devices/6800.ocp/4 8098000.spi/spi_master/spi1/spi1[8.461334] Internal error: : 1406 [#1] SMP ARM .2/backlight/acx565akm/brightness: No such file [8.473175] Modules linked in:or directory rtc_twl twl4030_wdt [8.483520] CPU: 1 PID: 66 Comm: kworker/u4:1 Not tainted 4.2.0-next-20150831-2-gf55bad8-dirty #1115 [8.493652] Hardware name: Generic OMAP4 (Flattened Device Tree) [8.498352] Workqueue: deferwq deferred_probe_work_func [8.505493] task: ee5f4f40 ti: ee5f6000 task.ti: ee5f6000 [8.510803] PC is at devm_clk_get+0x8/0x70 [8.514801] LR is at omap_hsmmc_probe+0x2e8/0x9f0 [8.520385] pc : []lr : []psr: 20010013 [8.520385] sp : ee5f7dd0 ip : 0003 fp : fa09c000 [8.532470] r10: 00ee r9 : ee6904c0 r8 : [8.537963] r7 : ee1ec010 r6 : ee1ec000 r5 : ee6e7dd0 r4 : ee69 [8.544769] r3 : r2 : 00d0 r1 : c082f184 r0 : ee1ec010 [8.551666] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none [8.559143] Control: 10c5387d Table: ae73804a DAC: 0051 [8.564727] Process kworker/u4:1 (pid: 66, stack limit = 0xee5f6218) [8.571441] Stack: (0xee5f7dd0 to 0xee5f8000) [8.576263] 7dc0: ee69 ee6e7dd0 ee1ec000 c04cd748 [8.584930] 7de0: c09cf8f8
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
Hi, On Saturday 29 August 2015 12:33 AM, Tony Lindgren wrote: > * Olof Johansson [150828 11:11]: >> Hi, >> >> On Thu, Aug 27, 2015 at 2:13 AM, Kishon Vijay Abraham I >> wrote: >>> Now return error only if the return value of >>> devm_regulator_get_optional() is not the same as -ENODEV, since with >>> -EPROBE_DEFER, the regulator can be obtained later and all other >>> errors are fatal. >>> >>> Signed-off-by: Kishon Vijay Abraham I >>> Tested-by: Tony Lindgren >> >> I bisected boot failures on Panda ES with multi_v7_defconfig down to >> this commit on last night's -next build: >> >> http://arm-soc.lixom.net/bootlogs/next/next-20150828/pandaes-arm-multi_v7_defconfig.html > > MMC is working for me at least on Duovero. Interesting that you also > have all kind of errors there, I guess this is some older revision > of the board. > > Anyways, Kishon, care to look into what might be causing this? I think this might be because my pbias fix [1] patch wasn't merged yet. I'll try to get that resolved asap. Thanks Kishon [1] -> http://lkml.iu.edu/hypermail/linux/kernel/1507.3/01594.html > > Regards, > > Tony > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
Hi, On Saturday 29 August 2015 12:33 AM, Tony Lindgren wrote: * Olof Johansson o...@lixom.net [150828 11:11]: Hi, On Thu, Aug 27, 2015 at 2:13 AM, Kishon Vijay Abraham I kis...@ti.com wrote: Now return error only if the return value of devm_regulator_get_optional() is not the same as -ENODEV, since with -EPROBE_DEFER, the regulator can be obtained later and all other errors are fatal. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Tested-by: Tony Lindgren t...@atomide.com I bisected boot failures on Panda ES with multi_v7_defconfig down to this commit on last night's -next build: http://arm-soc.lixom.net/bootlogs/next/next-20150828/pandaes-arm-multi_v7_defconfig.html MMC is working for me at least on Duovero. Interesting that you also have all kind of errors there, I guess this is some older revision of the board. Anyways, Kishon, care to look into what might be causing this? I think this might be because my pbias fix [1] patch wasn't merged yet. I'll try to get that resolved asap. Thanks Kishon [1] - http://lkml.iu.edu/hypermail/linux/kernel/1507.3/01594.html Regards, Tony -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
* Olof Johansson [150828 11:11]: > Hi, > > On Thu, Aug 27, 2015 at 2:13 AM, Kishon Vijay Abraham I wrote: > > Now return error only if the return value of > > devm_regulator_get_optional() is not the same as -ENODEV, since with > > -EPROBE_DEFER, the regulator can be obtained later and all other > > errors are fatal. > > > > Signed-off-by: Kishon Vijay Abraham I > > Tested-by: Tony Lindgren > > I bisected boot failures on Panda ES with multi_v7_defconfig down to > this commit on last night's -next build: > > http://arm-soc.lixom.net/bootlogs/next/next-20150828/pandaes-arm-multi_v7_defconfig.html MMC is working for me at least on Duovero. Interesting that you also have all kind of errors there, I guess this is some older revision of the board. Anyways, Kishon, care to look into what might be causing this? Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
Hi, On Thu, Aug 27, 2015 at 2:13 AM, Kishon Vijay Abraham I wrote: > Now return error only if the return value of > devm_regulator_get_optional() is not the same as -ENODEV, since with > -EPROBE_DEFER, the regulator can be obtained later and all other > errors are fatal. > > Signed-off-by: Kishon Vijay Abraham I > Tested-by: Tony Lindgren I bisected boot failures on Panda ES with multi_v7_defconfig down to this commit on last night's -next build: http://arm-soc.lixom.net/bootlogs/next/next-20150828/pandaes-arm-multi_v7_defconfig.html -Olof -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
Hi, On Thu, Aug 27, 2015 at 2:13 AM, Kishon Vijay Abraham I kis...@ti.com wrote: Now return error only if the return value of devm_regulator_get_optional() is not the same as -ENODEV, since with -EPROBE_DEFER, the regulator can be obtained later and all other errors are fatal. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Tested-by: Tony Lindgren t...@atomide.com I bisected boot failures on Panda ES with multi_v7_defconfig down to this commit on last night's -next build: http://arm-soc.lixom.net/bootlogs/next/next-20150828/pandaes-arm-multi_v7_defconfig.html -Olof -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
* Olof Johansson o...@lixom.net [150828 11:11]: Hi, On Thu, Aug 27, 2015 at 2:13 AM, Kishon Vijay Abraham I kis...@ti.com wrote: Now return error only if the return value of devm_regulator_get_optional() is not the same as -ENODEV, since with -EPROBE_DEFER, the regulator can be obtained later and all other errors are fatal. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Tested-by: Tony Lindgren t...@atomide.com I bisected boot failures on Panda ES with multi_v7_defconfig down to this commit on last night's -next build: http://arm-soc.lixom.net/bootlogs/next/next-20150828/pandaes-arm-multi_v7_defconfig.html MMC is working for me at least on Duovero. Interesting that you also have all kind of errors there, I guess this is some older revision of the board. Anyways, Kishon, care to look into what might be causing this? Regards, Tony -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
Now return error only if the return value of devm_regulator_get_optional() is not the same as -ENODEV, since with -EPROBE_DEFER, the regulator can be obtained later and all other errors are fatal. Signed-off-by: Kishon Vijay Abraham I Tested-by: Tony Lindgren --- drivers/mmc/host/omap_hsmmc.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 9b335af..2eafd6f 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -375,10 +375,28 @@ static int omap_hsmmc_reg_get(struct omap_hsmmc_host *host) /* Allow an aux regulator */ reg = devm_regulator_get_optional(host->dev, "vmmc_aux"); - host->vcc_aux = IS_ERR(reg) ? NULL : reg; + if (IS_ERR(reg)) { + ret = PTR_ERR(reg); + if (ret != -ENODEV) + return ret; + host->vcc_aux = NULL; + dev_dbg(host->dev, "unable to get vmmc_aux regulator %ld\n", + PTR_ERR(reg)); + } else { + host->vcc_aux = reg; + } reg = devm_regulator_get_optional(host->dev, "pbias"); - host->pbias = IS_ERR(reg) ? NULL : reg; + if (IS_ERR(reg)) { + ret = PTR_ERR(reg); + if (ret != -ENODEV) + return ret; + host->pbias = NULL; + dev_dbg(host->dev, "unable to get pbias regulator %ld\n", + PTR_ERR(reg)); + } else { + host->pbias = reg; + } /* For eMMC do not power off when not in sleep state */ if (mmc_pdata(host)->no_regulator_off_init) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
Now return error only if the return value of devm_regulator_get_optional() is not the same as -ENODEV, since with -EPROBE_DEFER, the regulator can be obtained later and all other errors are fatal. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Tested-by: Tony Lindgren t...@atomide.com --- drivers/mmc/host/omap_hsmmc.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 9b335af..2eafd6f 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -375,10 +375,28 @@ static int omap_hsmmc_reg_get(struct omap_hsmmc_host *host) /* Allow an aux regulator */ reg = devm_regulator_get_optional(host-dev, vmmc_aux); - host-vcc_aux = IS_ERR(reg) ? NULL : reg; + if (IS_ERR(reg)) { + ret = PTR_ERR(reg); + if (ret != -ENODEV) + return ret; + host-vcc_aux = NULL; + dev_dbg(host-dev, unable to get vmmc_aux regulator %ld\n, + PTR_ERR(reg)); + } else { + host-vcc_aux = reg; + } reg = devm_regulator_get_optional(host-dev, pbias); - host-pbias = IS_ERR(reg) ? NULL : reg; + if (IS_ERR(reg)) { + ret = PTR_ERR(reg); + if (ret != -ENODEV) + return ret; + host-pbias = NULL; + dev_dbg(host-dev, unable to get pbias regulator %ld\n, + PTR_ERR(reg)); + } else { + host-pbias = reg; + } /* For eMMC do not power off when not in sleep state */ if (mmc_pdata(host)-no_regulator_off_init) -- 1.7.9.5 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/