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 Read from the data...
details: https://anonhg.NetBSD.org/src/rev/015f0231145f
branches: trunk
changeset: 993036:015f0231145f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 14:54:08 2018 +0000
description:
Read from the data register, not the index we just wrote.
diffstat:
sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 84b6b9551df2 -r 015f0231145f sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c
--- a/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c Mon Aug 27 14:53:54 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c Mon Aug 27 14:54:08 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amdgpu_device.c,v 1.3 2018/08/27 14:04:50 riastradh Exp $ */
+/* $NetBSD: amdgpu_device.c,v 1.4 2018/08/27 14:54:08 riastradh Exp $ */
/*
* Copyright 2008 Advanced Micro Devices, Inc.
@@ -28,7 +28,7 @@
* Jerome Glisse
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_device.c,v 1.3 2018/08/27 14:04:50 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_device.c,v 1.4 2018/08/27 14:54:08 riastradh Exp $");
#include <linux/console.h>
#include <linux/slab.h>
@@ -96,7 +96,7 @@
bus_space_write_4(adev->rmmiot, adev->rmmioh, 4*mmMM_INDEX,
4*reg);
ret = bus_space_read_4(adev->rmmiot, adev->rmmioh,
- 4*mmMM_INDEX);
+ 4*mmMM_DATA);
#else
writel((reg * 4), ((void __iomem *)adev->rmmio) + (mmMM_INDEX * 4));
ret = readl(((void __iomem *)adev->rmmio) + (mmMM_DATA * 4));
Home |
Main Index |
Thread Index |
Old Index