[RFC PATCH v3 4/4] tests/drv_module_reload: add ipvr support

2014-11-22 Thread Yao Cheng
on vlv, if ipvr is installed, it need be manually unloaded before i915, otherwise user might run into use-after-free issue. v2: added this patch per Daniel's comment v3: no change Signed-off-by: Yao Cheng --- tests/drv_module_reload | 16 1 file changed, 16 inser

[RFC PATCH v3 3/4] ipvr: user mode helper for ipvr drm driver

2014-11-22 Thread Yao Cheng
u32 family in ipvr_drm.h - rip out explicit fence from libdrm_ipvr - implemented PRIME support - add relocation fixup implementation Signed-off-by: Yao Cheng --- Makefile.am|6 +- Makefile.sources |1 + configure.ac | 26 +- include/drm/

[RFC PATCH v3 2/4] drm/ipvr: drm driver for VED

2014-11-22 Thread Yao Cheng
- call drm_gem_get_pages to replace my own implementation - code cleanup: remove unused code Signed-off-by: Yao Cheng --- Documentation/DocBook/drm.tmpl| 39 ++ drivers/gpu/drm/Kconfig |2 + drivers/gpu/drm/Makefile |1 + drivers/gpu/drm/ipvr/Kconfig |

[RFC PATCH v3 1/4] drm/i915: add i915_ved.c to setup bridge for VED

2014-11-22 Thread Yao Cheng
mu_map_sg issue by set dma_mask to support VED PRIME. Signed-off-by: Yao Cheng --- Documentation/DocBook/drm.tmpl | 5 + drivers/gpu/drm/i915/Makefile | 3 + drivers/gpu/drm/i915/i915_dma.c | 11 ++ drivers/gpu/drm/i915/i915_drv.h | 12 ++ drivers/gpu/drm/i915/i915_irq.c | 2 + dri

[RFC PATCH v3 0/4] drm driver for VED in Intel GPU

2014-11-22 Thread Yao Cheng
User mode drm helper "libdrm_ipvr.so" and simple ioctl/execute test is included. one test script "drv_module_reload" in i-g-t also updated to support ipvr loading and unloading. Due to restriction in Linux platform device model, we have to manually unload ipvr before unloading i

[RFC PATCH v2 4/4] i-g-t: tests/drv_module_reload: add ipvr support

2014-10-21 Thread Yao Cheng
on vlv, if ipvr is installed, it need be manually unloaded before i915, otherwise user might run into use-after-free issue. Signed-off-by: Yao Cheng --- tests/drv_module_reload | 16 1 file changed, 16 insertions(+) diff --git a/tests/drv_module_reload b/tests

[RFC PATCH v2 1/4] drm/i915: add i915_ved.c to setup bridge for VED

2014-10-21 Thread Yao Cheng
new dri card on install. Currently only supports VED on valleyview. Kerneldoc is updated for i915_ved.c. Signed-off-by: Yao Cheng --- Documentation/DocBook/drm.tmpl | 5 + drivers/gpu/drm/i915/Makefile | 3 + drivers/gpu/drm/i915/i915_dma.c | 11 ++ drivers/gpu/drm/i915/i915_drv.h | 9

[RFC PATCH v2 0/4] drm driver for VED in Intel GPU

2014-10-21 Thread Yao Cheng
atform device model, we have to manually unload ipvr before unloading i915. Yao Cheng (4): [1/4] drm/i915: add i915_ved.c to setup bridge for VED [2/4] drm/ipvr: drm driver for VED [3/4] libdrm/ipvr: user mode helper for ipvr drm driver [4/4] i-g-t: tests/drv_module_reload: add ipvr support -- 1.9.1

[RFC PATCH 3/3] libdrm: user mode helper for ipvr drm driver

2014-10-13 Thread Yao Cheng
usermode helper of ipvr drm driver. test tools: 1. test_ioctl: test kernel driver by directly ioctl 2. test_decode: test decode functionality by calling libdrm_ipvr Signed-off-by: Yao Cheng --- Makefile.am|6 +- Makefile.sources |1 + configure.ac | 26

[RFC PATCH 2/3] drm/ipvr: drm driver for vxd392

2014-10-13 Thread Yao Cheng
Probes vxd392 on Baytrail platform and create a new drm device for hardware accelerated video decoding. Signed-off-by: Yao Cheng --- drivers/gpu/drm/Kconfig|2 + drivers/gpu/drm/Makefile |1 + drivers/gpu/drm/ipvr/Kconfig | 16 + drivers/gpu/drm/ipvr

[RFC PATCH 1/3] drm/i915: add vxd392 bridge in i915

2014-10-13 Thread Yao Cheng
Setup following resources during i915_driver_load: 1. create a child platform and resource 2. allocate a new IRQ line and irq chip 3. set up IRQ mask/unmask callbacks vxd392 driver (if installed) will bind itself to the platform device and create new drm device Signed-off-by: Yao Cheng

[RFC PATCH 0/3] drm driver for baytrail's vxd392

2014-10-13 Thread Yao Cheng
wing two new Kconfig are added: CONFIG_DRM_IPVR: Build option for ipvr module CONFIG_DRM_IPVR_EC: Experimental feature of error concealment User mode drm helper "libdrm_ipvr.so" and simple test are also included. Yao Cheng (3): [1/3] drm/i915: add vxd392 bridge in i915 on baytrail [