Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp904458pxb; Tue, 8 Feb 2022 05:15:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyszK4h7kee6MwrFiBHtbR0/4prGiNeXigGgTI4Gj9aF9MXHHLpNM1gaEpNe3YoA/+rUaZr X-Received: by 2002:a17:90b:3908:: with SMTP id ob8mr1320579pjb.73.1644326159406; Tue, 08 Feb 2022 05:15:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644326159; cv=none; d=google.com; s=arc-20160816; b=Bq33vWY2sYWQqpgui+wx7PrZ7gVJ2XGwR9GfE8pxheu9YeaGD23udeD2QEkdsPt9H9 sOW121EZCbtXvSH47PiusyfqBMM1vBZsWOwuQbIqFUHasoUSX7ucFYIoe62nLmANEq8J 0mslyJpDho+FKJgb/zPpCF3hgVgg65FoW1iJrppDywXaJBlt98HruKcnFCEh9MmH2Ajb KF1h0qydWi8UIqPEDnvZlz12zmwup1BDP0gj+DfmLfyMO6ADn3elArzu/MvwtJh27prz ygtrXlMnys/Qs09HyCDUH+Z+PtS3pJqe+RNGnw1BCLjmZI/z1t+C1wqL3DW57EEE6L7o RiuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:user-agent:message-id:organization:from :subject:cc:to:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=/N4m2O8jEQCVra2lDybHU6uiqaop0NsYZ66QookEt3g=; b=izZFhUzBqbll5FClB9aSLQbUgLJWSzNbIz7adRHAFJAZNDKc6XpI9wj868+LK4QY5F Dz38ciPTMBpYVT7Kns8WPJu1ncaBrVj/FqiWZtIpZlXiSPszi1i7PSCWHSK4jvvNNPVz MEWZUagyDu13IYDULJP/3DmUTl8yAugnt9+7tMP7QrAEW48SacPQl6TqnRRZqR796IOD ed8esdCOJ6X01noBUmddW+iz9c/2Cwt+51qQBhDeVzpbxDFWnkeub6p8spSHNJ7yeVRi JnwIdmCziVZ5p7RFZvwBM+gpYUMKbnfGYPv5D0txAE4A5WtPKPfym0eeaETzIIJKkpdR 5HWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Lo76UWkF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r204si13095946pgr.316.2022.02.08.05.15.42; Tue, 08 Feb 2022 05:15:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Lo76UWkF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348731AbiBHIES (ORCPT + 99 others); Tue, 8 Feb 2022 03:04:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348734AbiBHIEQ (ORCPT ); Tue, 8 Feb 2022 03:04:16 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4445C0401F5 for ; Tue, 8 Feb 2022 00:04:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644307454; x=1675843454; h=mime-version:content-transfer-encoding:in-reply-to: references:to:cc:subject:from:message-id:date; bh=AUUalteisJVotgwm2A5rb5kQMU4MKwe9fDedhXPmsdY=; b=Lo76UWkFk/9FWrrDs9rnscSbbfHCwb5k0JPPPD2AjJ9QxmDsVz9SCnwm IBIsjJmh0upCDP491Awpm+wNjAXyR1JeatXc6AgbsRvEmxPIomMiJWRfr u6V1dU58CKOL68NWWD5wvj8gmFxam+mpdyIGclgo5GjKuE8IxbIoCTMS4 fDUda3xI8JafcDqwsO2RYWjzq6FE09Z7IerN+btLCovtov8rKTWJEv6gO F1xYGFoKClVn8TRgTVw2GaxRfLIVTrWjRlzMjqCjwNL2NHZ7Q2rcf1tNM dPf3WuQmsFXSZGiSFxGl5A45Fty/ZBgrM0IC+ZOT98Ec6biUy9LXyLj5u A==; X-IronPort-AV: E=McAfee;i="6200,9189,10251"; a="249105310" X-IronPort-AV: E=Sophos;i="5.88,352,1635231600"; d="scan'208";a="249105310" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2022 00:04:14 -0800 X-IronPort-AV: E=Sophos;i="5.88,352,1635231600"; d="scan'208";a="540492714" Received: from zimmerer-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.39.149]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2022 00:04:10 -0800 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <877da7rlzr.fsf@intel.com> References: <20220127120508.11330-1-zhi.a.wang@intel.com> <20220207073247.GA24327@lst.de> <20220207083535.GA25345@lst.de> <877da7rlzr.fsf@intel.com> To: "Wang, Zhi A" , Christoph Hellwig , Jani Nikula Cc: Christoph Hellwig , Zhi Wang , "jgg@nvidia.com" , "intel-gfx@lists.freedesktop.org" , "intel-gvt-dev@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "Vivi, Rodrigo" , Zhenyu Wang , "Xu, Terrence" , Tvrtko Ursulin Subject: Re: [PATCH 1/3] i915/gvt: Introduce the mmio_table.c to support VFIO new mdev API From: Joonas Lahtinen Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Message-ID: <164430744744.6827.16056768203919410118@jlahtine-mobl.ger.corp.intel.com> User-Agent: alot/0.8.1 Date: Tue, 08 Feb 2022 10:04:07 +0200 X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jani Nikula (2022-02-07 12:48:08) > On Mon, 07 Feb 2022, Christoph Hellwig wrote: > > On Mon, Feb 07, 2022 at 08:28:13AM +0000, Wang, Zhi A wrote: > >> 1) About having the mmio_table.h, I would like to keep the stuff in a > >> dedicated header as putting them in intel_gvt.h might needs i915 guys > >> to maintain it. > >> 2) The other one is about if we should move the mmio_table.c into > >> i915 folder. I guess we need the some comments from Jani. In the > >> current version that I am testing, it's still in GVT folder. Guess we > >> can submit a patch to move it to i915 folder later if Jani is ok > >> about that. > > > > Yes, let's have Jani chime in on these. They're basically one and the > > same issue. This code will have to be built into into the core i915 > > driver even with my planned split, which is kindof the point of this > > exercise. I think it makes sense to use the subdirectories as boundari= es > > for where the code ends up and not to declarare maintainership boundari= es, > > but it will be up to the i915 and gvt maintainers to decide that. >=20 > Agreed. If there's going to be a gvt.ko, I think all of gvt/ should be > part of that module, nothing more, nothing less. >=20 > The gvt related files in i915/ should probably be named intel_gvt* or > something, ditto for function naming, and we'll probably want patches > touching them be Cc'd to intel-gfx list. >=20 > Joonas, Rodrigo, Tvrtko, thoughts? Agreed on above. I don't think we expect much changes on the golden MMIO state capture set. Regards, Joonas