drm/vmwgfx: Fix incorrect write to read-only register v2:
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 2 Jul 2014 13:47:04 +0000 (15:47 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 3 Jul 2014 12:00:14 +0000 (05:00 -0700)
commit4e578080ed3262ed2c3985868539bc66218d25c0
treed3c8b8257d7f35fe7e63fb3aabb88e5f608d160c
parent0fcb70c30131aac40f62ba13f89963d5c13b48a7
drm/vmwgfx: Fix incorrect write to read-only register v2:

Commit "drm/vmwgfx: correct fb_fix_screeninfo.line_length", while fixing a
vmwgfx fbdev bug, also writes the pitch to a supposedly read-only register:
SVGA_REG_BYTES_PER_LINE, while it should be (and also in fact is) written to
SVGA_REG_PITCHLOCK.

This patch is Cc'd stable because of the unknown effects writing to this
register might have, particularly on older device versions.

v2: Updated log message.

Cc: stable@vger.kernel.org
Cc: Christopher Friedt <chrisfriedt@gmail.com>
Tested-by: Christopher Friedt <chrisfriedt@gmail.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c