From: =?UTF-8?Q?Christian_K=c3=b6nig?= Subject: Re: [PATCH libdrm 2/2] libdrm: clean up non list code path for vamgr Date: Mon, 19 Feb 2018 08:50:50 +0100 Message-ID: <032f5418-4b01-f269-7e0a-5e1dcad65e10@gmail.com> References: <20180112054554.19585-1-david1.zhou@amd.com> <20180112054554.19585-2-david1.zhou@amd.com> <4a2036e5-820f-d62a-a773-2da1f575e1bc@amd.com> <881720e0-3225-dd36-23f7-146b9bfb919d@amd.com> Reply-To: christian.koenig-5C7GfCeVMHo@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0934424580==" Return-path: In-Reply-To: Content-Language: en-US List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "amd-gfx" To: Andrey Grodzovsky , =?UTF-8?Q?Michel_D=c3=a4nzer?= , Chunming Zhou , Chunming Zhou Cc: "Koenig, Christian" , amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, Hui.Deng-5C7GfCeVMHo@public.gmane.org This is a multi-part message in MIME format. --===============0934424580== Content-Type: multipart/alternative; boundary="------------9A830598D5D8F08F7B826A08" Content-Language: en-US This is a multi-part message in MIME format. --------------9A830598D5D8F08F7B826A08 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Patch is Acked-by: Christian König Regards, Christian. Am 19.02.2018 um 08:25 schrieb Andrey Grodzovsky: > Found time to do some debugging and found error in assigning   of > initial VA hole size, attached patch makes this issue go away, > otherwise amdgpu_vamgr_find_va would always fail. > > Thanks, > > Andrey > > > On 02/18/2018 03:41 AM, Andrey Grodzovsky wrote: >> Hi David, I have an issue on Vega 10 where sudo xinit fails with >> >> [  5801.227] Failed to allocate front buffer memory >> [  5801.227] (EE) AMDGPU(0): amdgpu_setup_kernel_mem failed >> [  5801.227] (EE) >> Fatal server error: >> [  5801.227] (EE) AddScreen/ScreenInit failed for driver 0 >> [  5801.227] (EE) >> [  5801.227] (EE) >> >> Also  in MESA code >> si_create_context->si_common_context_init->pipe_buffer_create returns >> NULL. >> >> Ellsmire works fine, on Vega 10 reverting this patch makes it work. >> >> I am during my test system upgrade right now with some more issues >> after this one, so I can spend time on debugging this once my system >> is in good shape, unless you have an answer to this problem right away. >> >> Thanks, >> >> Andrey >> >> >> On 02/09/2018 03:58 AM, Michel Dänzer wrote: >>> On 2018-02-09 07:01 AM, Chunming Zhou wrote: >>>> On 2018年02月08日 17:13, Chunming Zhou wrote: >>>>> On 2018年02月08日 17:01, Michel Dänzer wrote: >>>>>> this change completely broke radeonsi due to memory management >>>>>> errors >>>>>> (see valgrind output for glxgears below), so I had to revert it. >>>>> ok, I will look into what happens. Sorry for broken. >>>> The patch lost a "goto out" in free_va when applying patch from hybrid >>>> to opensource. >>>> The attached fixes that, I tested successfully in my local side. >>>>   please review or test, if no problem, I will submit it again. >>> Please add: >>> >>> v2: Add missing "goto out" >>> Tested-by: Michel Dänzer >>> >>> to the commit log before pushing. >>> >>> >> >> _______________________________________________ >> amd-gfx mailing list >> amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org >> https://lists.freedesktop.org/mailman/listinfo/amd-gfx > > > > _______________________________________________ > amd-gfx mailing list > amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx --------------9A830598D5D8F08F7B826A08 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
Patch is Acked-by: Christian König <christian.koenig-5C7GfCeVMHo@public.gmane.org>

Regards,
Christian.

Am 19.02.2018 um 08:25 schrieb Andrey Grodzovsky:
Found time to do some debugging and found error in assigning   of initial VA hole size, attached patch makes this issue go away, otherwise amdgpu_vamgr_find_va would always fail.

Thanks,

Andrey


On 02/18/2018 03:41 AM, Andrey Grodzovsky wrote:
Hi David, I have an issue on Vega 10 where sudo xinit fails with

[  5801.227] Failed to allocate front buffer memory
[  5801.227] (EE) AMDGPU(0): amdgpu_setup_kernel_mem failed
[  5801.227] (EE)
Fatal server error:
[  5801.227] (EE) AddScreen/ScreenInit failed for driver 0
[  5801.227] (EE)
[  5801.227] (EE)

Also  in MESA code si_create_context->si_common_context_init->pipe_buffer_create returns NULL.

Ellsmire works fine, on Vega 10 reverting this patch makes it work.

I am during my test system upgrade right now with some more issues after this one, so I can spend time on debugging this once my system is in good shape, unless you have an answer to this problem right away.

Thanks,

Andrey


On 02/09/2018 03:58 AM, Michel Dänzer wrote:
On 2018-02-09 07:01 AM, Chunming Zhou wrote:
On 2018年02月08日 17:13, Chunming Zhou wrote:
On 2018年02月08日 17:01, Michel Dänzer wrote:
this change completely broke radeonsi due to memory management errors
(see valgrind output for glxgears below), so I had to revert it.
ok, I will look into what happens. Sorry for broken.
The patch lost a "goto out" in free_va when applying patch from hybrid
to opensource.
The attached fixes that, I tested successfully in my local side.
  please review or test, if no problem, I will submit it again.
Please add:

v2: Add missing "goto out"
Tested-by: Michel Dänzer <michel.daenzer-5C7GfCeVMHo@public.gmane.org>

to the commit log before pushing.



_______________________________________________
amd-gfx mailing list
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx



_______________________________________________
amd-gfx mailing list
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

--------------9A830598D5D8F08F7B826A08-- --===============0934424580== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KYW1kLWdmeCBt YWlsaW5nIGxpc3QKYW1kLWdmeEBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cHM6Ly9saXN0cy5m cmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9hbWQtZ2Z4Cg== --===============0934424580==--