linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] matroxfb: G200eW: Increase max memory from 1 MB to 16 MB
@ 2023-01-02 14:02 Paul Menzel
  2023-01-02 14:09 ` Problems with delivery to dalias@libc.org (was: [PATCH v2] matroxfb: G200eW: Increase max memory from 1 MB to 16 MB) Paul Menzel
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Menzel @ 2023-01-02 14:02 UTC (permalink / raw)
  To: Helge Deller, Z. Liu
  Cc: Paul Menzel, it+linux-fbdev, Rich Felker, stable, linux-fbdev,
	dri-devel, linux-kernel

Commit 62d89a7d49af ("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: 62d89a7d49af ("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@aerifal.cx>
Cc: stable@vger.kernel.org
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
---
Update Rich’s address.

 drivers/video/fbdev/matrox/matroxfb_base.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/video/fbdev/matrox/matroxfb_base.c b/drivers/video/fbdev/matrox/matroxfb_base.c
index 0d3cee7ae7268..a043a737ea9f7 100644
--- a/drivers/video/fbdev/matrox/matroxfb_base.c
+++ b/drivers/video/fbdev/matrox/matroxfb_base.c
@@ -1378,8 +1378,8 @@ static struct video_board vbG200 = {
 	.lowlevel = &matrox_G100
 };
 static struct video_board vbG200eW = {
-	.maxvram = 0x100000,
-	.maxdisplayable = 0x800000,
+	.maxvram = 0x1000000,
+	.maxdisplayable = 0x0800000,
 	.accelID = FB_ACCEL_MATROX_MGAG200,
 	.lowlevel = &matrox_G100
 };
-- 
2.39.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Problems with delivery to dalias@libc.org (was: [PATCH v2] matroxfb: G200eW: Increase max memory from 1 MB to 16 MB)
  2023-01-02 14:02 [PATCH v2] matroxfb: G200eW: Increase max memory from 1 MB to 16 MB Paul Menzel
@ 2023-01-02 14:09 ` Paul Menzel
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Menzel @ 2023-01-02 14:09 UTC (permalink / raw)
  To: Helge Deller, Z. Liu
  Cc: it+linux-fbdev, Rich Felker, stable, linux-fbdev, dri-devel,
	linux-kernel

[Cc: Back to dalias@libc.org]

Dear Linux folks,


Please ignore version 2.


Am 02.01.23 um 15:02 schrieb Paul Menzel:

[…]

> ---
> Update Rich’s address.

I should have read the undelivered message better:

```
<dalias@libc.org>: host brightrain.aerifal.cx[216.12.86.13] said: 
550-Message
     blocked for policy reasons: 550-Your mail system is forging its 
hostname.
     550 Message could not be delivered (in reply to end of DATA command)
```

I got the same for dalias@aerifal.cx. No idea, what is supposedly wrong 
with our setup:

     $ host mx.molgen.mpg.de
     mx.molgen.mpg.de has address 141.14.17.8
     $ host 141.14.17.8
     8.17.14.141.in-addr.arpa domain name pointer mx.molgen.mpg.de.


Kind regards,

Paul

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-02 14:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-02 14:02 [PATCH v2] matroxfb: G200eW: Increase max memory from 1 MB to 16 MB Paul Menzel
2023-01-02 14:09 ` Problems with delivery to dalias@libc.org (was: [PATCH v2] matroxfb: G200eW: Increase max memory from 1 MB to 16 MB) Paul Menzel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).