linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* NFS root on Koelsch reference
@ 2014-03-06 19:22 Geert Uytterhoeven
  2014-03-06 19:24 ` Ben Dooks
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Geert Uytterhoeven @ 2014-03-06 19:22 UTC (permalink / raw)
  To: linux-sh

Now we have DT support for Ethernet on r8a7791, I struggled a bit to get NFS
root working on Koelsch reference.

While I still need "[PATCH] ARM: shmobile: compile drivers/sh for
CONFIG_ARCH_SHMOBILE_MULTI" to make the thermal sensor warning
go away, this same patch causes a kernel panic when starting userspace from
NFS root on Koelsch reference:

VFS: Mounted root (nfs filesystem) readonly on device 0:12.
devtmpfs: mounted
Freeing unused kernel memory: 204K (c042b000 - c045e000)
Unhandled fault: imprecise external abort (0x1406) at 0x00000000
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007

CPU: 1 PID: 1 Comm: bash Not tainted
3.14.0-rc5-koelsch-reference-01179-gee99a8bd6a2f-dirty #115
Backtrace:
[<c00120ac>] (dump_backtrace) from [<c001224c>] (show_stack+0x18/0x1c)
 r6:eec799c0 r5:ee4a6e40 r4:00000000 r3:00000204
[<c0012234>] (show_stack) from [<c032f5f0>] (dump_stack+0x70/0x8c)
[<c032f580>] (dump_stack) from [<c032dafc>] (panic+0x90/0x1ec)
 r4:eec799c0 r3:00000001
[<c032da70>] (panic) from [<c0025d3c>] (do_exit+0x494/0x8bc)
 r3:eec73dc0 r2:00000000 r1:00000007 r0:c03d3cae
 r7:ee4a6e78
[<c00258a8>] (do_exit) from [<c00262f4>] (do_group_exit+0xa4/0xd0)
 r7:eed64040
[<c0026250>] (do_group_exit) from [<c0031854>]
(get_signal_to_deliver+0x4bc/0x520)
 r7:eed64040 r6:eec7bee4 r5:eec7a000 r4:01060013
[<c0031398>] (get_signal_to_deliver) from [<c00115ac>] (do_signal+0xa8/0x3c0)
 r10:00000000 r9:eec7a000 r8:00000000 r7:eec7a000 r6:00000000 r5:00000000
 r4:eec7bfb0

Nothing really interesting in the backtrace.

Without that patch, NFS root works, but it's much more sluggish than under
the Koelsch legacy kernel.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: NFS root on Koelsch reference
  2014-03-06 19:22 NFS root on Koelsch reference Geert Uytterhoeven
@ 2014-03-06 19:24 ` Ben Dooks
  2014-03-06 19:25 ` Ben Dooks
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Ben Dooks @ 2014-03-06 19:24 UTC (permalink / raw)
  To: linux-sh

On 06/03/14 19:22, Geert Uytterhoeven wrote:
> Now we have DT support for Ethernet on r8a7791, I struggled a bit to get NFS
> root working on Koelsch reference.
>
> While I still need "[PATCH] ARM: shmobile: compile drivers/sh for
> CONFIG_ARCH_SHMOBILE_MULTI" to make the thermal sensor warning
> go away, this same patch causes a kernel panic when starting userspace from
> NFS root on Koelsch reference:
>
> VFS: Mounted root (nfs filesystem) readonly on device 0:12.
> devtmpfs: mounted
> Freeing unused kernel memory: 204K (c042b000 - c045e000)
> Unhandled fault: imprecise external abort (0x1406) at 0x00000000
> Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007

I am also trying to get a patch in to stop these being fatal to the
system.

We also need a fix for the Micrel PHY to set the LED mode on the
Lager board. I've sent that but it seems to have stalled.


-- 
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: NFS root on Koelsch reference
  2014-03-06 19:22 NFS root on Koelsch reference Geert Uytterhoeven
  2014-03-06 19:24 ` Ben Dooks
@ 2014-03-06 19:25 ` Ben Dooks
  2014-03-07 17:57 ` Sergei Shtylyov
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Ben Dooks @ 2014-03-06 19:25 UTC (permalink / raw)
  To: linux-sh

On 06/03/14 19:22, Geert Uytterhoeven wrote:
> Now we have DT support for Ethernet on r8a7791, I struggled a bit to get NFS
> root working on Koelsch reference.
>
> While I still need "[PATCH] ARM: shmobile: compile drivers/sh for
> CONFIG_ARCH_SHMOBILE_MULTI" to make the thermal sensor warning
> go away, this same patch causes a kernel panic when starting userspace from
> NFS root on Koelsch reference:

I will try and see if that patch can be moved along.

-- 
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: NFS root on Koelsch reference
  2014-03-06 19:22 NFS root on Koelsch reference Geert Uytterhoeven
  2014-03-06 19:24 ` Ben Dooks
  2014-03-06 19:25 ` Ben Dooks
@ 2014-03-07 17:57 ` Sergei Shtylyov
  2014-03-11 10:47 ` Geert Uytterhoeven
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Sergei Shtylyov @ 2014-03-07 17:57 UTC (permalink / raw)
  To: linux-sh

Hello.

On 03/06/2014 10:24 PM, Ben Dooks wrote:

>> Now we have DT support for Ethernet on r8a7791, I struggled a bit to get NFS
>> root working on Koelsch reference.

>> While I still need "[PATCH] ARM: shmobile: compile drivers/sh for
>> CONFIG_ARCH_SHMOBILE_MULTI" to make the thermal sensor warning
>> go away, this same patch causes a kernel panic when starting userspace from
>> NFS root on Koelsch reference:

>> VFS: Mounted root (nfs filesystem) readonly on device 0:12.
>> devtmpfs: mounted
>> Freeing unused kernel memory: 204K (c042b000 - c045e000)
>> Unhandled fault: imprecise external abort (0x1406) at 0x00000000
>> Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007

    Geert, do you have CONFIG_PM_RUNTIME in your .config?

> I am also trying to get a patch in to stop these being fatal to the
> system.

> We also need a fix for the Micrel PHY to set the LED mode on the
> Lager board. I've sent that but it seems to have stalled.

    While we're not having it, try changing "renesas,ether-link-active-low" 
prop to "renesas,no-ether-link" in the Koelsch device tree file.

WBR, Sergei


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: NFS root on Koelsch reference
  2014-03-06 19:22 NFS root on Koelsch reference Geert Uytterhoeven
                   ` (2 preceding siblings ...)
  2014-03-07 17:57 ` Sergei Shtylyov
@ 2014-03-11 10:47 ` Geert Uytterhoeven
  2014-03-11 12:40 ` Ben Dooks
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Geert Uytterhoeven @ 2014-03-11 10:47 UTC (permalink / raw)
  To: linux-sh

Hi Sergei,

On Fri, Mar 7, 2014 at 7:57 PM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
>> We also need a fix for the Micrel PHY to set the LED mode on the
>> Lager board. I've sent that but it seems to have stalled.
>
>    While we're not having it, try changing "renesas,ether-link-active-low"
> prop to "renesas,no-ether-link" in the Koelsch device tree file.

Thanks, that decreases the part between nfsroot mount and system ready
from 54 s to 15 s, hence

Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: NFS root on Koelsch reference
  2014-03-06 19:22 NFS root on Koelsch reference Geert Uytterhoeven
                   ` (3 preceding siblings ...)
  2014-03-11 10:47 ` Geert Uytterhoeven
@ 2014-03-11 12:40 ` Ben Dooks
  2014-03-12  9:57 ` Phil.Edworthy
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Ben Dooks @ 2014-03-11 12:40 UTC (permalink / raw)
  To: linux-sh

On 11/03/14 10:47, Geert Uytterhoeven wrote:
> Hi Sergei,
>
> On Fri, Mar 7, 2014 at 7:57 PM, Sergei Shtylyov
> <sergei.shtylyov@cogentembedded.com> wrote:
>>> We also need a fix for the Micrel PHY to set the LED mode on the
>>> Lager board. I've sent that but it seems to have stalled.
>>
>>     While we're not having it, try changing "renesas,ether-link-active-low"
>> prop to "renesas,no-ether-link" in the Koelsch device tree file.
>
> Thanks, that decreases the part between nfsroot mount and system ready
> from 54 s to 15 s, hence
>

The LED mode patch looks like it is now in net-next, so all that needs
to be done is chase-up the proper of linking for the PHY and we can fix
these issues in the DT.


-- 
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: NFS root on Koelsch reference
  2014-03-06 19:22 NFS root on Koelsch reference Geert Uytterhoeven
                   ` (4 preceding siblings ...)
  2014-03-11 12:40 ` Ben Dooks
