Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1578625pxb; Tue, 8 Feb 2022 22:58:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcGIPy9tRpNFsuEiXndD2/iXRi+jj+GdOsVhR3oUcSBOaIxrqpB+6YYfFRW1qOEXemdLx8 X-Received: by 2002:a63:465d:: with SMTP id v29mr823459pgk.136.1644389882682; Tue, 08 Feb 2022 22:58:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644389882; cv=none; d=google.com; s=arc-20160816; b=qT6Nx9XB5+HU0BGvUqgYBdRR9pIM4LxViTYqitRdXFUL6EwT5SN7NqNdHhAgfuDcz2 X/PEAB4oNDln1EfDyYlbvJMK8kGBz2mFysdfgSqs8qZPNvbw0TrsJ3ZH6JgiKmcww3Ul T+8F8EkEXGSNdDTO+XT0n1oQA+37UgsVIG8UtP6tqnb6wevdwfR+TWJgi9iK1NsTCQ+B zScMln+tFE5FfZ4cLmPU8h07k/9iuP0wCRDvPDKAr6MApeuGV1I6W65ii4fYDseeV2cU C2pXbfEapxrLycPT5EWaF0F/RJ7fZ/zTH6hFYZkLrI2wDt+qJRay9gIVl8ub6HZjLnql iM1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:dkim-signature; bh=7FsnEuNLyvgTbZ/1sZ4VsKhQRjblr4bbeL/IyZA/a9k=; b=jL2tQs6g6NWv8Jah3uRpTAsOVZJMRndnV9c0lg0DHyPcY1af8no24KOIBhUZKiWA8q B6eq6FqG+AF86WtJaSxi4c9g5ZM8ZI2/THxHsrONzBGG2GTAuS/2kdM76SntcXyY8WrJ 1xObOCEeGT6gqTXMUpiWOh3mS/wNBAQtv9KJQrjzFtgEIdfein9C4uGeOQbpAI7VFpnt jRhTDWkP+H94wlNMRgVKKf+1oOzCz+e8TpNrA40DvF9S/bYOrZiAS70UDdYJlUjKIpq/ J7sqomSO3ImVrkd6IUZO79N48PONDBvNuljHmia8qijD4bpi0BxrHTG0v/DHjyVQ8Rk1 JzHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=njWc2Ux7; 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=pass (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 i70si2563632pge.859.2022.02.08.22.57.49; Tue, 08 Feb 2022 22:58:02 -0800 (PST) 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; dkim=pass header.i=@intel.com header.s=Intel header.b=njWc2Ux7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343604AbiBGKtb (ORCPT + 99 others); Mon, 7 Feb 2022 05:49:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235099AbiBGKsT (ORCPT ); Mon, 7 Feb 2022 05:48:19 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6230C043181 for ; Mon, 7 Feb 2022 02:48:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644230898; x=1675766898; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=mVOHb531swiHoNSO2HEJyxs7QHmBeZIo9CLzkP+bSBs=; b=njWc2Ux7QL2Gkijvr+g39YJYG84Bs9L9yYh3kCs41EIhynn7tJHNk+Hn Ph0igDAQSP9tjZrlzMZv/Ys7ahDtgz2Vcy7XYR61iY8vWuLEkgAPUFaI0 Wn2BjfWDXLRvqvNyZqnskHDl15Xwp0rgScfIv+aEnV2KVxw/2YXjW54Uh AWI/xMmbqiNDzp5QGQvJ2OX292w3PlNaQ/GuCY3aax/r7IXpT9cjRdhoX vmVgw5PEk/QTmcimxS2vmEKbe6PLAMWdfjviETLcEvxNvbm/mIwckTzDl 1fN64FtnfKtuBIgLRaZzenHjIAqhmctW8bnfzn0gqlcioDBDVxlv2Em4Q w==; X-IronPort-AV: E=McAfee;i="6200,9189,10250"; a="236092078" X-IronPort-AV: E=Sophos;i="5.88,349,1635231600"; d="scan'208";a="236092078" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 02:48:18 -0800 X-IronPort-AV: E=Sophos;i="5.88,349,1635231600"; d="scan'208";a="700420240" Received: from nbaca1-mobl.ger.corp.intel.com (HELO localhost) ([10.252.18.25]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 02:48:14 -0800 From: Jani Nikula To: Christoph Hellwig , "Wang, Zhi A" 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" , Joonas Lahtinen , "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 In-Reply-To: <20220207083535.GA25345@lst.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20220127120508.11330-1-zhi.a.wang@intel.com> <20220207073247.GA24327@lst.de> <20220207083535.GA25345@lst.de> Date: Mon, 07 Feb 2022 12:48:08 +0200 Message-ID: <877da7rlzr.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 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 boundaries > for where the code ends up and not to declarare maintainership boundaries, > but it will be up to the i915 and gvt maintainers to decide that. 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. 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. Joonas, Rodrigo, Tvrtko, thoughts? BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center