Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp717975rwd; Wed, 31 May 2023 04:37:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7clvpW67LFgK/QwFyX7ZCQa/WRfdxPvQVytEayCG6cBDFy6r+m29ilZfZ48aC0CBbcJ/AY X-Received: by 2002:a05:6a20:3c92:b0:10c:ef7d:b0ca with SMTP id b18-20020a056a203c9200b0010cef7db0camr5203838pzj.15.1685533062692; Wed, 31 May 2023 04:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685533062; cv=none; d=google.com; s=arc-20160816; b=w6WaPkhsZCyjOGAXx6TWnzmTU1Z2K4wl1WBhKj5NcyYmxWlDcr2sMHOta+deLvB6hw 4Dx2IrnsUjEwhvSqqWcM61xI1hMPZGJk5BWFzKwqKn26IBHZr/xLh2LTRCUjBpswFdSl z7hyke94G5OQNbhGWakJKyqaPhs/21ov+I2GFiO623u0ig6OCBqErKlGjvfFl6iKJsUh uJV/twZ5GT1r+GMxfy8uLLElpf38qagg6KdTv1yln013xbcmy1mcXCjsZH0ZC2Jsq6em fguVrKtOBiRu0/iLFaIgy9BgRl+n3SdFC+S/uYKU7u3rk3vOK7shafJMsnlF+0a+0O/7 fkwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=t+QshJt/PdyfRodhCY0yXtcG2lF/vT/ZBreOHflG6Y4=; b=qYvLWvqRNULkWGZg10U5bnFVer0sQCJcm/eaPPq2KLNYAX8aKXsdk1zjhcBfimG4TM H5q2aVs7rLAXRgp2b1Zot29ReChq4qpkq+vWcmJOuU/ASNnYam/gx2AwXMaLVOapRH5u Keaf4GORzjMXi1zTUcAzWenFlBxeApUpYNvZx3HVSuEM9PwFwfEFLma+FSWygkMw7LA0 LmclYsQe2xZvpP6lu1H0pKSYW1sTUR175VmUUvNVfPmAulu+AL1r0jgTJ6jMaDxgcnwk GdQXZvjLHW7kOrgl8vMA0qGNYb9PM0Bxpl4ogdK4X+5agf5tj+Am1r0hs1iySq+Cruae Rs2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@heitbaum.com header.s=google header.b=UhOihmEs; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ja5-20020a170902efc500b001b0603829afsi709717plb.405.2023.05.31.04.37.28; Wed, 31 May 2023 04:37:42 -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=@heitbaum.com header.s=google header.b=UhOihmEs; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230487AbjEaLcG (ORCPT + 99 others); Wed, 31 May 2023 07:32:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230341AbjEaLcF (ORCPT ); Wed, 31 May 2023 07:32:05 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 770CDD9 for ; Wed, 31 May 2023 04:32:02 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-53fb4ee9ba1so1080746a12.3 for ; Wed, 31 May 2023 04:32:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heitbaum.com; s=google; t=1685532722; x=1688124722; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=t+QshJt/PdyfRodhCY0yXtcG2lF/vT/ZBreOHflG6Y4=; b=UhOihmEs45qAYMynSTSjHQR1VfJ2+HA1k2nsMaDzrL3Lmv07qiXLvOtAGE09yFghLv mmvfwvn23QTlh8BzTtZB4xej33ZljTYY1+0uaAyXNy5xemBi9mVH+HfuMREXm/zTd1xw ONF3IfIuOkgK03fZZjL+ldMXhribgFz5p0ZmM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685532722; x=1688124722; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t+QshJt/PdyfRodhCY0yXtcG2lF/vT/ZBreOHflG6Y4=; b=TKtlPoYCIulLtk45ybxdwAFkjSnB3nH4LrQcN/2GMF6Mlvq38RaXx7XnhPt3j1omuS CZdH9flv1Gn7tQiWtDmVO9lOewkUsDZZOyc6BHDVHI5DZsTGsfmYtO3oCi4c/qFnV8AK PLnD16xJgU+DyNByouXt4zx9kkm78hLOW7C2DRQX6wg7pKVh/X3rOcMnic88gH93AkQQ 1TOFVDMFXr5JLDo/YWJ+TU+o9S45sKmZWt+HpPLj7udVokpYV3ZwAynd88JyBX/qNiZM iQ/YdeX1a02dmlbj9Cibu/KqieOV5Ny3LVkQgZZ7/1PEPnViyvd14tCBNuczlrTac696 olRA== X-Gm-Message-State: AC+VfDz6A0NaxkHtuIkvzWmMUldgLRaTtq6iR70fSiFn8HMq4yYtfZS7 VdY8xPilHXwL6XDIBmn3pBKDvIwA21q56GOC/QyaXw== X-Received: by 2002:a17:90a:b013:b0:247:ab52:d5d8 with SMTP id x19-20020a17090ab01300b00247ab52d5d8mr4436508pjq.26.1685532721781; Wed, 31 May 2023 04:32:01 -0700 (PDT) MIME-Version: 1.0 References: <20230510103131.1618266-2-imre.deak@intel.com> <20230530134907.GA8@5e905162a5a7> In-Reply-To: From: Rudi Heitbaum Date: Wed, 31 May 2023 21:31:49 +1000 Message-ID: Subject: Re: [v4,01/14] drm/i915: Fix PIPEDMC disabling for a bigjoiner configuration To: imre.deak@intel.com Cc: Dave Airlie , Dave Airlie , intel-gfx@lists.freedesktop.org, Rodrigo Vivi , Joonas Lahtinen , Linus Torvalds , Daniel Vetter , dri-devel , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Imre, Raised the ticket and was able to capture the logs for you. https://gitlab.freedesktop.org/drm/intel/-/issues/8559 Thanks Rudi On Wed, 31 May 2023 at 18:47, Imre Deak wrote: > > On Tue, May 30, 2023 at 01:49:07PM +0000, Rudi Heitbaum wrote: > Hi Rudi, > > Could you open a ticket at > https://gitlab.freedesktop.org/drm/intel/-/issues/new > > attaching a dmesg log after booting with drm.debug=3D0xe, with the > messages from boot-up until the issue happens? > > Thanks, > Imre > > > Hi Imre/Dave, > > > > Ref: [v4,01/14] drm/i915: Fix PIPEDMC disabling for a bigjoiner configu= ration > > [git pull] drm fixes for 6.4-rc4 > > drm-fixes-2023-05-26: > > drm fixes for 6.4-rc4 > > > > This patch has caused a regression between 6.4-rc3 and 6.4-rc4. Other > > tested kernels include 6.3.4 work fine. Dropping the patch allows the d= ecode > > playback of media via Kodi. Without dropping the patch - the media > > starts and stutters then ceases to play. > > > > There is an additional issue that 6.4-rc4 audio playback is also failin= g > > (where 6.4-rc3 was fine), I have not yet tracked this down. > > > > This is all on: > > DMI: Intel(R) Client Systems NUC12WSKi7/NUC12WSBi7, BIOS WSADL357.0087.= 2023.0306.1931 03/06/2023 > > 12th Gen Intel(R) Core(TM) i7-1260P (family: 0x6, model: 0x9a, stepping= : 0x3) > > microcode: updated early: 0x429 -> 0x42a, date =3D 2023-02-14 > > > > Regards > > > > Rudi > > > > On Wed, May 10, 2023 at 01:31:18PM +0300, Imre Deak wrote: > > > For a bigjoiner configuration display->crtc_disable() will be called > > > first for the slave CRTCs and then for the master CRTC. However slave > > > CRTCs will be actually disabled only after the master CRTC is disable= d > > > (from the encoder disable hooks called with the master CRTC state). > > > Hence the slave PIPEDMCs can be disabled only after the master CRTC i= s > > > disabled, make this so. > > > > > > intel_encoders_post_pll_disable() must be called only for the master > > > CRTC, as for the other two encoder disable hooks. While at it fix thi= s > > > up as well. This didn't cause a problem, since > > > intel_encoders_post_pll_disable() will call the corresponding hook on= ly > > > for an encoder/connector connected to the given CRTC, however slave > > > CRTCs will have no associated encoder/connector. > > > > > > Fixes: 3af2ff0840be ("drm/i915: Enable a PIPEDMC whenever its corresp= onding pipe is enabled") > > > Cc: Rodrigo Vivi > > > Cc: Ville Syrj=C3=A4l=C3=A4 > > > Reviewed-by: Ville Syrj=C3=A4l=C3=A4 > > > Signed-off-by: Imre Deak > > > --- > > > drivers/gpu/drm/i915/display/intel_display.c | 12 ++++++++++-- > > > 1 file changed, 10 insertions(+), 2 deletions(-) > > > > > > diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/g= pu/drm/i915/display/intel_display.c > > > index 1d5d42a408035..116fa52290b84 100644 > > > --- a/drivers/gpu/drm/i915/display/intel_display.c > > > +++ b/drivers/gpu/drm/i915/display/intel_display.c > > > @@ -1702,9 +1702,17 @@ static void hsw_crtc_disable(struct intel_atom= ic_state *state, > > > > > > intel_disable_shared_dpll(old_crtc_state); > > > > > > - intel_encoders_post_pll_disable(state, crtc); > > > + if (!intel_crtc_is_bigjoiner_slave(old_crtc_state)) { > > > + struct intel_crtc *slave_crtc; > > > + > > > + intel_encoders_post_pll_disable(state, crtc); > > > > > > - intel_dmc_disable_pipe(i915, crtc->pipe); > > > + intel_dmc_disable_pipe(i915, crtc->pipe); > > > + > > > + for_each_intel_crtc_in_pipe_mask(&i915->drm, slave_crtc, > > > + intel_crtc_bigjoiner_sla= ve_pipes(old_crtc_state)) > > > + intel_dmc_disable_pipe(i915, slave_crtc->pipe); > > > + } > > > } > > > > > > static void i9xx_pfit_enable(const struct intel_crtc_state *crtc_sta= te)