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
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
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
, 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
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
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
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 -
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
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:
> >
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
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 -
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:
> >&
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:
> >
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
;
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
, 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
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
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
--
38 matches
Mail list logo