Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8705577ybn; Tue, 1 Oct 2019 11:49:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2fyv5XRDZ7aHHzONXpSpYoasp734UR1s/KD1viP2+PV7eWtB2xL+9Yo4DxFclSFSBJ+wc X-Received: by 2002:a50:b545:: with SMTP id z5mr27502068edd.203.1569955763930; Tue, 01 Oct 2019 11:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569955763; cv=none; d=google.com; s=arc-20160816; b=c0NdG1DJrT1DlRHBoinC4FQtyv8i8AfT9aPRFe/NV8rEJistb2Jz6ZVE3/GAIE3cOI IN/0DwFqvrLHfIUO2QHZuLoMz5m+pSIfZgX33L9RN6GWdNx8cdbn2mXOsXj5tEH9IazY 8rcnVh5nAVQIofbLG0yd4qQ28B3+F0skiVLkbditp8JxbSWpUjzYCk37B7dfMmu9a0z6 9IXMdOyInw5VOKFRUuweXy8uaVEYHZE/rWuViHtnj6vEOt03bdO4JeTvNM3SuT2ocChh qxuhAXzC6oxp2XPvSocEHYRb+fvmiKOOefI/DVnMFhNmwgfjsaoenpO01lYSb00O50BX V1dg== 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=B+K878Ykz/mwQbE0vlw59Rsq2qHzrFkm6ykeDvGKqls=; b=QfHWnRHDpzHeuh/VjjnwpTvFobXuFBXouGu8FGjzKkFz5hxTTLHM55M9MAXHyIxOCM 2ZUfUiMdsJjbZ+xI0HUyAFrqltyVIlVPvPcH/R4VV4PSGv3dgL2D5YFSOyXUtHxCSbsl mSNamqS5uzZqcaz0r0eySOXXYdUSrtT8Rsrx2q/Eh6vdlpRTAC6Odm7Bnt5IE6rjRxPW FHJXU8wp+M6gmPUD76R9Fo/NfOXxAZrbtVrPIXAqrGXWPVfwQl1RJtp5xeH/q91CHI5v wIXLt5PxGYRRQoAEQgwLpkFZAnDZDohQbstH1Zj8YeWG6eq+Omdu9YuIpASiSGq6/ooq kCiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=erK6Grjo; 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 y2si9399521ejw.308.2019.10.01.11.48.59; Tue, 01 Oct 2019 11:49:23 -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=erK6Grjo; 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 S1726094AbfJASsa (ORCPT + 99 others); Tue, 1 Oct 2019 14:48:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:36952 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725844AbfJASsa (ORCPT ); Tue, 1 Oct 2019 14:48:30 -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 52F3120B7C; Tue, 1 Oct 2019 18:48:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569955709; bh=GNgNrUswTuvHulo9vmyBNdCcYSawvC+U+jdWFB0IKyA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=erK6Grjo4aC6WkHaCceBQ+bGig2oyXgyMli+uxdawFNMuoPz3ptlHI20zYnrieCdU DH7OOYU9vc/9njBGuy7uy4PfYeLd9Uh8a+RY1FFmytt9TO1CwQHXQsyOdJ04V8Ogsu DpqPyFfJN64LOCdPZCl/4MKpJVDaxghK2+7Ki9Hw= Date: Tue, 1 Oct 2019 14:48:28 -0400 From: Sasha Levin To: Michael Kelley Cc: 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 , Dexuan Cui Subject: Re: [PATHC v6] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver Message-ID: <20191001184828.GF8171@sasha-vm> References: <20190918060227.6834-1-weh@microsoft.com> 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 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