Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp905781pxb; Tue, 8 Feb 2022 05:17:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/deymaEK364XBWFRVBs7s11YsnB5occd2RmNq29FsQvqBktGwZgsBrXYHg5JUX3+FO3RF X-Received: by 2002:a63:2b4b:: with SMTP id r72mr3518516pgr.97.1644326254984; Tue, 08 Feb 2022 05:17:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644326254; cv=none; d=google.com; s=arc-20160816; b=ByldRAhPdYXTcPZENK3EV5g8whJpQlrWNd4fL6mpTIBVIRvWfZyjbSjGJtEZbPdFhb koANmmJTPKMEnQV4B0FIMUxqzlJdcSbybajdOXNAn/Hfz9qy4e5W782fkq1H9OHBjKi5 y56A+cSieFp0vQoLaXOLpkL7uU1q9Zw5NLNvMZvnmopPAJotPun8SrbFIol4EQZvHUnP yiwuGpSQfGVUjl4A/zPW0X9Qrnr4EetLx2flhLonAk4QRiaDwq2AI+sKJcfpEvchfUrU xyeiCmTvYBvSBiDfZngEHOf0Fn9xOpDj57lEObu0OJM3AcC5daCNcyVNt5Rcx7ljp5ZN GJ8Q== 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=UcIjkApBORvA9d1VJONsqsVS0FAGtwxTjMECR9qUYgA=; b=e16FkNlNHRNK5Y8GxPU4+dmz6KhbM2lajlW+RPRYrgddP689U5sdPjYqSkJc7QafER vwNn0ruR0q/Jd8oARtJgD0M1xs+IEnRWQ4jJHgqOquyqgN0I3GJVaYcgZyrHA5XOqxsv czcGo5ZywIIL2RaYJ6xX12FQ2WI5VBpJlSo7NDqOVgoBHi4tWAtrsxqn0qeDDFrqFsNL kVMw4oDyvjuFirju7xDd7+pJdW9kjjVz/ytNLuNI/9E8Bd9j2Cc4VNhQLRXeFmbcTrWI EfVp9PIgV/yWNH7CWG5EFetNxCpdi9NeRqh+s7vCdHpSQoVk4Z77gphpT7aAEasKKWUI pgYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KZ9vv96j; 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 y40si13365499pfa.360.2022.02.08.05.17.22; Tue, 08 Feb 2022 05:17:34 -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=KZ9vv96j; 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 S1448121AbiBGNKK (ORCPT + 99 others); Mon, 7 Feb 2022 08:10:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442952AbiBGMVy (ORCPT ); Mon, 7 Feb 2022 07:21:54 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08E37C0423D2 for ; Mon, 7 Feb 2022 04:14:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644236041; x=1675772041; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=TgpvuJ0R1lB2H8FhHzTp6Ej42dRZzsbIJPbNKhwWF1s=; b=KZ9vv96jzpJ8FjOqk9TIVTGDquBcEH6fZof/qWEf1jHbC6YlmVjymzQF wzbWVj/aH3aLt0zqnjHHV7gtY6SQIWsUSUJe9PcijiP9uh3pibyhoUu1z fT8Ykj1+C8+fEu/i5IdPc/b+SlLqs7sevwjbi9mR++CTntsGBBnXA5NQN QTXkkFAk4rpR6Aol3DJc5PoZkzGmRIQX999N9ph8gQpKjSI/6jA+r2AsP MFtKAHgKJbwC8onmY5d0DH8CfDAN1kk4JDBDwsb9hxb/l4Vx0rf66bWgz f8piZKZmgqWEMJuMHhvBX/qASR9Sc+51mb6NKS9PfKRKcq5ahvdDi0Vet Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10250"; a="312000577" X-IronPort-AV: E=Sophos;i="5.88,349,1635231600"; d="scan'208";a="312000577" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 04:14:00 -0800 X-IronPort-AV: E=Sophos;i="5.88,349,1635231600"; d="scan'208";a="484401961" Received: from nbaca1-mobl.ger.corp.intel.com (HELO localhost) ([10.252.18.25]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 04:13:56 -0800 From: Jani Nikula To: Christoph Hellwig , Zhi Wang Cc: Christoph Hellwig , "Wang, Zhi A" , "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: <20220207120647.GA28851@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> <877da7rlzr.fsf@intel.com> <5c916187-8a8c-323a-adb4-8bce141180cc@gmail.com> <20220207120647.GA28851@lst.de> Date: Mon, 07 Feb 2022 14:13:50 +0200 Message-ID: <87v8xqri0x.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,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 06:57:13AM -0500, Zhi Wang wrote: >> Hi Christoph and Jani: >> >> Thanks for the comments. It would be nice that people can achieve a >> agreement. I am OK with both of the options and also moving some files into >> different folders doesn't needs me to do the full test run again. :) > > The way I understood Jani he agrees that the mmio table, which needs to > be part of the core i915 module should not be under the gvt/ subdiretory. > I.e. it could be drivers/gpu/drm/i915/intel_gvt_mmio_table.c. The > declarations could then go either into drivers/gpu/drm/i915/intel_gvt.h > or drivers/gpu/drm/i915/intel_gvt_mmio_table.h. Correct. Generally I prefer to have the declarations for stuff in intel_foo.c to be placed in intel_foo.h, and named intel_foo_*. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center