@ 2014-03-12  9:57 ` Phil.Edworthy
  2014-03-12 10:12 ` Geert Uytterhoeven
  2014-03-12 10:18 ` Phil.Edworthy
  7 siblings, 0 replies; 9+ messages in thread
From: Phil.Edworthy @ 2014-03-12  9:57 UTC (permalink / raw)
  To: linux-sh

Hi,

On 11/03/2014 10:48, Geert wrote:
> Subject: Re: NFS root on Koelsch reference
> Sent by: linux-sh-owner@vger.kernel.org
> 
> Hi Sergei,
> 
> On Fri, Mar 7, 2014 at 7:57 PM, Sergei Shtylyov
> <sergei.shtylyov@cogentembedded.com> wrote:
> >> We also need a fix for the Micrel PHY to set the LED mode on the
> >> Lager board. I've sent that but it seems to have stalled.
> >
> >    While we're not having it, try changing 
"renesas,ether-link-active-low"
> > prop to "renesas,no-ether-link" in the Koelsch device tree file.
> 
> Thanks, that decreases the part between nfsroot mount and system ready
> from 54 s to 15 s, hence
> 
> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
> 
> Gr{oetje,eeting}s,
> 
>                         Geert

I'm trying to do some DT work for the R-Car PCIe driver, but can't get NFS 
root working on Koelsch. It's not even loading the driver... I'm working 
off Simon's devel branch, is there any other patches required to get this 
working?

Thanks
Phil

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: NFS root on Koelsch reference
  2014-03-06 19:22 NFS root on Koelsch reference Geert Uytterhoeven
                   ` (5 preceding siblings ...)
  2014-03-12  9:57 ` Phil.Edworthy
@ 2014-03-12 10:12 ` Geert Uytterhoeven
  2014-03-12 10:18 ` Phil.Edworthy
  7 siblings, 0 replies; 9+ messages in thread
From: Geert Uytterhoeven @ 2014-03-12 10:12 UTC (permalink / raw)
  To: linux-sh

Hi Phil,

On Wed, Mar 12, 2014 at 10:57 AM,  <Phil.Edworthy@renesas.com> wrote:
> On 11/03/2014 10:48, Geert wrote:
>> Subject: Re: NFS root on Koelsch reference
>> On Fri, Mar 7, 2014 at 7:57 PM, Sergei Shtylyov
>> <sergei.shtylyov@cogentembedded.com> wrote:
>> >> We also need a fix for the Micrel PHY to set the LED mode on the
>> >> Lager board. I've sent that but it seems to have stalled.
>> >
>> >    While we're not having it, try changing
> "renesas,ether-link-active-low"
>> > prop to "renesas,no-ether-link" in the Koelsch device tree file.
>>
>> Thanks, that decreases the part between nfsroot mount and system ready
>> from 54 s to 15 s, hence
>
> I'm trying to do some DT work for the R-Car PCIe driver, but can't get NFS
> root working on Koelsch. It's not even loading the driver... I'm working
> off Simon's devel branch, is there any other patches required to get this
> working?

You need to apply "sh_eth: add device tree support" from net-next
on top:
https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/?id³56e978e92fccd17a3e4620a4821bdbfb706c1a

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: NFS root on Koelsch reference
  2014-03-06 19:22 NFS root on Koelsch reference Geert Uytterhoeven
                   ` (6 preceding siblings ...)
  2014-03-12 10:12 ` Geert Uytterhoeven
@ 2014-03-12 10:18 ` Phil.Edworthy
  7 siblings, 0 replies; 9+ messages in thread
From: Phil.Edworthy @ 2014-03-12 10:18 UTC (permalink / raw)
  To: linux-sh

Hi Geert,

> On Wed, Mar 12, 2014 at 10:57 AM,  <Phil.Edworthy@renesas.com> wrote:
> > On 11/03/2014 10:48, Geert wrote:
> >> Subject: Re: NFS root on Koelsch reference
> >> On Fri, Mar 7, 2014 at 7:57 PM, Sergei Shtylyov
> >> <sergei.shtylyov@cogentembedded.com> wrote:
> >> >> We also need a fix for the Micrel PHY to set the LED mode on the
> >> >> Lager board. I've sent that but it seems to have stalled.
> >> >
> >> >    While we're not having it, try changing
> > "renesas,ether-link-active-low"
> >> > prop to "renesas,no-ether-link" in the Koelsch device tree file.
> >>
> >> Thanks, that decreases the part between nfsroot mount and system 
ready
> >> from 54 s to 15 s, hence
> >
> > I'm trying to do some DT work for the R-Car PCIe driver, but can't get 
NFS
> > root working on Koelsch. It's not even loading the driver... I'm 
working
> > off Simon's devel branch, is there any other patches required to get 
this
> > working?
> 
> You need to apply "sh_eth: add device tree support" from net-next
> on top:
> https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/?
> id³56e978e92fccd17a3e4620a4821bdbfb706c1a

Thanks, working now!
Phil

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-03-12 10:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-06 19:22 NFS root on Koelsch reference Geert Uytterhoeven
2014-03-06 19:24 ` Ben Dooks
2014-03-06 19:25 ` Ben Dooks
2014-03-07 17:57 ` Sergei Shtylyov
2014-03-11 10:47 ` Geert Uytterhoeven
2014-03-11 12:40 ` Ben Dooks
2014-03-12  9:57 ` Phil.Edworthy
2014-03-12 10:12 ` Geert Uytterhoeven
2014-03-12 10:18 ` Phil.Edworthy

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).