Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 12:36:59 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/dist/drm/amd/amdgpu: amdgpu_device.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 \
    src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c
diff -u src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c:1.13 src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c:1.14
--- src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c:1.13	Sun Dec 19 12:36:50 2021
+++ src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_device.c	Sun Dec 19 12:36:59 2021
@@ -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 @@ void amdgpu_mm_wdoorbell64(struct amdgpu
 		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);

Reply via email to