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=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable 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 2C61DC56202 for ; Thu, 26 Nov 2020 09:53:57 +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 86660208CA for ; Thu, 26 Nov 2020 09:53:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 86660208CA 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 CFF586E844; Thu, 26 Nov 2020 09:53:55 +0000 (UTC) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id DC7296E844 for ; Thu, 26 Nov 2020 09:53:54 +0000 (UTC) IronPort-SDR: nLjsS5I1P+OYdAwBuLikHDlRDExBfwDbshhLARIem4fij928NX4WRrZ8VLsdr1JADSU2Mf/vhT ArZinu9ghj5Q== X-IronPort-AV: E=McAfee;i="6000,8403,9816"; a="152097628" X-IronPort-AV: E=Sophos;i="5.78,371,1599548400"; d="scan'208";a="152097628" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2020 01:53:36 -0800 IronPort-SDR: JGHQn+QD7xbDF8ab9HvcWO+SAq2dMi4pdmH+vTRc4Wz9wXCYi/wqh9mUbTT4c0Dme2OEFgETaY Eigx0q6TfgYA== X-IronPort-AV: E=Sophos;i="5.78,371,1599548400"; d="scan'208";a="371086581" Received: from genxfsim-desktop.iind.intel.com (HELO intel.com) ([10.223.74.178]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2020 01:53:34 -0800 Date: Thu, 26 Nov 2020 15:09:50 +0530 From: Anshuman Gupta To: Imre Deak Message-ID: <20201126093947.GM13853@intel.com> References: <20201124095847.14098-1-anshuman.gupta@intel.com> <20201124164406.GG1750458@ideak-desk.fi.intel.com> <20201125074624.GJ13853@intel.com> <20201125162444.GC1968234@ideak-desk.fi.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201125162444.GC1968234@ideak-desk.fi.intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Subject: Re: [Intel-gfx] [RFC] drm/i915/dp: PPS registers doesn't require AUX power 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: , Cc: intel-gfx@lists.freedesktop.org, stable@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On 2020-11-25 at 18:24:44 +0200, Imre Deak wrote: > +Ville. Hi Ville , Let me provide you some context over the issue which requires your input. TGL on chorome OS has observed some display glitches when brightness is being updated at very fast rate. This has surfaced out two issue. 1. Getting the AUX power when accessing the PPS registers on platform with split PCH. 2. The race between DC3CO disabling delay and flips. (B.Spec says 200us dc3co exit delay) I will send a separate RFC patch to fix this issue. Current patch is addressing issue1, IMHO it is unnecessary to take AUX power for pps register read for checking whether backlight was enabled. This is causing flip to race with DC3CO exit delay. Could you please provide your input to this . Thanks, Anshuman Gupta. > > On Wed, Nov 25, 2020 at 01:16:27PM +0530, Anshuman Gupta wrote: > > On 2020-11-24 at 18:44:06 +0200, Imre Deak wrote: > > > On Tue, Nov 24, 2020 at 03:28:47PM +0530, Anshuman Gupta wrote: > > > > Platforms with South Display Engine on PCH, doesn't > > > > require to get/put the AUX power domain in order to > > > > access PPS register because PPS registers are always on > > > > with South display on PCH. > > > > > > > > Cc: Imre Deak > > > > Cc: > > > > Signed-off-by: Anshuman Gupta > > > > > > Could you describe the issue the patch is fixing? > > > > This fixes the display glitches causes by race between brightness > > update thread and flip thread. > > Flips should work even with asynchronous DC3co (or any DC state) > disabling, at least according to the spec the HW handles this. Only > modesetting and AUX transfers have restriction wrt. DC state handling > (where DC states need to get disabled). > > I think the exact restriction needs to be clarified with HW people: Is > only the DC3co disable -> flip or also the opposite sequence > problematic? Is it only DC3co or also DC5/6 affected? > > > While brightness is being updated it reads pp_ctrl reg to check > > whether backlight is enabled and get/put the AUX power domain, this > > enables and disable DC Off power well(DC3CO) back and forth. > > > > IMO there are two work item for above race needed to be addressed. > > 1. Don't get AUX power for PPS register access (this patch addressed this). > > 2. skl_program_plane() should wait for DC3CO exit delay to avoid any race with > > DC3CO disable sequence. (WIP) > > DC states can be disabled asynchronously with a flip modeset, not only > for panel brightness setting, but also AUX transfers for instance. So I > think we'd need to add locking against DC state changes to > intel_pipe_update_start()/end(). Probably the easiest would be to use > the power_domains->lock for this. > > --Imre _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx