[AMD Official Use Only]
Hi
Chris,
1)
Change the test case to use something larger than 1TiB.
sure, we can increase the
size of BO and make test pass,
but if user really want
to allocate 1TB GTT BO, we have no reason to let it fail? right?
the system availed memory
about 2T, but it will still fail.
2)
Change kvmalloc to allow GFP_ZERO allocations even in the vmalloc fallback path.
the 5.18 kernel will add this patch to fix this issue .
Best
Regards,
Kevin
From: Koenig, Christian <Christian.Koenig@xxxxxxx>
Sent: Wednesday, April 20, 2022 8:42 PM To: Wang, Yang(Kevin) <KevinYang.Wang@xxxxxxx>; Christian König <ckoenig.leichtzumerken@xxxxxxxxx>; dri-devel@xxxxxxxxxxxxxxxxxxxxx <dri-devel@xxxxxxxxxxxxxxxxxxxxx>; amd-gfx@xxxxxxxxxxxxxxxxxxxxx <amd-gfx@xxxxxxxxxxxxxxxxxxxxx> Subject: Re: [PATCH] drm/ttm: fix ttm tt init fail when size exceeds kmalloc limit Hi Kevin,
yes and that is perfectly valid and expected behavior. There is absolutely no need to change anything in TTM here. What we could do is: 1) Change the test case to use something larger than 1TiB. 2) Change kvmalloc to allow GFP_ZERO allocations even in the vmalloc fallback path. Regards, Christian. Am 20.04.22 um 14:39 schrieb Wang, Yang(Kevin):
|