[PATCH 3/3] drm/amd/powerplay: enable dkms build

2015-11-24 Thread Jammy Zhou
Signed-off-by: Jammy Zhou Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/Makefile | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/Makefile b/drivers/gpu/drm/amd/powerplay/Makefile index e195bf5..043e6eb 100644 --- a

[PATCH 2/3] drm/amd/acp: use $(src) in Makefile

2015-11-24 Thread Jammy Zhou
Signed-off-by: Jammy Zhou --- drivers/gpu/drm/amd/acp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/acp/Makefile b/drivers/gpu/drm/amd/acp/Makefile index c8c3303..b33bbd6 100644 --- a/drivers/gpu/drm/amd/acp/Makefile +++ b/drivers/gpu/drm/amd

[PATCH 1/3] drm/amdgpu: use $(src) in Makefile

2015-11-24 Thread Jammy Zhou
This can solve the path problem when compile amdgpu with DKMS. Signed-off-by: Jammy Zhou Acked-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/Makefile | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/Makefile b/drivers/gpu/drm/amd

[PATCH 0/3] drm/amdgpu: enable DKMS build

2015-11-24 Thread Jammy Zhou
This series enable the DKMS build of amdgpu driver. Jammy Zhou (3): drm/amdgpu: use $(src) in Makefile drm/amd/acp: use $(src) in Makefile drm/amd/powerplay: enable dkms build drivers/gpu/drm/amd/acp/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/Makefile| 14

[PATCH] drm: fix the usage after free

2015-08-24 Thread Jammy Zhou
From: Mathias Tillman For readdir_r(), the next directory entry is returned in caller-allocted buffer (pointered by pent here). https://bugs.freedesktop.org/show_bug.cgi?id=91704 Signed-off-by: Jammy Zhou --- xf86drm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a

[PATCH 4/4] amdgpu: make vamgr per device v2

2015-08-17 Thread Jammy Zhou
Each device can have its own vamgr, so make it per device now. This can fix the failure with multiple GPUs used in one single process. v2: rebase Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- amdgpu/amdgpu_device.c | 13 +++-- amdgpu/amdgpu_internal.h | 5

[PATCH 3/4] amdgpu: add flag to support 32bit VA address v4

2015-08-17 Thread Jammy Zhou
, this reserved range can be used as fallback. v2: add comment for AMDGPU_VA_RANGE_32_BIT, and add vamgr to va_range v3: rebase to Emil's drm_private series v4: fix one warning Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- amdgpu/amdgpu.h | 5 + amdgpu/amdgpu_dev

[PATCH 2/4] amdgpu: improve amdgpu_vamgr_init

2015-08-17 Thread Jammy Zhou
Make it a generic function independent of the device info. Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- amdgpu/amdgpu_vamgr.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/amdgpu/amdgpu_vamgr.c b/amdgpu/amdgpu_vamgr.c index cc4a1c4..71fd2b1

[PATCH 1/4] drm: add interface to get drm devices on the system v3

2015-08-17 Thread Jammy Zhou
Signed-off-by: Jammy Zhou --- xf86drm.c | 351 ++ xf86drm.h | 34 ++ 2 files changed, 385 insertions(+) diff --git a/xf86drm.c b/xf86drm.c index 5e02969..7d9e5f9 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -55,6 +55,7 @@ #ifdef

[PATCH 5/5] amdgpu: make vamgr per device v2

2015-08-13 Thread Jammy Zhou
Each device can have its own vamgr, so make it per device now. This can fix the failure with multiple GPUs used in one single process. v2: rebase Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- amdgpu/amdgpu_device.c | 13 +++-- amdgpu/amdgpu_internal.h | 5

[PATCH 4/5] amdgpu: fix one warning from previous commit

2015-08-13 Thread Jammy Zhou
The local variable 'vamgr' is unused in amdgpu_va_range_free. Signed-off-by: Jammy Zhou Reviewed-by: Alex Deucher --- amdgpu/amdgpu_vamgr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/amdgpu/amdgpu_vamgr.c b/amdgpu/amdgpu_vamgr.c index 91aad4e..698826d 100644 --

[PATCH 3/5] amdgpu: add flag to support 32bit VA address v3

2015-08-13 Thread Jammy Zhou
, this reserved range can be used as fallback. v2: add comment for AMDGPU_VA_RANGE_32_BIT, and add vamgr to va_range v3: rebase to Emil's drm_private series Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- amdgpu/amdgpu.h | 5 + amdgpu/amdgpu_device.c

[PATCH 2/5] amdgpu: improve amdgpu_vamgr_init

2015-08-13 Thread Jammy Zhou
Make it a generic function independent of the device info. Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- amdgpu/amdgpu_vamgr.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/amdgpu/amdgpu_vamgr.c b/amdgpu/amdgpu_vamgr.c index cc4a1c4..71fd2b1

[PATCH 1/5] drm: add interface to get drm devices on the system v2

