amdgpu: When couldn't find bo, need to return error.
PATCH 1/1 amdgpu: When couldn't find bo, need to return error.
The startx will have segmant fault if return success.
SWDEV-163962
--- amdgpu/amdgpu_bo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
amdgpu/amdgpu_bo.c +3 -1
@@ -760,6 +760,7 @@ int amdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev, uint64_t *offset_in_bo) {uint32_t i; +int r =0 ;struct amdgpu_bo *bo;if (cpu ==NULL || size ==0 )
@@ -787,10 +788,11 @@ int amdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev, }else { *buf_handle =NULL ; *offset_in_bo =0 ; + r = -errno; }pthread_mutex_unlock (&dev->bo_table_mutex); -return 0 ; +return r; } int amdgpu_create_bo_from_user_mem(amdgpu_device_handle dev,
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1535775863-27689-1-git-send-email-Emily.Deng-5C7GfCeVMHo@public.gmane.org
Am 01.09.2018 um 06:24 schrieb Emily Deng:
Quoted 6 lines
The startx will have segmant fault if return success.
SWDEV-163962
Change-Id I56b189fa26efdcd1d96e5100af3f3e0b1208b0c3Signed-off-by Emily Deng <[email protected]>
Jerry already send a much better patch for this.
Quoted 17 lines
--- amdgpu/amdgpu_bo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)amdgpu/amdgpu_bo.c +1
-0@@ -760,6 +760,7 @@ int amdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev, uint64_t *offset_in_bo) {uint32_t i; +int r =0 ;struct amdgpu_bo *bo;if (cpu ==NULL || size ==0 )
amdgpu/amdgpu_bo.c int amdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev, · line 791
Quoted 4 lines
amdgpu/amdgpu_bo.c +1
-0@@ -787,10 +788,11 @@ int amdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev, }else { *buf_handle =NULL ; *offset_in_bo =0 ; + r = -errno;
errno doesn't contain any error in this case.
amdgpu/amdgpu_bo.c int amdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev, · line 798
Quoted 8 lines
amdgpu/amdgpu_bo.c +1
-1}pthread_mutex_unlock (&dev->bo_table_mutex); -return 0 ; +return r; } int amdgpu_create_bo_from_user_mem(amdgpu_device_handle dev,
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): aabe391a-d6d5-564f-1e0d-b2fb218bdeae-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Ok, then just ignore this patch. But seems didn't saw the patch on branch amd-staging-hybrid-master20180315.
Best wishes
Emily Deng
Quoted 43 lines
-----Original Message-----
From: Christian König <[email protected]>
Sent: Saturday, September 1, 2018 4:17 PM
To: Deng, Emily <[email protected]>; [email protected]
Subject: Re: [PATCH libdrm] amdgpu: When couldn't find bo, need to return error.Am 01.09.2018 um 06:24 schrieb Emily Deng:
Quoted 6 lines
The startx will have segmant fault if return success.
SWDEV-163962
Change-Id I56b189fa26efdcd1d96e5100af3f3e0b1208b0c3Signed-off-by Emily Deng <[email protected]>Jerry already send a much better patch for this.
amdgpu/amdgpu_bo.c int
Quoted 9 lines
--- amdgpu/amdgpu_bo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)amdgpu/amdgpu_bo.c index renamed from amdgpu/amdgpu_bo.c +0
-0f25cacc..7e297fa 100644
amdgpu/amdgpu_bo.c +0
-0@@ -760,6 +760,7 @@ intamdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev,
amdgpu/amdgpu_bo.c int
Quoted 8 lines
amdgpu/amdgpu_bo.c +1
-0uint64_t *offset_in_bo) {uint32_t i; +int r =0 ;struct amdgpu_bo *bo;if (cpu ==NULL || size ==0 )@@ -787,10 +788,11 @@ intamdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev,
amdgpu/amdgpu_bo.c int amdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev, · line 791
Quoted 4 lines
amdgpu/amdgpu_bo.c +1
-0}else { *buf_handle =NULL ; *offset_in_bo =0 ; + r = -errno;errno doesn't contain any error in this case.
Quoted 8 lines
amdgpu/amdgpu_bo.c int amdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev, · line 798
Quoted 8 lines
amdgpu/amdgpu_bo.c +1
-1}pthread_mutex_unlock (&dev->bo_table_mutex); -return 0 ; +return r; } int amdgpu_create_bo_from_user_mem(amdgpu_device_handle dev,
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): DM6PR12MB265273E1B06F0AB7A3B32A4D8F0E0-lmeGfMZKVrHiBFXSrFbU1AdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Quoted 1 line · Emily
Ok, then just ignore this patch. But seems didn't saw the patch on branch amd-staging-hybrid-master20180315.
Thanks to take care of this as well.
I'm waiting some verification, and now push the patch to internal staging branch mainline will be pushed later for another verification.
About master branch, needs someone's help with correct permission.
Regards,
Jerry
Quoted 54 lines
Best wishes
Emily DengQuoted 50 lines
-----Original Message-----
From: Christian König <[email protected]>
Sent: Saturday, September 1, 2018 4:17 PM
To: Deng, Emily <[email protected]>; [email protected]
Subject: Re: [PATCH libdrm] amdgpu: When couldn't find bo, need to return error.Am 01.09.2018 um 06:24 schrieb Emily Deng:
Quoted 6 lines
The startx will have segmant fault if return success.
SWDEV-163962
Change-Id I56b189fa26efdcd1d96e5100af3f3e0b1208b0c3Signed-off-by Emily Deng <[email protected]>Jerry already send a much better patch for this.
amdgpu/amdgpu_bo.c int
Quoted 9 lines
--- amdgpu/amdgpu_bo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)amdgpu/amdgpu_bo.c index renamed from amdgpu/amdgpu_bo.c +0
-0f25cacc..7e297fa 100644
amdgpu/amdgpu_bo.c +0
-0@@ -760,6 +760,7 @@ intamdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev,
amdgpu/amdgpu_bo.c int
Quoted 8 lines
amdgpu/amdgpu_bo.c +1
-0uint64_t *offset_in_bo) {uint32_t i; +int r =0 ;struct amdgpu_bo *bo;if (cpu ==NULL || size ==0 )@@ -787,10 +788,11 @@ intamdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev,
amdgpu/amdgpu_bo.c int amdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev, · line 791
Quoted 4 lines
amdgpu/amdgpu_bo.c +1
-0}else { *buf_handle =NULL ; *offset_in_bo =0 ; + r = -errno;errno doesn't contain any error in this case.
Quoted 7 lines
amdgpu/amdgpu_bo.c +1
-1}pthread_mutex_unlock (&dev->bo_table_mutex); -return 0 ; +return r; }
Quoted 7 lines
Quoted 1 line
amdgpu/amdgpu_bo.c int amdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev, · line 798
Quoted 1 line
amdgpu/amdgpu_bo.c +0
-0int amdgpu_create_bo_from_user_mem(amdgpu_device_handle dev,_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 1 line
About master branch, needs someone's help with correct permission.
I've already took care of that on the weekend.
Regards,
Christian.
Am 03.09.2018 um 03:42 schrieb Zhang, Jerry (Junwei):
Quoted 5 lines · Emily
Quoted 1 line
Ok, then just ignore this patch. But seems didn't saw the patch on branch amd-staging-hybrid-master20180315.
Thanks to take care of this as well.
Quoted 68 lines
I'm waiting some verification, and now push the patch to internal staging branch mainline will be pushed later for another verification.
About master branch, needs someone's help with correct permission.
Regards,
JerryQuoted 61 lines
Best wishes
Emily DengQuoted 36 lines
-----Original Message-----
From: Christian König <[email protected]>
Sent: Saturday, September 1, 2018 4:17 PM
To: Deng, Emily <[email protected]>; [email protected]
Subject: Re: [PATCH libdrm] amdgpu: When couldn't find bo, need to return error.Am 01.09.2018 um 06:24 schrieb Emily Deng:
Quoted 6 lines
The startx will have segmant fault if return success.
SWDEV-163962
Change-Id I56b189fa26efdcd1d96e5100af3f3e0b1208b0c3Signed-off-by Emily Deng <[email protected]>Jerry already send a much better patch for this.
amdgpu/amdgpu_bo.c int
Quoted 9 lines
---
amdgpu/amdgpu_bo.c| 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)amdgpu/amdgpu_bo.c index renamed from amdgpu/amdgpu_bo.c +0
-0f25cacc..7e297fa 100644
amdgpu/amdgpu_bo.c +0
-0@@ -760,6 +760,7 @@ intamdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev,
amdgpu/amdgpu_bo.c int
Quoted 8 lines
amdgpu/amdgpu_bo.c +1
-0uint64_t *offset_in_bo) { uint32_t i; + int r = 0; struct amdgpu_bo *bo; if (cpu == NULL || size == 0)@@ -787,10 +788,11 @@ intamdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev,
Quoted 15 lines
amdgpu/amdgpu_bo.c int · line 791
Quoted 4 lines
amdgpu/amdgpu_bo.c +1
-0} else { *buf_handle = NULL; *offset_in_bo = 0; + r = -errno;errno doesn't contain any error in this case.
Quoted 8 lines
amdgpu/amdgpu_bo.c +1
-1} pthread_mutex_unlock(&dev->bo_table_mutex); - return 0; + return r; } int amdgpu_create_bo_from_user_mem(amdgpu_device_handle dev,_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 48942a46-474b-a120-5b61-2fcbaf3eae4b-5C7GfCeVMHo@public.gmane.org
Quoted 2 lines · Christian König
Quoted 1 line
About master branch, needs someone's help with correct permission.
I've already took care of that on the weekend.
Thank you again.
BTW, how to apply that permission?
Regards,
Jerry
Quoted 79 lines
Regards,
Christian.Am 03.09.2018 um 03:42 schrieb Zhang, Jerry (Junwei):
Quoted 73 lines · Emily
Quoted 1 line
Ok, then just ignore this patch. But seems didn't saw the patch on branch amd-staging-hybrid-master20180315.
Thanks to take care of this as well.
I'm waiting some verification, and now push the patch to internal staging branch mainline will be pushed later for another verification.
About master branch, needs someone's help with correct permission.
Regards,
JerryQuoted 61 lines
Best wishes
Emily DengQuoted 36 lines
-----Original Message-----
From: Christian König <[email protected]>
Sent: Saturday, September 1, 2018 4:17 PM
To: Deng, Emily <[email protected]>; [email protected]
Subject: Re: [PATCH libdrm] amdgpu: When couldn't find bo, need to return error.Am 01.09.2018 um 06:24 schrieb Emily Deng:
Quoted 6 lines
The startx will have segmant fault if return success.
SWDEV-163962
Change-Id I56b189fa26efdcd1d96e5100af3f3e0b1208b0c3Signed-off-by Emily Deng <[email protected]>Jerry already send a much better patch for this.
amdgpu/amdgpu_bo.c int
Quoted 9 lines
--- amdgpu/amdgpu_bo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)amdgpu/amdgpu_bo.c index renamed from amdgpu/amdgpu_bo.c +0
-0f25cacc..7e297fa 100644
amdgpu/amdgpu_bo.c +0
-0@@ -760,6 +760,7 @@ intamdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev,
amdgpu/amdgpu_bo.c int
Quoted 8 lines
amdgpu/amdgpu_bo.c +1
-0uint64_t *offset_in_bo) {uint32_t i; +int r =0 ;struct amdgpu_bo *bo;if (cpu ==NULL || size ==0 )@@ -787,10 +788,11 @@ intamdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev,
Quoted 15 lines
amdgpu/amdgpu_bo.c int · line 791
Quoted 4 lines
amdgpu/amdgpu_bo.c +1
-0}else { *buf_handle =NULL ; *offset_in_bo =0 ; + r = -errno;errno doesn't contain any error in this case.
Quoted 8 lines
amdgpu/amdgpu_bo.c +1
-1}pthread_mutex_unlock (&dev->bo_table_mutex); -return 0 ; +return r; } int amdgpu_create_bo_from_user_mem(amdgpu_device_handle dev,_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
Am 03.09.2018 um 09:16 schrieb Zhang, Jerry (Junwei):
Quoted 6 lines · Christian König
Quoted 2 lines
Quoted 1 line
About master branch, needs someone's help with correct permission.
I've already took care of that on the weekend.
Thank you again.
BTW, how to apply that permission?
Previously that was done by opening a bugzilla ticket, but since the migration to gitlab that might be outdated now.
A good start is to go to https://gitlab.freedesktop.org and register an account, then somebody from the admin team needs to add that account to the appropriate groups.
Regards,
Christian.
Quoted 83 lines
Regards,
JerryQuoted 79 lines
Regards,
Christian.Am 03.09.2018 um 03:42 schrieb Zhang, Jerry (Junwei):
Quoted 73 lines · Emily
Quoted 1 line
Ok, then just ignore this patch. But seems didn't saw the patch on branch amd-staging-hybrid-master20180315.
Thanks to take care of this as well.
I'm waiting some verification, and now push the patch to internal staging branch mainline will be pushed later for another verification.
About master branch, needs someone's help with correct permission.
Regards,
JerryQuoted 61 lines
Best wishes
Emily DengQuoted 36 lines
-----Original Message-----
From: Christian König <[email protected]>
Sent: Saturday, September 1, 2018 4:17 PM
To: Deng, Emily <[email protected]>; [email protected]
Subject: Re: [PATCH libdrm] amdgpu: When couldn't find bo, need to return error.Am 01.09.2018 um 06:24 schrieb Emily Deng:
Quoted 6 lines
The startx will have segmant fault if return success.
SWDEV-163962
Change-Id I56b189fa26efdcd1d96e5100af3f3e0b1208b0c3Signed-off-by Emily Deng <[email protected]>Jerry already send a much better patch for this.
amdgpu/amdgpu_bo.c int
Quoted 9 lines
---
amdgpu/amdgpu_bo.c| 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)amdgpu/amdgpu_bo.c index renamed from amdgpu/amdgpu_bo.c +0
-0f25cacc..7e297fa 100644
amdgpu/amdgpu_bo.c +0
-0@@ -760,6 +760,7 @@ intamdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev,
amdgpu/amdgpu_bo.c int
Quoted 8 lines
amdgpu/amdgpu_bo.c +1
-0uint64_t *offset_in_bo) { uint32_t i; + int r = 0; struct amdgpu_bo *bo; if (cpu == NULL || size == 0)@@ -787,10 +788,11 @@ intamdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev,
Quoted 15 lines
amdgpu/amdgpu_bo.c int · line 791
Quoted 4 lines
amdgpu/amdgpu_bo.c +1
-0} else { *buf_handle = NULL; *offset_in_bo = 0; + r = -errno;errno doesn't contain any error in this case.
Quoted 8 lines
amdgpu/amdgpu_bo.c +1
-1}pthread_mutex_unlock (&dev->bo_table_mutex); - return 0; + return r; } int amdgpu_create_bo_from_user_mem(amdgpu_device_handle dev,_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): a55accb0-95d9-c25e-05dd-65a6a736c379-5C7GfCeVMHo@public.gmane.org
Quoted 11 lines · Christian König
Am 03.09.2018 um 09:16 schrieb Zhang, Jerry (Junwei):
Quoted 6 lines · Christian König
Quoted 2 lines
Quoted 1 line
About master branch, needs someone's help with correct permission.
I've already took care of that on the weekend.
Thank you again.
BTW, how to apply that permission?Previously that was done by opening a bugzilla ticket, but since the migration to gitlab that might be outdated now.
A good start is to go to https://gitlab.freedesktop.org and register an account, then somebody from the admin team needs to add that account to the appropriate groups.
Thanks, will give a try.
Regards,
Jerry
Quoted 88 lines
Regards,
Christian.Quoted 83 lines
Regards,
JerryQuoted 79 lines
Regards,
Christian.Am 03.09.2018 um 03:42 schrieb Zhang, Jerry (Junwei):
Quoted 73 lines · Emily
Quoted 1 line
Ok, then just ignore this patch. But seems didn't saw the patch on branch amd-staging-hybrid-master20180315.
Thanks to take care of this as well.
I'm waiting some verification, and now push the patch to internal staging branch mainline will be pushed later for another verification.
About master branch, needs someone's help with correct permission.
Regards,
JerryQuoted 61 lines
Best wishes
Emily DengQuoted 36 lines
-----Original Message-----
From: Christian König <[email protected]>
Sent: Saturday, September 1, 2018 4:17 PM
To: Deng, Emily <[email protected]>; [email protected]
Subject: Re: [PATCH libdrm] amdgpu: When couldn't find bo, need to return error.Am 01.09.2018 um 06:24 schrieb Emily Deng:
Quoted 6 lines
The startx will have segmant fault if return success.
SWDEV-163962
Change-Id I56b189fa26efdcd1d96e5100af3f3e0b1208b0c3Signed-off-by Emily Deng <[email protected]>Jerry already send a much better patch for this.
amdgpu/amdgpu_bo.c int
Quoted 9 lines
--- amdgpu/amdgpu_bo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)amdgpu/amdgpu_bo.c index renamed from amdgpu/amdgpu_bo.c +0
-0f25cacc..7e297fa 100644
amdgpu/amdgpu_bo.c +0
-0@@ -760,6 +760,7 @@ intamdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev,
amdgpu/amdgpu_bo.c int
Quoted 8 lines
amdgpu/amdgpu_bo.c +1
-0uint64_t *offset_in_bo) {uint32_t i; +int r =0 ;struct amdgpu_bo *bo;if (cpu ==NULL || size ==0 )@@ -787,10 +788,11 @@ intamdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev,
Quoted 15 lines
amdgpu/amdgpu_bo.c int · line 791
Quoted 4 lines
amdgpu/amdgpu_bo.c +1
-0}else { *buf_handle =NULL ; *offset_in_bo =0 ; + r = -errno;errno doesn't contain any error in this case.
Quoted 8 lines
amdgpu/amdgpu_bo.c +1
-1}pthread_mutex_unlock (&dev->bo_table_mutex); -return 0 ; +return r; } int amdgpu_create_bo_from_user_mem(amdgpu_device_handle dev,_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx