Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1622697iob; Thu, 19 May 2022 10:25:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkfp36EYG1j5frNKQVfIPfyrGXg+00L6LVHtIVWYxiI9EYWHL5IbsEionC98tmKM7nSRv9 X-Received: by 2002:aa7:d817:0:b0:42a:fc10:7f89 with SMTP id v23-20020aa7d817000000b0042afc107f89mr4660520edq.417.1652981148966; Thu, 19 May 2022 10:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652981148; cv=none; d=google.com; s=arc-20160816; b=XPK6JabkHRiW4RGFOz8koPa0fAV6Dkwf9meU63VuH2cJrj9/Q62YB8y4Wti7RhrksO YJwV3XD0k5MXZuyCcxdyciyMxbnQxkqp5iQwf1V9r1f6ePIKMs/RFvNjkFwbgBI6E4rP AOig/jm+RPj1k+AP3J06t7F/gEj7yBdp0e5r/88JifDALY3K0xqVP7WK11wNp1dWCGho 1YMqboIhyIUV2GY84TaXjdtAhw50Q/rU8vmXjKZi1UyR0JSLiG9r7RPqmlSwO7r2HKja W18sXR5FQKpMXNo64aD61eYUUOPueO1cca4kcC+OAuVa9AxPIEupAGn5VXOVdKsNTGYU 95Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=XBo1NneBYaCI0UOK+HKIDKN4pYqG9tpoK50kb45Qj8g=; b=Q/Fgho84Q82tvbLcew6JeTmHzH+ucEN7SCWKd/FnXUHC56b+2H8aC2WZBfl+3ySqtX Rv5CZ+HYn5lzz3GOQL5TFBCHVn94bZpWELP8wR0NyA49ntDz/vdoS3z+H8llFA+/c0G6 aXaQoYV9HcZ5QI0EeHUBz80Ydn+TQqjvL37H/D4OpJfTRYDyjI130GoSbG9jeADEw4PI thPKD0iyhHX/Ue+O7cF47qU+rTg7DabmZ0tfdSe1Pxq2PbupaXo/ddsc6dHBAatML+HL 3P7YM288Q8eskpI4c6dEy72HK+CNp+klYAp9/43skcjGxvZI1bGU63xzYfWyfbns/GiN 53KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Q7XUbDCe; 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=fail (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 j11-20020a05640211cb00b0042b0f6605e6si549066edw.38.2022.05.19.10.25.22; Thu, 19 May 2022 10:25:48 -0700 (PDT) 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.net header.s=badeba3b8450 header.b=Q7XUbDCe; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235804AbiESJJH (ORCPT + 99 others); Thu, 19 May 2022 05:09:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231249AbiESJJF (ORCPT ); Thu, 19 May 2022 05:09:05 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA032192A0; Thu, 19 May 2022 02:09:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1652951329; bh=mow7febAtsiXYt2cZHELtD6fs3k1Y7cifTC+AMdNbm0=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=Q7XUbDCe/LyabFtLQpRjysmhHzaRsSwCdcHc+mrcAYOGzcs0LSXZcRCcgzgnBy/im w+l4DmLAMLok/mR0RApY5ubSsczXO26OtS5cuCfWdj/j11+fJqiMDdQVwzB+Maye2l 9Ad5tc97i0BWDshy7GVopNg7faEfOkjyEGZq970k= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.152.7]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MacOW-1nKCLL02Ic-00cAlv; Thu, 19 May 2022 11:08:49 +0200 Message-ID: <4d8738fd-f8da-9e6b-3dae-f6b8f3bf6a73@gmx.de> Date: Thu, 19 May 2022 11:08:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] video: hyperv_fb: Allow resolutions with size > 64 MB for Gen1 Content-Language: en-US To: Dexuan Cui , Haiyang Zhang , Wei Liu , Saurabh Sengar , "Michael Kelley (LINUX)" Cc: Saurabh Singh Sengar , KY Srinivasan , Stephen Hemminger , "linux-hyperv@vger.kernel.org" , "linux-fbdev@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" References: <1651067273-6635-1-git-send-email-ssengar@linux.microsoft.com> <20220428143746.sya775ro5zi3kgm3@liuwe-devbox-debian-v2> From: Helge Deller In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:fsFTwQueqwO4oFMtMruopc536RUFH/jkjJGavwLAcqZycaqXjKl aOAvA6Enmc0kqQQBV3TrqonTive5CT4O7gHe3MPJeNp2X3m8uC/4yhlJhTnkHSVOq6jNsJZ v3BydNMRZ8uTe/2zMOG16g07i7t21L6nbs3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2JjITrDKayTfuGQopb4uobHLGDhIGJp2Vt7NAjRnyUye1hLs SJxLeX13NccWP/m3vmSvndxTefv50l9wr8KKdxuTjVzI6gDImgX6O5eFsVXyEGEvGcmTzZIsT LI1zrywtOLR7OdrjOi9bLeob6a6fkoAdM3pjUQwY3Qcmq5iK/QEVk6Apg== X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 5/18/22 20:48, Dexuan Cui wrote: >> From: Dexuan Cui >> Sent: Wednesday, May 4, 2022 10:05 AM >> To: Haiyang Zhang ; Wei Liu ; >>> ... >>> When I initially implemented this driver 10 years ago, I believe there >>> was smaller limit for the fb... But I think this patch is good for the >>> newer MMIO alloc scheme. I hope to see reviews also from >>> @Dexuan Cui @Michael Kelley (LINUX) who are more familiar with >>> the PCI/BAR/MMIO area. >>> >>> Thanks, >>> - Haiyang >> >> The patch looks good to me but I suggest we check with the Hyper-V >> team to figure out how a Gen1 Windows VM supports a higher >> resolution that needs a VRAM size of more than 64MB. Just in case we >> miss something.. >> >> Thanks, >> -- Dexuan > > Reviewed-by: Dexuan Cui > > Saurabh checked this with Hyper-V team, who said there is no > Generation 1-specific block for larger VRAM sizes in Windows VM. > > When the driver was originally developed, we didn't have the API > vmbus_allocate_mmio(), and I guess we just used the PCI device's BAR > address for simplicity, and didn't realize the restriction with very hig= h > resolutions that require >64 MB VRAM. It looks like the synthetic > VMBus framebuffer device doesn't have to use the same MMIO range > used by the Hyper-V legacy PCI framebuffer device, so the patch > looks good to me. Thanks for the review, Dexuan! I've applied this patch now to the fbdev git tree. > BTW, please check the hyperv-drm driver as well: > drivers/gpu/drm/hyperv/hyperv_drm_drv.c > I think we should make the same change there to support 7680x4320 > for Gen1 VMs. Haiyang, can you check that as well and send another patch for the drm tree ? Helge