OpenCloudOS-Kernel/drivers/video/fbdev/matrox
Paul Menzel f685dd7a80 fbdev: matroxfb: G200eW: Increase max memory from 1 MB to 16 MB
Commit 62d89a7d49 ("video: fbdev: matroxfb: set maxvram of vbG200eW to
the same as vbG200 to avoid black screen") accidently decreases the
maximum memory size for the Matrox G200eW (102b:0532) from 8 MB to 1 MB
by missing one zero. This caused the driver initialization to fail with
the messages below, as the minimum required VRAM size is 2 MB:

     [    9.436420] matroxfb: Matrox MGA-G200eW (PCI) detected
     [    9.444502] matroxfb: cannot determine memory size
     [    9.449316] matroxfb: probe of 0000:0a:03.0 failed with error -1

So, add the missing 0 to make it the intended 16 MB. Successfully tested on
the Dell PowerEdge R910/0KYD3D, BIOS 2.10.0 08/29/2013, that the warning is
gone.

While at it, add a leading 0 to the maxdisplayable entry, so it’s aligned
properly. The value could probably also be increased from 8 MB to 16 MB, as
the G200 uses the same values, but I have not checked any datasheet.

Note, matroxfb is obsolete and superseded by the maintained DRM driver
mga200, which is used by default on most systems where both drivers are
available. Therefore, on most systems it was only a cosmetic issue.

Fixes: 62d89a7d49 ("video: fbdev: matroxfb: set maxvram of vbG200eW to the same as vbG200 to avoid black screen")
Link: https://lore.kernel.org/linux-fbdev/972999d3-b75d-5680-fcef-6e6905c52ac5@suse.de/T/#mb6953a9995ebd18acc8552f99d6db39787aec775
Cc: it+linux-fbdev@molgen.mpg.de
Cc: Z. Liu <liuzx@knownsec.com>
Cc: Rich Felker <dalias@libc.org>
Cc: stable@vger.kernel.org
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Helge Deller <deller@gmx.de>
2023-01-02 15:46:41 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
g450_pll.c video: fbdev: matroxfb: remove dead code and set but not used variable 2020-04-08 12:09:10 +02:00
g450_pll.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
i2c-matroxfb.c video: fbdev: matrox: convert to i2c_new_scanned_device 2019-11-28 17:19:20 +01:00
matroxfb_DAC1064.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
matroxfb_DAC1064.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matroxfb_Ti3026.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
matroxfb_Ti3026.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matroxfb_accel.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
matroxfb_accel.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matroxfb_base.c fbdev: matroxfb: G200eW: Increase max memory from 1 MB to 16 MB 2023-01-02 15:46:41 +01:00
matroxfb_base.h video: fbdev: aty/matrox/...: Prepare cleanup of powerpc's asm/prom.h 2022-04-04 08:55:23 +02:00
matroxfb_crtc2.c video: constify fb ops across all drivers 2019-12-05 10:57:53 +02:00
matroxfb_crtc2.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matroxfb_g450.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
matroxfb_g450.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matroxfb_maven.c fbdev: matroxfb: Convert to i2c's .probe_new() 2022-12-14 20:01:50 +01:00
matroxfb_maven.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matroxfb_misc.c fbdev: matrox: make array wtst_xlat static const, makes object smaller 2020-01-03 14:27:47 +01:00
matroxfb_misc.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00