OSDN Git Service

drm/mgag200: Set PCI option register in G200SE models
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 4 Aug 2020 06:51:58 +0000 (08:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 5 Aug 2020 06:07:35 +0000 (08:07 +0200)
The initial value of the PCI option register got lost while refactoring
the driver init code. Restore the setting.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 2021708e0d6e ("drm/mgag200: Initialize PCI registers early during device setup")
Cc: Lyude Paul <lyude@redhat.com>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Emil Velikov <emil.velikov@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200804065158.21049-1-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_drv.c

index 5c854bc..09170d4 100644 (file)
@@ -74,6 +74,7 @@ static int mgag200_regs_init(struct mga_device *mdev)
                break;
        case G200_SE_A:
        case G200_SE_B:
+               option = 0x40049120;
                if (mgag200_has_sgram(mdev))
                        option |= PCI_MGA_OPTION_HARDPWMSK;
                option2 = 0x00008000;