- 25 1月, 2016 1 次提交
-
-
由 Daniel Vetter 提交于
Also fixes a bug in IPP with not correctly checking/allocating for space in the event space. Not a too serious bug since it's not a real ringbuffer, just a limit to avoid too much kernel allocations. Cc: Rob Clark <robdclark@gmail.com> Cc: Inki Dae <inki.dae@samsung.com> Acked-by: NDaniel Stone <daniels@collabora.com> Reviewed-by: NAlex Deucher <alexander.deucher@amd.com> Link: http://patchwork.freedesktop.org/patch/msgid/1452548477-15905-4-git-send-email-daniel.vetter@ffwll.chSigned-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
-
- 16 8月, 2015 1 次提交
-
-
由 Joonyoung Shim 提交于
Already drm_iommu_attach_device and drm_iommu_detach_device check whether support iommu internally, so we don't have to call is_drm_iommu_supported before call them. Signed-off-by: NJoonyoung Shim <jy0922.shim@samsung.com> Tested-by: NMarek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
- 19 6月, 2015 3 次提交
-
-
由 Hyungwon Hwang 提交于
FIMC & GSC driver can calculate the offset of planes. So there are use cases which IPP receives just one GEM handle of an image with multiple plane. This patch extends ipp_validate_mem_node() to validate this case. Signed-off-by: NHyungwon Hwang <human.hwang@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Hyungwon Hwang 提交于
Config depends on the opreation. So it must be referenced by an operation id, not a property id. Signed-off-by: NHyungwon Hwang <human.hwang@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
Code registering different drivers and simple platform devices was dispersed across multiple sub-modules. This patch moves it to one place. As a result initialization code is shorter and cleaner and should simplify further development. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
- 13 4月, 2015 1 次提交
-
-
由 Beata Michalska 提交于
As for now there is no validation of incoming buffer enqueue request as far as the gem buffers are being concerned. This might lead to some undesired cases when the driver tries to operate on invalid buffers (wiht no valid gem object handle i.e.). Add some basic checks to rule out those potential issues. Signed-off-by: NBeata Michalska <b.michalska@samsung.com> [mszyprow: rebased onto v4.0-rc1 and adapted to recent ipp changes] Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
- 24 11月, 2014 1 次提交
-
-
由 Julia Lawall 提交于
Propagate the returned error code on failure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ identifier ret; expression e1,e2; @@ ( if (\(ret < 0\|ret != 0\)) { ... return ret; } | ret = 0 ) ... when != ret = e1 when != &ret *if(...) { ... when != ret = e2 when forall return ret; } // </smpl> Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
- 19 9月, 2014 14 次提交
-
-
由 Andrzej Hajda 提交于
On ipp subsystem removal list of ipp drivers is traversed and their members are deleted. To do it properly safe version of list_for_each* should be used. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
Process should not have access to ipp nodes created by another process. The patch adds necessary checks. It also simplifies lookup for command node. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Reviewed-by: NJoonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
Since file pointer is preserved in c_node passing it as argument in node functions is redundant. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Reviewed-by: NJoonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
Events were removed only during stop command, as a result there were memory leaks if program prematurely exited. This patch fixes it. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Reviewed-by: NJoonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
Memory shouldn't be freed when hardware is still running. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Reviewed-by: NJoonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
Type casting should be avoided if possible. In case of work_struct it can be simply replaced by reference to member field. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Reviewed-by: NJoonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
The nodes should be removed before removing command node. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Reviewed-by: NJoonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
The patch introduces ipp_clean_mem_nodes function which replaces redundant code. Additionally memory node function definitions are moved up to increase its visibility. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Reviewed-by: NJoonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
In case of allocation errors some already allocated buffers were not freed. The patch fixes it. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Reviewed-by: NJoonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
Since command node have file pointer dev field became useless. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Reviewed-by: NJoonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
On file close driver should remove only command nodes created via this file. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Reviewed-by: NJoonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
Command node should contain file reference to distinguish commands created by different processes. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Reviewed-by: NJoonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
All pending works should be canceled prior to its removal. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Reviewed-by: NJoonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
PM callbacks in ipp core do nothing, so the patch removes it. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Reviewed-by: NJoonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
- 03 8月, 2014 12 次提交
-
-
由 Andrzej Hajda 提交于
The patch puts repeated code sequence into one function, removes verbose comments and decreases log verbosity. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
There is no gain in passing id by pointer to be filled. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
In case of error callback prints already corresponding message. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
The patch simplifies ipp_find_obj and removes debug messages. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
Argument checks are redundant, clients always check ippdrv before calling these functions. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
The only thing function should check is if there are buffers in respective queues. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
list_first_entry does not return NULL on empty list so this check does not make sense. Moreover there is already code which prevents calling list_first_entry on empty lists. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
There is no reason to allocate intermediate variable. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
exynos_drm_gem_get_dma_addr returns dma_addr_t, type casting to void* and back is not necessary. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
struct exynos_drm_ipp_private contains only one pointer so all occurrences of the struct can be replaced by the pointer itself. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
The patch removes unused event_list field from struct exynos_drm_ipp_private. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 Andrzej Hajda 提交于
The patch replaces type casting with proper pointer. Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
- 02 6月, 2014 7 次提交
-
-
由 YoungJun Cho 提交于
The c_node->event_list should be protected with c_node->event_lock. Signed-off-by: NYoungJun Cho <yj44.cho@samsung.com> Acked-by: NSeong-Woo Kim <sw0312.kim@samsung.com> Acked-by: NKyungmin Park <kyungmin.park@samsung.com> Tested-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 YoungJun Cho 提交于
The c_node->mem_list[] should be protected with c_node->mem_lock. Signed-off-by: NYoungJun Cho <yj44.cho@samsung.com> Acked-by: NSeong-Woo Kim <sw0312.kim@samsung.com> Acked-by: NKyungmin Park <kyungmin.park@samsung.com> Tested-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 YoungJun Cho 提交于
This patch adds ipp_remove_id() for idr resource free. Signed-off-by: NYoungJun Cho <yj44.cho@samsung.com> Acked-by: NSeong-Woo Kim <sw0312.kim@samsung.com> Acked-by: NKyungmin Park <kyungmin.park@samsung.com> Tested-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 YoungJun Cho 提交于
This patch adds cmd_lock for cmd_list synchronization. Signed-off-by: NYoungJun Cho <yj44.cho@samsung.com> Acked-by: NSeong-Woo Kim <sw0312.kim@samsung.com> Acked-by: NKyungmin Park <kyungmin.park@samsung.com> Tested-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 YoungJun Cho 提交于
The ippdrv->cmd_list requires cmd_lock. So renames cmd_lock to lock for context. Signed-off-by: NYoungJun Cho <yj44.cho@samsung.com> Acked-by: NSeong-Woo Kim <sw0312.kim@samsung.com> Acked-by: NKyungmin Park <kyungmin.park@samsung.com> Tested-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 YoungJun Cho 提交于
This patch removes duplicated setting. Signed-off-by: NYoungJun Cho <yj44.cho@samsung.com> Acked-by: NSeong-Woo Kim <sw0312.cho@samsung.com> Acked-by: NKyungmin Park <kyungmin.park@samsung.com> Tested-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-
由 YoungJun Cho 提交于
list_for_each_entry() handles empty lists, so there is no need to check whether the list is empty first. Signed-off-by: NYoungJun Cho <yj44.cho@samsung.com> Acked-by: NSeong-Woo Kim <sw0312.kim@samsung.com> Acked-by: NKyungmin Park <kyungmin.park@samsung.com> Tested-by: NAndrzej Hajda <a.hajda@samsung.com> Signed-off-by: NInki Dae <inki.dae@samsung.com>
-