Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp926073pxb; Mon, 16 Aug 2021 22:46:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLKp7RFxNph0DWmb5jkgVqYPG0sz6glwUv6J6eoDANNRgcIkhG93rRfiejGN35ygUXB75m X-Received: by 2002:a05:6402:278b:: with SMTP id b11mr2061430ede.339.1629179201676; Mon, 16 Aug 2021 22:46:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629179201; cv=none; d=google.com; s=arc-20160816; b=JYeyAyDGnsRtAHLEcAy9rQDcL56PyIiSkhsDJH2eCsIEryrcLcsIuhPv5l02eQg5Hv Z7c0ON9US2eX5IBohKYN6ZumXoj0ucReuIXnw7+GRkKmOeU6sMWS5HTO4+mx75XSdz3q a+TUQuS0rJCqT0d/Wtu3IbS8FW/D9N9iB1SmWqPqjmvY8Sj5yEQ/yvGG+d8xyKKfukKT 5vanXDM1rMg/HZ2lZygWX0imqIU6qi8+LRP6D6AQYdq3Rina91gaaDnRPp9mDIAhbu2P LSWzNHULNHA9OIB/BTbA3wlx9SSNRcyU3MMSyP7HjFND453z9mkpRjRo0Zan7zzzZWy0 +VQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date; bh=E3OVCyJ0bI7L1HbTeRjedh1IgsX6Cj285cRUgQrP+Bc=; b=PpbKzISK8/DaHfYDZhJmIYuRy1lOtUu3i2Tsf8erzDBUkQSa+2XB4/wahmh3jpcRPS ovDvmcHGLrsfb/3HgMcUT0Af37VUTrde7IHaoR1BHcxtr9u7iSidqLG1/W0ytuVYGKju LlPY+9bm4YW1XIVl6MYg3PfNqztZwvEE6IoZVrPSezLpdiuPZk1W/4P3R3hPg++ARmvj xVrZKGRaK6f7s9eoEw3Cavr76d5MAZYELP2Adnd6W2A+jo8zOj+JUwKSwttWW477B43R 4+8+slz4UuCgXYz+5M9Rp51WG8VKtuYs08lrYzdpy3f3dHvBQQ82DbMWWTJldxqeL2v0 KEDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p26si1440416edx.85.2021.08.16.22.46.19; Mon, 16 Aug 2021 22:46:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237701AbhHQFpY (ORCPT + 99 others); Tue, 17 Aug 2021 01:45:24 -0400 Received: from mga03.intel.com ([134.134.136.65]:35373 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234233AbhHQFpU (ORCPT ); Tue, 17 Aug 2021 01:45:20 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10078"; a="216031054" X-IronPort-AV: E=Sophos;i="5.84,328,1620716400"; d="asc'?scan'208";a="216031054" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2021 22:44:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,328,1620716400"; d="asc'?scan'208";a="449142901" Received: from zhen-hp.sh.intel.com (HELO zhen-hp) ([10.239.160.143]) by fmsmga007.fm.intel.com with ESMTP; 16 Aug 2021 22:44:42 -0700 Date: Tue, 17 Aug 2021 13:22:03 +0800 From: Zhenyu Wang To: Christoph Hellwig Cc: Jason Gunthorpe , "dri-devel@lists.freedesktop.org" , Greg KH , "intel-gfx@lists.freedesktop.org" , Joonas Lahtinen , "linux-kernel@vger.kernel.org" , Jani Nikula , Gerd Hoffmann , "Vivi, Rodrigo" , "intel-gvt-dev@lists.freedesktop.org" , "Wang, Zhi A" , Jani Nikula Subject: Re: refactor the i915 GVT support Message-ID: <20210817052203.GX13928@zhen-hp.sh.intel.com> Reply-To: Zhenyu Wang References: <20210722112636.wj277vqhg4dez5ug@sirius.home.kraxel.org> <20210727121224.GA2145868@nvidia.com> <20210728175925.GU1721383@nvidia.com> <20210729072022.GB31896@lst.de> <20210803094315.GF13928@zhen-hp.sh.intel.com> <20210803143058.GA1721383@nvidia.com> <20210804052606.GG13928@zhen-hp.sh.intel.com> <20210816173458.GA9183@lst.de> <20210817010851.GW13928@zhen-hp.sh.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uIQsGlkY6qbVGkBB" Content-Disposition: inline In-Reply-To: <20210817010851.GW13928@zhen-hp.sh.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --uIQsGlkY6qbVGkBB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2021.08.17 09:08:55 +0800, Zhenyu Wang wrote: > On 2021.08.16 19:34:58 +0200, Christoph Hellwig wrote: > > On Wed, Aug 04, 2021 at 01:26:06PM +0800, Zhenyu Wang wrote: > > > On 2021.08.03 11:30:58 -0300, Jason Gunthorpe wrote: > > > > On Tue, Aug 03, 2021 at 05:43:15PM +0800, Zhenyu Wang wrote: > > > > > Acked-by: Zhenyu Wang > > > > >=20 > > > > > Thanks a lot for this effort! > > > >=20 > > > > Great, do we have a submission plan for this? how much does it clash > > > > with my open_device/etc patch? ie does the whole thing have to go > > > > through the vfio tree? > > > >=20 > > >=20 > > > I think Alex would determine when to merge open_device series, gvt pa= rt > > > can be through vfio tree without problem. For this refactor, I would = first > > > merge for gvt staging to do more regression testing before sending th= rough > > > i915 tree. > >=20 > > Any updates on this? I'd really hate to miss this merge window. >=20 > I'm still waiting for our validation team's report on this. I'm afraid > it might be missing for next version as i915 merge window is mostly > till rc5...and for any change outside of gvt, it still needs to be > acked by i915 maintainers. Looks our validation team did have problem against recent i915 change. If you like to try, we have a gvt-staging branch on https://github.com/intel/gvt-linux which is generated against drm-tip with gvt changes for testing, currently it's broken. One issue is with i915 export that intel_context_unpin has been changed into static inline function. Another is that intel_gvt.c should be part of i915 for gvt interface instead of depending on KVMGT config. But the problem I see is that after moving gvt device model (gvt/*.c except kvmgt.c) into kvmgt module, we'll have issue with initial mmio state which current gvt relies on, that is in design supposed to get initial HW state before i915 driver has taken any operation. Before we can ensure that, I think we may only remove MPT part first but still keep gvt device model as part of i915 with config. I'll try to split that out. --uIQsGlkY6qbVGkBB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQTXuabgHDW6LPt9CICxBBozTXgYJwUCYRtHbwAKCRCxBBozTXgY JyrQAJ92WESsBu++Qsz8cYKJinX8AC3VdACfYCC5M9toa7YrrolbmwD1kkmKZQ8= =97Uw -----END PGP SIGNATURE----- --uIQsGlkY6qbVGkBB--