Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1028240iob; Wed, 4 May 2022 13:03:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlxFE+O0Nf2l3lyntBglTj0KjEwKqS21ZlRchpl8WhQyO5O73zRswUuQECAJTg7P1FPezX X-Received: by 2002:a05:6402:350a:b0:423:e41e:75cb with SMTP id b10-20020a056402350a00b00423e41e75cbmr25123190edd.178.1651694580217; Wed, 04 May 2022 13:03:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1651694580; cv=pass; d=google.com; s=arc-20160816; b=yAl3t+RSLqNWwEF8+GEtwLx/V33TUZGKogA7mdTNhu5Q8fkJ+OVy9oidrLDeJ0QFup IYMwkQiPwLODZZkbplRSloLDY8bZG9g5dpjAqa0uHCcODP6wBHqeN+m5hhSj+9t1ZvE4 nswL0oN7VAMC3NwOj40Fr68OQi6jX73R65LUZl6EQqzcozGamJC57EVQ/1aKZG3npCik eaAH44GPKx4iVvuxEhYvg9roZck+2C1UkMzGsrEXnGT5snDciiAQXiPZFmwsfoIrZmV7 PcZd2xO3E7XFWG1Cs7cWTHevZ6ocwRB8DAfQodw7cbPaayFd2cWEhQ6O9j4cuLfvik0D ul3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=YLNmxYwXCQsvlHropPxYeImfD9DWBZpfKrrJ8YPB9ZI=; b=mC8FPDDsDa+igh5U+X/pNNSlaN0Ae6gKWnMD+AQZLzJ+kn7nT6UG/f1tdeTWiS85m0 X+hKTbbyZ67gqcoRN98v20e6Pm27tvg/KvxFC+t1bcNZIZZVoBO1EFUHbFmMTGzMWDuB dDjaEKW0CrcN70d/Y8VWxFJPDj3jDn+0EQ3euNPMMK2wKwh0+Ok+CboTItrF74w5giqm xdHcRLMQqGH05Ee7sNRRr1jfos1odHsmBoWXvoGPE26BYfBcQTfYKLFT1GdSLKIJtQ1Q 3uD0/sy13Z7EapAarBY8mGic0u975QssZNnf1fQ7yXUYwmmJxWqDK+NB5xTqxUBEOV8v G5Dw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=gd5+b9+6; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a05640205ca00b00427f937dbd5si3667034edx.22.2022.05.04.13.02.34; Wed, 04 May 2022 13:03:00 -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=@microsoft.com header.s=selector2 header.b=gd5+b9+6; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357737AbiEDRzg (ORCPT + 99 others); Wed, 4 May 2022 13:55:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359144AbiEDRje (ORCPT ); Wed, 4 May 2022 13:39:34 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2109.outbound.protection.outlook.com [40.107.220.109]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80B495DBF9; Wed, 4 May 2022 10:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ST6fueZhtkCmmn3DBIHL5c2SCfli9CTA6xcBPB13//Zj39POTj0Iskv6wgpacuL+5/ElyrcvRGij/UV4RuroKnEZqftr6OMf5LNm2oaS7La6mdQQn7R4lb+4E9VaoekexSPU7hP2Ivv6Qb3shllR3ifwrRd42EC0VqTkazitbCqmjNfeFYfJT5y5CHVS0mJaQ0bhaSk1Dr7jz8N010STiJlxlAM5OujRrjg3CdgPs8VAN9RHU+1W3nNJJVWGC2hEIlDD8Vva+DIEBpHumXYhhJsWlkH/ghXwWRHsI7BBbTe9ADEBaqYojLpIxK5KieA2zBSAR58sundiKi6F+IG+cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YLNmxYwXCQsvlHropPxYeImfD9DWBZpfKrrJ8YPB9ZI=; b=Td8hHIjDBc6Qm1r/Ed9oxzjNr8uVPltivF/bqu2wFIW+I92e+pSkg4SbZO5DtSfERaHpkdNfRAsJ5/Vkjwhra9kElvuid+yyEhqYN5ognHpH9pVw07JmkT5aSwGQL81J/hSCYahYG6a8rv2DdvjZ2Hb9n4iA+uUzNQexFjKPCyol5sDsjvSbUS5pfYJYE/5s7fTECYVP5sgXxa2pmUh1NHRbm6bOapyB7srOU9RMSo/5ffDqTEWE4FyyZ+RaFouJi1SfI4QMik9aG5li/AE8VglsecYBhHbbj2YgdVhh4XPC7sIkrSelLidOiE0GUmN8wDJEofyR3O7OKJTlm+16ow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YLNmxYwXCQsvlHropPxYeImfD9DWBZpfKrrJ8YPB9ZI=; b=gd5+b9+6DY2dRxZPf7uDLR+CoJhAyeT4CbGO9maZk+NrjTaVmyRQ+HU6M0gxK8fVk9WdVFWju5TD1S0vsM/iBJSeifkf5V18Y6e18VD/+B29TifSb+pjq7L/DIC2JH7n0huM0DN7k4O79q8muv1L1Wu4LoYe+h4RI2i+QqawxoQ= Received: from BYAPR21MB1270.namprd21.prod.outlook.com (2603:10b6:a03:105::15) by DM4PR21MB3251.namprd21.prod.outlook.com (2603:10b6:8:6b::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.8; Wed, 4 May 2022 17:05:06 +0000 Received: from BYAPR21MB1270.namprd21.prod.outlook.com ([fe80::2823:3bd7:8a28:4203]) by BYAPR21MB1270.namprd21.prod.outlook.com ([fe80::2823:3bd7:8a28:4203%9]) with mapi id 15.20.5250.004; Wed, 4 May 2022 17:05:06 +0000 From: Dexuan Cui To: Haiyang Zhang , Wei Liu , Saurabh Sengar , "Michael Kelley (LINUX)" CC: Saurabh Singh Sengar , KY Srinivasan , Stephen Hemminger , "deller@gmx.de" , "linux-hyperv@vger.kernel.org" , "linux-fbdev@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] video: hyperv_fb: Allow resolutions with size > 64 MB for Gen1 Thread-Topic: [PATCH] video: hyperv_fb: Allow resolutions with size > 64 MB for Gen1 Thread-Index: AQHYX9YSthbGf8K4qEaTeH9fJ7H5Eq0O8UBQ Date: Wed, 4 May 2022 17:05:05 +0000 Message-ID: References: <1651067273-6635-1-git-send-email-ssengar@linux.microsoft.com> <20220428143746.sya775ro5zi3kgm3@liuwe-devbox-debian-v2> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=ea6efad5-303e-4efd-b054-9cb15ed3afe4;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2022-05-04T16:37:53Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e2e70ddb-0167-4787-c85d-08da2df03cb2 x-ms-traffictypediagnostic: DM4PR21MB3251:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DoSvGW+NkpNziCU7zuY++5AYq9Afmg2vIxLfZP4hdwFFJMkF7qywB0tsdlyQM2+ZqHHq7AxZ40G7NxIJgVn6/O6PSdJzoBK6lO/eO307eKrjKS16mxax0Gqk43rOnGcMGCSQqMofoSq+PDGVYCAZEE72u3rGjLI2cddeSzXKjc63QnfT4+EAO00QHBtYO1E2F622guRc5IyG4/Gdq9rDAv31GyIe8UgvmZNDQCHabb1ehVnOpnl7rmKF/uoZMSHYvZU+0WgSGFuWNkQmBKaBj/iKGPI+f2y05ppbm90Z503g/FhfE4yClZu3sTiNaO7JvGI7HWoG7OyWJUYXIkikkxlDcRHvhVjzsF6fYEkcC+8DxCgUKFWwpNSXfsMzzDWDU/pyV7Mozwu9gIYrwQwEAs0ZH7fUsjJG9/NB2ayx4cKJuC838m2RwIQtgIx/lsdEB3JOowGoVvk5Ae/LK0nBsEUO4DtfbCP1K1eZI73udPSD1OqVrDomHKNgWX07igc8jdAutPuLLX3oQvEXeahD+Jev7BE0BU794orvSBIoNZt/wVKLER8QrLJINV7BF6X3fDz4KFmhbU0v9milwPvpZP6Z+VTOFvf3xOMkqmssN0X1t8m1xp1dy1m/nqs/deM/sCu5L9MqKDOSIn/rgYiMrFvSHYlCetnTjFzTMTh2XiRroVsq2L5H2wxlqSrCf6V6iXe+482D0jAdLcjWUbaVpqBUlMDlN3H7/axXfqt35MnBgohVM0ElU9aA7dvas0UE x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR21MB1270.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(451199009)(186003)(8990500004)(4326008)(6506007)(9686003)(26005)(122000001)(82960400001)(7696005)(82950400001)(33656002)(86362001)(38100700002)(38070700005)(10290500003)(83380400001)(52536014)(6636002)(316002)(55016003)(8676002)(71200400001)(110136005)(508600001)(76116006)(66446008)(5660300002)(8936002)(66946007)(66556008)(2906002)(66476007)(64756008)(54906003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Friqw9BRoxnLb7sL+CJqVexSUEy04Cb9R2PGIVB1Mid1tQrh5N4gGwpez9wh?= =?us-ascii?Q?0sOKEvd6iyajNarAJXR3liOFuUNt0SQTcKlARmxFghWzJMIZddt3/FM7aKmd?= =?us-ascii?Q?7bNIDhw3sr6HAgUpF2iDMItYDQ4pc4rcUMY+Fk7LI3CMigFmn+71QPjXzrlC?= =?us-ascii?Q?1bxaxepc15IMG1fKIbP3raVUpPFBmYgP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6nq0xCsa56L0P2shbHiQjgp5gnWygRs+7ldmBXDpqozUbZdvFsMxgcAtazC?= =?us-ascii?Q?MeBaF2er30GOouKw1z/OVv27DBiGkuWRb19e44hQYXFcOWUsCcDnkl2LYPlM?= =?us-ascii?Q?1P94SMkxml4N7a3slXIZBBl0CoyYC0R9pTZCNgHNXchYNKJhsomuRmNfb4cn?= =?us-ascii?Q?WTRXaJ3mpj52PfyBSs3X3RA9zC32ruCgyusKrN2yJiC31kMaM/qW/DvQDMVt?= =?us-ascii?Q?Ptp6PhzIpOYLeEVPhHimIOqaMkwxqcCKcmgOAiAiS+Z7yz4ObUNm9/7uPfp2?= =?us-ascii?Q?0ktD8XNheBVENWg6M6OxiVrAqXw6l4CYmHRuxpkepVBBDfWY6YQaxLnIs/Ts?= =?us-ascii?Q?fF9NzL6JM55aTW2J2//RBBhZUAoXUg1Amj8qIbYvcSGlt0hScE6W59z9bzHv?= =?us-ascii?Q?vpmmMOeMdsZCqcZQC5Q9vPECBqIkQK+SgbAhFJ1WCvdAYMB9GPEc1wUDg7Ft?= =?us-ascii?Q?Ax+JbRUdXZWgYCCFiPzUf7JZj5m5NFmY92gkJsS/WrR0hut1n54aLHkibiyB?= =?us-ascii?Q?p2BO6veOyQO5pD68uc/oAZrsfqsEM4yrVQzzKJ3mPL55QWoi31URpxDykhHC?= =?us-ascii?Q?eDGzDF7Hr0Ifp93E2dDt8juUZQr9hcAxG16dVGGYELftsb9OzlCBcJFlT+IR?= =?us-ascii?Q?6RL++jNXcw=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR21MB1270.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e2e70ddb-0167-4787-c85d-08da2df03cb2 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 May 2022 17:05:05.9447 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: NCW+ReBKTfhpiVHCtEYxCBLKZE2qKzLdwEyutQqt22LbpfMvn6BhTgdxka7+jUFpf1mx2ZOPAJHDjQ0Et7LvDg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR21MB3251 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 > From: Haiyang Zhang > > > ... > > > - if (gen2vm) { > > > - pot_start =3D 0; > > > - pot_end =3D -1; > > > - } else { > > > - if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM) || > > > - pci_resource_len(pdev, 0) < screen_fb_size) { > > > - pr_err("Resource not available or (0x%lx < 0x%lx)\n", > > > - (unsigned long) pci_resource_len(pdev, 0), > > > - (unsigned long) screen_fb_size); > > > - goto err1; > > > > This restriction has been in place since day 1. Haiyang, you wrote this > > driver. Can you comment on whether this change here is sensible? >=20 > 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. >=20 > 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