Changeset 456 for soft/giet_vm/giet_drivers/cma_driver.c
- Timestamp:
- Dec 5, 2014, 3:38:31 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/cma_driver.c
r448 r456 9 9 #include <hard_config.h> 10 10 #include <utils.h> 11 #include <tty0.h> 11 12 12 13 #if !defined(SEG_CMA_BASE) … … 66 67 unsigned int status = _cma_get_register( channel, CHBUF_STATUS ); 67 68 69 _puts("\n[CMA WARNING] IRQ received for CMA channel "); 70 _putd( channel ); 71 _puts(" blocked at cycle "); 72 _putd( _get_proctime() ); 73 _puts("\nreset the CMA channel : "); 74 68 75 if (status == CHANNEL_SRC_DESC_ERROR ) 69 _printf("\n[CMA WARNING] CMA channel %d blocked at cycle %d : " 70 "impossible access to source chbuf descriptor\n", 71 channel, _get_proctime() ); 76 _puts("impossible access to source chbuf descriptor\n"); 72 77 73 78 else if (status == CHANNEL_SRC_DATA_ERROR ) 74 _printf("\n[CMA WARNING] CMA channel %d blocked at cycle %d : " 75 "impossible access to source data buffer\n", 76 channel, _get_proctime() ); 79 _puts("impossible access to source data buffer\n"); 77 80 78 81 else if (status == CHANNEL_DST_DESC_ERROR ) 79 _printf("\n[CMA WARNING] CMA channel %d blocked at cycle %d : " 80 "impossible access to destination chbuf descriptor\n", 81 channel, _get_proctime() ); 82 _puts("impossible access to destination chbuf descriptor\n"); 82 83 83 84 else if (status == CHANNEL_DST_DATA_ERROR ) 84 _printf("\n[CMA WARNING] CMA channel %d blocked at cycle %d : " 85 "impossible access to destination data buffer\n", 86 channel, _get_proctime() ); 85 _puts("impossible access to destination data buffer\n"); 87 86 88 87 else 89 _printf("\n[CMA WARNING] CMA channel %d : " 90 "... strange IRQ received, but channel not blocked...", 91 channel, _get_proctime() ); 88 _puts("strange, because channel is not blocked..."); 92 89 93 // acknowledge IRQ 90 // acknowledge IRQ and desactivates channel 94 91 _cma_set_register( channel, CHBUF_RUN, 0 ); 95 92 }
Note: See TracChangeset
for help on using the changeset viewer.