2009/5/4 Grant Grundler <grundler@xxxxxxxxxx>: > 2009/5/3 Данила Жукоцкий <optimusgd@xxxxxxxxx>: > ... >> WARNING: at lib/dma-debug.c:607 check_unmap+0x542/0x610() >> Hardware name: HP xw9400 Workstation >> 3w-9xxx 0001:45:00.0: DMA-API: device driver tries to free DMA memory >> it has not allocated [device address=0x0000000000000000] [size=36 >> bytes] > > This is definitely a driver bug. Just follow the stack trace back to > the device driver. > I think this is a regression from the scsi_dma_map()/unmap() changes a while back. Can you try this patch? Thanks, -Adam diff -Naur linux-2.6.30-rc4/drivers/scsi/3w-9xxx.c linux-2.6.30-rc4.new/drivers/scsi/3w-9xxx.c --- linux-2.6.30-rc4/drivers/scsi/3w-9xxx.c 2009-05-04 21:19:49.000000000 -0700 +++ linux-2.6.30-rc4.new/drivers/scsi/3w-9xxx.c 2009-05-04 21:23:59.000000000 -0700 @@ -1978,7 +1978,8 @@ { struct scsi_cmnd *cmd = tw_dev->srb[request_id]; - scsi_dma_unmap(cmd); + if (cmd->SCp.phase == TW_PHASE_SGLIST) + scsi_dma_unmap(cmd); } /* End twa_unmap_scsi_data() */ /* scsi_host_template initializer */ -- To unsubscribe from this list: send the line "unsubscribe kernel-testers" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html