diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
| -rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 882a7352b9b..f7d88e99ebf 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -319,7 +319,7 @@ static int i915_gem_pageflip_info(struct seq_file *m, void *data)  			seq_printf(m, "No flip due on pipe %c (plane %c)\n",  				   pipe, plane);  		} else { -			if (!work->pending) { +			if (atomic_read(&work->pending) < INTEL_FLIP_COMPLETE) {  				seq_printf(m, "Flip queued on pipe %c (plane %c)\n",  					   pipe, plane);  			} else { @@ -330,7 +330,7 @@ static int i915_gem_pageflip_info(struct seq_file *m, void *data)  				seq_printf(m, "Stall check enabled, ");  			else  				seq_printf(m, "Stall check waiting for page flip ioctl, "); -			seq_printf(m, "%d prepares\n", work->pending); +			seq_printf(m, "%d prepares\n", atomic_read(&work->pending));  			if (work->old_fb_obj) {  				struct drm_i915_gem_object *obj = work->old_fb_obj;  |