From de73e2d7418d6a3551a5a61558210f779c784b8a Mon Sep 17 00:00:00 2001 From: lauyarn Date: Thu, 7 Nov 2024 13:07:58 +0000 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5uacce=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=A1=A5=E4=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lauyarn --- KAEKernelDriver/KAEKernelDriver-OLK-6.6/uacce/uacce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KAEKernelDriver/KAEKernelDriver-OLK-6.6/uacce/uacce.c b/KAEKernelDriver/KAEKernelDriver-OLK-6.6/uacce/uacce.c index 39801da..f918e6a 100644 --- a/KAEKernelDriver/KAEKernelDriver-OLK-6.6/uacce/uacce.c +++ b/KAEKernelDriver/KAEKernelDriver-OLK-6.6/uacce/uacce.c @@ -478,7 +478,7 @@ static int uacce_alloc_dma_buffers(struct uacce_queue *q, { struct uacce_qfile_region *qfr = q->qfrs[UACCE_QFRT_SS]; unsigned long size = vma->vm_end - vma->vm_start; - unsigned long max_size = PAGE_SIZE << (MAX_ORDER - 1); + unsigned long max_size = PAGE_SIZE << MAX_ORDER; struct device *pdev = q->uacce->parent; struct uacce_device *uacce = q->uacce; unsigned long start = vma->vm_start; -- Gitee