]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
staging: apf: Fixed DMA-BUF used of buffers spanning partial pages
authorMichael Gill <gill@xilinx.com>
Fri, 3 Jun 2016 01:21:20 +0000 (18:21 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 3 Jun 2016 13:02:51 +0000 (15:02 +0200)
commitab52f93e8fcb4fb45da9709592fc14f5a37d632b
treea5dcae8d316e8c13f8de54e14ad21b6cd749c208
parent963f3be71a875d95c12dfa0bf4ec50a5eff711aa
staging: apf: Fixed DMA-BUF used of buffers spanning partial pages

The DRM infrastructure when using the xilinx driver has a
potential to return a buffer mapped to a memory region spanning a
partial page, such as in the case of a 1920x1080 resolution
buffer.  When this happens, the scatterlist returned from the DRM
API describes a region rounded up to a whole page.  This patch
trims the returned scatterlist, thus making it usable by a DMA.

Signed-off-by: Michael Gill <gill@xilinx.com>
Signed-off-by: Christian Kohn <christian.kohn@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/staging/apf/xilinx-dma-apf.c
drivers/staging/apf/xlnk.c
drivers/staging/apf/xlnk.h