Re: [PATCH libdrm 3/4] amdgpu: add a function to find bo by cpu mapping

2018-08-07 Thread Christian König
Am 07.08.2018 um 09:26 schrieb Junwei Zhang: Userspace needs to know if the user memory is from BO or malloc. Signed-off-by: Junwei Zhang --- amdgpu/amdgpu.h| 23 +++ amdgpu/amdgpu_bo.c | 34 ++ 2 files changed, 57 insertions(+) diff

Re: [PATCH libdrm 3/4] amdgpu: add a function to find bo by cpu mapping

2018-08-07 Thread Christian König
Am 07.08.2018 um 12:23 schrieb Zhang, Jerry (Junwei): On 08/07/2018 05:59 PM, Christian König wrote: Am 07.08.2018 um 11:52 schrieb Zhang, Jerry (Junwei): On 08/07/2018 05:33 PM, Christian König wrote: Am 07.08.2018 um 10:28 schrieb Zhang, Jerry (Junwei): On 08/07/2018 04:20 PM, Christian

Re: [PATCH libdrm 3/4] amdgpu: add a function to find bo by cpu mapping

2018-08-07 Thread Zhang, Jerry (Junwei)
On 08/07/2018 05:59 PM, Christian König wrote: Am 07.08.2018 um 11:52 schrieb Zhang, Jerry (Junwei): On 08/07/2018 05:33 PM, Christian König wrote: Am 07.08.2018 um 10:28 schrieb Zhang, Jerry (Junwei): On 08/07/2018 04:20 PM, Christian König wrote: Well NAK, that wasn't the intention of

Re: [PATCH libdrm 3/4] amdgpu: add a function to find bo by cpu mapping

2018-08-07 Thread zhoucm1
On 2018年08月07日 17:30, Christian König wrote: Am 07.08.2018 um 09:55 schrieb zhoucm1: On 2018年08月07日 15:26, Junwei Zhang wrote: Userspace needs to know if the user memory is from BO or malloc. Signed-off-by: Junwei Zhang ---   amdgpu/amdgpu.h    | 23 +++  

Re: [PATCH libdrm 3/4] amdgpu: add a function to find bo by cpu mapping

2018-08-07 Thread Christian König
Am 07.08.2018 um 11:52 schrieb Zhang, Jerry (Junwei): On 08/07/2018 05:33 PM, Christian König wrote: Am 07.08.2018 um 10:28 schrieb Zhang, Jerry (Junwei): On 08/07/2018 04:20 PM, Christian König wrote: Well NAK, that wasn't the intention of putting all BOs into the handle table. You should

Re: [PATCH libdrm 3/4] amdgpu: add a function to find bo by cpu mapping

2018-08-07 Thread Zhang, Jerry (Junwei)
On 08/07/2018 05:33 PM, Christian König wrote: Am 07.08.2018 um 10:28 schrieb Zhang, Jerry (Junwei): On 08/07/2018 04:20 PM, Christian König wrote: Well NAK, that wasn't the intention of putting all BOs into the handle table. You should still use the kernel implementation. I thought we have

Re: [PATCH libdrm 3/4] amdgpu: add a function to find bo by cpu mapping

2018-08-07 Thread Christian König
Am 07.08.2018 um 10:28 schrieb Zhang, Jerry (Junwei): On 08/07/2018 04:20 PM, Christian König wrote: Well NAK, that wasn't the intention of putting all BOs into the handle table. You should still use the kernel implementation. I thought we have discussed that in below mail thread. any gap?

Re: [PATCH libdrm 3/4] amdgpu: add a function to find bo by cpu mapping

2018-08-07 Thread Christian König
Am 07.08.2018 um 09:55 schrieb zhoucm1: On 2018年08月07日 15:26, Junwei Zhang wrote: Userspace needs to know if the user memory is from BO or malloc. Signed-off-by: Junwei Zhang ---   amdgpu/amdgpu.h    | 23 +++   amdgpu/amdgpu_bo.c | 34 ++  

Re: [PATCH libdrm 3/4] amdgpu: add a function to find bo by cpu mapping

2018-08-07 Thread Zhang, Jerry (Junwei)
On 08/07/2018 04:20 PM, Christian König wrote: Well NAK, that wasn't the intention of putting all BOs into the handle table. You should still use the kernel implementation. I thought we have discussed that in below mail thread. any gap? [PATCH 1/2] drm/amdgpu: return bo itself if userptr is

Re: [PATCH libdrm 3/4] amdgpu: add a function to find bo by cpu mapping

2018-08-07 Thread Christian König
Well NAK, that wasn't the intention of putting all BOs into the handle table. You should still use the kernel implementation. Christian. Am 07.08.2018 um 09:26 schrieb Junwei Zhang: Userspace needs to know if the user memory is from BO or malloc. Signed-off-by: Junwei Zhang ---

Re: [PATCH libdrm 3/4] amdgpu: add a function to find bo by cpu mapping

2018-08-07 Thread zhoucm1
On 2018年08月07日 15:26, Junwei Zhang wrote: Userspace needs to know if the user memory is from BO or malloc. Signed-off-by: Junwei Zhang --- amdgpu/amdgpu.h| 23 +++ amdgpu/amdgpu_bo.c | 34 ++ 2 files changed, 57 insertions(+) diff

[PATCH libdrm 3/4] amdgpu: add a function to find bo by cpu mapping

2018-08-07 Thread Junwei Zhang
Userspace needs to know if the user memory is from BO or malloc. Signed-off-by: Junwei Zhang --- amdgpu/amdgpu.h| 23 +++ amdgpu/amdgpu_bo.c | 34 ++ 2 files changed, 57 insertions(+) diff --git a/amdgpu/amdgpu.h b/amdgpu/amdgpu.h index