Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10706667rwl; Mon, 2 Jan 2023 07:01:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXt1MzN/9oAbl1xIeVvN6UzLxynrgeCvrVPjIApQQH2dxNy8J62jYY08R9P6EC6Xi27CF38y X-Received: by 2002:a17:906:6b97:b0:805:1e6e:6777 with SMTP id l23-20020a1709066b9700b008051e6e6777mr39388753ejr.23.1672671715428; Mon, 02 Jan 2023 07:01:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672671715; cv=none; d=google.com; s=arc-20160816; b=ICFPuZTxWse7RsNJBxtmBRAfvGCytH7DVqK10cjJUev9G7q/2jQlI5AY//vvw7VvRj 0Dl3AuiNLyHRL0Fu10ZOovEYXZJp8MmmZlMr23kWOTUr2uK+YvOgw9CDN23X0txJOfyQ JRSE6Gb5FilBbmVrtJHjgP89z35tlAzXElqi61jbUcShgtnrzuL2gg7vmDWX9g8rGn7M cSoHlyDxQKvO0jbuN+f+hMWZFYaSCNAGa/RsUR/YFX6S/IX+EM8n+mqBtqNRLSTtAXU0 bHzj6S6HqISLnGouqbIbQP6CVkC9pkxLaMAPU7S4B2p6bONurcNOit5Fo4oUCLogBlTM jZbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=4O90IbHKLYCCVN4zUHfjaG6gZcC6tW6Mfw/sLcuvGAY=; b=o/zA4CuinPfb782Q0vN6HZL5v5Ss72mP3XdU6bh2ZfgwUIztfQ0vlfq2JvOPAxlq/4 wF64s8/bXxXz4pOigyhuORt2BKwf4Qp2MSXNTaytscOKzJcZIm/T8QklT99CmX/kGQMS LqZb1T99oEE/iRY2/RLm/h24ATaBkx4OjOnnqangoR77wOOgBWv8NUP3u0ooF0xP6bPS CDTNlFDOLoJ/OaJKS4mz7UpF4zY4asOnd+NVK8qNjGNmWOgenTkVfWiMSHNo0t/JNQvk JvU7QxGbmsoy3X9hhwv/j5e3wNG6eJ8TtmracVNjSnTnBDeA7Qpb8OC9/YJR5qTnPz9q 1YgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=sD1gBsVq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a1709066d5500b007c0fd176698si21688557ejt.772.2023.01.02.07.01.04; Mon, 02 Jan 2023 07:01:55 -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; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=sD1gBsVq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236022AbjABOs7 (ORCPT + 61 others); Mon, 2 Jan 2023 09:48:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232942AbjABOss (ORCPT ); Mon, 2 Jan 2023 09:48:48 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C84966465; Mon, 2 Jan 2023 06:48:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1672670903; bh=cUUTc8Fvgowvs3kRn4xQ5Ko18CAYd2NLfEAuO5+9Il0=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=sD1gBsVq08UZG71PKBLJYyt449w8RFoLAtADqA7lKzYYXIiP4q1IrLsA5nsx/puCh PbP1yLh92PZwboVF6SaxJ7E8Z8XfthrzMjOyHyKrShzBin83Pw1HHow18vG8r4NTZy wwRq7pVdKlZMMHb/+CbolLS51iG0mTestS/4NWMMs4AZHVffTQrA9wtfCzMM0lqOcT BEUCVlutiiFB2krRoHQJuTKTEWQhksOw/IMNR02m2b4TV70Yxr/W9ulk0zT7wNLWm4 jthcfUy3hDU+57pjRq8sAWQAYlTt9SQdB7D4QDQskV4H4+jcRQCFflgApd6EDXNomR pHT/4H+IRSLDg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.60] ([92.116.130.137]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MN5if-1pVG2U07HB-00J0eB; Mon, 02 Jan 2023 15:48:23 +0100 Message-ID: <17a2982e-f4e8-f8bd-db8f-dd14bf27b4e7@gmx.de> Date: Mon, 2 Jan 2023 15:48:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH] matroxfb: G200eW: Increase max memory from 1 MB to 16 MB Content-Language: en-US To: Paul Menzel , "Z. Liu" Cc: 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 References: <20230102135731.6487-1-pmenzel@molgen.mpg.de> From: Helge Deller In-Reply-To: <20230102135731.6487-1-pmenzel@molgen.mpg.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:8eWfw4Opnqkzxf+1Ev79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OOhcVCD/5W2hR7pwVVO79jBs5hxciNYe1zTMdGXV18cQYWDhJkGycY/4FMGguvYDa HGQwEcdA3cISEpcezc1sE1IW2VoGozI7w93+vS0VYCV31i/DC1QaEsCWDBgR4MVjQy/j0JNsm 0cvPRuBttroAuvFizkPwr2NbmPY= X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,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 On 1/2/23 14:57, Paul Menzel wrote: > 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=E2=80=99= 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-6e6905= c52ac5@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 applied this v1 version to the fbdev git tree. Thanks! Helge > --- > 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 =3D { > .lowlevel =3D &matrox_G100 > }; > static struct video_board vbG200eW =3D { > - .maxvram =3D 0x100000, > - .maxdisplayable =3D 0x800000, > + .maxvram =3D 0x1000000, > + .maxdisplayable =3D 0x0800000, > .accelID =3D FB_ACCEL_MATROX_MGAG200, > .lowlevel =3D &matrox_G100 > };