Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9573880rwl; Wed, 11 Jan 2023 07:22:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXujt/dI05ExL7i1nUs3yvIHuAiiV5u2wl5h7TWuRIrIaQ6vAZCi/aRwbMCiONQDbRBH/IlL X-Received: by 2002:a17:90a:4fe6:b0:219:9bae:6026 with SMTP id q93-20020a17090a4fe600b002199bae6026mr73925685pjh.45.1673450546292; Wed, 11 Jan 2023 07:22:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673450546; cv=none; d=google.com; s=arc-20160816; b=c3MhNl8oU6BNUpnUHAEe9QxusgyPKU7Zkr40Kl6VGqu5siWCFE5QL/Ahs5cxNA5wmK yetvKF7zFxoHYwukP+BT6HBPbul6gpXLXWi1lv/0GWFuK37m+tTFQVuTvv25L6c7v2xD b00EVwenJJA4zaFT5mS1Q/Usj5gXMzPE+4Lp2Sw0n7w4W9jipIsLE6G+3dmik4CUEnZO i4ueOUsFpbAHvqrLAdpfRuRwON+dD1DXRPU29ODnd5xCQY07tZ5QD2PT/iSg/jDwfTaR RKBLjTKWCVwiDDJn0oOG0qYLiY4rqoIoThaMoFc7FzVKwNWOfDmuIxk6Ti7WDoQdImU+ gYrg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:to :from:date:dkim-signature; bh=qngjJUTwGamgfPwC10uCkaE73kLEeKR5d0bRHmlf4iY=; b=Y44Wt+ezE1IZ7a0ULgEn8oAx9Llo8jx9L6DwmyGktI1qAnTG/TzWmZkCU0ceWvhF/i RO3BoRkrDSw0QwyTOAdESZIVoN0obK9XXuINFLHkL2mbiZFgw0bFQMyhfpIYIliEsie9 E5YL0Ksy021KjLXOaYsPzxCRTveFJhM8+QiTkKi4Vk2jwpTUpHv3lYytBL8DaNbs4LDz 2rxqY9TTSjVtyjuyYZ3mFyGBwhaw+rT4Cwp2K8e5LpVT3385zPDegZ573t1+xXCtrYz4 MQIeiOzTR8p2g5zhd4s7RwL8mgKR9s41rGnhz18nz4uCLr4CAgw58HeZkdsL5VQgHpV6 QJfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=b+wYNn8b; 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 hk6-20020a17090b224600b00219404caaeasi20707316pjb.164.2023.01.11.07.22.19; Wed, 11 Jan 2023 07:22:26 -0800 (PST) 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=b+wYNn8b; 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 S238193AbjAKPFe (ORCPT + 51 others); Wed, 11 Jan 2023 10:05:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238833AbjAKPEz (ORCPT ); Wed, 11 Jan 2023 10:04:55 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A5B210FE; Wed, 11 Jan 2023 07:04:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673449495; x=1704985495; h=date:from:to:subject:message-id:references:mime-version: content-transfer-encoding:in-reply-to; bh=jxDJ3ooBqVnTaczv1GXFLe+oPshX0iJRCjOYwPWvPAA=; b=b+wYNn8bm9dndm/k3rnX4nARLMBPPUC+Dj3nzq4ku88Afs44J7oJW+DP EsuKTC5ryH3UI3PPKlVZDPHUA6Z6LnUDNX+ORZM9q+98up+mmpqrFjqy3 gUyyg+Nn9uTpaYlpXLTAMIAUkYEywMmMcYSJk159qWeqj5Rohd89iSWVt zgegjLtIMxLvT86BLvg1x229YKuHC5iwekIrhIdhn7tzzniX+lmoZTWDZ o9S86wU6eR+ArwoldLzPGegrNJJB4i/1KYS5Gf+BSB+19IcVP5AE/fZHu 18gABjUIyJg1lUWeoQlCj7jphouklLtmZBw2/7Aw4jsfptn2Qw2+XJg6l A==; X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="350662836" X-IronPort-AV: E=Sophos;i="5.96,317,1665471600"; d="scan'208";a="350662836" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2023 07:03:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="687955288" X-IronPort-AV: E=Sophos;i="5.96,317,1665471600"; d="scan'208";a="687955288" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.55]) by orsmga008.jf.intel.com with SMTP; 11 Jan 2023 07:03:31 -0800 Received: by stinkbox (sSMTP sendmail emulation); Wed, 11 Jan 2023 17:03:30 +0200 Date: Wed, 11 Jan 2023 17:03:30 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Brian Norris , Heiko =?iso-8859-1?Q?St=FCbner?= , Sean Paul , Michel =?iso-8859-1?Q?D=E4nzer?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Sandy Huang , linux-rockchip@lists.infradead.org, stable@vger.kernel.org Subject: Re: [PATCH 1/2] drm/atomic: Allow vblank-enabled + self-refresh "disable" Message-ID: References: <20230105174001.1.I3904f697863649eb1be540ecca147a66e42bfad7@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Patchwork-Hint: comment X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 Fri, Jan 06, 2023 at 09:30:56PM +0100, Daniel Vetter wrote: > On Fri, Jan 06, 2023 at 11:33:06AM -0800, Brian Norris wrote: > > On Fri, Jan 06, 2023 at 07:17:53PM +0100, Daniel Vetter wrote: > > > - fake vblanks with hrtimer, because on most hw when you turn off the crtc > > > the vblanks are also turned off, and so your compositor would still > > > hang. The vblank machinery already has all the code to make this happen > > > (and if it's not all, then i915 psr code should have it). > > > > Is a timer better than an interrupt? I'm pretty sure the vblank > > interrupts still can fire on Rockchip CRTC (VOP) (see also the other > > branch of this thread), so this isn't really necessary. (IGT vblank > > tests pass without hanging.) Unless you simply prefer a fake timer for > > some reason. > > > > Also, I still haven't found that fake timer machinery, but maybe I just > > don't know what I'm looking for. > > I ... didn't find it either. I'm honestly not sure whether this works for > intel, or whether we do something silly like disable self-refresh when a > vblank interrupt is pending :-/ Intel hardware doesn't enter PSR while the vblank interrupt is enabled. -- Ville Syrj?l? Intel