Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp748802ybn; Wed, 2 Oct 2019 05:40:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwW7u7YZWhzvvw2qx0iWaZrlY5Sa3NZC/144NwnsXuI8IlhrsqYv8epi8VU6/W8ED6gc/6R X-Received: by 2002:aa7:c4d0:: with SMTP id p16mr3541358edr.266.1570020044620; Wed, 02 Oct 2019 05:40:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570020044; cv=none; d=google.com; s=arc-20160816; b=MM6mYjemSmrbbLDIkXoXu2OaDgb70XsFGKPa4GqtMajtYFmxGE+OR8tLTie5hm9z2c ZHP40HpQS6QvN9WnTO9wbVmrUk4zaew+Et4jnfqnn/MGPswnib2SiF7vDjOUx3LlOBeE m6FNDBZZh8v3xYAeFTMhMgJ8WvUsjxIVr0a+K2TdoixVZpNVLBXxW77kPk+QX90x3g3f AT1mdN9kxPIgxTkQx4GC185o+V1PVW9CPkTClUx/yF0J9Qf9SvcGmLy4EZRzqAUk6uLT 9+pBvZK8KSRAqqXKk3AH5RDYbnSNez4Cov+FQoYQNUxf2Vj99HRj60TXhX5zb4SKQzQJ na8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vnnmhEPsZ/U7wtSxaqKOtwarDFIaTFQClKHK+zcOZJs=; b=TLrLSATTfQfCvK3oA9qwLgFg4rrIOhoxZwvhgz/RiKIb5YBjLhG/s0VAc0qfl0P/LH T2PJUBt2ei/AMqlx+iIvbbCBvL6pX+aKNv878SwX4QcLan3WgS5rq1fKDqfHjrH6btsH ZKJ+fsvs8O1DYZdbIQEv/oFsKPzfuwvzIH4+qiJSpq9CHS4BMz7TVMEyaIAvT0/9JG7n MfZWiMx8tcDRCLNRca+E6+DcRpa/CDhl55uYiRxPzDBPhm0l+f2lhRRUMNXUyO1eMEU+ /BB5uYs/4+s6ELWbCTtr2YEznhnOhXT/U28u/IjzOS0S74FgJSICs1j82VQHQ2DA/1Aa KTgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r1ISHHml; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2si11300671edb.346.2019.10.02.05.40.20; Wed, 02 Oct 2019 05:40:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r1ISHHml; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726681AbfJBMkF (ORCPT + 99 others); Wed, 2 Oct 2019 08:40:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:35818 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbfJBMkF (ORCPT ); Wed, 2 Oct 2019 08:40:05 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 430082133F; Wed, 2 Oct 2019 12:40:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570020003; bh=C27WP3WjY83XjqK00FA77hEI/TbJNxmgHsX3G7ohuJY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=r1ISHHmlUa3ArxhsAN1rIrYFbdp7E9Nft088x4rC2BWSc1rug9fMRZiNAEvlaN9sk psxK5zJ4K0fRIworDS+q3PHxoLSWsTxwjQE2GdAQfEPZ2BVH804MSe+aysCm4f7xwy KNwsXlVW8+wyrVavZo30CoO4tzHc6UVNjBTRJcfA= Date: Wed, 2 Oct 2019 08:40:02 -0400 From: Sasha Levin To: Dexuan Cui Cc: Michael Kelley , Wei Hu , "rdunlap@infradead.org" , "shc_work@mail.ru" , "gregkh@linuxfoundation.org" , "lee.jones@linaro.org" , "alexandre.belloni@bootlin.com" , "baijiaju1990@gmail.com" , "info@metux.net" , "linux-hyperv@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "linux-fbdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Stephen Hemminger , Haiyang Zhang , KY Srinivasan Subject: Re: [PATHC v6] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver Message-ID: <20191002124002.GL17454@sasha-vm> References: <20190918060227.6834-1-weh@microsoft.com> <20191001184828.GF8171@sasha-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 02, 2019 at 08:09:41AM +0000, Dexuan Cui wrote: >> -----Original Message----- >> From: Sasha Levin >> Sent: Tuesday, October 1, 2019 11:48 AM >> >> On Fri, Sep 20, 2019 at 05:26:34PM +0000, Michael Kelley wrote: >> >From: Michael Kelley Sent: Wednesday, >> September 18, 2019 2:48 PM >> >> > >> >> > Without deferred IO support, hyperv_fb driver informs the host to refresh >> >> > the entire guest frame buffer at fixed rate, e.g. at 20Hz, no matter there >> >> > is screen update or not. This patch supports deferred IO for screens in >> >> > graphics mode and also enables the frame buffer on-demand refresh. The >> >> > highest refresh rate is still set at 20Hz. >> >> > >> >> > Currently Hyper-V only takes a physical address from guest as the starting >> >> > address of frame buffer. This implies the guest must allocate contiguous >> >> > physical memory for frame buffer. In addition, Hyper-V Gen 2 VMs only >> >> > accept address from MMIO region as frame buffer address. Due to these >> >> > limitations on Hyper-V host, we keep a shadow copy of frame buffer >> >> > in the guest. This means one more copy of the dirty rectangle inside >> >> > guest when doing the on-demand refresh. This can be optimized in the >> >> > future with help from host. For now the host performance gain from >> deferred >> >> > IO outweighs the shadow copy impact in the guest. >> >> > >> >> > Signed-off-by: Wei Hu >> > >> >Sasha -- this patch and one other from Wei Hu for the Hyper-V frame buffer >> >driver should be ready. Both patches affect only the Hyper-V frame buffer >> >driver so can go through the Hyper-V tree. Can you pick these up? Thx. >> >> I can't get this to apply anywhere, what tree is it based on? >> >> -- >> Thanks, >> Sasha > >Hi Sasha, >Today's hyperv/linux.git's hyperv-next branch's top commit is > 48b72a2697d5 ("hv_netvsc: Add the support of hibernation"). > >Please pick up two patches from Wei Hu: >#1: [PATCH v4] video: hyperv: hyperv_fb: Obtain screen resolution from Hyper-V host >#2: [PATHC v6] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver Ah, I guess I was missing the first one. I've queued both for hyperv-next, thanks! -- Thanks, Sasha