Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1353978

Re: [1/1] powerpc/embedded6xx: Make reboot works on MVME5100

From Gabriel Paubert <paubert@iram.es>
Newsgroups linux.kernel
Subject Re: [1/1] powerpc/embedded6xx: Make reboot works on MVME5100
Date 2016-03-09 11:50 +0100
Message-ID <raJQL-6E8-43@gated-at.bofh.it> (permalink)
References <rakIH-6lY-23@gated-at.bofh.it> <raFWN-467-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Mar 09, 2016 at 12:38:18AM -0600, Scott Wood wrote:
> On Tue, Mar 08, 2016 at 08:59:12AM +0100, Alessio Igor Bogani wrote:
> > The mtmsr() function hangs during restart. Make reboot works on
> > MVME5100 removing that function call.
> > ---
> >  arch/powerpc/platforms/embedded6xx/mvme5100.c | 2 --
> >  1 file changed, 2 deletions(-)
> 
> Missing signoff
> 
> Do you know why MSR_IP was there to begin with? 

Huh? The patch sets MSR_IP for reset but it is cleared while running Linux.
I don't have any MVME5100, however I do have MVME2400/2700 with the same
bridge (Hawk), so I can say that the address space layout is quite standard: 
memory at 0, ROM at the high end of the 32-bit address space. However the
reset method is quite different (no external register set on the Hawk).

> Does this board have a switch that determines whether boot vectors 
> are high or low (I remember some 83xx boards that did), in which 
> case is this fixing one config by breaking another?

For the switch, no AFAICT. And the code is MVME5100 specific so I
suspect that it is very unlikely to break other boards.

Very likely the source of the problem is that the restart address is remapped 
(ioremap) but never accessed while the kernel is running (the only access to
*restart is in the reboot routine) so we take a DSI exception to fill the hash 
table when attempting to reboot. 

It would be enough to move the setting of MSR_IP until after triggering the 
restart, but this performs a hard reset of the CPU, which will set MSR_IP 
anyway (granted that the CPU will probably set MSR_IP way before the reset 
signal comes in).

One way to check this hypothesis would be to introduce a write of 0 to
the restart address before setting MSR_IP.

This said restart is declared as u_char *, so the cast in the out_8 
register access is useless and ugly.

    Gabriel

P.S.: my MVME24xx/26x/27xx do not run such a modern kernel. 

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/1] powerpc/embedded6xx: Make reboot works on MVME5100 Alessio Igor Bogani <alessio.bogani@elettra.eu> - 2016-03-08 09:00 +0100
  Re: [1/1] powerpc/embedded6xx: Make reboot works on MVME5100 Scott Wood <oss@buserror.net> - 2016-03-09 07:40 +0100
    Re: [1/1] powerpc/embedded6xx: Make reboot works on MVME5100 Alessio Igor Bogani <alessio.bogani@elettra.eu> - 2016-03-09 10:00 +0100
    Re: [1/1] powerpc/embedded6xx: Make reboot works on MVME5100 Gabriel Paubert <paubert@iram.es> - 2016-03-09 11:50 +0100
      Re: [1/1] powerpc/embedded6xx: Make reboot works on MVME5100 Scott Wood <oss@buserror.net> - 2016-03-09 22:30 +0100
        Re: [1/1] powerpc/embedded6xx: Make reboot works on MVME5100 Gabriel Paubert <paubert@iram.es> - 2016-03-10 12:10 +0100

csiph-web