Skip to contentSkip to conversation

Meaning of cache locking in /proc/xenomai/faults

Xenomai-help Axel Beierlein 2 participants 6 messages Mar 27, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,

on my MPC5200 i have the following output of /proc/xenomai/faults

TRAP CPU0

  0:            0    (Data or instruction access)
  1:            0    (Alignment)
  2:            0    (Altivec unavailable)
  3:            0    (Program check exception)
  4:            0    (Machine check exception)
  5:            0    (Unknown)
  6:            0    (Instruction breakpoint)
  7:            0    (Run mode exception)
  8:            0    (Single-step exception)
  9:            0    (Non-recoverable exception)
 10:            0    (Software emulation)
 11:            0    (Debug)
 12:            0    (SPE)
 13:            0    (Altivec assist)
 14:  -1072753084    (Cache-locking exception)
 15:            0    (Kernel FP unavailable)

Now i am trying to find out what the negative Value of Cache-locking and what this Trap general mean and when it was triggered.

Can you give me some advice?

TIA

#1 lore raw
Quoted 22 lines · Axel Beierlein

Hello,

on my MPC5200 i have the following output of /proc/xenomai/faults

TRAP CPU0

   0:            0    (Data or instruction access)
   1:            0    (Alignment)
   2:            0    (Altivec unavailable)
   3:            0    (Program check exception)
   4:            0    (Machine check exception)
   5:            0    (Unknown)
   6:            0    (Instruction breakpoint)
   7:            0    (Run mode exception)
   8:            0    (Single-step exception)
   9:            0    (Non-recoverable exception)
  10:            0    (Software emulation)
  11:            0    (Debug)
  12:            0    (SPE)
  13:            0    (Altivec assist)
  14:  -1072753084    (Cache-locking exception)
  15:            0    (Kernel FP unavailable)
Quoted 2 lines

Now i am trying to find out what the negative Value of Cache-locking and what this Trap general mean and when it was triggered.

The negative value is only the sign of an overflow. However, a cache locking exception is specific to FSL_BOOKE archs. What is your kernel release and exact ppc platform configuration?

Quoted 9 lines

Can you give me some advice?

TIA

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 24 lines · Axel Beierlein
Quoted 23 lines · Philippe Gerum
Quoted 22 lines · Axel Beierlein

Hello,

on my MPC5200 i have the following output of /proc/xenomai/faults

TRAP CPU0

   0:            0    (Data or instruction access)
   1:            0    (Alignment)
   2:            0    (Altivec unavailable)
   3:            0    (Program check exception)
   4:            0    (Machine check exception)
   5:            0    (Unknown)
   6:            0    (Instruction breakpoint)
   7:            0    (Run mode exception)
   8:            0    (Single-step exception)
   9:            0    (Non-recoverable exception)
  10:            0    (Software emulation)
  11:            0    (Debug)
  12:            0    (SPE)
  13:            0    (Altivec assist)
  14:  -1072753084    (Cache-locking exception)
  15:            0    (Kernel FP unavailable)
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

Now i am trying to find out what the negative Value of Cache-locking and what this Trap general mean and when it was triggered.

The negative value is only the sign of an overflow. However, a cache locking exception is specific to FSL_BOOKE archs. What is your kernel release and exact ppc platform configuration?

You can ignore the last two counters, when 2.4.25-ppc is involved, they contain garbage in fact; this does not have any consequences beyond that strange output. The patch below should fix them, actually leave them zeroed.

