[PATCH] drm: Optimise for continuous memory allocation

2022-11-26 Thread xinhui pan
Currently drm-buddy does not have full knowledge of continuous memory. Lets consider scenario below. order 1:L R order 0: LL LR RL RR for order 1 allocation, it can offer L or R or LR+RL. For now, we only implement L or R case for continuous memory allocation. So

Re: [PATCH] drm/amdgpu: Fix minmax error

2022-11-26 Thread Christian König
Am 26.11.22 um 06:25 schrieb Luben Tuikov: Fix minmax compilation error by using the correct constant and correct integer suffix. Cc: James Zhu Cc: Felix Kuehling Fixes: 58170a7a002ad6 ("drm/amdgpu: fix stall on CPU when allocate large system memory") Signed-off-by: Luben Tuikov

[PATCH] drm/amdgpu: New method to check block continuous

2022-11-26 Thread xinhui pan
Blocks are not guarnteed to be in ascending order. Signed-off-by: xinhui pan --- drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 21 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c

[PATCH v2] drm: Optimise for continuous memory allocation

2022-11-26 Thread xinhui pan
Currently drm-buddy does not have full knowledge of continuous memory. Lets consider scenario below. order 1:L R order 0: LL LR RL RR for order 1 allocation, it can offer L or R or LR+RL. For now, we only implement L or R case for continuous memory allocation. So

Re: 回复: [PATCH] drm/amdgpu: add amdgpu vram usage information into amdgpu_vram_mm

2022-11-26 Thread Arunpravin Paneer Selvam
On 11/25/2022 8:05 AM, Wang, Yang(Kevin) wrote: [AMD Official Use Only - General] -邮件原件- 发件人: Paneer Selvam, Arunpravin 发送时间: 2022年11月24日 22:57 收件人: Christian König ; Wang, Yang(Kevin) ; Koenig, Christian ; amd-gfx@lists.freedesktop.org 抄送: Deucher, Alexander ; Zhang, Hawking