From: Paul L. <pl...@at...> - 2007-06-12 15:08:47
|
The HCD must not indicate that it supports SG DMA if it does not. This would be a fatal error. =20 Are you using a formatted SD memory card for this test? Try one with a small size for testing say <1GB =20 Paul _____ =20 From: boku [mailto:bok...@gm...]=20 Sent: Tuesday, June 12, 2007 2:40 AM To: sdi...@li... Subject: Re: [Sdio-linux-devel] Kernel panic for sd memory I've checked my SDHC driver and found it doesn't support DMA but report it can support.=20 =20 This comes out a thought that if no DMA is support by SDHC, the pReq->pDataBuffer is simply as a data buffer pointer=20 instead of being a pointer to the SGlist data structure. Is it? I think that's the problem. Sorry about this confusion.=20 =20 However, I met another problem while keep going on.=20 =3D> While I try to mount the sd memory device, it complains: /dev/sdio0p1 is not a valid block device =20 I followed the steps shown in the sdio-linux reference document. Below are some info I did.=20 =20 =20 -sh-2.05b# ls -l /dev/sdio* brw-r--r-- 1 root root 254, 1 Jun 8 2007 /dev/sdio0p1 -sh-2.05b# cat /proc/devices=20 Character devices: 1 mem 2 pty 3 ttyp 4 /dev/vc/0 4 tty 5 /dev/tty 5 /dev/console 5 /dev/ptmx 7 vcs 10 misc 13 input=20 21 sg 29 fb 81 video4linux 86 ch 90 mtd 128 ptm 136 pts 204 ttyAM 204 ttyAMA Block devices: 1 ramdisk 7 loop 31 mtdblock 254 sdmem =20 -sh-2.05b# mount -t vfat /dev/sdio0p1 /mnt/sdmem/ +SDIO Memory Function: Open -SDIO Memory Function: Open +SDIO Memory Function: Release(INST=3D0xc7263c00) -SDIO Memory Function: Release mount: /dev/sdio0p1 is not a valid block device =20 =20 The message of insert module is as follows:=20 =2E...... SDIO Memory Function: Probe - creating disk=20 +SDIO Memory Function: CreateDisk SDIO Memory Function: blk_init_Q using DiskRequest SDIO Memory Function: block size 512 SDIO Memory Function: setting block size 512=20 SDIO Memory Function: CreateDisk: size 1983488 (Size 992000, FileSysBlockSize 512) +SDIO Memory Function: Open -SDIO Memory Function: Open SDIO Memory Function: ReadBlocks reading, count/size length 8/512 4096 cmd: 18=20 SDIO MUSTANG HOST SetUpHCDDMA (RX) Blocks:8, BlockLen:512 SDIO MUSTANG HOST HcdRequest RX Data Transfer, Blocks:8, BlockLen:512=20 HcdRequest - RespType:1, Flgs=3D0x00004201, Command:18 , Arg:0x0, txMode=3D0x00000014 SDIO Bus Driver: HCD returned status:3 on request: 0xC7295F00, (CMD:18)(Flags:00004201)=20 HcdSDInterrupt, ints: 0x281F errors: 0x0, sigenables: 0x2000, statenable: 0x733F errorenables:0x7F7F GetResp=3D00000012 00000900=20 HcdSDInterrupt - RX Data Transfer Complete with status:0 -HcdSDInterrupt SDIO Bus Driver: Sync-Op signal waiting.... SDIO Bus Driver: SDIO_HandleHcdEvent, event type 0x4, HCD:0xBF0178D8 SDIO Bus Driver: _SDIO_HandleHcdEvent, event type 0x4, HCD:0xBF0178D8=20 +SDIO Bus Driver: Handling Transfer Done (CMD:18, Status:0, Flags=3D00004201, Req=3D0xc7295f00) from HCD:0xBF0178D8=20 SDIO Bus Driver: Queue idle=20 SDIO Bus Driver: Calling completion on request:0xC7295F00, CMD:18=20 -SDIO Bus Driver: Transfer Done Handled=20 -SDIO Memory Function: DiskRequest +SDIO Memory Function: Release(INST=3D0xc7245c00) -SDIO Memory Function: Release -SDIO Memory Function: CreateDisk major: 254, minors: 8, first_minor: 0=20 -SDIO Memory Function: CreateDisk =20 |