asm-ppc/ipipe.h renamed from asm-ppc/ipipe.h~ +1 -1
@@ -80,7 +80,7 @@ do {						\
 #define IPIPE_TRAP_DEBUG	11	/* Debug exception */
 #define IPIPE_TRAP_SPE		12	/* SPE exception */
 #define IPIPE_TRAP_ALTASSIST	13	/* Altivec assist exception */
-#define IPIPE_NR_FAULTS		14
+#define IPIPE_NR_FAULTS		16
 /* Pseudo-vectors used for kernel events */
 #define IPIPE_FIRST_EVENT	IPIPE_NR_FAULTS
 #define IPIPE_EVENT_SYSCALL	(IPIPE_FIRST_EVENT)
Signature · 1 line
Philippe.
#4 lore raw
Quoted 40 lines · Philippe Gerum
Quoted 24 lines · Axel Beierlein
Quoted 23 lines · Philippe Gerum
Quoted 22 lines · Axel Beierlein

Hello,

on my MPC5200 i have the following output of /proc/xenomai/faults

TRAP CPU0

   0:            0    (Data or instruction access)
   1:            0    (Alignment)
   2:            0    (Altivec unavailable)
   3:            0    (Program check exception)
   4:            0    (Machine check exception)
   5:            0    (Unknown)
   6:            0    (Instruction breakpoint)
   7:            0    (Run mode exception)
   8:            0    (Single-step exception)
   9:            0    (Non-recoverable exception)
  10:            0    (Software emulation)
  11:            0    (Debug)
  12:            0    (SPE)
  13:            0    (Altivec assist)
  14:  -1072753084    (Cache-locking exception)
  15:            0    (Kernel FP unavailable)
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

Now i am trying to find out what the negative Value of Cache-locking and what this Trap general mean and when it was triggered.

The negative value is only the sign of an overflow. However, a cache locking exception is specific to FSL_BOOKE archs. What is your kernel release and exact ppc platform configuration?

You can ignore the last two counters, when 2.4.25-ppc is involved, they contain garbage in fact; this does not have any consequences beyond that strange output. The patch below should fix them, actually leave them zeroed.

asm-ppc/ipipe.h do { \ · line 86

Quoted 8 lines
asm-ppc/ipipe.h renamed from asm-ppc/ipipe.h~ +1 -1
@@ -80,7 +80,7 @@ do {						\
 #define IPIPE_TRAP_DEBUG	11	/* Debug exception */
 #define IPIPE_TRAP_SPE		12	/* SPE exception */
 #define IPIPE_TRAP_ALTASSIST	13	/* Altivec assist exception */
-#define IPIPE_NR_FAULTS		14
+#define IPIPE_NR_FAULTS		16
 /* Pseudo-vectors used for kernel events */
 #define IPIPE_FIRST_EVENT	IPIPE_NR_FAULTS
 #define IPIPE_EVENT_SYSCALL	(IPIPE_FIRST_EVENT)

Thank you Philippe for your Help.

By the way, can you, or someone else, point me to a message where are the other traps are explained or can you give me short examples for situations where the listed exceptions are triggered? For example: What is an alignment Trap and which situation can trigger such a fault.

Axel

#5 lore raw
Quoted 53 lines · Axel Beierlein
Quoted 41 lines · Philippe Gerum
Quoted 24 lines · Axel Beierlein
Quoted 23 lines · Philippe Gerum
Quoted 22 lines · Axel Beierlein

Hello,

on my MPC5200 i have the following output of /proc/xenomai/faults

TRAP CPU0

   0:            0    (Data or instruction access)
   1:            0    (Alignment)
   2:            0    (Altivec unavailable)
   3:            0    (Program check exception)
   4:            0    (Machine check exception)
   5:            0    (Unknown)
   6:            0    (Instruction breakpoint)
   7:            0    (Run mode exception)
   8:            0    (Single-step exception)
   9:            0    (Non-recoverable exception)
  10:            0    (Software emulation)
  11:            0    (Debug)
  12:            0    (SPE)
  13:            0    (Altivec assist)
  14:  -1072753084    (Cache-locking exception)
  15:            0    (Kernel FP unavailable)
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

Now i am trying to find out what the negative Value of Cache-locking and what this Trap general mean and when it was triggered.

The negative value is only the sign of an overflow. However, a cache locking exception is specific to FSL_BOOKE archs. What is your kernel release and exact ppc platform configuration?

You can ignore the last two counters, when 2.4.25-ppc is involved, they contain garbage in fact; this does not have any consequences beyond that strange output. The patch below should fix them, actually leave them zeroed.

asm-ppc/ipipe.h do { \ · line 86

Quoted 8 lines
asm-ppc/ipipe.h renamed from asm-ppc/ipipe.h~ +1 -1
@@ -80,7 +80,7 @@ do {						\
 #define IPIPE_TRAP_DEBUG	11	/* Debug exception */
 #define IPIPE_TRAP_SPE		12	/* SPE exception */
 #define IPIPE_TRAP_ALTASSIST	13	/* Altivec assist exception */
-#define IPIPE_NR_FAULTS		14
+#define IPIPE_NR_FAULTS		16
 /* Pseudo-vectors used for kernel events */
 #define IPIPE_FIRST_EVENT	IPIPE_NR_FAULTS
 #define IPIPE_EVENT_SYSCALL	(IPIPE_FIRST_EVENT)

Thank you Philippe for your Help.

Quoted 6 lines

By the way, can you, or someone else, point me to a message where are the other traps are explained or can you give me short examples for situations where the listed exceptions are triggered?
For example: What is an alignment Trap and which situation can trigger such a fault.

You probably want to have alook at the PowerPC UISA documentation:
http://download.boulder.ibm.com/ibmdl/pub/software/dw/library/es-ppcbook1.zip

You will find common reasons for traps. Additionally, you should refer to your core's reference manual, since it may have specifics regarding why/when some exceptions are triggered. Alignment exception is usually due to data placement, misaligned float ops are usual suspects, but depending on your particular ppc core, other reasons for alignment traps may exist (e.g. e300 cores fire this exception when using a particular byte-zeroing instruction on cache-inhibited memory). In short, YMMV.

Quoted 1 line

Axel

Signature · 1 line
Philippe.
#6 lore raw
Quoted 58 lines · Philippe Gerum
Quoted 50 lines · Axel Beierlein
Quoted 39 lines · Philippe Gerum
Quoted 24 lines · Axel Beierlein
Quoted 23 lines · Philippe Gerum
Quoted 22 lines · Axel Beierlein

Hello,

on my MPC5200 i have the following output of /proc/xenomai/faults

TRAP CPU0

   0:            0    (Data or instruction access)
   1:            0    (Alignment)
   2:            0    (Altivec unavailable)
   3:            0    (Program check exception)
   4:            0    (Machine check exception)
   5:            0    (Unknown)
   6:            0    (Instruction breakpoint)
   7:            0    (Run mode exception)
   8:            0    (Single-step exception)
   9:            0    (Non-recoverable exception)
  10:            0    (Software emulation)
  11:            0    (Debug)
  12:            0    (SPE)
  13:            0    (Altivec assist)
  14:  -1072753084    (Cache-locking exception)
  15:            0    (Kernel FP unavailable)
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

Now i am trying to find out what the negative Value of Cache-locking and what this Trap general mean and when it was triggered.

The negative value is only the sign of an overflow. However, a cache locking exception is specific to FSL_BOOKE archs. What is your kernel release and exact ppc platform configuration?

You can ignore the last two counters, when 2.4.25-ppc is involved, they contain garbage in fact; this does not have any consequences beyond that strange output. The patch below should fix them, actually leave them zeroed.

asm-ppc/ipipe.h do { \ · line 86

Quoted 8 lines
asm-ppc/ipipe.h renamed from asm-ppc/ipipe.h~ +1 -1
@@ -80,7 +80,7 @@ do {						\
 #define IPIPE_TRAP_DEBUG	11	/* Debug exception */
 #define IPIPE_TRAP_SPE		12	/* SPE exception */
 #define IPIPE_TRAP_ALTASSIST	13	/* Altivec assist exception */
-#define IPIPE_NR_FAULTS		14
+#define IPIPE_NR_FAULTS		16
 /* Pseudo-vectors used for kernel events */
 #define IPIPE_FIRST_EVENT	IPIPE_NR_FAULTS
 #define IPIPE_EVENT_SYSCALL	(IPIPE_FIRST_EVENT)

Thank you Philippe for your Help.

Quoted 3 lines

By the way, can you, or someone else, point me to a message where are the other traps are explained or can you give me short examples for situations where the listed exceptions are triggered? For example: What is an alignment Trap and which situation can trigger such a fault.

You probably want to have alook at the PowerPC UISA documentation:
http://download.boulder.ibm.com/ibmdl/pub/software/dw/library/es-ppcbook1.zip

Quoted 9 lines

You will find common reasons for traps. Additionally, you should refer to your core's reference manual, since it may have specifics regarding why/when some exceptions are triggered. Alignment exception is usually due to data placement, misaligned float ops are usual suspects, but depending on your particular ppc core, other reasons for alignment traps may exist (e.g. e300 cores fire this exception when using a particular byte-zeroing instruction on cache-inhibited memory). In short, YMMV.

Quoted 1 line

Axel

Yeah! Thats it. Thanks. I find all the needed informations in the e300coreRM Manual from Freescale.

Axel