]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: Only alloc a kmap for fbdev gem object
authorDaniel Kurtz <djkurtz@chromium.org>
Mon, 12 Jan 2015 06:58:23 +0000 (14:58 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Mon, 16 Mar 2015 02:07:12 +0000 (10:07 +0800)
commitd16b329c131b6315c09522af13ff69bda9c036b5
treeade110f4c117f8c16d952640073e1f2984ccceb8
parentf8743e17b7808f7eec583cd9436ca4ccce30c910
drm/rockchip: Only alloc a kmap for fbdev gem object

In general, the data in drm/rockchip GEM objects is never accessed by
the kernel.  The objects are either accessed by a GPU, by display
controller DMA, or by mmap'ing them to user space.  Thus, these
buffers need not be mapped into kernel address space.

The only exception is the fbdev framebuffer(s), which may be written
in-kernel by fbcon.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c
drivers/gpu/drm/rockchip/rockchip_drm_gem.c
drivers/gpu/drm/rockchip/rockchip_drm_gem.h