Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8705061ybn; Tue, 1 Oct 2019 11:49:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTlmJ5Vf8tuKQQeq3+21qtb61jAfxmcpOXeSabW/sUimR30G6ivaxKNejvq9i0gcaiqwOQ X-Received: by 2002:a50:f603:: with SMTP id c3mr26668975edn.208.1569955745333; Tue, 01 Oct 2019 11:49:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569955745; cv=none; d=google.com; s=arc-20160816; b=IKqIWtKdkFckcy1P1B9urxe4X8EfC/7FWIs4opTetucsgosagrJWElXdV1EXgILsD5 HNq7g3umeC+fekjQGf5RQ1+uze0LoIGsLkE7kxKyV8KpD0FBCpt7fe+MDZJZFIYTPAWL Q6TJ1DPH44gZ6A5d1Gbt3TI8MtdGhYwNNQ2G+Lr1lYI/rPMLAr4gm223qBC6libXvBTH oppUhhMkMhNYexKqvTRITp3Ti6hqx1sYqRB4zrfosoVc+LJMu1CZv5md06IO6W5ao1Bq xhUmwMiY619GhuRtreIOuHbSsRg4SqKKapPFDIpCCbX6hDFYHUE0xxKcD07suQ67HVgx MZLA== 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=tSA0eH9++rEulu7t4v7lBqNfCOSP45VX2fYHTJajmIw=; b=cSq80wpmsY2ja609QprZde1GN4iQ/shfTWgXHF5QgK1ewifmsO7q4LsyRJBiEGARuq RmqtP1aLH78EDc1hvadZRJLQGSxYfvOaIOOnaQE1fBQNtkeZt/HqJPDsStJSclMM7hj5 we/aY3SfbP6VBtfVN+rwZ0yOPSBoEKOliMiriRK148oxyTyoXxeWQFd4w1MJj/pRTEE9 qlNpGl+rng+xiXjIF0WYe8B3boxJNnjeGo86KxKHiF3vEkhbmBCdRhv83mic7H6nhzpb +d2vjbufEbPBpczBjLM/uTMsjCLE9MMRlVu86yU+ODXmkhE7mhq8AxV1jGZhmO7IoxTg 3nNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hGwXl5Ke; 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 e46si10067175eda.401.2019.10.01.11.48.41; Tue, 01 Oct 2019 11:49:05 -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=hGwXl5Ke; 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 S1726177AbfJASpc (ORCPT + 99 others); Tue, 1 Oct 2019 14:45:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:36000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbfJASp2 (ORCPT ); Tue, 1 Oct 2019 14:45:28 -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 1DD95215EA; Tue, 1 Oct 2019 18:45:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569955527; bh=tSA0eH9++rEulu7t4v7lBqNfCOSP45VX2fYHTJajmIw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hGwXl5KenUFK6V19PoWZFBUaizhy7wGsLSmuwo71F64a03cLn+s42VVQQxB3oM4VA xvWwn8ePcDfEv9LhI3Aghg+dlRq8CXruUwcqoTicuXQtSBTVo5AVacMZkg9tDQWCM2 91TZgYTkyx2usfmibcp0aptevWtTjOCNyUA2LN48= Date: Tue, 1 Oct 2019 14:45:26 -0400 From: Sasha Levin To: Wei Hu Cc: Michael Kelley , "rdunlap@infradead.org" , "shc_work@mail.ru" , "gregkh@linuxfoundation.org" , "lee.jones@linaro.org" , "alexandre.belloni@bootlin.com" , "baijiaju1990@gmail.com" , "fthain@telegraphics.com.au" , "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 , Dexuan Cui Subject: Re: [PATCH v5] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver Message-ID: <20191001184526.GE8171@sasha-vm> References: <20190913060209.3604-1-weh@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190913060209.3604-1-weh@microsoft.com> 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 Fri, Sep 13, 2019 at 06:02:55AM +0000, Wei Hu wrote: >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 What tree is this based on? I can't get it to apply. -- Thanks, Sasha