Avoid using GEM_BUG_ON() in display code.

Signed-off-by: Jani Nikula <jani.nik...@intel.com>
---
 drivers/gpu/drm/i915/display/intel_fbc.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c 
b/drivers/gpu/drm/i915/display/intel_fbc.c
index 817e5784660b..1cb9eec29640 100644
--- a/drivers/gpu/drm/i915/display/intel_fbc.c
+++ b/drivers/gpu/drm/i915/display/intel_fbc.c
@@ -333,12 +333,14 @@ static void i8xx_fbc_program_cfb(struct intel_fbc *fbc)
 {
        struct drm_i915_private *i915 = fbc->i915;
 
-       GEM_BUG_ON(range_overflows_end_t(u64, 
i915_gem_stolen_area_address(i915),
-                                        
i915_gem_stolen_node_offset(&fbc->compressed_fb),
-                                        U32_MAX));
-       GEM_BUG_ON(range_overflows_end_t(u64, 
i915_gem_stolen_area_address(i915),
-                                        
i915_gem_stolen_node_offset(&fbc->compressed_llb),
-                                        U32_MAX));
+       drm_WARN_ON(&i915->drm,
+                   range_overflows_end_t(u64, 
i915_gem_stolen_area_address(i915),
+                                         
i915_gem_stolen_node_offset(&fbc->compressed_fb),
+                                         U32_MAX));
+       drm_WARN_ON(&i915->drm,
+                   range_overflows_end_t(u64, 
i915_gem_stolen_area_address(i915),
+                                         
i915_gem_stolen_node_offset(&fbc->compressed_llb),
+                                         U32_MAX));
        intel_de_write(i915, FBC_CFB_BASE,
                       i915_gem_stolen_node_address(i915, &fbc->compressed_fb));
        intel_de_write(i915, FBC_LL_BASE,
-- 
2.39.2

Reply via email to