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 amdgp...
details: https://anonhg.NetBSD.org/src/rev/1c35652ca45e
branches: trunk
changeset: 368704:1c35652ca45e
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Jul 29 12:43:15 2022 +0000
description:
amdgpu: Make amdgpu_ttm_io_mem_pfn return pfn, not paddr.
diffstat:
sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ttm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7d14afb22a85 -r 1c35652ca45e sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ttm.c
--- a/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ttm.c Fri Jul 29 10:08:01 2022 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_ttm.c Fri Jul 29 12:43:15 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amdgpu_ttm.c,v 1.11 2022/07/20 01:11:54 riastradh Exp $ */
+/* $NetBSD: amdgpu_ttm.c,v 1.12 2022/07/29 12:43:15 riastradh Exp $ */
/*
* Copyright 2009 Jerome Glisse.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_ttm.c,v 1.11 2022/07/20 01:11:54 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_ttm.c,v 1.12 2022/07/29 12:43:15 riastradh Exp $");
#include <linux/dma-mapping.h>
#include <linux/iommu.h>
@@ -777,7 +777,7 @@
*/
const paddr_t cookie = bus_space_mmap(bo->bdev->memt, bo->mem.bus.base,
(mm->start + page_offset) << PAGE_SHIFT, /*vm_prot*/0, /*flags*/0);
- return pmap_phys_address(cookie);
+ return pmap_phys_address(cookie) >> PAGE_SHIFT;
#else
return (bo->mem.bus.base >> PAGE_SHIFT) + mm->start +
(offset >> PAGE_SHIFT);
Home |
Main Index |
Thread Index |
Old Index