Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1CDDDDB2 for ; Wed, 2 Aug 2023 18:46:50 +0000 (UTC) Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 988DF86851; Wed, 2 Aug 2023 20:46:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1691002008; bh=EKe3hL3JC/TbKuOLimeKzrWst0PmwwaLD2ywLvHXsB0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Q77eJFOVAfhbEd5TcqcQxoEr4Yp7P9JLoeBd0GHiUbh/2ocH+JX+MaaL+GjWz7BR5 bPNCf10dJR109kBe9z52xokVTToVQlOEqrw2+/dBzBX7SjaehZLznU8IaoL5srWF0T AJ0zz+5tosfxK2ovCYHfenqnefM4QAXosujOA5GCerrJ5GGu/QjE/Ub90foupFuHQx dh/ApJQ26eIYhpXO+VPSYlAnbgneiEKilS5FVxZP+VxXxnzdZGXtKpUg3U9VtAJcpM KvVeec4pIPeWS1BKeUYUSxG7THGYMpjUT+5fPaBpGD7/s8a+inFvTpgsCyB9dHoPSx PPjz0OMRiE10w== Message-ID: <8d4a4595-1aeb-1069-3558-275f56cb4516@denx.de> Date: Wed, 2 Aug 2023 20:46:47 +0200 Precedence: bulk X-Mailing-List: regressions@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 Subject: Re: [PATCH 2/2] drm/bridge: lt9611: Do not generate HFP/HBP/HSA and EOT packet Content-Language: en-US To: Abhinav Kumar , neil.armstrong@linaro.org, Amit Pundir , Dmitry Baryshkov Cc: Jagan Teki , dri-devel@lists.freedesktop.org, Robert Foss , Andrzej Hajda , Jonas Karlman , Jernej Skrabec , Michael Walle , Laurent Pinchart , linux-arm-msm , Linux regressions mailing list , freedreno References: <20230403221233.500485-1-marex@denx.de> <20230403221233.500485-2-marex@denx.de> <4396d197-f16f-92bd-727c-eb8c78016198@quicinc.com> <961b4747-c9f1-a31c-c33c-475b4803f832@denx.de> <64c3352f-c2aa-5260-c6ff-4a607ce219a2@quicinc.com> <51d782c4-3539-c3d3-6844-d6b9a39c09eb@linaro.org> <88a49ed7-8132-3212-1f7a-9378eb640d68@denx.de> <9fae9cc5-7de0-7a65-8400-bb55263c0377@quicinc.com> From: Marek Vasut In-Reply-To: <9fae9cc5-7de0-7a65-8400-bb55263c0377@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 8/2/23 19:49, Abhinav Kumar wrote: > Hi Marek > > On 8/2/2023 10:25 AM, Marek Vasut wrote: >> On 8/2/23 15:08, neil.armstrong@linaro.org wrote: >>> Hi Marek, >>> >>> On 02/08/2023 14:25, Marek Vasut wrote: >>>> On 8/2/23 10:39, neil.armstrong@linaro.org wrote: >>>>> Hi Marek, >>>> >>>> Hi, >>>> >>>>> On 13/07/2023 20:28, Marek Vasut wrote: >>>>> >>>>> >>>>> >>>>>>>> >>>>>>>> MIPI_DSI_MODE_VIDEO_NO_HFP means the HBP period is just skipped >>>>>>>> by DSIM. >>>>>>>> >>>>>>>> Maybe there is a need for new set of flags which differentiate >>>>>>>> between HBP skipped (i.e. NO HBP) and HBP LP11 ? >>>>>>>> >>>>>>> >>>>>>> No, the section of the MIPI DSI spec I posted below clearly >>>>>>> states there are two options: >>>>>>> >>>>>>> 1) send blanking packets during those periods >>>>>>> 2) transition to LP11 during those periods >>>>>>> >>>>>>> There is no 3rd option in the spec of not doing both like what >>>>>>> you are suggesting. So DSIM should also be only transitioning to >>>>>>> LP11 during those periods if its not sending the blanking packets >>>>>>> with those flags set. >>>>>>> >>>>>>> So, there is no need for any new set of flags to differentiate. >>>>>>> >>>>>>> The flags and their interpretation is correct in MSM driver. I >>>>>>> cannot comment on what exactly DSIM does with those flags. >>>>>> >>>>>> How do you explain the comment in include/drm/drm_mipi_dsi.h: >>>>>> >>>>>> 128 /* disable hback-porch area */ >>>>>> 129 #define MIPI_DSI_MODE_VIDEO_NO_HBP      BIT(6) >>>>> >>>>> Can you specify how you determined those flags were needed on DSIM >>>>> ? a vendor tree ? a datasheet ? >>>> >>>> The following upstream commit: >>>> >>>> 996e1defca344 ("drm: exynos: dsi: Fix MIPI_DSI*_NO_* mode flags") >>>> >>>>> In the meantime, we should revert this patch because it regresses >>>>> some Qcom >>>>> based platforms until we figure out what's missing to make DSIM >>>>> based boards >>>>> happy. >>>>> >>>>> I'll send a revert change afterwards. >>>> >>>> That change would break existing use case on i.MX8M then, I disagree >>>> with that revert. >>> >>> As I understand the timeline is : >>> >>> - 996e1defca344 was merged in v6.2-rc2 and caused regression on NXP >>> platforms >>> >>> - 8ddce13ae696 was merged in v6.5-rc1 to fix that but caused >>> regression on QCOM platforms >>> >>> Did I miss something ? >> >> That looks about right. >> >>> I don't know how to handle this apart reverting 8ddce13ae696 and >>> trying to find a proper fix that doesn't regress QCOM. >> >> I provided a suggestion above -- I believe QCOM is misinterpreting the >> NO_H* flags and it needs separate flags for its behavior. The NXP >> hardware per MX8M{M,N,P} reference manual (which is available at >> NXP.com) skips the H* areas in the transfer, which matches the flags >> description: >> >> include/drm/drm_mipi_dsi.h-/* disable hback-porch area */ >> include/drm/drm_mipi_dsi.h:#define MIPI_DSI_MODE_VIDEO_NO_HBP   BIT(6) >> >> If the QCOM hardware does something else, it should introduce its own >> set of flags for that something else and that would be problem solved, >> for both platforms. >> >> I don't have access to the QCOM hardware or datasheet however, is >> either available ? >> > > Like I have written above, the DSI spec gives two options which we can > do in the HBP/HSA/HFP periods: > > 1) Transition to LP11 which means blanking packets will not be sent > 2) Send blanking packets during those periods > > That flag controls exactly that and thats what MSM does. > > There is no third option in the spec to not do either. > > Now, are you saying that those flags are providing some other third > option which is not even there in the DSI spec? Can you please have a look at the i.MX8M reference manual and read exactly what that controller does , then compare it to the QCOM controller behavior ?