From patchwork Fri Mar 27 10:32:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lionel Landwerlin X-Patchwork-Id: 11462157 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 68449913 for ; Fri, 27 Mar 2020 10:32:09 +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 50F3620714 for ; Fri, 27 Mar 2020 10:32:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 50F3620714 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 B4FFC6E077; Fri, 27 Mar 2020 10:32:08 +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 E05876E077 for ; Fri, 27 Mar 2020 10:32:07 +0000 (UTC) IronPort-SDR: bxKJEqHroMqN39djD+E7EQyuhNsh0w/EDpZkB/A7FLmSTdL81CTUrTKoqYAJQNMTchhmPg9+Pl +WVgL5GIheSQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2020 03:32:07 -0700 IronPort-SDR: J9n8Or96W7MJFwBi6ncQ/WiwS8UwJVjVXCh3P4jwGbRQbZOTA9lvpHAiG1iEq/iILwLMPiaHYo qIyGPWIwHGfA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,312,1580803200"; d="scan'208";a="394336239" Received: from kdhanoa-mobl.ger.corp.intel.com (HELO delly.ger.corp.intel.com) ([10.249.34.55]) by orsmga004.jf.intel.com with ESMTP; 27 Mar 2020 03:32:06 -0700 From: Lionel Landwerlin To: intel-gfx@lists.freedesktop.org Date: Fri, 27 Mar 2020 12:32:06 +0200 Message-Id: <20200327103209.3099292-1-lionel.g.landwerlin@intel.com> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 0/3] drm/i915/perf: add support for multi context filtering 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" Hi all, i915/perf has currently support for single context filtering. This allows mesa to read the content of the OA buffer and cut out any unrelated context running in a middle of a query. Iris currently uses 2 GEM contexts for 3D & compute commands. In order to support performance queries on the compute context we need to be able to also filter on the second GEM context used for compute commands. This series add support for filtering up to 4 GEM contexts in i915/perf. Lionel Landwerlin (3): drm/i915/perf: break OA config buffer object in 2 drm/i915/perf: prepare driver to receive multiple ctx handles drm/i915/perf: enable filtering on multiple contexts drivers/gpu/drm/i915/i915_perf.c | 702 ++++++++++++++++--------- drivers/gpu/drm/i915/i915_perf_types.h | 25 +- include/uapi/drm/i915_drm.h | 21 + 3 files changed, 481 insertions(+), 267 deletions(-) --- 2.26.0