Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id AC6C2C07545 for ; Wed, 25 Oct 2023 15:19:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 17CBC10E01F; Wed, 25 Oct 2023 15:19:44 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3DF6A10E01F; Wed, 25 Oct 2023 15:19:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698247182; x=1729783182; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=7tGiM54O6L5JekDJ+E1ZH6lvT8M1Dz27WG2NkEa10w4=; b=gOlvjfsg+HJIiLbwOZ00jgvV2pKAnxm2NDFA5x1daCixV7XWENLKIo3w rI1qPohjbSFHGfLmsu5ljxfpTNt6KWajEUDCtAqiW6nG9ogu0yDWqf6Xb wcIBCyVuVQiM7TLvwTqlGteqPf97tIZKwgklEdPakCiHxg3fJVFnN/iSi s3IlmISa6vjKEhG+NP+dER11QM4p/VOnSjyQCTPbGS1uY/6UmDGdfLGTh ZqY0SLM3J17WSlrW5N3y7+f9M8GI50BCsyZewYNQPVTOPxpxKMbgrMTCR xu5Mrb/RUzwUNaocHZIB09fIjQ6GngftrDRDlsmgc+T/jKWjlJsc+Xbnk A==; X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="390183707" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="390183707" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 08:19:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="752359575" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="752359575" Received: from nirmoyda-mobl.ger.corp.intel.com (HELO [10.252.32.60]) ([10.252.32.60]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 08:19:40 -0700 Message-ID: <682964d5-3c16-a535-9eea-10d6499aa061@linux.intel.com> Date: Wed, 25 Oct 2023 17:19:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [Intel-gfx] [PATCH v2 1/5] drm/i915/guc: Create the guc_to_i915() wrapper Content-Language: en-US To: Andi Shyti References: <20231025143515.254468-1-andi.shyti@linux.intel.com> <20231025143515.254468-2-andi.shyti@linux.intel.com> <35cd748f-1944-cc0f-bbd2-b1cd04ca44f0@linux.intel.com> From: Nirmoy Das In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx , Daniele Ceraolo Spurio , John Harrison , dri-devel Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 10/25/2023 4:53 PM, Andi Shyti wrote: > Hi Nirmoy, > >>> +static inline struct drm_i915_private *guc_to_i915(struct intel_guc *guc) >>> +{ >>> + return guc_to_gt(guc)->i915; >>> +} >>> + >> We don't want inline functions in headers files[1]. Otherwise the series >> looks fine to me: > the reason for that patch is that we were including the > i915_drv.h just for that inline function and we were doing it > inside the gt/. > > In this patch I am not changing any header dependency. Sounds fair, thanks, Nirmoy > > I guess the original idea from Matt was to have a generic network > of intel_gt_needs_wa_xxx(), but it didn't develop further. > >> Reviewed-by: Nirmoy Das > Thanks, > Andi