2015-08-13 Thread Jammy Zhou
; count = drmGetDevices(NULL, 0); foo = calloc(count, sizeof(drmDevicePtr)); count = drmGetDevices(foo, count); /* find proper device, open correct device node, etc */ drmFreeDevices(foo, count); free(foo); v2: change according to feedback from Emil Signed-off-by: Jammy Zhou --- xf86drm.c | 351

[PATCH 0/5] some drm and amdgpu patches

2015-08-13 Thread Jammy Zhou
This series is a set of patches in my side pending for merge. And I rebased it with the drm_private series from Emil. Emil Velikov (1): drm: add interface to get drm devices on the system v2 Jammy Zhou (4): amdgpu: improve amdgpu_vamgr_init amdgpu: add flag to support 32bit VA address v3

[PATCH 2/2] amdgpu: add flag to support 32bit VA address v2

2015-08-10 Thread Jammy Zhou
, this reserved range can be used as fallback. v2: add comment for AMDGPU_VA_RANGE_32_BIT, and add vamgr to va_range Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- amdgpu/amdgpu.h | 5 + amdgpu/amdgpu_device.c | 22 ++ amdgpu/amdgpu_internal.h | 9

[PATCH 1/2] amdgpu: improve amdgpu_vamgr_init

2015-08-10 Thread Jammy Zhou
Make it a generic function independent of the device info. Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- amdgpu/amdgpu_vamgr.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/amdgpu/amdgpu_vamgr.c b/amdgpu/amdgpu_vamgr.c index ced4f4f..e044dfa

[PATCH 01/25] drm: add generic lock-free queue implementation

2015-06-04 Thread Jammy Zhou
Signed-off-by: Jammy Zhou Signed-off-by: Shaoyun Liu Reviewed-by: Christian K?nig --- drivers/gpu/drm/Makefile| 3 +- drivers/gpu/drm/drm_queue.c | 208 include/drm/drm_queue.h | 47 ++ 3 files changed, 257 insertions(+), 1

[PATCH] Add device enumeration interface (v3)

2015-05-19 Thread Jammy Zhou
From: frank v3: switch to udev/sysfs for the enumeration Signed-off-by: Frank Min Reviewed-by: Christian König Reviewed-by: Alex Deucher Reviewed-by: Jammy Zhou --- Makefile.am | 7 +++-- xf86drm.c | 103 xf86drm.h | 19

[PATCH 2/2] Fix one warning (v2)

2015-04-27 Thread Jammy Zhou
xf86drm.c:356:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] group = (serv_group >= 0) ? serv_group : DRM_DEV_GID; ^ v2: do 'int' cast to fix the warning Signed-off-by: Jammy Zhou --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 d

[PATCH 2/2] Fix one warning

2015-04-24 Thread Jammy Zhou
xf86drm.c:356:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] group = (serv_group >= 0) ? serv_group : DRM_DEV_GID; ^ Signed-off-by: Jammy Zhou --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xf86drm.c b/xf86drm.c

[PATCH 1/2] Add device enumeration interface (v2)

2015-04-24 Thread Jammy Zhou
drmGetDevices interface is added to enumernate GPU devices on the system v2: rebase the code and some improvement for the coding style Signed-off-by: Frank Min Signed-off-by: Jammy Zhou (v2) --- Makefile.am | 3 ++- xf86drm.c | 48 xf86drm.h

[PATCH 1/2] Add new drmOpenWithType function (v4)

2015-02-11 Thread Jammy Zhou
v2: Add drmGetMinorBase, and call drmOpenWithType in drmOpen v3: Pass 'type' to drmOpenByBusid and drmOpenDevice in drmOpenByName v4: Renumber node type definitions, and return -1 for unsupported type Signed-off-by: Jammy Zhou Reviewed-by: Alex Deucher (v3) --- xf86

[PATCH 2/2] Add new drmOpenOnceWithType function (v2)

2015-02-02 Thread Jammy Zhou
v2: call drmOpenOnceWithType in drmOpenOnce, and drop unused param for drmOpenOnceWithType Signed-off-by: Jammy Zhou --- xf86drm.c | 12 ++-- xf86drm.h | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/xf86drm.c b/xf86drm.c index 810edfa..b5d7686 100644 --- a

[PATCH 1/2] Add new drmOpenWithType function (v3)

2015-02-02 Thread Jammy Zhou
v2: Add drmGetMinorBase, and call drmOpenWithType in drmOpen v3: Pass 'type' to drmOpenByBusid and drmOpenDevice in drmOpenByName Signed-off-by: Jammy Zhou --- xf86drm.c | 63 --- xf86drm.h | 9 - 2 files c

[RFC PATCH 0/2] Add drmOpenWithType and drmOpenOnceWithType

2015-02-02 Thread Jammy Zhou
e, and the minor number is transparent to the callers. Jammy Zhou (2): Add new drmOpenWithType function (v3) Add new drmOpenOnceWithType function (v2) xf86drm.c | 75 --- xf86drm.h | 10 - 2 files changed, 67 insertions(+), 18

[PATCH 2/2] dma-buf/fence: don't wait when specified timeout is zero

