From patchwork Tue Oct 15 07:31:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kumar Valsan, Prathap" X-Patchwork-Id: 11189771 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 19FB214E5 for ; Tue, 15 Oct 2019 07:14:34 +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 0258F217F9 for ; Tue, 15 Oct 2019 07:14:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0258F217F9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 34D2D6E618; Tue, 15 Oct 2019 07:14:33 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 48ABB6E604 for ; Tue, 15 Oct 2019 07:14:32 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Oct 2019 00:14:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,298,1566889200"; d="scan'208";a="195201496" Received: from pkumarva-server.ra.intel.com ([10.23.184.130]) by fmsmga007.fm.intel.com with ESMTP; 15 Oct 2019 00:14:31 -0700 From: Prathap Kumar Valsan To: intel-gfx@lists.freedesktop.org Date: Tue, 15 Oct 2019 03:31:28 -0400 Message-Id: <20191015073129.2375-1-prathap.kumar.valsan@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v4 0/1] Add sysfs interface to control class-of-service X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: reinette.chatre@intel.com, Chris P Wilson Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" For GEN11 MOCS are part of context register state. This means updating CLOS also needs to update the context state of active contexts. v4: - Make it explicit in the commit message that we want to set CLOS global on device (Chris) - Fixe the Locking (Chris) - Move the global configuration of contexts away from gt.(Chris) v3: Rebase v2: - Update the interface to use two sysfs files(Joonas) - Gen12 PCode interface is not ready yet to read the way mask. So removed TGL support and added support for Gen11. - Updating MOCS in Gen 11 also require changing the context image of existing contexts. - Referred to gen8_configure_all_contexts() as suggested by Chris. Prathap Kumar Valsan (1): drm/i915: Add sysfs interface to control class-of-service drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/gt/intel_lrc.c | 7 ++ drivers/gpu/drm/i915/gt/intel_lrc_reg.h | 1 + drivers/gpu/drm/i915/gt/intel_mocs.c | 115 +++++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_mocs.h | 7 ++ drivers/gpu/drm/i915/i915_clos.c | 128 ++++++++++++++++++++++++ drivers/gpu/drm/i915/i915_clos.h | 15 +++ drivers/gpu/drm/i915/i915_drv.h | 10 ++ drivers/gpu/drm/i915/i915_gem.c | 3 + drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/i915_sysfs.c | 105 +++++++++++++++++++ 11 files changed, 393 insertions(+) create mode 100644 drivers/gpu/drm/i915/i915_clos.c create mode 100644 drivers/gpu/drm/i915/i915_clos.h