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: Fix bogus ...



details:   https://anonhg.NetBSD.org/src/rev/a838cdba527e
branches:  trunk
changeset: 1028922:a838cdba527e
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:29:25 2021 +0000

description:
amdgpu: Fix bogus assertion about number of DMA segments.

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 2e2f9aa73cbe -r a838cdba527e 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:16 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ih.c     Sun Dec 19 12:29:25 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdgpu_ih.c,v 1.8 2021/12/19 12:02:39 riastradh Exp $  */
+/*     $NetBSD: amdgpu_ih.c,v 1.9 2021/12/19 12:29:25 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.8 2021/12/19 12:02:39 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_ih.c,v 1.9 2021/12/19 12:29:25 riastradh Exp $");
 
 #include <linux/dma-mapping.h>
 
@@ -76,7 +76,7 @@
 fail0:                 KASSERT(r);
                        return r;
                }
-               KASSERT(rseg == 0);
+               KASSERT(rseg == 1);
                r = -bus_dmamap_create(adev->ddev->dmat, size, 1, PAGE_SIZE, 0,
                    BUS_DMA_WAITOK, &ih->ring_map);
                if (r) {



Home | Main Index | Thread Index | Old Index