Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10716702rwl; Mon, 2 Jan 2023 07:08:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXsWa0HobNcJWgO4ADZ9gXVjJ6KqwVLgKYOSs52XZ+d6j8nNa2DEY+VoLQFCmRK45ZPqbPbC X-Received: by 2002:a17:903:1d0:b0:18f:a447:2254 with SMTP id e16-20020a17090301d000b0018fa4472254mr56722155plh.64.1672672106371; Mon, 02 Jan 2023 07:08:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672672106; cv=none; d=google.com; s=arc-20160816; b=QqY0N3WCp2aSS+OSmi+GGtJK0VXgRxkmVQfMjfF6BOSZ8F9MfaSQkI/OVWJbdxuqnl mydQMge9GxRZnK948yNJMa+1snpHWt4kHGQeBaAJJAKORRHOhq7Ig8YWSnwe6ze4q0QT E0G9OU9ZH0xMUeCb5OMKjZKATXeaUjMcAOcxh5DQXB9/xUHJHIVc5+4ZAJXKmxX7nTs4 x9WIbX6gWmj00Be8vGGNADj0RyNBPi1to0dmUC2S+bc1u4fRxRu6Av/1cHNQU5eHiqQv /phjTBhSWOIcPzrPkl+23oA1LiOmLz/+ReFfDgnkzCQsR2sq3riQWIAwQ+NZYw0ssyG6 NMuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=9YEZQL2Aj7V5scuEYzUgSnV2kH19dvbSvGPkKhZeWkg=; b=Kl0up63IAQZ3iGWP4bwf96goARIMODPn9JOUXnnSaR//qRpQLXzE9X6pd6x3/S4fiS cf187aP2LwbyEDJpHzp/QzvbAsda9B87mec7uZfDfOmRwRAfzyfdQ0W6HfVvHHxiKML8 OrhuRMlYUxBR/A8QgF4v8F8oP3y88GggpWri18vA09ksLTsT3SouUOPeKGsWlq9WeB9L IBNXURKWv1dzTvVLthWYBfFb4P9m+0sekh2VqiHjTtSC3aeJehRo+KLi7OCWV6L32Dvj 2pTLPCHrLxGbwc4jE3Cfr4kLTQ/AGqH4Zt3N6OxnoII6TOOkJJd1/tYYqebWu9ET3/Oo Ge9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e14-20020a170903240e00b0019257c9a24esi4090308plo.67.2023.01.02.07.08.18; Mon, 02 Jan 2023 07:08:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236035AbjABN6E (ORCPT + 61 others); Mon, 2 Jan 2023 08:58:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232531AbjABN6C (ORCPT ); Mon, 2 Jan 2023 08:58:02 -0500 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77DE026A; Mon, 2 Jan 2023 05:58:00 -0800 (PST) Received: from handsomejack.molgen.mpg.de (handsomejack.molgen.mpg.de [141.14.17.248]) by mx.molgen.mpg.de (Postfix) with ESMTP id 5E15B60027FC1; Mon, 2 Jan 2023 14:57:57 +0100 (CET) From: Paul Menzel To: Helge Deller , "Z. Liu" Cc: Paul Menzel , it+linux-fbdev@molgen.mpg.de, Rich Felker , stable@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] matroxfb: G200eW: Increase max memory from 1 MB to 16 MB Date: Mon, 2 Jan 2023 14:57:30 +0100 Message-Id: <20230102135731.6487-1-pmenzel@molgen.mpg.de> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Rich Felker Cc: stable@vger.kernel.org Signed-off-by: Paul Menzel --- 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