Re: aarch64 kernel oops during mmap

2014-01-17 Thread Jon Medhurst (Tixy)
On Thu, 2014-01-16 at 18:28 +, Ryan Harkin wrote:
> On 16 January 2014 16:59, Tom Gall  wrote:
> 
> > Now on the real bit of fun that I want to get to the bottom of.
> >
> > This is from startx on the model.
> >
> > I have -C cache_state_modelled=0   set. Would that have an affect here?
> >
> 
> ​No.  This doesn't effect the functionality of the model.  From memory,
> this is a debugging option that tells the user (via output to the terminal
> where you launched the model) if there have been any cache state violations.

I think it's a bit more than that and tells the model to emulate the
cache in a similar way to how hardware works, so if the running code
doesn't perform cache maintenance correctly it will go horribly wrong as
on real hardware.

-- 
Tixy


___
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev


Re: aarch64 kernel oops during mmap

2014-01-16 Thread Ryan Harkin
On 16 January 2014 16:59, Tom Gall  wrote:

> Now on the real bit of fun that I want to get to the bottom of.
>
> This is from startx on the model.
>
> I have -C cache_state_modelled=0   set. Would that have an affect here?
>

​No.  This doesn't effect the functionality of the model.  From memory,
this is a debugging option that tells the user (via output to the terminal
where you launched the model) if there have been any cache state violations.


