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=-8.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 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 F067EC2BA2B for ; Fri, 10 Apr 2020 05:54:47 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C8CB520801 for ; Fri, 10 Apr 2020 05:54:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C8CB520801 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ECB606EC63; Fri, 10 Apr 2020 05:54:46 +0000 (UTC) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 040956EC63; Fri, 10 Apr 2020 05:54:45 +0000 (UTC) IronPort-SDR: 8H9+uRgCCsJHo7mOCEL4BPmTcXeWMeopOr/iTUtks0EiXtAFhePmRLhgo9N280CxA/zywnaf7Y fXIi5xlXa0Yw== X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2020 22:54:44 -0700 IronPort-SDR: neQ7V9BrtVs+lpG9al2irFFnbVHHjZ/ITmulTc10fSr/Ts1diyctt1UOZJ8ozUdvILKsu1W89J v9yq1WSKecDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,364,1580803200"; d="asc'?scan'208";a="255386528" Received: from zhen-hp.sh.intel.com (HELO zhen-hp) ([10.239.160.147]) by orsmga006.jf.intel.com with ESMTP; 09 Apr 2020 22:54:41 -0700 Date: Fri, 10 Apr 2020 13:41:08 +0800 From: Zhenyu Wang To: Jani Nikula Message-ID: <20200410054108.GK11247@zhen-hp.sh.intel.com> References: <20200409150627.29205-1-masahiroy@kernel.org> <20200409150627.29205-2-masahiroy@kernel.org> <87h7xsgw3r.fsf@intel.com> MIME-Version: 1.0 In-Reply-To: <87h7xsgw3r.fsf@intel.com> User-Agent: Mutt/1.10.0 (2018-05-17) Subject: Re: [Intel-gfx] [PATCH 2/2] drm/i915: remove gvt/Makefile X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Zhenyu Wang Cc: David Airlie , Masahiro Yamada , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Content-Type: multipart/mixed; boundary="===============1263499975==" Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" --===============1263499975== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KIzF6Cje4W/osXrF" Content-Disposition: inline --KIzF6Cje4W/osXrF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020.04.10 00:58:16 +0300, Jani Nikula wrote: > On Fri, 10 Apr 2020, Masahiro Yamada wrote: > > Including subdirectory Makefile from the driver main Makefile does not > > buy us much because this is not real isolation. >=20 > The isolation it does buy us is that gvt/ subdirectory is developed and > maintained on a separate mailing list and separate git repo. I think at > some point there were plans to make it an actual module too. >=20 > So while you could quip about Conway's law here, I think it might be > better to keep this as it is. >=20 > Zhenyu, Zhi, what do you think? Yeah, I have the same feeling, maybe we can add some comment in gvt Makefile to state that point. Thanks > > > > Having a single Makefile at the top of the module is clearer, and > > it is what this driver almost does. > > > > Move all gvt objects to the i915 main Makefile. > > > > Signed-off-by: Masahiro Yamada > > --- > > > > drivers/gpu/drm/i915/Makefile | 28 ++++++++++++++++++++++++---- > > drivers/gpu/drm/i915/gvt/Makefile | 8 -------- > > 2 files changed, 24 insertions(+), 12 deletions(-) > > delete mode 100644 drivers/gpu/drm/i915/gvt/Makefile > > > > diff --git a/drivers/gpu/drm/i915/Makefile b/drivers/gpu/drm/i915/Makef= ile > > index 6cd1f6253814..74e965882a98 100644 > > --- a/drivers/gpu/drm/i915/Makefile > > +++ b/drivers/gpu/drm/i915/Makefile > > @@ -275,10 +275,30 @@ i915-$(CONFIG_DRM_I915_SELFTEST) +=3D \ > > # virtual gpu code > > i915-y +=3D i915_vgpu.o > > =20 > > -ifeq ($(CONFIG_DRM_I915_GVT),y) > > -i915-y +=3D intel_gvt.o > > -include $(src)/gvt/Makefile > > -endif > > +i915-$(CONFIG_DRM_I915_GVT) +=3D \ > > + intel_gvt.o \ > > + gvt/gvt.o \ > > + gvt/aperture_gm.o \ > > + gvt/handlers.o \ > > + gvt/vgpu.o \ > > + gvt/trace_points.o \ > > + gvt/firmware.o \ > > + gvt/interrupt.o \ > > + gvt/gtt.o \ > > + gvt/cfg_space.o \ > > + gvt/opregion.o \ > > + gvt/mmio.o \ > > + gvt/display.o \ > > + gvt/edid.o \ > > + gvt/execlist.o \ > > + gvt/scheduler.o \ > > + gvt/sched_policy.o \ > > + gvt/mmio_context.o \ > > + gvt/cmd_parser.o \ > > + gvt/debugfs.o \ > > + gvt/fb_decoder.o \ > > + gvt/dmabuf.o \ > > + gvt/page_track.o > > =20 > > obj-$(CONFIG_DRM_I915) +=3D i915.o > > obj-$(CONFIG_DRM_I915_GVT_KVMGT) +=3D gvt/kvmgt.o > > diff --git a/drivers/gpu/drm/i915/gvt/Makefile b/drivers/gpu/drm/i915/g= vt/Makefile > > deleted file mode 100644 > > index 4d70f4689479..000000000000 > > --- a/drivers/gpu/drm/i915/gvt/Makefile > > +++ /dev/null > > @@ -1,8 +0,0 @@ > > -# SPDX-License-Identifier: GPL-2.0 > > -GVT_DIR :=3D gvt > > -GVT_SOURCE :=3D gvt.o aperture_gm.o handlers.o vgpu.o trace_points.o f= irmware.o \ > > - interrupt.o gtt.o cfg_space.o opregion.o mmio.o display.o edid.o \ > > - execlist.o scheduler.o sched_policy.o mmio_context.o cmd_parser.o deb= ugfs.o \ > > - fb_decoder.o dmabuf.o page_track.o > > - > > -i915-y +=3D $(addprefix $(GVT_DIR)/, $(GVT_SOURCE)) >=20 > --=20 > Jani Nikula, Intel Open Source Graphics Center --=20 Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827 --KIzF6Cje4W/osXrF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQTXuabgHDW6LPt9CICxBBozTXgYJwUCXpAG9AAKCRCxBBozTXgY J5rLAJ45nWTbStFQsqc5yvlIr+XX8Ig8YACdFQ67J8jqCGmeYx/Y196ZAH2skGM= =Zhzu -----END PGP SIGNATURE----- --KIzF6Cje4W/osXrF-- --===============1263499975== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============1263499975==--