Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp758597rwl; Wed, 5 Apr 2023 07:22:51 -0700 (PDT) X-Google-Smtp-Source: AKy350bHY/x0mCYZudlJXl3QQuTkFDs0NCkqvnB7y8UJBcB0fpTkm+8uERbf+o4VZiZAfG60/dd+ X-Received: by 2002:a17:903:244d:b0:1a2:8c7e:f310 with SMTP id l13-20020a170903244d00b001a28c7ef310mr8223131pls.35.1680704570994; Wed, 05 Apr 2023 07:22:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680704570; cv=none; d=google.com; s=arc-20160816; b=zAhpTSpiCLBBsabUUQNWilZ0/ZfUiK00LyFplv9pb/PoYYd+Kj+NMY1OuPdQAnkRMV ZOWMhrFL8HHwYQqxkHQAVxDp++cQdbSTvPVqeYZFqpGAr4VALxeQfelNz4iMencH0yM1 7AtgApfCBasdF9dRCpWvZKuHXG1UKeqEUqzVMCbdmicgps7PsV178OFdsh0wYAcQm72a eSdgWx5bAxCT3yZXIOMCLgOPhlx4Sa/qRWh9fcOmcUz9cMNCZj/hQIYITcSijghmPA8O 47y9lFBGkfIdfn4yo++5iW/KYqc/M19hZxxG3wYE6l3jGg8kpNbZIhSx13o/eDZIYJxr g1cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=pv7EWJt3+bRdMbjEw0y2XizyJxzYygcECelgbFpD14g=; b=r9GABZcIf9mD3+6RMz/C2gM5fJZK3keL59ie7CwwiM9Lt4usidtLB1JWAHlQeRfy+N /1HpUNOjwBEZwGkp+xqoTsVVXCyBYuKrjsGXraT5NAAQJl6189WP/0g7odVvIouLhiBi 3Ao2ZP5L2IyMLU4Xk2td7Sw83AEGBeY+T64SW/KNMDOgH+gCXYTzQlbp7IJDbkVyDd6E 13kEfq5AfG63eVnT2fzzrnYPZgfUpn4hKSRJvXOkI+AbhSmD01nl+mDYMLInANZdopYt CoKMs6sc+dtC4SJu/K2cGnP/JcX4Oo22HjmezGpEtwJR+wWabvRPEuW0qf+rahIOhEUy NUsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=S+Ah9AHQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a170903110900b001990dd91a9csi13077425plh.199.2023.04.05.07.22.37; Wed, 05 Apr 2023 07:22:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=S+Ah9AHQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238346AbjDEOT7 (ORCPT + 99 others); Wed, 5 Apr 2023 10:19:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238324AbjDEOTg (ORCPT ); Wed, 5 Apr 2023 10:19:36 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8181765BC for ; Wed, 5 Apr 2023 07:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680704323; x=1712240323; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=P2RqPac9TO0CaODUD6qKdkCCEU6OfG21RarkLTKjyUs=; b=S+Ah9AHQEPqLk2u/FfricfnYUX95swK1/vJFT6sAvPkgO3GlUG6dwRAn /ppiLe4S1HUbQfG7S795mrQ8c9Go7puQMx/Z3ZXyk9P8tO5xOVQq7YDVY hUYytqB9Jj+WHGjw7SfdAAzYXYQQ9wPKkMC4WBcBUyQq52CHMb5psaGbD y+IX/XZjvYzpwmbnKMWAI0WpZBKEx2GGPpF3R6/xqJTIhxcwMas1LHs3o aCUMwlDjhYn7RssqtH5fcuEY4tOMinyeh/FcvgFKZ/005HZZ+d4SBQGfP 3J+GqhEy4xPZ8NKu1c1n16D06h+jLaJPyWA97YYRogbCaJB0K+D+9P/n8 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10671"; a="345042331" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="345042331" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2023 07:16:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10671"; a="664052961" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="664052961" Received: from ahajda-mobl.ger.corp.intel.com (HELO [10.213.30.7]) ([10.213.30.7]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2023 07:16:16 -0700 Message-ID: <50dce146-f7b0-89ff-34f6-d0ddbda4c158@intel.com> Date: Wed, 5 Apr 2023 16:16:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.9.1 Subject: Re: [Intel-gfx] [PATCH v2] drm/i915/gt: Hold a wakeref for the active VM Content-Language: en-US To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter Cc: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Chris Wilson , Chris Wilson References: <20230330-hold_wakeref_for_active_vm-v2-1-724d201499c2@intel.com> From: Andrzej Hajda Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316 In-Reply-To: <20230330-hold_wakeref_for_active_vm-v2-1-724d201499c2@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31.03.2023 16:16, Andrzej Hajda wrote: > From: Chris Wilson > > There may be a disconnect between the GT used by the engine and the GT > used for the VM, requiring us to hold a wakeref on both while the GPU is > active with this request. > > v2: added explanation to __queue_and_release_pm > > Signed-off-by: Chris Wilson > [ahajda: removed not-yet-upstremed wakeref tracking bits] > Signed-off-by: Andrzej Hajda Queued. Regards Andrzej