Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A448DC433F5 for ; Fri, 3 Sep 2021 09:25:06 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 41DDB61051 for ; Fri, 3 Sep 2021 09:25:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 41DDB61051 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BD0F16E86D; Fri, 3 Sep 2021 09:25:05 +0000 (UTC) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 490F36E86E for ; Fri, 3 Sep 2021 09:25:05 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10095"; a="241658988" X-IronPort-AV: E=Sophos;i="5.85,264,1624345200"; d="scan'208";a="241658988" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2021 02:25:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,264,1624345200"; d="scan'208";a="521620298" Received: from ayazahma-nuc8i7beh.iind.intel.com ([10.145.162.59]) by fmsmga004.fm.intel.com with ESMTP; 03 Sep 2021 02:25:03 -0700 From: Ayaz A Siddiqui To: intel-gfx@lists.freedesktop.org Cc: Ayaz A Siddiqui Date: Fri, 3 Sep 2021 14:51:48 +0530 Message-Id: <20210903092153.535736-1-ayaz.siddiqui@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-gfx] [PATCH V5 0/5] drm/i915/gt: Initialize unused MOCS entries to L3_WB X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Gen >= 12 onwards MOCS table doesn't have a setting for PTE so I915_MOCS_PTE is not a valid index and it will have different MOCS values are based on the platform. To detect these kinds of misprogramming, all the unspecified and reserved MOCS indexes are set to WB_L3. TGL/RKL unspecified MOCS indexes are pointing to L3 UC are kept intact to avoid API break. This series also contains patches to program BLIT_CCTL and CMD_CCTL registers to UC. Since we are quite late to update MOCS table for TGL so added a new MOCS table for ADL family. V2: 1. Added CMD_CCTL to GUC regset list so that it can be restored after engine reset. 2. Checkpatch warning removal. V3: 1. Changed implementation to have a framework only. 2. Added register type for proper application. 3. moved CMD_CCTL programming to a separate patch. 4. Added L3CC initialization during gt reset so that MOCS indexes are set before GuC initialization. 5. Removed Renderer check for L3CC verification in selftest. V4: 1. Moved register programming in Workaorund section as fake workaround. 2. Removed seperate ADL mocs table, new logic is to set unused index as L3_WB for gen12 platform except TGL/RKL. V5: 1. Final version reviewed by Matt Roper 2. Removed "drm/i915/selftest: Remove Renderer class check for l3cc table read" form series, this patch will be taken care of in different series. Ayaz A Siddiqui (4): drm/i915/gt: Add support of mocs propagation drm/i915/gt: Set CMD_CCTL to UC for Gen12 Onward drm/i915/gt: Set BLIT_CCTL reg to un-cached drm/i915/gt: Initialize unused MOCS entries with device specific values Sreedhar Telukuntla (1): drm/i915/gt: Initialize L3CC table in mocs init drivers/gpu/drm/i915/gt/intel_gt.c | 2 + drivers/gpu/drm/i915/gt/intel_gt_types.h | 4 ++ drivers/gpu/drm/i915/gt/intel_mocs.c | 72 ++++++++++++++------- drivers/gpu/drm/i915/gt/intel_mocs.h | 1 + drivers/gpu/drm/i915/gt/intel_workarounds.c | 70 +++++++++++++++++++- drivers/gpu/drm/i915/i915_reg.h | 26 ++++++++ 6 files changed, 151 insertions(+), 24 deletions(-) -- 2.26.2