Re: Help debugging: Fatal kernel mode data abort: 'External Linefetch Abort (P)'

2009-09-29 Thread Olivier Houchard
On Tue, Sep 29, 2009 at 02:05:14AM +, Tom Judge wrote: Olivier Houchard wrote: On Mon, Sep 28, 2009 at 06:55:38PM +, Tom Judge wrote: Hi, I am working on getting FreeBSD to boot on a new ARM based board, and am hitting this issue any time I load a driver for the PCI based

Re: Help debugging: Fatal kernel mode data abort: 'External Linefetch Abort (P)'

2009-09-29 Thread Tom Judge
Olivier Houchard wrote: On Tue, Sep 29, 2009 at 02:05:14AM +, Tom Judge wrote: Hi Olivier, I have switched out the std file and am now using std.i80219 but am still having issues. I think the problems are the pci memory mappings in the controller devices. On linux em0 gets mapped as

Re: sx locks and memory barriers

2009-09-29 Thread Attilio Rao
2009/9/25 Fabio Checconi fa...@freebsd.org: Hi all, looking at sys/sx.h I have some troubles understanding this comment: * A note about memory barriers. Exclusive locks need to use the same * memory barriers as mutexes: _acq when acquiring an exclusive lock * and _rel when releasing an

Re: sx locks and memory barriers

2009-09-29 Thread Max Laier
On Tuesday 29 September 2009 17:39:37 Attilio Rao wrote: 2009/9/25 Fabio Checconi fa...@freebsd.org: Hi all, looking at sys/sx.h I have some troubles understanding this comment: * A note about memory barriers. Exclusive locks need to use the same * memory barriers as mutexes: _acq

Re: sx locks and memory barriers

2009-09-29 Thread John Baldwin
On Tuesday 29 September 2009 11:39:37 am Attilio Rao wrote: 2009/9/25 Fabio Checconi fa...@freebsd.org: Hi all, looking at sys/sx.h I have some troubles understanding this comment: * A note about memory barriers. Exclusive locks need to use the same * memory barriers as mutexes:

Re: sx locks and memory barriers

2009-09-29 Thread Attilio Rao
2009/9/29 John Baldwin j...@freebsd.org: On Tuesday 29 September 2009 11:39:37 am Attilio Rao wrote: 2009/9/25 Fabio Checconi fa...@freebsd.org: Hi all, looking at sys/sx.h I have some troubles understanding this comment: * A note about memory barriers. Exclusive locks need to use the

Re: Help debugging: Fatal kernel mode data abort: 'External Linefetch Abort (P)'

2009-09-29 Thread Tom Judge
Mark Tinguely wrote: I don't know anything about the code other than what I read today ... It appears from you boot traces the owin[0].owin_xlate_[lo | hi] values should be fine in iq80321.c - an VERBOSE_INIT_ARM would confirm it. You might want to test if the sc pointer in iq80321.c has the

Re: sx locks and memory barriers

2009-09-29 Thread John Baldwin
On Tuesday 29 September 2009 3:15:40 pm Attilio Rao wrote: 2009/9/29 John Baldwin j...@freebsd.org: On Tuesday 29 September 2009 11:39:37 am Attilio Rao wrote: 2009/9/25 Fabio Checconi fa...@freebsd.org: Hi all, looking at sys/sx.h I have some troubles understanding this comment:

Re: sx locks and memory barriers

2009-09-29 Thread Attilio Rao
2009/9/29 John Baldwin j...@freebsd.org: On Tuesday 29 September 2009 3:15:40 pm Attilio Rao wrote: 2009/9/29 John Baldwin j...@freebsd.org: On Tuesday 29 September 2009 11:39:37 am Attilio Rao wrote: 2009/9/25 Fabio Checconi fa...@freebsd.org: Hi all, looking at sys/sx.h I have some

Re: sx locks and memory barriers

2009-09-29 Thread Attilio Rao
2009/9/29 Max Laier m...@love2party.net: On Tuesday 29 September 2009 17:39:37 Attilio Rao wrote: 2009/9/25 Fabio Checconi fa...@freebsd.org: Hi all, looking at sys/sx.h I have some troubles understanding this comment: * A note about memory barriers. Exclusive locks need to use the

Re: sx locks and memory barriers

2009-09-29 Thread Marius Nünnerich
On Tue, Sep 29, 2009 at 21:15, Attilio Rao atti...@freebsd.org wrote: 2009/9/29 John Baldwin j...@freebsd.org: On Tuesday 29 September 2009 11:39:37 am Attilio Rao wrote: 2009/9/25 Fabio Checconi fa...@freebsd.org: Hi all,  looking at sys/sx.h I have some troubles understanding this

Re: sx locks and memory barriers

2009-09-29 Thread Attilio Rao
2009/9/29 Marius Nünnerich mar...@nuenneri.ch: On Tue, Sep 29, 2009 at 21:15, Attilio Rao atti...@freebsd.org wrote: 2009/9/29 John Baldwin j...@freebsd.org: On Tuesday 29 September 2009 11:39:37 am Attilio Rao wrote: 2009/9/25 Fabio Checconi fa...@freebsd.org: Hi all, looking at sys/sx.h

Re: Help debugging: Fatal kernel mode data abort: 'External Linefetch Abort (P)'

2009-09-29 Thread Mark Tinguely
I don't know anything about the code other than what I read today ... It appears from you boot traces the owin[0].owin_xlate_[lo | hi] values should be fine in iq80321.c - an VERBOSE_INIT_ARM would confirm it. You might want to test if the sc pointer in iq80321.c has the same value as the

Re: sx locks and memory barriers

2009-09-29 Thread John Baldwin
On Tuesday 29 September 2009 4:26:56 pm Marius Nünnerich wrote: On Tue, Sep 29, 2009 at 21:15, Attilio Rao atti...@freebsd.org wrote: 2009/9/29 John Baldwin j...@freebsd.org: On Tuesday 29 September 2009 11:39:37 am Attilio Rao wrote: 2009/9/25 Fabio Checconi fa...@freebsd.org: Hi all,

Re: sx locks and memory barriers

2009-09-29 Thread John Baldwin
On Tuesday 29 September 2009 4:42:13 pm Attilio Rao wrote: 2009/9/29 Max Laier m...@love2party.net: On Tuesday 29 September 2009 17:39:37 Attilio Rao wrote: 2009/9/25 Fabio Checconi fa...@freebsd.org: Hi all, looking at sys/sx.h I have some troubles understanding this comment: *

Re: sx locks and memory barriers

2009-09-29 Thread Attilio Rao
2009/9/29 John Baldwin j...@freebsd.org: On Tuesday 29 September 2009 4:42:13 pm Attilio Rao wrote: 2009/9/29 Max Laier m...@love2party.net: On Tuesday 29 September 2009 17:39:37 Attilio Rao wrote: 2009/9/25 Fabio Checconi fa...@freebsd.org: Hi all, looking at sys/sx.h I have some