sgl:fix large memory allocation problem in sgl
driver inclusion category: bugfix bugzilla: NA CVE: NA Currently sgl memory is allocated as block which size is page_size *(1 << (max_order - 1)),which will be very large when page_size and max_order are big. This patches fix this problem by allocating sgl memory as needed when needed memory is less than one block. Feature or Bugfix:Bugfix Signed-off-by: NZhou Wang <wangzhou1@hisilicon.com> Signed-off-by: Nshenyang39 <shenyang39@huawei.com> Reviewed-by: NLing Mingqiang <lingmingqiang@huawei.com> Reviewed-by: NYang Yingliang <yangyingliang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录