> [ 2823.338192] Unable to handle kernel paging request at virtual
> address ffbc0054
> [ 2823.338248] pgd = ffc078dd
> [ 2823.338295] [ffbc0054] *pgd=
> [ 2823.338353] Internal error: Oops: 9606 [#1] SMP
> [ 2823.338395] Modules linked in: gator
> [ 2823.338481] CPU: 6 PID: 1575 Comm: X Not tainted
> 3.13.0-1-linaro-vexpress64 #1ubuntu1~ci+131216010606
> [ 2823.338558] task: ffc079b95500 ti: ffc078fd8000 task.ti:
> ffc078fd8000
> [ 2823.338624] PC is at page_mapping+0x0/0x3c
> [ 2823.338690] LR is at __sync_icache_dcache+0x2c/0xb8
> [ 2823.338751] pc : [] lr : []
> pstate: 6145
> [ 2823.338805] sp : ffc078fdbbc0
> [ 2823.338852] x29: ffc078fdbbc0 x28: 0041
> [ 2823.338923] x27: 007fa7787000 x26: 00200f43
> [ 2823.338995] x25: 007fa780 x24: ffc078017c38
> [ 2823.339068] x23: 012018000f43 x22: 00018000
> [ 2823.339140] x21: 002018000f43 x20: ffc07887f9d8
> [ 2823.339215] x19: ffbc0054 x18: 007fe352a7e0
> [ 2823.339287] x17: 007fa795f4c0 x16: ffc87048
> [ 2823.339358] x15: 00592000 x14: 00569538
> [ 2823.339429] x13: 005695c0 x12: 0007
> [ 2823.339500] x11: 0028 x10: 
> [ 2823.339568] x9 : 0002 x8 : ffc00085d5a0
> [ 2823.339641] x7 : ffc000928000 x6 : 0006
> [ 2823.339710] x5 : 0c38 x4 : ffc078fd8000
> [ 2823.339780] x3 :  x2 : 
> [ 2823.339851] x1 : ffbc x0 : ffbc0054
> [ 2823.339914]
> [ 2823.339962] Process X (pid: 1575, stack limit = 0xffc078fd8058)
> [ 2823.340026] Stack: (0xffc078fdbbc0 to 0xffc078fdc000)
> [ 2823.340133] bbc0: 78fdbbe0 ffc0 00158adc ffc0 03640508
> ffbc  ffc0
> [ 2823.340248] bbe0: 78fdbc80 ffc0 0041c988 ffc0 78c05000
> ffc0 7898c318 ffc0
> [ 2823.340360] bc00: 00899db0 ffc0 78c05038 ffc0 
>  78fd8000 ffc0
> [ 2823.340475] bc20: 7808b840 ffc0 7898c318 ffc0 789bae58
> ffc0 78fa7c40 ffc0
> [ 2823.340588] bc40: a7907000 007f a7906fff 007f f8070879
>  78dd0ff0 ffc0
> [ 2823.340702] bc60: a7907000 007f a7906fff 007f 78fa7c40
> ffc0 78fd8000 ffc0
> [ 2823.340816] bc80: 78fdbc90 ffc0 0041c914 ffc0 78fdbca0 ffc0
> 0040e
> [ 2823.340816] bc80: 78fdbc90 ffc0 0041c914 ffc0 78fdbca0
> ffc0 0040ef68 ffc0
> [ 2823.340930] bca0: 78fdbcf0 ffc0 0015fa44 ffc0 7898c6b8
> ffc0 a7787000 007f
> [ 2823.341042] bcc0: 7898c6a8 ffc0 00ff  a7907000
> 007f 78fd8000 ffc0
> [ 2823.341152] bce0:     78fdbd70
> ffc0 0015fed0 ffc0
> [ 2823.341261] bd00: 0007  00ff  7808b840
> ffc0 0001 
> [ 2823.341372] bd20: 78fa7c40 ffc0 0018  0180
>  a7787000 007f
> [ 2823.341480] bd40: 0007  78fd8000 ffc0 0180
>   
> [ 2823.341593] bd60:   0017ee44 ffc0 78fdbde0
> ffc0 0014c900 ffc0
> [ 2823.341702] bd80:   0018  
>  7808b840 ffc0
> [ 2823.341813] bda0: 78fa7ca0 ffc0   0018
>  00638000 ffc0
> [ 2823.341925] bdc0: 0086b000 ffc0 00604104 ffc0 
>  78fdbe20 ffc0
> [ 2823.342036] bde0: 78fdbe50 ffc0 0015e528 ffc0 0001
>  0018 
> [ 2823.342145] be00: 7808b840 ffc0 0003  
>  0200 
> [ 2823.342252] be20:   00083988 ffc0 0003
>  0001 
> [ 2823.342363] be40:   0044ffb8  78fdbec0
> ffc0 00087060 ffc0
> [ 2823.342475] be60: 3faa4400  3faa3c40  
>  a7bb85f8 007f
> [ 2823.342583] be80: 8000  0015  0112
>  00de 
> [ 2823.342695] bea0:   0017d770 ffc0 1bf7
>  a7ee8000 007f
> [ 2823.342806] bec0: e352aa40 007f 000839ec ffc0 
>  0018 
> [ 2823.342912] bee0: 0003  0001  0009
>   
> [ 2823.343020] bf00: 005a5048  0002  00de
>  005694d8 
> [ 2823.343129] bf20: 01010101 01010101 0028  0007
>  005695

aarch64 kernel oops during mmap

2014-01-16 Thread Tom Gall
Now on the real bit of fun that I want to get to the bottom of.

This is from startx on the model.

I have -C cache_state_modelled=0   set. Would that have an affect here?

[ 2823.338192] Unable to handle kernel paging request at virtual
address ffbc0054
[ 2823.338248] pgd = ffc078dd
[ 2823.338295] [ffbc0054] *pgd=
[ 2823.338353] Internal error: Oops: 9606 [#1] SMP
[ 2823.338395] Modules linked in: gator
[ 2823.338481] CPU: 6 PID: 1575 Comm: X Not tainted
3.13.0-1-linaro-vexpress64 #1ubuntu1~ci+131216010606
[ 2823.338558] task: ffc079b95500 ti: ffc078fd8000 task.ti:
ffc078fd8000
[ 2823.338624] PC is at page_mapping+0x0/0x3c
[ 2823.338690] LR is at __sync_icache_dcache+0x2c/0xb8
[ 2823.338751] pc : [] lr : []
pstate: 6145
[ 2823.338805] sp : ffc078fdbbc0
[ 2823.338852] x29: ffc078fdbbc0 x28: 0041
[ 2823.338923] x27: 007fa7787000 x26: 00200f43
[ 2823.338995] x25: 007fa780 x24: ffc078017c38
[ 2823.339068] x23: 012018000f43 x22: 00018000
[ 2823.339140] x21: 002018000f43 x20: ffc07887f9d8
[ 2823.339215] x19: ffbc0054 x18: 007fe352a7e0
[ 2823.339287] x17: 007fa795f4c0 x16: ffc87048
[ 2823.339358] x15: 00592000 x14: 00569538
[ 2823.339429] x13: 005695c0 x12: 0007
[ 2823.339500] x11: 0028 x10: 
[ 2823.339568] x9 : 0002 x8 : ffc00085d5a0
[ 2823.339641] x7 : ffc000928000 x6 : 0006
[ 2823.339710] x5 : 0c38 x4 : ffc078fd8000
[ 2823.339780] x3 :  x2 : 
[ 2823.339851] x1 : ffbc x0 : ffbc0054
[ 2823.339914]
[ 2823.339962] Process X (pid: 1575, stack limit = 0xffc078fd8058)
[ 2823.340026] Stack: (0xffc078fdbbc0 to 0xffc078fdc000)
[ 2823.340133] bbc0: 78fdbbe0 ffc0 00158adc ffc0 03640508
ffbc  ffc0
[ 2823.340248] bbe0: 78fdbc80 ffc0 0041c988 ffc0 78c05000
ffc0 7898c318 ffc0
[ 2823.340360] bc00: 00899db0 ffc0 78c05038 ffc0 
 78fd8000 ffc0
[ 2823.340475] bc20: 7808b840 ffc0 7898c318 ffc0 789bae58
ffc0 78fa7c40 ffc0
[ 2823.340588] bc40: a7907000 007f a7906fff 007f f8070879
 78dd0ff0 ffc0
[ 2823.340702] bc60: a7907000 007f a7906fff 007f 78fa7c40
ffc0 78fd8000 ffc0
[ 2823.340816] bc80: 78fdbc90 ffc0 0041c914 ffc0 78fdbca0 ffc0 0040e
[ 2823.340816] bc80: 78fdbc90 ffc0 0041c914 ffc0 78fdbca0
ffc0 0040ef68 ffc0
[ 2823.340930] bca0: 78fdbcf0 ffc0 0015fa44 ffc0 7898c6b8
ffc0 a7787000 007f
[ 2823.341042] bcc0: 7898c6a8 ffc0 00ff  a7907000
007f 78fd8000 ffc0
[ 2823.341152] bce0:     78fdbd70
ffc0 0015fed0 ffc0
[ 2823.341261] bd00: 0007  00ff  7808b840
ffc0 0001 
[ 2823.341372] bd20: 78fa7c40 ffc0 0018  0180
 a7787000 007f
[ 2823.341480] bd40: 0007  78fd8000 ffc0 0180
  
[ 2823.341593] bd60:   0017ee44 ffc0 78fdbde0
ffc0 0014c900 ffc0
[ 2823.341702] bd80:   0018  
 7808b840 ffc0
[ 2823.341813] bda0: 78fa7ca0 ffc0   0018
 00638000 ffc0
[ 2823.341925] bdc0: 0086b000 ffc0 00604104 ffc0 
 78fdbe20 ffc0
[ 2823.342036] bde0: 78fdbe50 ffc0 0015e528 ffc0 0001
 0018 
[ 2823.342145] be00: 7808b840 ffc0 0003  
 0200 
[ 2823.342252] be20:   00083988 ffc0 0003
 0001 
[ 2823.342363] be40:   0044ffb8  78fdbec0
ffc0 00087060 ffc0
[ 2823.342475] be60: 3faa4400  3faa3c40  
 a7bb85f8 007f
[ 2823.342583] be80: 8000  0015  0112
 00de 
[ 2823.342695] bea0:   0017d770 ffc0 1bf7
 a7ee8000 007f
[ 2823.342806] bec0: e352aa40 007f 000839ec ffc0 
 0018 
[ 2823.342912] bee0: 0003  0001  0009
  
[ 2823.343020] bf00: 005a5048  0002  00de
 005694d8 
[ 2823.343129] bf20: 01010101 01010101 0028  0007
 005695c0 
[ 2823.343239] bf40: 00569538  00592000  a7bb85e4
007f a795f4c0 007f
[ 2823.343349] bf60: e352a7e0 007f 3faa4400  3faa3c40
  
[ 2823.343459] bf80: 3faa5610  a7974000 007f e352adb8
007f 0004 
[ 2823.343570] bfa0: 00592000  a7963a90 007f 00591000
 e352aa40 007f
[ 2823.343681] bfc0: a794e8c4 007f e352aa40 007f a7bb85f8
007f 800