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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD1A8EB64DA for ; Thu, 20 Jul 2023 21:05:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229768AbjGTVFb (ORCPT ); Thu, 20 Jul 2023 17:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbjGTVFa (ORCPT ); Thu, 20 Jul 2023 17:05:30 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62E7A196 for ; Thu, 20 Jul 2023 14:05:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689887129; x=1721423129; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=rVGOweff0SdbXVVz6V0ekmd+WI5q8R+cE+Ca6CPaPNY=; b=gm37LlnHYgbASMCVd138Nxp5zfLjn2P69gOSrtSCXkqGCwLGLky9h2yu rHx8uUya0gtam7M0AVsXjZUCpM1fc46gE+twKqoGhs5AuyV6rbIzevbDy 2s45fdifkW0nuC30QexQbLuzR++PzrZEaVh3VAWbAJTfld2WeNuvVzjg4 74aUy67poJkgknXe7i2Mg/VmE/DGSmh/gOWfU/KpllP5Qy887GLUAlXiF 8KuJ6lyJwGVsRWXgwLIU6gVTEp0uJKkiFH5/mYMvkQU5uVzTX2W04uK4n JF9zIVQ6ATLCPGECWpzDR6NTEADUYt+bheZioFlsBBEAmeE3+cMqwHk4e w==; X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="366898969" X-IronPort-AV: E=Sophos;i="6.01,219,1684825200"; d="scan'208";a="366898969" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2023 14:05:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="727849597" X-IronPort-AV: E=Sophos;i="6.01,219,1684825200"; d="scan'208";a="727849597" Received: from sdene1-mobl1.ger.corp.intel.com (HELO intel.com) ([10.252.32.238]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2023 14:05:25 -0700 Date: Thu, 20 Jul 2023 23:05:22 +0200 From: Andi Shyti To: Andi Shyti Cc: Jonathan Cavitt , Matt Roper , Chris Wilson , Mika Kuoppala , Nirmoy Das , Andrzej Hajda , intel-gfx , dri-evel , linux-stable Subject: Re: [PATCH v6 0/9] Update AUX invalidation sequence Message-ID: References: <20230720164454.757075-1-andi.shyti@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230720164454.757075-1-andi.shyti@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org Ops... sorry... I am realizing that I sent again V6... please ignore this series! Andi On Thu, Jul 20, 2023 at 06:44:45PM +0200, Andi Shyti wrote: > Hi, > > as there are new hardware directives, we need a little adaptation > for the AUX invalidation sequence. > > In this version we support all the engines affected by this > change. > > The stable backport has some challenges because the original > patch that this series fixes has had more changes in between. > > This patch is slowly exploding with code refactorings and > features added and fixed. > > Thanks a lot Nirmoy, Andrzej and Matt for your review and for the > fruitful discussions! > > Thanks, > Andi > > Changelog: > ========= > v5 -> v6 > - Fixed ccs flush in the engines VE and BCS. They are sent as a > separate command instead of added in the pipe control. > - Separated the CCS flusing in the pipe control patch with the > quiescing of the memory. They were meant to be on separate > patch already in the previous verision, but apparently I > squashed them by mistake. > > v4 -> v5 > - The AUX CCS is added as a device property instead of checking > against FLAT CCS. This adds the new HAS_AUX_CCS check > (Patch 2, new). > - little and trivial refactoring here and there. > - extended the flags{0,1}/bit_group_{0,1} renaming to other > functions. > - Created an intel_emit_pipe_control_cs() wrapper for submitting > the pipe control. > - Quiesce memory for all the engines, not just RCS (Patch 6, > new). > - The PIPE_CONTROL_CCS_FLUSH is added to all the engines. > - Remove redundant EMIT_FLUSH_CCS mode flag. > - Remove unnecessary NOOPs from the command streamer for > invalidating the CCS table. > - Use INVALID_MMIO_REG and gen12_get_aux_inv_reg() instad of > __MMIO(0) and reg.reg. > - Remove useless wrapper and just use gen12_get_aux_inv_reg(). > > v3 -> v4 > - A trivial patch 3 is added to rename the flags with > bit_group_{0,1} to align with the datasheet naming. > - Patch 4 fixes a confusion I made where the CCS flag was > applied to the wrong bit group. > > v2 -> v3 > - added r-b from Nirmoy in patch 1 and 4. > - added patch 3 which enables the ccs_flush in the control pipe > for mtl+ compute and render engines. > - added redundant checks in patch 2 for enabling the EMIT_FLUSH > flag. > > v1 -> v2 > - add a clean up preliminary patch for the existing registers > - add support for more engines > - add the Fixes tag > > Andi Shyti (7): > drm/i915/gt: Cleanup aux invalidation registers > drm/i915: Add the has_aux_ccs device property > drm/i915/gt: Rename flags with bit_group_X according to the datasheet > drm/i915/gt: Refactor intel_emit_pipe_control_cs() in a single > function > drm/i915/gt: Ensure memory quiesced before invalidation for all > engines > drm/i915/gt: Enable the CCS_FLUSH bit in the pipe control > drm/i915/gt: Support aux invalidation on all engines > > Jonathan Cavitt (2): > drm/i915/gt: Ensure memory quiesced before invalidation > drm/i915/gt: Poll aux invalidation register bit on invalidation > > drivers/gpu/drm/i915/gt/gen8_engine_cs.c | 222 +++++++++++++------ > drivers/gpu/drm/i915/gt/gen8_engine_cs.h | 21 +- > drivers/gpu/drm/i915/gt/intel_gpu_commands.h | 2 + > drivers/gpu/drm/i915/gt/intel_gt_regs.h | 16 +- > drivers/gpu/drm/i915/gt/intel_lrc.c | 17 +- > drivers/gpu/drm/i915/i915_drv.h | 1 + > drivers/gpu/drm/i915/i915_pci.c | 5 +- > drivers/gpu/drm/i915/intel_device_info.h | 1 + > 8 files changed, 186 insertions(+), 99 deletions(-) > > -- > 2.40.1