summaryrefslogtreecommitdiff
path: root/lib/list_debug.c
diff options
context:
space:
mode:
authorRahul Sharma <rahul.sharma@samsung.com>2012-11-05 15:34:29 (GMT)
committerInki Dae <inki.dae@samsung.com>2012-12-04 05:46:00 (GMT)
commit4ddc404bc0b3750b015b021653a88943591f40f6 (patch)
tree25a80c8528dde1b8147f6d1e26a3425933baf439 /lib/list_debug.c
parentea6d66c3a797376d21b23dc8261733ce35970014 (diff)
downloadlinux-fsl-qoriq-4ddc404bc0b3750b015b021653a88943591f40f6.tar.xz
drm: exynos: fix for mapping of dma buffers
This patch fixes the problem of mapping contigous and non contigous dma buffers. Currently page struct is calculated from the buf->dma_addr which is not the physical address. It is replaced by buf->pages which points to the page struct of the first page of contigous memory chunk. This gives the correct page frame number for mapping. Non-contigous dma buffers are described using SG table and SG lists. Each valid SG List is pointing to a single page or group of pages which are physically contigous. Current implementation just maps the first page of each SG List and leave the other pages unmapped, leading to a crash. Given solution finds the page struct for the faulting page through parsing SG table and map it. Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'lib/list_debug.c')
0 files changed, 0 insertions, 0 deletions