Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94A27C433E0 for ; Fri, 19 Mar 2021 09:40:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 54D0C64F68 for ; Fri, 19 Mar 2021 09:40:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229767AbhCSJkF (ORCPT ); Fri, 19 Mar 2021 05:40:05 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:47951 "EHLO wout1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbhCSJje (ORCPT ); Fri, 19 Mar 2021 05:39:34 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id BAA1C12B2; Fri, 19 Mar 2021 05:39:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 19 Mar 2021 05:39:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=Vg0WcAYTaDJG3+UT2jouK9oxxKm O0P3cn5Cq+QkmLOY=; b=QtrzJH2cIbPtv5Romtvf+XOETynyfHZSV4MGII2crHV U5mlyrwa3uR/dbdexOSo2UdhpwFMj0I8cukw4Y31TuaGc5HugTQWpgQ9ulbgUbxN X3dVvmLxhqdFCqleSyXxAX2ENlvyv7MiQPvsCvmdcpy3zTKU0uE+edz3RuXyL9mb YGCWiBVbvq2uNe86BjD4jDG335x+d6mY7euGjDu+e+9sgmsgN7DWMi+GDY1Zugn6 hnD1VWT7FYIJ8ii3NWJLE6pXzCET7EmkDSwjzFD9peXQP+eLUoUAD/dHCK465Zon 0gaav+JnjkFKYMhg5OddRjOAewJ4YqwTEAh7m9pyt0w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Vg0WcA YTaDJG3+UT2jouK9oxxKmO0P3cn5Cq+QkmLOY=; b=BcKMIpTTJCIg3vCIARyJNg MJ5asVl171cIMGZuQhVe38oWxF6XQzCcqlJ/FK4xVpDO/+bbzcSP22N/H6RXHA0U iRHmWN+56XvPGtluRB+Rhk0/EmFbOXoJ2u5nEUCW9RDeTDnCAC3slfjPeRZGcVkf TXl02+xrioN7JMj4l0jmQyCpEbaY2mILUwu3U+Ee4n0S3YYJtjR3bIyZtDzrHHsx Y1l2Xg8CJ6tFdDqFCVqRbIUNTy4iPBAGXUwPrcoi01CiKpCymMkjCBDvoEJ4njGM ASN6GkMeHrRLwHh2dPe/2m9Poj+sD3sCPlM023pvIaK31HllEPpagGb/YURGy24A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudefkedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefirhgvghcu mffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpefguddvhf dvueegieeuvdduledtgedvteehtefhkeevkeehgfdtledvhfefvdeigeenucffohhmrghi nhepfhhrvggvuggvshhkthhophdrohhrghenucfkphepkeefrdekiedrjeegrdeigeenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvghes khhrohgrhhdrtghomh X-ME-Proxy: Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) by mail.messagingengine.com (Postfix) with ESMTPA id DC6B124005C; Fri, 19 Mar 2021 05:39:32 -0400 (EDT) Date: Fri, 19 Mar 2021 10:39:30 +0100 From: Greg KH To: Colin Xu Cc: stable@vger.kernel.org, intel-gvt-dev@lists.freedesktop.org, zhenyuw@linux.intel.com Subject: Re: [PATCH 3/5] drm/i915/gvt: Fix virtual display setup for BXT/APL Message-ID: References: <280168619124c762cb29add7e68952222a0e4801.1615946755.git.colin.xu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <280168619124c762cb29add7e68952222a0e4801.1615946755.git.colin.xu@intel.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Mar 17, 2021 at 10:55:02AM +0800, Colin Xu wrote: > commit a5a8ef937cfa79167f4b2a5602092b8d14fd6b9a upstream > > Program display related vregs to proper value at initialization, setup > virtual monitor and hotplug. > > vGPU virtual display vregs inherit the value from pregs. The virtual DP > monitor is always setup on PORT_B for BXT/APL. However the host may > connect monitor on other PORT or without any monitor connected. Without > properly setup PIPE/DDI/PLL related vregs, guest driver may not setup > the virutal display as expected, and the guest desktop may not be > created. > Since only one virtual display is supported, enable PIPE_A only. And > enable transcoder/DDI/PLL based on which port is setup for BXT/APL. > > V2: > Revise commit message. > > V3: > set_edid should on PORT_B for BXT. > Inject hpd event for BXT. > > V4: > Temporarily disable vfio edid on BXT/APL until issue fixed. > > V5: > Rebase to use new HPD define GEN8_DE_PORT_HOTPLUG for BXT. > Put vfio edid disabling on BXT/APL to a separate patch. > > Acked-by: Zhenyu Wang > Signed-off-by: Colin Xu > Signed-off-by: Zhenyu Wang > Link: http://patchwork.freedesktop.org/patch/msgid/20201109073922.757759-1-colin.xu@intel.com > (cherry picked from commit a5a8ef937cfa79167f4b2a5602092b8d14fd6b9a) > Signed-off-by: Colin Xu > Cc: # 5.4.y > --- > drivers/gpu/drm/i915/gvt/display.c | 173 +++++++++++++++++++++++++++++ > drivers/gpu/drm/i915/gvt/mmio.c | 5 + > 2 files changed, 178 insertions(+) I've taken this backport for 5.10.y as well, because it is missing there. greg k-h