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: Add a caut...



details:   https://anonhg.NetBSD.org/src/rev/3c226f6808ac
branches:  trunk
changeset: 1028973:3c226f6808ac
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:36:59 2021 +0000

description:
amdgpu: Add a cautionary comment about non-LP64 branch.

diffstat:

 sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 3e54e013e5d8 -r 3c226f6808ac sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c
--- a/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c Sun Dec 19 12:36:50 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c Sun Dec 19 12:36:59 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdgpu_device.c,v 1.13 2021/12/19 12:36:50 riastradh Exp $     */
+/*     $NetBSD: amdgpu_device.c,v 1.14 2021/12/19 12:36:59 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.13 2021/12/19 12:36:50 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_device.c,v 1.14 2021/12/19 12:36:59 riastradh Exp $");
 
 #include <linux/power_supply.h>
 #include <linux/kthread.h>
@@ -528,6 +528,9 @@
                bus_space_write_8(adev->doorbell.bst, adev->doorbell.bsh,
                    8*index, v);
 #else
+               /*
+                * XXX This might not be as atomic as one might hope...
+                */
 #if _BYTE_ORDER == _LITTLE_ENDIAN
                bus_space_write_4(adev->doorbell.bst, adev->doorbell.bsh,
                    8*index, v & 0xffffffffU);



Home | Main Index | Thread Index | Old Index