diff options
author | Christopher Harvey <charvey@matrox.com> | 2013-04-12 16:42:19 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-05-12 22:16:36 -0400 |
commit | 9d8aa55ff6bd21f573581a29da32ad746f2edcfb (patch) | |
tree | b1029d39308794bd4cd26d74c9019561df785ffd | |
parent | b2dfcae3cc6802e897556e09541080309cfdec60 (diff) |
drm/mgag200: Don't change unrelated registers during modeset
Registers in indices below 0x18 are totally unrelated to modesetting,
so don't write 0's, or anything else into them on modeset. Most of
these registers are hardware cursor related, so this existing code
interferes with hardware cursor development.
Signed-off-by: Christopher Harvey <charvey@matrox.com>
Tested-by: Julia Lemire <jlemire@matrox.com>
Acked-by: Julia Lemire <jlemire@matrox.com>
Acked-by: Mathieu Larouche <mathieu.larouche@matrox.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/mgag200/mgag200_mode.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c index 7337013a4a0e..2affe7af6cbb 100644 --- a/drivers/gpu/drm/mgag200/mgag200_mode.c +++ b/drivers/gpu/drm/mgag200/mgag200_mode.c | |||
@@ -832,11 +832,7 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc, | |||
832 | 832 | ||
833 | 833 | ||
834 | for (i = 0; i < sizeof(dacvalue); i++) { | 834 | for (i = 0; i < sizeof(dacvalue); i++) { |
835 | if ((i <= 0x03) || | 835 | if ((i <= 0x17) || |
836 | (i == 0x07) || | ||
837 | (i == 0x0b) || | ||
838 | (i == 0x0f) || | ||
839 | ((i >= 0x13) && (i <= 0x17)) || | ||
840 | (i == 0x1b) || | 836 | (i == 0x1b) || |
841 | (i == 0x1c) || | 837 | (i == 0x1c) || |
842 | ((i >= 0x1f) && (i <= 0x29)) || | 838 | ((i >= 0x1f) && (i <= 0x29)) || |