Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/amd/amdgpu amdgpu: Set a sens...
details: https://anonhg.NetBSD.org/src/rev/1a2fc38605d1
branches: trunk
changeset: 1028923:1a2fc38605d1
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:29:33 2021 +0000
description:
amdgpu: Set a sensible maxsegsz for ih ring DMA map.
We need this to fit in one contiguous segment, so the maxsegsz had
better be at least the size we ask for, not something much smaller!
diffstat:
sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ih.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a838cdba527e -r 1a2fc38605d1 sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ih.c
--- a/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ih.c Sun Dec 19 12:29:25 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ih.c Sun Dec 19 12:29:33 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amdgpu_ih.c,v 1.9 2021/12/19 12:29:25 riastradh Exp $ */
+/* $NetBSD: amdgpu_ih.c,v 1.10 2021/12/19 12:29:33 riastradh Exp $ */
/*
* Copyright 2014 Advanced Micro Devices, Inc.
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_ih.c,v 1.9 2021/12/19 12:29:25 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_ih.c,v 1.10 2021/12/19 12:29:33 riastradh Exp $");
#include <linux/dma-mapping.h>
@@ -77,7 +77,7 @@
return r;
}
KASSERT(rseg == 1);
- r = -bus_dmamap_create(adev->ddev->dmat, size, 1, PAGE_SIZE, 0,
+ r = -bus_dmamap_create(adev->ddev->dmat, size, 1, size, 0,
BUS_DMA_WAITOK, &ih->ring_map);
if (r) {
fail1: bus_dmamem_free(adev->ddev->dmat, &ih->ring_seg, 1);
Home |
Main Index |
Thread Index |
Old Index