From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 4519AC2BA1A for ; Tue, 7 Apr 2020 16:43:32 +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 22F3D20719 for ; Tue, 7 Apr 2020 16:43:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 22F3D20719 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 BA6D66E3F0; Tue, 7 Apr 2020 16:43:31 +0000 (UTC) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4FEFD6E3F0 for ; Tue, 7 Apr 2020 16:43:30 +0000 (UTC) IronPort-SDR: JPNW1ELwlT0+R+ZNfhAEWxCE1Duwvi40sAkyWDiDdBhNEGWm2QPH7LIOxpV2J64zaQk12CMr/y LivN0ySW4BMQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2020 09:43:29 -0700 IronPort-SDR: bHUaRqlWp4DLNlVZRltTupqnqKlgGJYKD2lWOxzEJ5Cv+FA6/f/eK5D0PIHeI8tWzXWs+6blxG JSt8O1POKJLw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,355,1580803200"; d="scan'208";a="242123683" Received: from marinasm-mobl1.ccr.corp.intel.com (HELO [10.249.41.67]) ([10.249.41.67]) by fmsmga007.fm.intel.com with ESMTP; 07 Apr 2020 09:43:29 -0700 To: Chris Wilson , intel-gfx@lists.freedesktop.org References: <20200407123540.601497-1-lionel.g.landwerlin@intel.com> <20200407123540.601497-2-lionel.g.landwerlin@intel.com> <158627655632.8918.7532038582567584503@build.alporthouse.com> From: Lionel Landwerlin Organization: Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ Message-ID: <799ed671-d5de-7602-b01a-f44e94212d3b@intel.com> Date: Tue, 7 Apr 2020 19:43:28 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <158627655632.8918.7532038582567584503@build.alporthouse.com> Content-Language: en-US Subject: Re: [Intel-gfx] [PATCH v4 2/3] drm/i915/perf: prepare driver to receive multiple ctx handles 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: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On 07/04/2020 19:22, Chris Wilson wrote: > Quoting Lionel Landwerlin (2020-04-07 13:35:39) >> -static struct intel_context *oa_context(struct i915_perf_stream *stream) >> -{ >> - return stream->pinned_ctx ?: stream->engine->kernel_context; >> -} > Idle thought: create a > > stream->context = intel_context_create(stream->engine); > > so I can stop worrying about the kernel_context. (What's the cost of one > more context, heh?) > -Chris Sure :) -Lionel _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx