PPC MPC8349 : Add DMA features for DiskOnChip tffs drivers.

View: New views
1 Messages — Rating Filter:   Alert me  

PPC MPC8349 : Add DMA features for DiskOnChip tffs drivers.

by eija_flight :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I have difficulties when try to add mDOC DMA support for our architecture (PPC MPC83XX).

The file is in 2.6.27 linux kernel source  /drivers/tffs/tffsarch.h and tffsarch.c

Based on the example codes (for Intel PXA27x "Mainstone" board), we need to enable call to tffs_dmasw(), which then use __dmasw_bread() and __dmasw_bwrite()  routine.

After we add the necessary macros, then we insmod the modules :

$insmod tffs.ko

everything run smoothly :

.....
tffs: mDOC driver 1100.85
tffs: will not use IRQ
tffs: mDOC found
tffs: Socket 0 in addr 0xf1000000
tffs: Device 0x0: 7782400 512-byte sectors, h/w sector 512 bytes
tffs: C/H/S 916 177 48
tffs: use major device number 100
tffsa: tffsa1 tffsa2
.....

, but when we've enabled the DMA :

$ insmod tffs.ko tffs_dma_mode=3

, an error occured. Here is the dump messages from dmesg command :

.....
tffs: mDOC driver 1100.85
tffs: will not use IRQ
tffs: mDOC not found
tffs: flInit() error 60
tffs: No DiskOnChips found
.....

are we missed any other thing beside the macro definition of tffs_dmasw()?  we've done nothing but simple dump messages in the __dmasw_bread() and __dmasw_bwrite() just to inform us that it does accessed when the drivers need to use DMA.

Any help will be appreciated,
Thanks