Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6237016rwl; Tue, 4 Apr 2023 09:34:59 -0700 (PDT) X-Google-Smtp-Source: AKy350ZR8YV5dBcwR5fTrV0h86j9l8IpS4FBMXdFE+gP/xYGyRv7VH31DXSaL+bld5ySTQDuQTmI X-Received: by 2002:a17:903:22c1:b0:19e:674a:1fb9 with SMTP id y1-20020a17090322c100b0019e674a1fb9mr3746552plg.69.1680626099222; Tue, 04 Apr 2023 09:34:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680626099; cv=none; d=google.com; s=arc-20160816; b=h4MZiXR4FeQy5JbUR0X87XkJGbGaDLrtGi3AvLOjOfhls8ll8V3GqJkKPFE5uLCY97 8EUuMIhbXb9sS26xRBuN6FvGzIVmv49H5EX/BUmKrzac2FgrQTsKasqL7ZjWp2bLjy0N GwA8dZzND128Wl9ZBjsPT3tOehKJtC2rtNqfp4OL3arkfSSRzDSjgvZX5ZbqYqbS9o4b Jq3Zn02oiAA5xHYRniYrWG283JqFmY/0NOvWI/f5K+7gVPsCOedZSC3Bjzw9zCRZ4b7W ZUyUq6LBGDlP6oBsNDjEjOOGTdoa65BJq8knMwEkNn/vNJLsPsPBapbOAQ2Zufl66dgd Fr5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UY6E0zG90OWSLgK398pgTBAxLnZcC4BXfoFZOr9IzvE=; b=ccf8M5NSlhpG/Vsdo6awU3Ec+qZ8OlS4AXf3SHxjHRpxjhP/sxHagq4p0PpvbOxwgG TtKV6MClRuKxd/rN1ZXX4yzUcb/Nq5pHP3LcvX4qZatHvHad0Va2hDwydyvNAIj/0GFd eBPU87SjA7MliDPttZdw9T2fjFgBVPw99j5eR51nRBdEka7jZL6zYsk8jVOTRhAhsPhf eitl0PedC08kslBno/8eMxn3hVZNF/Uy4edJdYjTqjSFndfhpNe+wLa4Q2+ivruulfX0 5BnGb/JvyoURS7/Yjly+WB2bGWsxlFPbnX9LpiuRS4RSins7JLhr7MnFSroinRfyfOaP iHlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XE+oN4eS; 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 x11-20020a170902ec8b00b0019ceaf40d5esi11139366plg.107.2023.04.04.09.34.33; Tue, 04 Apr 2023 09:34:59 -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=XE+oN4eS; 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 S234583AbjDDQaB (ORCPT + 99 others); Tue, 4 Apr 2023 12:30:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233810AbjDDQaA (ORCPT ); Tue, 4 Apr 2023 12:30:00 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BD6EE7A for ; Tue, 4 Apr 2023 09:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680625799; x=1712161799; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Ad2yLR2QGHM1zH+wT1W70rZoVZagkqBkiUabciymSJQ=; b=XE+oN4eSAkek9k3mdiHgbbbfhKXhb7qnOZ3XLl8GvcPT/c3IzjkWqO1L ekDGBnk4neV4XBYfNk7p27RR2mWXdTxQN9Je82lTLCGGTrZMm0GmFhPqp EcXHqN0mh/yr6WDZrr5+p3mo44gzhUOCdP1CE8Td4LbtmLgJYjzsRsw5a 170I0nZVx8WPaKXQYTC4xKuFbFK+EoMVxmBhRCnkkqTTj/VmBSj/G8bBE ZZr8xONvWAjYBQkibBBKDLk13tZYl49LuJ/vV6dhIrTeh4zueSU65Z5M0 Ga91ngBRg3WuKPTXQgI0WIRDsJVMx7uen+kuRL98umoFkS+4x8hDRO9vu g==; X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="428523952" X-IronPort-AV: E=Sophos;i="5.98,318,1673942400"; d="scan'208";a="428523952" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2023 09:29:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="775709901" X-IronPort-AV: E=Sophos;i="5.98,318,1673942400"; d="scan'208";a="775709901" Received: from vferra-mobl1.ger.corp.intel.com (HELO intel.com) ([10.252.53.196]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2023 09:29:54 -0700 Date: Tue, 4 Apr 2023 18:29:26 +0200 From: Andi Shyti To: Andrzej Hajda Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Chris Wilson , Andi Shyti , Chris Wilson Subject: Re: [PATCH v2] drm/i915/gt: Hold a wakeref for the active VM Message-ID: References: <20230330-hold_wakeref_for_active_vm-v2-1-724d201499c2@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230330-hold_wakeref_for_active_vm-v2-1-724d201499c2@intel.com> X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,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 Hi, On Fri, Mar 31, 2023 at 04:16:36PM +0200, 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 Thank you Tvrtko and Chris for answering my questions, Reviewed-by: Andi Shyti Andi