drm/i915: Fix PIPE_CONTROL command on Sandybridge
authorZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 27 May 2010 02:26:42 +0000 (10:26 +0800)
committerEric Anholt <eric@anholt.net>
Fri, 28 May 2010 18:11:23 +0000 (11:11 -0700)
commitca76482e0f4b64942c704fa11c620ffd1bdd8475
treeefc46cd10d124d04569be2e6e4411aa45a694d91
parentab34c226812588de8f341ce48eb32c3fef5155a9
drm/i915: Fix PIPE_CONTROL command on Sandybridge

Sandybridge(Gen6) has new format for PIPE_CONTROL command,
the flush and post-op control are in dword 1 now. This
changes command length field for difference between Ironlake
and Sandybridge.

I tried to test this with noop request and issue PIPE_CONTROL
command for each sequence and track notify interrupts, which
seems work fine. Hopefully we don't need workaround like on
Ironlake for Sandybridge.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_ringbuffer.c