2015-01-21 Thread Jammy Zhou
When specified timeout is zero for fence_wait_timeout, just check if the fence is signaled or not without wait. Signed-off-by: Jammy Zhou --- drivers/dma-buf/fence.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma-buf/fence.c b/drivers/dma-buf/fence.c index e554111..50ef8bd

[PATCH 1/2] reservation: wait only with non-zero timeout specified (v3)

2015-01-21 Thread Jammy Zhou
l fence_put if not signaled in the case of timeout==0 v3: switch to reservation_object_test_signaled_rcu Signed-off-by: Jammy Zhou Reviewed-by: Christian König Reviewed-by: Alex Deucher --- drivers/dma-buf/reservation.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma-buf/r

[PATCH] reservation: wait only with non-zero timeout specified (v3)

2015-01-13 Thread Jammy Zhou
l fence_put if not signaled in the case of timeout==0 v3: switch to reservation_object_test_signaled_rcu Signed-off-by: Jammy Zhou Reviewed-by: Christian König Reviewed-by: Alex Deucher --- drivers/dma-buf/reservation.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma-buf/r

[PATCH 1/1] reservation: wait only with non-zero timeout specified (v2)

2015-01-13 Thread Jammy Zhou
l fence_put if not signaled in the case of timeout==0 Signed-off-by: Jammy Zhou Reviewed-by: Christian König Reviewed-by: Alex Deucher --- drivers/dma-buf/reservation.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/dma-buf/reservation.c b/drivers/dma-b

[PATCH] i.MX23/28 framebuffer driver

2011-02-18 Thread Jammy Zhou
To accommodate the fact of independent display controller and GPU components in ARM SOC, it will be better if we can separate KMS from DRM both in kernel space and user space (i.e, create a new drivers/video/kms directory for kernel side, move KMS related code in libdrm to libkms in user space). Th

Re: [PATCH] i.MX23/28 framebuffer driver

2011-02-18 Thread Jammy Zhou
To accommodate the fact of independent display controller and GPU components in ARM SOC, it will be better if we can separate KMS from DRM both in kernel space and user space (i.e, create a new drivers/video/kms directory for kernel side, move KMS related code in libdrm to libkms in user space). Th

Freescale Linux BSP review

2010-12-14 Thread Jammy Zhou
On Tue, Dec 14, 2010 at 10:06 AM, Jerome Glisse wrote: > On Mon, Dec 13, 2010 at 9:04 PM, Jammy Zhou wrote: > > > > > > On Tue, Dec 14, 2010 at 12:11 AM, Jerome Glisse > wrote: > >> > >> On Mon, Dec 13, 2010 at 10:18 AM, Arnd Bergmann wrote: > >

Freescale Linux BSP review

2010-12-14 Thread Jammy Zhou
On Tue, Dec 14, 2010 at 12:11 AM, Jerome Glisse wrote: > On Mon, Dec 13, 2010 at 10:18 AM, Arnd Bergmann wrote: > > On Monday 13 December 2010, Jammy Zhou wrote: > >> On Mon, Dec 13, 2010 at 4:45 AM, Linus Walleij < > linus.walleij at linaro.org>wrote: > >&

Freescale Linux BSP review

2010-12-14 Thread Jammy Zhou
On Mon, Dec 13, 2010 at 11:18 PM, Arnd Bergmann wrote: > On Monday 13 December 2010, Jammy Zhou wrote: > > On Mon, Dec 13, 2010 at 4:45 AM, Linus Walleij >wrote: > > > > > On 11 December 2010 22:41, Arnd Bergmann wrote: > > > > > > * amd-gpu -

Re: Freescale Linux BSP review

2010-12-13 Thread Jammy Zhou
On Tue, Dec 14, 2010 at 10:06 AM, Jerome Glisse wrote: > On Mon, Dec 13, 2010 at 9:04 PM, Jammy Zhou wrote: > > > > > > On Tue, Dec 14, 2010 at 12:11 AM, Jerome Glisse > wrote: > >> > >> On Mon, Dec 13, 2010 at 10:18 AM, Arnd Bergmann wrote: > >

Re: Freescale Linux BSP review

2010-12-13 Thread Jammy Zhou
On Tue, Dec 14, 2010 at 12:11 AM, Jerome Glisse wrote: > On Mon, Dec 13, 2010 at 10:18 AM, Arnd Bergmann wrote: > > On Monday 13 December 2010, Jammy Zhou wrote: > >> On Mon, Dec 13, 2010 at 4:45 AM, Linus Walleij < > linus.wall...@linaro.org>wrote: > >> &g

Re: Freescale Linux BSP review

2010-12-13 Thread Jammy Zhou
On Mon, Dec 13, 2010 at 11:18 PM, Arnd Bergmann wrote: > On Monday 13 December 2010, Jammy Zhou wrote: > > On Mon, Dec 13, 2010 at 4:45 AM, Linus Walleij >wrote: > > > > > On 11 December 2010 22:41, Arnd Bergmann wrote: > > > > > > * amd-gpu -