CHROMIUM: HACK: drm/i915: Don't warn on pin_count < 0
authorSean Paul <seanpaul@chromium.org>
Fri, 18 Jan 2013 16:37:00 +0000 (11:37 -0500)
committerChromeBot <chrome-bot@google.com>
Sat, 19 Jan 2013 14:22:16 +0000 (06:22 -0800)
commit9c84b3c6d04050d8880fc845390a873ff7b6a122
treebee9f5ec1bac8363251653e7ab8529450fcd6ce8
parent6625e780bacf270b6da346751819d2825f09c20a
CHROMIUM: HACK: drm/i915: Don't warn on pin_count < 0

We've had some warnings on resume with an external monitor connected
where the pin_count for the fb's fence register is less than zero. After
some analysis, we're unpinning it twice on resume, once via set_base on
mode_set and then again when we do an rmfb from userspace.

The warning isn't terribly interesting when pin_count is less than zero,
and the relevant code has been refactored upstream such that it's likely
not an issue any longer.

This hack avoids warning when pin count is negative.

BUG=chrome-os-partner:12670
TEST=Tested manually with link connected to DP display. Idle
suspend/resume and check the logs for WARNING.

Change-Id: Idba3e75e48d085faa5bff5f7f165eaef595829be
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/41639
Reviewed-by: Mandeep Singh Baines <msb@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
drivers/gpu/drm/i915/i915_gem.c