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/radeon add timeout period to ...



details:   https://anonhg.NetBSD.org/src/rev/b36c6897c1ac
branches:  trunk
changeset: 366616:b36c6897c1ac
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Jun 02 06:51:48 2022 +0000

description:
add timeout period to timeout message.

seen on radeon 5450 on an asrock m/b with ryzen 5600g cpu.

diffstat:

 sys/external/bsd/drm2/dist/drm/radeon/radeon_r600_dma.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 0b174a2967ec -r b36c6897c1ac sys/external/bsd/drm2/dist/drm/radeon/radeon_r600_dma.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_r600_dma.c   Thu Jun 02 06:50:04 2022 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_r600_dma.c   Thu Jun 02 06:51:48 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeon_r600_dma.c,v 1.2 2021/12/18 23:45:43 riastradh Exp $    */
+/*     $NetBSD: radeon_r600_dma.c,v 1.3 2022/06/02 06:51:48 mrg Exp $  */
 
 /*
  * Copyright 2013 Advanced Micro Devices, Inc.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeon_r600_dma.c,v 1.2 2021/12/18 23:45:43 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeon_r600_dma.c,v 1.3 2022/06/02 06:51:48 mrg Exp $");
 
 #include "radeon.h"
 #include "radeon_asic.h"
@@ -271,8 +271,8 @@
        if (i < rdev->usec_timeout) {
                DRM_INFO("ring test on %d succeeded in %d usecs\n", ring->idx, i);
        } else {
-               DRM_ERROR("radeon: ring %d test failed (0x%08X)\n",
-                         ring->idx, tmp);
+               DRM_ERROR("radeon: ring %d test failed (0x%08X) after %u usecs\n",
+                         ring->idx, tmp, rdev->usec_timeout);
                r = -EINVAL;
        }
        return r;



Home | Main Index | Thread Index | Old Index