2008-06-03 03:19:58 ppi driver
Pranay Upadhyay (INDIA)
Message: 56603
Hello sir,
I am getting following print on the terminal...In this we found that for first frame there is interrupt but after the sending one frame there is no interrupt .
root:~> video_test
PPppi_read(0x006DFE34, 349920)
blackfin_dcache_invalidate_range:DONEppi status register 0x0000
set_dma_start_addr() : BEGIN
set_dma_start_addr() : END
dma config register 0x109A in read function before enable dma
enable_dma() : BEGIN
enable_dma() : END
dma config register 0x109B in read function after enable dma
ppi after status register 0x0000
PPI wait_event_interruptible
I0 open success
ppi_irq:
ppi_irq: wake_up_interruptible pdev->done=1
ppi_irq: return
PPI wait_event_interruptible done
ppi_read: return
rawImgBuff read is complete
PPppi_write(0x603F10, 900900)
I1ppi status register 0 in write function)
dma config register 0x1098 in write function before enable dma
enable_dma() : BEGIN
enable_dma() : END
dma config register 0x1099 in write function after enable dma
PPI wait_event_interruptible
open success
PPI wait_event_interruptible done
pdev->done 1
buffeppi_read(0x006DFE34, 349920)
blackfin_dcache_invalidate_range:DONEppi status register 0x0000
set_dma_start_addr() : BEGIN
set_dma_start_addr() : END
dma config register 0x109A in read function before enable dma
enable_dma() : BEGIN
enable_dma() : END
dma config register 0x109B in read function after enable dma
ppi after status register 0x0000
PPI wait_event_interruptible
r write is complete
PPI0 open success
After pressing the ctrl+c I got this ...
PPI wait_event_interruptible ierr
Please send me the any suggestion about this problem.
-Regards
Pranay
QuoteReplyEditDelete
2008-06-03 07:10:51 Re: ppi driver
Appalayagari Sreedhar (INDIA)
Message: 56620
Dear Pranay,
Assuming that u are working with BF533.
You are not properly configuring the DMA0_Config register.
I think u are missing the
DI_SEL (Data interrupt Timing Select Option ) DMA0_Config register, u are programming in Autobuffer mode.
Interrupts are generated by the pheripheral/Pheripheral DMA if used, in this case PPI DMA channel.
Check the DMA config register and also refer to the Hardware reference manual.
Best Regards,
Sreedhar.
QuoteReplyEditDelete
2008-06-03 11:08:51 Re: ppi driver
Pranay Upadhyay (INDIA)
Message: 56630
Hello sir,
Thanks for reply. I am using the BF 561 ez-kit for ppi driver.In the uClinux-dist we can use only core-B.I have enable the DI_EN .I am using the autobuffer mode.After transferring one frame there is no dma interrupt and my program hang on the "PPI wait_event_interruptible" because the return value of function ierr = wait_event_interruptible(*(pdev->rx_avail), pdev->done); is zero so "PPI wait_event_interruptible done" is not occur as use in ppi0 running driver.What is the problem I am not getting.Please reply.
-Regards
Pranay