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: Make sure ...
details: https://anonhg.NetBSD.org/src/rev/b59766749368
branches: trunk
changeset: 368726:b59766749368
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Jul 30 17:12:39 2022 +0000
description:
amdgpu: Make sure to bus_dmamap_sync before using zero'd dummy page.
diffstat:
sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r cc228045c2d3 -r b59766749368 sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c
--- a/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c Sat Jul 30 16:55:00 2022 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_gart.c Sat Jul 30 17:12:39 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amdgpu_gart.c,v 1.9 2022/07/30 16:55:00 riastradh Exp $ */
+/* $NetBSD: amdgpu_gart.c,v 1.10 2022/07/30 17:12:39 riastradh Exp $ */
/*
* Copyright 2008 Advanced Micro Devices, Inc.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_gart.c,v 1.9 2022/07/30 16:55:00 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_gart.c,v 1.10 2022/07/30 17:12:39 riastradh Exp $");
#include <linux/pci.h>
#include <linux/vmalloc.h>
@@ -105,6 +105,9 @@
if (error)
goto fail2;
+ bus_dmamap_sync(adev->ddev->dmat, adev->dummy_page_map, 0, PAGE_SIZE,
+ BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE);
+
/* Success! */
adev->dummy_page_addr = adev->dummy_page_map->dm_segs[0].ds_addr;
return 0;
Home |
Main Index |
Thread Index |
Old Index