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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 38613C4332F for ; Wed, 4 Jan 2023 09:05:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 438AB10E502; Wed, 4 Jan 2023 09:05:20 +0000 (UTC) Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by gabe.freedesktop.org (Postfix) with ESMTPS id EEF4210E4FF for ; Wed, 4 Jan 2023 09:05:15 +0000 (UTC) Received: by mail-wr1-x42d.google.com with SMTP id d9so3693964wrp.10 for ; Wed, 04 Jan 2023 01:05:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:reply-to:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=Oh/3WXFSFZ0hbQjzT0wY1WPbHkqQz09XIIWq4ZAep2w=; b=au3qYRdxkd+Pnw8vRdyDDJWOWYDlno9bvShahUpf+1j8klY8orgnoiGxhME67dacVz Sth6yGYcr9PesvvYg6Z+BUXIlk+4Km/fPd0o/5b6TcYPx/7PXZCeU2uVCpDscDKnPVw4 SYigY/Za0fQhgB1WVBXmEuYao8sXk7RoLZpF+bQ1FHMb4ZBg734TWTvbtmsmxVULge/k MzTu7qNGb2L/1oyfkl68j/HPHkO20A3ByV9J9WeFw5vlvx6s6WoIvGRPOVgZsYaiSjmW sc5muaYaolbQdN7qWIyD9YqMVDho3tbtOougF859U5CyENahMEIqrrS+sZbOlDL65iGz FzRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:reply-to:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Oh/3WXFSFZ0hbQjzT0wY1WPbHkqQz09XIIWq4ZAep2w=; b=0fYY2u0Jt4F/kNs8XFzHVcNR/oII9w06tthQh5SgAoYFd+Jlr6wq0A/L2ZeNW0FOi+ pshhm9pk4YEOHhq/Rx7j6rDi8R2EwSK9T42gKxlzqUfSEc5P9rRcCfwnLtBtQBgekHBy p95WUtOAah/tlr6bjTOJZBLnvGuysWPI4KHeH8bbHHnwPlFsN88AA7UOZa0Gc9MxAxE2 FLkprlMxmrEUTSEOqT5PuWX88sNYRHFRSBpDnANBdYmk8WCJm3k2mcB1HQAFr3S/hyig bhwcBkNAVMnecAlpFbInqEdl7gLaErTrhAxnvxn5g8t3o1ED6LtdinNY5ECMFGasFfFp GgWw== X-Gm-Message-State: AFqh2kp/vGbgWG+EBCkcZmKu/8eDTiTzWlpT/ptWQmR7jq76qddaQJMv qGiAQdIIYFeHiGChyCTAGT5KNQ== X-Google-Smtp-Source: AMrXdXvIewCX4EeMSX02Wkw8XHn6ezPRQLSYsFE2SwOY4i2xW5xgsMpir8LTo17gufD0ao4bY4b8gg== X-Received: by 2002:a5d:4081:0:b0:27a:cc74:977c with SMTP id o1-20020a5d4081000000b0027acc74977cmr22472180wrp.70.1672823114213; Wed, 04 Jan 2023 01:05:14 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:102f:89e:4a9f:68c? ([2a01:e0a:982:cbb0:102f:89e:4a9f:68c]) by smtp.gmail.com with ESMTPSA id q8-20020adff788000000b0024258722a7fsm33852259wrp.37.2023.01.04.01.05.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Jan 2023 01:05:13 -0800 (PST) Message-ID: <37e48125-072d-e55d-d997-67fd3796a779@linaro.org> Date: Wed, 4 Jan 2023 10:05:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH v3 0/7] drm/bridge_connector: perform HPD enablement automatically Content-Language: en-US To: Tomi Valkeinen , Dmitry Baryshkov , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Laurentiu Palcu , Lucas Stach , Philipp Zabel , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Rob Clark , Sean Paul , Abhinav Kumar References: <20221102180705.459294-1-dmitry.baryshkov@linaro.org> <362452c5-8858-9ac5-e0ca-8ff993e966b7@linaro.org> From: Neil Armstrong Organization: Linaro Developer Services In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: neil.armstrong@linaro.org Cc: linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 04/01/2023 08:29, Tomi Valkeinen wrote: > On 28/12/2022 23:58, Dmitry Baryshkov wrote: >> On 02/11/2022 20:06, Dmitry Baryshkov wrote: >>>  From all the drivers using drm_bridge_connector only iMX/dcss and OMAP >>> DRM driver do a proper work of calling >>> drm_bridge_connector_en/disable_hpd() in right places. Rather than >>> teaching each and every driver how to properly handle >>> drm_bridge_connector's HPD, make that automatic. >>> >>> Add two additional drm_connector helper funcs: enable_hpd() and >>> disable_hpd(). Make drm_kms_helper_poll_* functions call them (as this >>> is the time where the drm_bridge_connector's functions are called by the >>> drivers too). >> >> Since we are at the beginning of the development window, gracious ping for this patchset. >> >> It would be nice to finally handle the bridge_connector's hpd properly. Calling drm_bridge_connector_enable_hpd() from drm_bridge_connector_init() is not a proper way to do this. It results in calling bridge->funcs->hpd_enable() before the rest of the pipeline was set up properly. > > For the series: > > Reviewed-by: Tomi Valkeinen > > I've been using this series in my local branch for quite a while to fix the HPD issues. Works for me. > > I still think the "fix" aspect should be highlighted more here, as the current upstream triggers a WARN for "Hot plug detection already enabled" (at least) on OMAP. LGTM then ! Tomi, Dmitry, I can push the whole serie via drm-misc-next or -fixes then, as you wish. Neil > >  Tomi >