From patchwork Fri Jul 10 11:57:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matthew Auld X-Patchwork-Id: 11656391 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 9A7F613B4 for ; Fri, 10 Jul 2020 12:00:50 +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 81F592078B for ; Fri, 10 Jul 2020 12:00:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 81F592078B 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 194426EC02; Fri, 10 Jul 2020 12:00:50 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id CCA526EC03 for ; Fri, 10 Jul 2020 12:00:48 +0000 (UTC) IronPort-SDR: p3dRJvVFTtIjDt4xpeIRC3okmCCGxutG0dVJdkZocc2BSe6k5BDWHOGiw0e4oZQOM9Wd+1dq/B q3zVxhGiyHAA== X-IronPort-AV: E=McAfee;i="6000,8403,9677"; a="209716695" X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="209716695" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 05:00:48 -0700 IronPort-SDR: yaxXX/Ax3raWBQULWpAmv+6jh462ZbfAJN8eZFdmGfR/vNZGCulGuH5J3GD6Vj9R9SfaIs8dDE wBQMuGBLnYqw== X-IronPort-AV: E=Sophos;i="5.75,335,1589266800"; d="scan'208";a="458258015" Received: from nmartino-mobl1.ger.corp.intel.com (HELO mwahaha-bdw.ger.corp.intel.com) ([10.255.207.224]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 05:00:45 -0700 From: Matthew Auld To: intel-gfx@lists.freedesktop.org Date: Fri, 10 Jul 2020 12:57:38 +0100 Message-Id: <20200710115757.290984-42-matthew.auld@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200710115757.290984-1-matthew.auld@intel.com> References: <20200710115757.290984-1-matthew.auld@intel.com> MIME-Version: 1.0 Subject: [Intel-gfx] [RFC 41/60] drm/i915: Distinction of memory regions 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" From: Zbigniew Kempczyński IGTs should be able to choose testing strategy depending on memory regions and its sizes. Add region instance number to make this easier and descriptive. Cc: Matthew Auld Cc: Ramalingam C Cc: Tvrtko Ursulin Cc: Adam Miszczak Signed-off-by: Zbigniew Kempczyński --- drivers/gpu/drm/i915/intel_memory_region.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_memory_region.c b/drivers/gpu/drm/i915/intel_memory_region.c index b4b7858f13e0..eeea520f97ba 100644 --- a/drivers/gpu/drm/i915/intel_memory_region.c +++ b/drivers/gpu/drm/i915/intel_memory_region.c @@ -313,6 +313,10 @@ int intel_memory_regions_hw_probe(struct drm_i915_private *i915) mem->type = type; mem->instance = instance; + if (HAS_LMEM(mem->i915) && type != INTEL_MEMORY_SYSTEM) + intel_memory_region_set_name(mem, "%s%u", + mem->name, mem->instance); + i915->mm.regions[i] = mem; }