Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5925298rwl; Tue, 11 Apr 2023 11:56:45 -0700 (PDT) X-Google-Smtp-Source: AKy350ac9yKOPx++GX2tIiDvpSuYuAcsF5WYBqPCJX+0aTqXulHZ7/ugP8cLg1gjh8O5ppvXwFdH X-Received: by 2002:a17:906:bce7:b0:94a:5361:d447 with SMTP id op7-20020a170906bce700b0094a5361d447mr7993382ejb.73.1681239405632; Tue, 11 Apr 2023 11:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681239405; cv=none; d=google.com; s=arc-20160816; b=EIq3QHIC2WRECZVIoMexUI7xcO6zeVciYKJKl4PaY+ed7GUXV9j9edg8ILnmmCl0CG 8BLN6RALfS+8iQTSa0e1yyRc/qexSdguveFg6A3BbEZISNTaAGI/avGwzmbIh+ohqR5Z vNZez2yKfOb11XkNBcTjpz7kLgzk6fMlQdDo6/Pdl//RKLN9po6CAUyWKcZljK4lj6nY RnbGVQNLGaPbQ5/Tqvz2ikxYmAY5sP3AVrUYhER7rFdqllFSonnHBuoFk+FpxvBeS7QM 67XQLdS5tXgP0taX3rK2ws5iUqQo9Fps0XJkd9BWMfgPLGZz2n3bERvLzD5TpEHqGeJc Qxgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dlX5GB/6VyU7aDk+z9ZCkWDR2g+EBJDJyCilYhIFk4Y=; b=WTNH7drEpeUDvxgB3fOE8l1pFDcq2AJrykRT8KQittiwFlfB/Pi3UFDVPo5ifoNHPU ATmDAUGXNBIA16Ry9lBtkcuQrWwqd5gAoqt5I0xOyLHbfegZF71N21TVMjOXbFK6B1k/ w6m8DYZe5bleN5C02/XmYvKUJfkGgYtE1/Xhd/EYkjHMKmDDLikTeybtQVaE2V/WTWwe C8oiB2o9YJvn+Fsuo2d1aD9AETyNOP1UkthJ+WNmAfmtgdtBayO/0bP5e+M76MwO8Ai6 Sx0q7lO8hBelztXA7y1IgEV806qxFrYZzvOekUMQjxce/93OLs2wtl5ZTZC7Jn+Pqj4d MquQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W8ShJmOr; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q24-20020a170906b29800b0094e1764b096si2276065ejz.482.2023.04.11.11.56.20; Tue, 11 Apr 2023 11:56:45 -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=@linaro.org header.s=google header.b=W8ShJmOr; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230012AbjDKSxQ (ORCPT + 99 others); Tue, 11 Apr 2023 14:53:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229961AbjDKSxH (ORCPT ); Tue, 11 Apr 2023 14:53:07 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7FB72136 for ; Tue, 11 Apr 2023 11:52:54 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id he11-20020a05600c540b00b003ef6d684102so2976859wmb.3 for ; Tue, 11 Apr 2023 11:52:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681239173; x=1683831173; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=dlX5GB/6VyU7aDk+z9ZCkWDR2g+EBJDJyCilYhIFk4Y=; b=W8ShJmOrranBwVJX3XSKbLDjxHBq8vJhBijCgc7L4jjwlg2g6LZg+GXeM7mRztXf/U ZKVYRs1p00CHF1cn38ax4sIO5XWOY8EngVoOKtLZ3jkRjPquHajLNYCxPkwNa+T48Mjq 9mMBUNgeylWBYKNdk0F5+ZKjLtRKrC7BeAePFrTlgKsDg0JtOftdh3Q6QkRdYHfghwle jtApdt9IEd7ZI3pg0ZrDHrU7mTF7pZYGToUpux2xUSStqkVsUwk+2hBldlWxMhdyjReg 0kme7KzGOkoTiL8IGpY/VIwwNgrE5P6YmYqBnjDapbi50AHy2zpLxU7RM7FuwczYu8Dy aqaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681239173; x=1683831173; h=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=dlX5GB/6VyU7aDk+z9ZCkWDR2g+EBJDJyCilYhIFk4Y=; b=pFxUq35ZAIM8CWJShbTv+3Xm+kGbkZX5AgpkY+NzwwJt/mO5CzJnfrxuR9l21jpCtC hv0JcQbJl7xBQALMX9Hw/DmSto6uylzdxi+zjU80SmCSKVAVKGTxRuf38gFHnKK0+/bN ZbuTPLZTPr033MAdvHB+OO5M/ljzpFfneZfgSJKub6yOdBw3cGy1TkrScsvRY82QpblZ kYy5GP8CxIkrJ7FHeeWR15xNSpcjLigXyP+rKsrWSVYV2e0N5nj+oLfQH9kgzNaiJbQS l5oOAQiD1D1UjVlrIkgx/AlierFcSL+gvvSIXfGkHywi5qPv+rG2Qpwsm2nXqXnrmjeW /1rw== X-Gm-Message-State: AAQBX9dnocceug6kdtiwf6IdlsKnA4YMG9FUGT4mWC4l4eHb6scMsn0r zMxdzFZLw2bcCNB2zSqweZ64T8rTSQxCFWxl48p/yA== X-Received: by 2002:a1c:7507:0:b0:3f0:8add:2710 with SMTP id o7-20020a1c7507000000b003f08add2710mr1431109wmc.6.1681239173160; Tue, 11 Apr 2023 11:52:53 -0700 (PDT) MIME-Version: 1.0 References: <20211225063151.2110878-1-nikita.yoush@cogentembedded.com> <164563304251.4066078.10022034509552549983@Monstersaurus> <164563575394.4066078.17104997030535169083@Monstersaurus> <7163f30b-6496-5762-0d9d-96834fb7452d@ideasonboard.com> In-Reply-To: From: Yongqin Liu Date: Wed, 12 Apr 2023 02:52:40 +0800 Message-ID: Subject: Re: [PATCH] drm/bridge_connector: enable HPD by default if supported To: Tomi Valkeinen Cc: Kieran Bingham , Laurent Pinchart , Nikita Yushchenko , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Jacopo Mondi , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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, All Just an updated here. As the commits listed the the following link merged into the android-mainline kernel: https://lore.kernel.org/linux-arm-kernel/20221102180705.459294-1-dmitry.baryshkov@linaro.org/T/ The problem caused by this commit with x15 build is gone now. Thanks, Yongqin Liu On Mon, 5 Sept 2022 at 13:26, Tomi Valkeinen wrote: > > On 31/08/2022 16:02, Tomi Valkeinen wrote: > > Hi, > > > > On 23/02/2022 19:02, Kieran Bingham wrote: > >> Quoting Laurent Pinchart (2022-02-23 16:25:28) > >>> Hello, > >>> > >>> On Wed, Feb 23, 2022 at 04:17:22PM +0000, Kieran Bingham wrote: > >>>> Quoting Laurent Pinchart (2021-12-29 23:44:29) > >>>>> On Sat, Dec 25, 2021 at 09:31:51AM +0300, Nikita Yushchenko wrote: > >>>>>> Hotplug events reported by bridge drivers over > >>>>>> drm_bridge_hpd_notify() > >>>>>> get ignored unless somebody calls drm_bridge_hpd_enable(). When the > >>>>>> connector for the bridge is bridge_connector, such a call is done > >>>>>> from > >>>>>> drm_bridge_connector_enable_hpd(). > >>>>>> > >>>>>> However drm_bridge_connector_enable_hpd() is never called on init > >>>>>> paths, > >>>>>> documentation suggests that it is intended for suspend/resume paths. > >>>>> > >>>>> Hmmmm... I'm in two minds about this. The problem description is > >>>>> correct, but I wonder if HPD should be enabled unconditionally > >>>>> here, or > >>>>> if this should be left to display drivers to control. > >>>>> drivers/gpu/drm/imx/dcss/dcss-kms.c enables HPD manually at init time, > >>>>> other drivers don't. > >>>>> > >>>>> It feels like this should be under control of the display controller > >>>>> driver, but I can't think of a use case for not enabling HPD at init > >>>>> time. Any second opinion from anyone ? > >>>> > >>>> This patch solves an issue I have where I have recently enabled HPD on > >>>> the SN65DSI86, but without this, I do not get calls to my > >>>> .hpd_enable or > >>>> .hpd_disable hooks that I have added to the ti_sn_bridge_funcs. > >>>> > >>>> So it needs to be enabled somewhere, and this seems reasonable to me? > >>>> It's not directly related to the display controller - as it's a factor > >>>> of the bridge? > >>>> > >>>> On Falcon-V3U with HPD additions to SN65DSI86: > >>>> Tested-by: Kieran Bingham > >>> > >>> If you think this is right, then > >>> > >>> Reviewed-by: Laurent Pinchart > >> > >> I do, and at the very least it works for me, and fixes Nikita's issue so > >> to me that's enough for: > > > > So who disables the HPD now? > > > > Is the drm_bridge_connector_enable_hpd & > > drm_bridge_connector_disable_hpd documentation now wrong as they talk > > about suspend/resume handlers? > > To give more context, currently omapdrm enables the HPDs at init time > and disables them at remove time. With this patch, the HPDs are enabled > twice, leading to a WARN. > > imx and msm drivers also seem to call drm_bridge_connector_enable_hpd(), > so I would guess those also WARN with this patch. > > Afaics, this patch alone is broken, as it just disregards the drivers > that already enable the HPD, and also as it doesn't handle the disabling > of the HPD, or give any guidelines on how the drivers should now manage > the HPD. > > My suggestion is to revert this one. > > Tomi -- Best Regards, Yongqin Liu --------------------------------------------------------------- #mailing list linaro-android@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-android