Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 628A7C433EF for ; Thu, 28 Oct 2021 15:05:25 +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 256A760C51 for ; Thu, 28 Oct 2021 15:05:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 256A760C51 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 920086E82A; Thu, 28 Oct 2021 15:05:24 +0000 (UTC) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3A8D66E82A for ; Thu, 28 Oct 2021 15:05:23 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10151"; a="217603536" X-IronPort-AV: E=Sophos;i="5.87,190,1631602800"; d="scan'208";a="217603536" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Oct 2021 08:05:14 -0700 X-IronPort-AV: E=Sophos;i="5.87,190,1631602800"; d="scan'208";a="487167719" Received: from ideak-desk.fi.intel.com ([10.237.68.141]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Oct 2021 08:05:12 -0700 Date: Thu, 28 Oct 2021 18:05:09 +0300 From: Imre Deak To: "Kulkarni, Vandita" Cc: "intel-gfx@lists.freedesktop.org" , "Nikula, Jani" , "Roper, Matthew D" , "ville.syrjala@linux.intel.com" Message-ID: <20211028150509.GC3069912@ideak-desk.fi.intel.com> References: <20211019151435.20477-1-vandita.kulkarni@intel.com> <20211019151435.20477-4-vandita.kulkarni@intel.com> <20211022202305.GA1980572@ideak-desk.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Intel-gfx] [V2 3/4] drm/i915/dsi/xelpd: Disable DC states in Video mode 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Thu, Oct 28, 2021 at 04:53:22PM +0300, Kulkarni, Vandita wrote: > > -----Original Message----- > > From: Deak, Imre > > Sent: Saturday, October 23, 2021 1:53 AM > > To: Kulkarni, Vandita > > Cc: intel-gfx@lists.freedesktop.org; Nikula, Jani ; > > Roper, Matthew D ; > > ville.syrjala@linux.intel.com > > Subject: Re: [V2 3/4] drm/i915/dsi/xelpd: Disable DC states in Video mode > > > > On Tue, Oct 19, 2021 at 08:44:34PM +0530, Vandita Kulkarni wrote: > > > MIPI DSI transcoder cannot be in video mode to support any of the > > > display C states. > > > > > > Bspec: 49195 (For DC*co DSI transcoders cannot be in video mode) > > > Bspec: 49193 (Hardware does not support DC5 or DC6 with MIPI DSI > > > enabled) > > > Bspec: 49188 (desc of DSI_DCSTATE_CTL talks about cmd mode PM control > > > > So none of the DC states (except DC6v which the driver doesn't support) are > > supported in DSI video mode and DC3co is supported in command mode. > > The selection between video vs. command mode happens using a VBT flag > > and I can't see anything that would prevent using command mode on XELPD. > > If the support for it is missing, should it be disabled explicitly or at least a > > notice printed that DC states are not yet supported? > > Since we haven't enabled and tried dsi cmd mode on xelpd and in DC3co > DMC Would monitor the idleness of the transcoder, until that is > enabled, we can disable Cmd mode for now. Will send out a patch to > disable cmd mode on xelpd, as it would by default depend on Vbt like > you have mentioned above. Ok. On this patch: Reviewed-by: Imre Deak > > Thanks, > Vandita > > > > > > v2: Align to the power domain ordering (Jani) > > > Add bspec references (Imre) > > > > > > Signed-off-by: Vandita Kulkarni > > > --- > > > drivers/gpu/drm/i915/display/intel_display_power.c | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/gpu/drm/i915/display/intel_display_power.c > > > b/drivers/gpu/drm/i915/display/intel_display_power.c > > > index d88da0d0f05a..b989ddd3d023 100644 > > > --- a/drivers/gpu/drm/i915/display/intel_display_power.c > > > +++ b/drivers/gpu/drm/i915/display/intel_display_power.c > > > @@ -3106,6 +3106,7 @@ intel_display_power_put_mask_in_set(struct > > drm_i915_private *i915, > > > BIT_ULL(POWER_DOMAIN_MODESET) | \ > > > BIT_ULL(POWER_DOMAIN_AUX_A) | \ > > > BIT_ULL(POWER_DOMAIN_AUX_B) | \ > > > + BIT_ULL(POWER_DOMAIN_PORT_DSI) | \ > > > BIT_ULL(POWER_DOMAIN_INIT)) > > > > > > #define XELPD_AUX_IO_D_XELPD_POWER_DOMAINS > > BIT_ULL(POWER_DOMAIN_AUX_D_XELPD) > > > -- > > > 2.32.0 > > >