286 AQC3XLKMU3B6BAYWASGMRBANGK5SOGWJXNLPURQ AQC3XLKMU3B6BAYWASGMRBANGK5SOGWJXNLPURQ


Remapping Memory Buffer using vmalloc/vma_nopage The HyperNews Linux KHG Discussion Pages Remapping Memory Buffer using vmalloc/vma_nopageForum: The Linux Kernel Hackers' GuideKeywords: mmap, vmalloc, DMA, and InterruptsDate: Wed, 03 Jun 1998 16:43:15 GMTFrom: Brian W. Taylor <taylor@lowell.edu>Hello All!Here is an interesting/odd problem that has arisen while trying to setup a large buffer of memory allocated by a kernel driver to be remapped into user space. The driver is for a CCD camera that is DMA and Interrupt driven system and I am able to get good consistant images using "memcpy_tofs()". What I would like to do is to have a large buffer that can be remapped to user space so that the data can be transferred via the network while the CCD is reading out. The camera DMAs a line at a time(1712 bytes) to a kmalloc'ed buffer of 2048 bytes and is copied into the remappable buffer when the problem occurs. Using two different methods I have come up with some really strange results.The Problem:When I readout a full frame(~1.3MB of integers), if the data is realatively uniform there is no problem. But if the data is not uniform some of the lines will transfer fine but most will end up with zeros filling up some or all of the values in the line. This will happen no matter how many lines are readout at a time.The Method:I am using the 2.0.33 kernel, initially with Matt Welsh's bigphysarea and recently using vmalloc and the example of remapping virtual memory example in Alessandro Rubini's "Linux Device Drivers". From what I have been able to determine the values are good until the copy from the DMA buffer into the remapped buffer.I am also locking the application memory using the driver and using SCHED_FIFO for priority scheduling. The driver functions very well until I start trying to use the remapped memory. Any Ideas???? Thanks In Advance, Brian W. Taylor to: "Remapping Memory Buffer using vmalloc/vma_nopage" -

Wyszukiwarka

Podobne podstrony:
286 288
286 Ustawa o udzielaniu cudzoziemcom ochrony na terytorium Rzeczypospolitej Polskiej
286 288
271 286
283 286
20 (286)
286 287
12 (286)
286 Molekulare Allergiediagnostik
286 289 6vcaln5f66euakdcdpefzdhlru7rvurxbajml7q

więcej podobnych podstron