[lkml]   [2002]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [2.5] DAC960
> I can only note that so far there has been a lot of talk about dac960
> and updating it, and that's about it. Talk/code ratio is very very low,
> I'm tempted to just do the update myself. Might even safe some time.
> --
> Jens Axboe
> -

I have the DAC960 driver working in 2.5.34. The work isn't
complete yet. But, I'm able to boot, and do mke2fs
on partitions on logical drives, and then do e2fsck
on those partitions. It seems to work, although more
testing is required. Is there any interest in reviewing
the code so far, or should I continue testing and complete
the remaining issues first?

Here's what I've done:

1. I've removed all references to struct bio
(or BufferHeader_T) from the code. I'm using the
blk_rq_map_sg() function to create scatter lists
from I/O request structures. Then, using pci_map_sg
to produce DMA maps for those scatter/gather lists.

I'm using "end_that_request_first" and
"end_that_request_last" to do I/O request completions.

2. I've placed the DAC960's ScatterGatherList arrays into
dma-mapped memory. I'm currently using pci_pool_create()
for esablishing these maps. These are "consisent" maps.
Should these be "streaming maps"? For x86, it doesn't make
any difference, but...

3. I've placed the DAC960 RequestSense structures into dma-mapped
memory. Again, I'm using pci_pool_create() to do this.

At the moment, I think I have some kind of problem writing
new partitions to a logical disk. It seems if the system
comes up with all the logical disks already partitioned, then
I can work with them OK. If I try to repartition a logical
disk with the new driver, the logical drive seems to be
unpartitioned afterwards. I haven't completely understood this
problem yet. This is what I'm working on now.

Before going on with the next steps, I'll probably do more
vigorous testing.

Work to do:

I've temporarliy put back the virt_to_bus and bus_to_virt
calls. The remaining steps will get rid of those.

1. Establish dma maps for the DAC960 command mailbox.
I'll establish consistent maps for them.

The existing code here is a little odd.
The function DAC960_V1_EnableMemoryMailboxInterface()
should call any of the RestoreMemoryMailboxInfo()
functions. It seems to be trying to retrieve
from the controller old pointers to memory
mailboxes. But I can't imagine cirumstances
where this would work in the context of the current

2. Establish dma maps for the sizeable collection of
status and monitoring operations.

3. I have an issue with the read/write retry commands.
I think I know how to do it, but just need to code
it and test it. Since I don't have any
disks with media errors, I'll probably use some kind
of fault insertion to test this.

4. I need to add calls to pci_dma_sync*() in the approriate
places. This function doesn't do anything on the current
x86 platform. So, I'll put these in place after getting
things to work.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.079 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site