Hi,
I'm writing my platform's SDHC and testing the sd memory function.
However, there's a kernel panic while creating disk. My environment is
ARM-based platform on Linux kernel 2.6.15. Therefore, I modified a few code
for porting to 2.6.15 since the patch is based on 2.6.18. The message is
pasted as follows. I noticed there is a call to sdmem's Release function. Is
it the cause of the panic? Thanks!~
.........
SDIO Memory Function: Probe - creating disk
+SDIO Memory Function: CreateDisk
SDIO Memory Function: blk_init_Q using DiskRequestDma(0x00000001)
SDIO Memory Function: block size 512
SDIO Memory Function: setting block size 512
SDIO Memory Function: setting up DMA
SDIO Memory Function: CreateDisk: size 1983488 (Size 992000,
FileSysBlockSize 512)
+SDIO Memory Function: Open
-SDIO Memory Function: Open
SDIO Memory Function: DiskRequestDma : processing block request :0xC7E53084
SDIO Memory Function: DiskRequestDma - Phys Segments 1, HW Segments:1,
current_nr_sectors:8, nr_sectors:8 , hard_nr_sectors:8
SDIO Memory Function: DiskRequestDma - SG entries: 1, sector start: 0,
seccnt: 8
SDIO Memory Function: DiskRequestDma - SG Index:0, page: 0xC0399A20, length:
4096, offset: 0x0
SDIO Memory Function: DiskRequestDma - submitting Read using SG entries:
1,len: 4096
SDIO Memory Function: SGcnt>0, DATA_DMA
SDIO Memory Function: IssueAsyncTransfer (RX), (count/blksize:8/512)
(length:4096) cmd: 18
SDIO MUSTANG HOST SetUpHCDDMA (RX) Blocks:8, BlockLen:512
SDIO MUSTANG HOST HcdRequest RX Data Transfer, Blocks:8, BlockLen:512
HcdRequest - RespType:1, Flgs=0x00005211, Command:18 , Arg:0x0,
txMode=0x00000014
SDIO Bus Driver: HCD returned status:3 on request: 0xC729DCC0,
(CMD:18)(Flags:00005211)
HcdSDInterrupt, ints: 0x281F errors: 0x0, sigenables: 0x2000, statenable:
0x733F errorenables:0x7F7F
GetResp=00000012 00000900
HcdSDInterrupt - RX Data Transfer Complete with status:0
-HcdSDInterrupt
-SDIO Memory Function: DiskRequestDma
SDIO Bus Driver: SDIO_HandleHcdEvent, event type 0x4, HCD:0xBF017954
SDIO Bus Driver: _SDIO_HandleHcdEvent, event type 0x4, HCD:0xBF017954
+SDIO Bus Driver: Handling Transfer Done (CMD:18, Status:0, Flags=00005211,
Req=0xc729dcc0) from HCD:0xBF017954
SDIO Bus Driver: Queue idle
SDIO Bus Driver: Calling completion on request:0xC729DCC0, CMD:18
+SDIO Memory Function: AsyncCompletionLast: status: 0, (0xC7251000)
SDIO Memory Function: completed sectors :8 nr_sectors: 8, Status=0
SDIO Memory Function: current disk request done!(0xc7e53084)
+SDIO Memory Function: DiskRequestDma
-SDIO Memory Function: DiskRequestDma
-SDIO Memory Function: AsyncCompletionLast
-SDIO Bus Driver: Transfer Done Handled
+SDIO Memory Function: Release(INST=0xc724ec00)
-SDIO Memory Function: Release
-SDIO Memory Function: CreateDisk major: 254, minors: 8, first_minor: 0
-SDIO Memory Function: CreateDisk
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
[00000000] *pgd=00000000
Internal error: Oops: 817 [#1]
Modules linked in: sdio_memory_fd sdio_mustanghcd sdio_busdriver sdio_lib
CPU: 0
PC is at free_block+0x54/0x124
LR is at drain_array_locked+0x90/0xb8
pc : [<c00676d8>] lr : [<c0067838>] Not tainted
sp : c7c31ef8 ip : c7aab800 fp : c7c31f20
r10: 00000000 r9 : c03fd230 r8 : 00000005
r7 : 00000000 r6 : c02b46c0 r5 : c03fe4a0 r4 : c7599aa0
r3 : 00000000 r2 : 00000000 r1 : c03fd230 r0 : c02b46c0
Flags: Nzcv IRQs off FIQs on Mode SVC_32 Segment kernel
Control: 5717F Table: 07B08000 DAC: 00000017
Process events/0 (pid: 4, stack limit = 0xc7c30194)
Stack: (0xc7c31ef8 to 0xc7c32000)
1ee0: 00000005
c03fd220
1f00: c03fd230 00000016 c029d890 00000000 c029d8a0 c7c31f40 c7c31f24
c0067838
1f20: c0067694 c03fe4a0 00000000 c02b46c0 c02b470c c7c31f6c c7c31f44
c0068808
1f40: c00677b8 c7c036f0 80000013 c7c036e8 c0068770 c7c31f88 c7c036e0
fffffffc
1f60: c7c31fc0 c7c31f70 c0051de0 c0068780 ffffffff ffffffff 00000001
00000000
1f80: c003e9c8 00010000 00000000 00000000 c7c0e540 c003e9c8 00100100
00200200
1fa0: c7c036e0 c7c30000 c0051c18 c7c17f24 00000001 c7c31ff4 c7c31fc4
c00564c4
1fc0: c0051c28 00000001 ffffffff ffffffff 00000000 00000000 00000000
00000000
1fe0: 00000000 00000000 00000000 c7c31ff8 c0043c4c c00563ec a5a2c5a7
585adadb
Backtrace:
|