If we timeout while waiting for an FLR reset, there is nothing we
can do and i915 doesn't have any control on it. In any case the
system is still perfectly usable and the function returns void.

We don't need to be alarmed, therefore, print the timeout
expiration as a debug message instead of an error.

Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10955
Signed-off-by: Andi Shyti <andi.sh...@linux.intel.com>
---
 drivers/gpu/drm/i915/intel_uncore.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_uncore.c 
b/drivers/gpu/drm/i915/intel_uncore.c
index 2eba289d88ad..a3fa2ed91aae 100644
--- a/drivers/gpu/drm/i915/intel_uncore.c
+++ b/drivers/gpu/drm/i915/intel_uncore.c
@@ -2637,7 +2637,7 @@ static void driver_initiated_flr(struct intel_uncore 
*uncore)
         */
        ret = intel_wait_for_register_fw(uncore, GU_CNTL, DRIVERFLR, 0, 
flr_timeout_ms);
        if (ret) {
-               drm_err(&i915->drm,
+               drm_dbg(&i915->drm,
                        "Failed to wait for Driver-FLR bit to clear! %d\n",
                        ret);
                return;
@@ -2652,7 +2652,7 @@ static void driver_initiated_flr(struct intel_uncore 
*uncore)
                                         DRIVERFLR, 0,
                                         flr_timeout_ms);
        if (ret) {
-               drm_err(&i915->drm, "Driver-FLR-teardown wait completion 
failed! %d\n", ret);
+               drm_dbg(&i915->drm, "Driver-FLR-teardown wait completion 
failed! %d\n", ret);
                return;
        }
 
@@ -2661,7 +2661,7 @@ static void driver_initiated_flr(struct intel_uncore 
*uncore)
                                         DRIVERFLR_STATUS, DRIVERFLR_STATUS,
                                         flr_timeout_ms);
        if (ret) {
-               drm_err(&i915->drm, "Driver-FLR-reinit wait completion failed! 
%d\n", ret);
+               drm_dbg(&i915->drm, "Driver-FLR-reinit wait completion failed! 
%d\n", ret);
                return;
        }
 
-- 
2.43.0

Reply via email to